FTCS matlab code

jeudi 31 octobre 2013

Can someone help me code for the following?

diffusion equation

D∂^2/ ∂x=∂c/∂t

D=diffusion coefficient =2*10^-4 m^2/hour



C=concentraion=20kg/m^3



X=distance(m)



t=time in hours



thinkness of medium = 200mm



time = 25 days



step size = 0.01





how do I implement this in matlab? can you provide the code?






via Physics Forums RSS Feed http://www.physicsforums.com/showthread.php?t=720080&goto=newpost

0 commentaires:

Enregistrer un commentaire