Question: CHW4.2. Linear Systems: Determining the temperature distribution In this problem we study the temperature distribution in a two-dimensional object, like a very thin metal plate.

CHW4.2. Linear Systems: Determining the temperature distribution In this problem we study the temperature distribution in a two-dimensional object, like a very thin metal plate. We can model such an object as a grid of wires, as shown below. In the example, we assume that the temperature at the exterior grid points is constant and known. Your job is to determine the temperature at the interior points in the thermal equilibrium. So Sg Si TO S7 S2 T T2 S3 T3 T4 S6 SA S. When the temperature distribution in the grid is stable, the temperature at each interior point is the average of the temperatures at the four adjacent points. So Ti + T4 + S7 + S8 T2 4 So , You are now given the vector S = : Compute T = The vector S is stored as a 1-numpy array in S. Use this to compute T and store the vector in Tas a numpy array of the same shape as S. The setup code gives the following variables: Name Type Description S numpy array vector s Your code snippet should define the following variables: Name Type Description T numpy array vector T user_code.py 1 import numpy as np 2. 3 # Write your code to calculate I below this line 4 5 T=... CHW4.2. Linear Systems: Determining the temperature distribution In this problem we study the temperature distribution in a two-dimensional object, like a very thin metal plate. We can model such an object as a grid of wires, as shown below. In the example, we assume that the temperature at the exterior grid points is constant and known. Your job is to determine the temperature at the interior points in the thermal equilibrium. So Sg Si TO S7 S2 T T2 S3 T3 T4 S6 SA S. When the temperature distribution in the grid is stable, the temperature at each interior point is the average of the temperatures at the four adjacent points. So Ti + T4 + S7 + S8 T2 4 So , You are now given the vector S = : Compute T = The vector S is stored as a 1-numpy array in S. Use this to compute T and store the vector in Tas a numpy array of the same shape as S. The setup code gives the following variables: Name Type Description S numpy array vector s Your code snippet should define the following variables: Name Type Description T numpy array vector T user_code.py 1 import numpy as np 2. 3 # Write your code to calculate I below this line 4 5 T=
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
