Question
MATLAB: Imagine that you wish to know the temperature at all points on a plate that is insulated except for two positions on the edge
MATLAB: Imagine that you wish to know the temperature at all points on a plate that is insulated except for two positions on the edge where heating elements of known temperature are applied. At some point when the temperature at all positions on the plate have stabilized, what will the temperature at each point be?
To solve such a problem, we imagine the plate surface divided into equal sized "tiles" and restate the problem to find the temperature at the center of each tile. We know that the temperature of each tile depends upon its neighboring temperatures. In fact, it is a weighted average of those temperatures based on the proportion of our tile's edge that is shared with its neighbor. Here is a rectangular "plate" divided into 15 equal area tiles. Assume that each edge of each tile has identical length, so that the temperature of any one tile is a simple average of the temperatures of all neighboring tiles that share a side with the tile in question. This creates a system of 15 equations, one for each "tile" area.
TA and TB are the non-insulated positions along the edge where a heat source of known temperature will be applied. The temperatures at T1 through T15 are the unknowns that you wish to find.
Define a function named heatPlate that accepts two temperature values TA and TB (representing TA and TB, respectively) and returns a single matrix result that is a 53 matrix of temperatures for the unknowns T1 through T15 in the order labeled above.
To solve this problem, identify 15 equations. Each equation represents the temperature value for one tile based upon the temperature values of each of its neighboring tiles. For example, the temperature at T8 is equal to the average of the temperatures: T5, T7, T9, and T11.
What about the corners? Well, since the gray area is insulation, the only effect is from the non-insulating tiles. Thus, T15 is equal to the average of only T12 and T14.
How do TA and TB factor into the equations? They will be in the equations, but since their values will be known when the function is called, the terms with TA and TBshould be on the right-hand side of the equations once the equations are put into general form.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started