Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

from the following code, I need to fill this table, please tell where can I change the time to get the result Now, we should

image text in transcribed

image text in transcribed

image text in transcribed

from the following code, I need to fill this table, please tell where can I change the time to get the result

image text in transcribed

Now, we should define the time step and the grid points in the temporal (i.e. time) axis. Assume that the time step is 2 micro seconds so that you will compute the temperature values at the spatial grid points every micro second. Let's also run the calculations for a total of 1 seconds. The total number of time steps will be equal to the total number of grid points in the temporal direction minus 1. delt=2e-6; ttime step is 2 microsecond t=0: delt:1; 8time vector j=length(t) 1; s number of time steps for which the calculation has to be done Note that the time values at which the temperatures will be computed are stored in array t. The number of elements in t i.e. the number of time values are obtained using length(t). The initial condition can be defined as follows. The command ones(1,n-2) creates an array of 1s with 1 row and n2 columns. The intial values of the temperatures at all the grid points are stored in the array 'temp'. Note that the units of temperatures are converted to Kelvin by adding 273.15. temp(1)= tin +273.15; stemperature at the left edge temp (n)= tout +273.15; t temperature at the right edge temp (2:n1)= temp (1); tinitial temperature at all the interior points Now, create an array to store the values of the temperatures at each time step. In this array, the rows will contain the temperature values at points in x. Each column corresponds to a time step. tempt=zeros (n,j); qdefine the vector which will contain temperatures at increasing tempt (:,1)= temp; 8defines the initial condition tempt (1,:)= temp (1); sdefines boundary condition tempt (n,:)=temp(n); rdefines boundary condition Write the time marching iterative procedure. for ts=2:j for k=2:n1 temp (k)=temp(k)+alph(delt/(delxdelx))(temp(k+1)2temp(k)+temp(k1)); tempt (k,ts)=temp(k); end end The inner loop computes the temperature values at x for a given time step. The outer loop marches the solution forward in time. 4. Modify the attached code to show the temperature profile as a function of location when: (t=0s,t=400s,t=10msecandt=50msec) 5. Copy the temperature plot from the code at t=0s,t=400s,t=10msec and t=50msec

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

=+ Would a change in the price of pizza shift this supply curve?

Answered: 1 week ago