Temperature Distribution. The temperature distribution in a thin metal plate with constant (or isothermal) temperatures on...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Temperature Distribution. The temperature distribution in a thin metal plate with constant (or isothermal) temperatures on each side can be modeled using a two-dimensional grid, as shown in Figure Typically, the number of points in the grid are specified, as are the constant temperatures on the four sides. The temperatures of the interior points are usually initialized to zero, but they change according to the temperatures around them. Assume that the temperature of an interior point can be computed as the average of the four adjacent temperatures; the points shaded in represent the adjacent temperatures for the point labeled x in the grid. Each time that the temperature of an interior point changes, the temperatures of the points adjacent to it change. These changes continue until a thermal equilibrium is achieved and all temperatures become constant. Figure Temperature grid in a metal plate. top Fleft -right| bottom- Modify the program in problem to use an array instead of the vector class to implement the grid. Temperature Distribution. The temperature distribution in a thin metal plate with constant (or isothermal) temperatures on each side can be modeled using a two-dimensional grid, as shown in Figure Typically, the number of points in the grid are specified, as are the constant temperatures on the four sides. The temperatures of the interior points are usually initialized to zero, but they change according to the temperatures around them. Assume that the temperature of an interior point can be computed as the average of the four adjacent temperatures; the points shaded in represent the adjacent temperatures for the point labeled x in the grid. Each time that the temperature of an interior point changes, the temperatures of the points adjacent to it change. These changes continue until a thermal equilibrium is achieved and all temperatures become constant. Figure Temperature grid in a metal plate. top- -right| Fleft bottom Write a program to model this temperature distribution for a grid with six rows and eight columns. Allow the user to enter the temperatures for the four sides. Use one grid to store the temperatures. Thus, when a point is updated, its new value is used to update the next point. Continue updating the points, moving across the rows until the temperature differences for all updates are less than a user-entered tolerance value. Use the vector class to implement the grid. Temperature Distribution. The temperature distribution in a thin metal plate with constant (or isothermal) temperatures on each side can be modeled using a two-dimensional grid, as shown in Figure Typically, the number of points in the grid are specified, as are the constant temperatures on the four sides. The temperatures of the interior points are usually initialized to zero, but they change according to the temperatures around them. Assume that the temperature of an interior point can be computed as the average of the four adjacent temperatures; the points shaded in represent the adjacent temperatures for the point labeled x in the grid. Each time that the temperature of an interior point changes, the temperatures of the points adjacent to it change. These changes continue until a thermal equilibrium is achieved and all temperatures become constant. Figure Temperature grid in a metal plate. top Fleft -right| bottom- Modify the program in problem to use an array instead of the vector class to implement the grid. Temperature Distribution. The temperature distribution in a thin metal plate with constant (or isothermal) temperatures on each side can be modeled using a two-dimensional grid, as shown in Figure Typically, the number of points in the grid are specified, as are the constant temperatures on the four sides. The temperatures of the interior points are usually initialized to zero, but they change according to the temperatures around them. Assume that the temperature of an interior point can be computed as the average of the four adjacent temperatures; the points shaded in represent the adjacent temperatures for the point labeled x in the grid. Each time that the temperature of an interior point changes, the temperatures of the points adjacent to it change. These changes continue until a thermal equilibrium is achieved and all temperatures become constant. Figure Temperature grid in a metal plate. top- -right| Fleft bottom Write a program to model this temperature distribution for a grid with six rows and eight columns. Allow the user to enter the temperatures for the four sides. Use one grid to store the temperatures. Thus, when a point is updated, its new value is used to update the next point. Continue updating the points, moving across the rows until the temperature differences for all updates are less than a user-entered tolerance value. Use the vector class to implement the grid.
Expert Answer:
Answer rating: 100% (QA)
include Enter NROWS Note 6 define NCOLS 8 int important void Double l... View the full answer
Related Book For
Thermodynamics An Engineering Approach
ISBN: 978-0073398174
8th edition
Authors: Yunus A. Cengel, Michael A. Boles
Posted Date:
Students also viewed these programming questions
-
A thin metal plate is insulated on the back and exposed to solar radiation on the front surface. The exposed surface of the plate has an absorptivity of 0.6 for solar radiation. If solar radiation is...
-
A thin metal plate is insulated on the back and exposed to solar radiation on the front surface. The exposed surface of the plate has an absorptivity of 0.8 for solar radiation. If solar radiation is...
-
A thin metal plate is insulated on the back and exposed to solar radiation on the front surface. The exposed surface of the plate has an absorptivity of 0.7 for solar radiation. If solar radiation is...
-
What are the three shapes of periodic signals a function generator can produce?
-
When will income tax expense and income taxes payable be equal?
-
Define conformity and give an example of it. Name three reasons why people conform?
-
Reconsider the data from Problem 4. Management has expressed some concern over the life of the project and the impact of possible early termination. As a result, you have developed additional data...
-
For this exercise, your client, Bright IDEAs Inc., has provided you with data for two related files, a listing of sales invoices, and a listing of customers with credit limits. To test whether credit...
-
Direct labor-hours Machine-hours Total fixed manufacturing overhead cost Variable manufacturing overhead per machine-hour Variable manufacturing overhead per direct labor-hour Required: 1. Compute...
-
The Bussell Company exchanged the following assets during 2010: 1. Acquired a newer machine by paying $4,000 cash and giving up a machine that originally cost $40,000, has a book value of $25,000,...
-
For the rivetted joint B as shown in the figure, the resulting shear load on heavily loaded rivet is 50 mm B (a) 5 kN (c) 15.81 kN 75 mm 10 kN (b) 15 kN (d) 20 kN
-
Define a marketing opportunity. Give an example of a company taking advantage of an opportunity.
-
What do you call the closing sentence of a wellwritten paragraph? What is it used for?
-
What is country risk?
-
What is a key performance indicator (KPI)? Give five examples of KPIs.
-
Why is it advantageous to describe the limitations in a marketing research study? What are some factors that might lead to limitations?
-
Show there exists a natural number n = N such that for any function f: [n] (1,2), there exist distinct a, b = [n] such that f(a) = f(b) = f(a + b) (Recall that [n] = (1, 2,..., n}). (Always expect...
-
A researcher reports a significant two-way between-subjects ANOVA, F(3, 40) = 2.96. State the decision to retain or reject the null hypothesis for this test.
-
A heat pump operates on the ideal vapor compression refrigeration cycle with R-134a as the working fluid between the pressure limits of 0.32 and 1.2 MPa. If the mass flow rate of the refrigerant is...
-
A large refrigeration plant is to be maintained at - 15oC, and it requires refrigeration at a rate of 100 kW. The condenser of the plant is to be cooled by liquid water, which experiences a...
-
How does a natural-draft wet cooling tower work?
-
Determine the equivalent resistance \(R_{\text {eq }}\) for the circuit shown in Figure 6.9. FIGURE 6.9 Problem 2. +O V www R ww R3
-
Determine the equivalent resistance \(R_{\text {eq }}\) for the circuit shown in Figure 6.8. FIGURE 6.8 Problem 1. W R1 ev
-
A potentiometer is a variable resistor with three terminals. Figure 6.12a shows a potentiometer connected to a voltage source. The two end terminals are labeled as 1 and 2, and the adjustable...
Study smarter with the SolutionInn App