Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ help! Temperature Distribution Assignment specs: The temperature distribution in a thin metal plate with constant (or isothermal) temperatures on each side can be modeled

image text in transcribedimage text in transcribed

c++ help!

Temperature Distribution Assignment specs: 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 the figure below. Typically, the number of points in the grid are specified, as are the constant temperatures on 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 the grid below 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. top left right ottorn Basic algorithm: 1. Get from the user the names of the input and output files. 2. Read from the input file the initial temps for top, right, bottom, and left sides of plate. 3. Read from the input file the tolerance for equilibrium.I 4. Initialize the edges of the 2D grid with initial temps you got from the input file, and initialize the inner cells of the grid to 0.0.T 5. Continue updating temperature values within inner cells until equilibrium is reached. Temperature Distribution Assignment specs: 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 the figure below. Typically, the number of points in the grid are specified, as are the constant temperatures on 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 the grid below 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. top left right ottorn Basic algorithm: 1. Get from the user the names of the input and output files. 2. Read from the input file the initial temps for top, right, bottom, and left sides of plate. 3. Read from the input file the tolerance for equilibrium.I 4. Initialize the edges of the 2D grid with initial temps you got from the input file, and initialize the inner cells of the grid to 0.0.T 5. Continue updating temperature values within inner cells until equilibrium is reached

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

At the presymbolic level, work with fractions should be limited to

Answered: 1 week ago

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago