Professional Documents
Culture Documents
TP 3 Methodes Numeriques
TP 3 Methodes Numeriques
KAMEL MEKRACHE
EMMANUEL DOUDJEU KAMKOU
MASTER 1 GENIE CIVIL /GROUPE A1
h=1
cv=1e-7
q=1
tf=2e7
nt=11
nz=101
s=0
z=linspace(0,2*h,nz)
t=linspace(0,tf,nt)
tv=(cv*t)/(h^2)
function [s]=u(z, t)
for n=0:100
alphan=(n+0.5)*%pi
s=s+2*q*(1/alphan)*sin(alphan*z/h)*exp(-alphan^2*cv*t/h^2)
end
endfunction
for i=1:11
plot(u(z,t(i)),z)
end