Question: 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

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 paints is constant and known. Your job is to determine the temperature at the interior points in the thermal equilibrium. 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. For example, 7 T, + Ty, + $7 + Sg Ty 4 . 5p Tp You are now given the vector = | : | . Compute T = Ss Ty The vector is stored as a 1-d numpy array in s. Use this to compute T and store the vector in T as a numpy array of the same shape as 5. The setup code gives the following variables: Name Type Description 5 numpy array vector 5 Your code snippet should define the following variables: Name Type Description T numpy array vector T user_code.py 5 1 import numpy as np 2 3 #Write your code to calculate T below this line 4 5 THa08

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Physics Questions!