Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the given MatLab code: function Name_1D_Conduction clc %clear all variables clear ilast = %number of grid points in x tlast= %number of iterations for

image text in transcribed

Using the given MatLab code:

function Name_1D_Conduction

clc %clear all variables

clear

ilast = %number of grid points in x

tlast= %number of iterations for time

dx = %grid spacing

dt = %time spacing

k = %thermal conductivity of material

rho = %density of material

cp = %specific heat of material

alpha = %thermal diffusivity

t = %initial time (t=0seconds)

%Boundary Condition on left side of Rod

Tnew(1) =

Fo = (dt*alpha)/dx^2; %Fourier Number (Should be less than or equal to

0.5)

%iterations

for k=1:tlast-1 %time loop

t=t+dt; %incremental time

Told=Tnew; %setting old to previous new temperatures for differencing

Example Told(2)=Tnew(1)

for i=2:ilast-1

x(i)=(i-1)*dx; % actual values of depth

Tnew(i)=

end

plot(x,Tnew) %Temperature vs. distance at last timestep

end

-ZCOM + Matlab Exercise The temperature of a perfectly insulated iron bar In loa? Ibe temperature of the na t e d a mantained at 200 C. Plot the tenperature distituiona 000. The raterial properties are. -802 .R ?-787 p- Use the 1-I) Fourier Heat condiction equation and Matlah t? plot the soh!tion: wbene pe -ZCOM + Matlab Exercise The temperature of a perfectly insulated iron bar In loa? Ibe temperature of the na t e d a mantained at 200 C. Plot the tenperature distituiona 000. The raterial properties are. -802 .R ?-787 p- Use the 1-I) Fourier Heat condiction equation and Matlah t? plot the soh!tion: wbene pe

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions

Question

What would motivate the decision maker to approve your idea?

Answered: 1 week ago

Question

1. What are the peculiarities of viruses ?

Answered: 1 week ago

Question

Describe the menstrual cycle in a woman.

Answered: 1 week ago

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago