how to solve pde
Afficher commentaires plus anciens
function [j,f,s] = pde1(z,t,c,dcdz,C)
D = 0.01;
e= 0.6;
F=1-e/e;
H=2;0;
u=0.05;
j = 1;
f = (D/(1+(F*H)))*dcdz;
s = -(u/(1+(F*H)))*dcdz;
end
function c0=pde1IC(z)
c0=10;
end
function [pl,ql,pr,qr]=pde1BC(zl, cl,zr,cr,t)
pl=c;
ql=0;
pr=c-10;
qr=0;
end
at command window
z=linspace(0,10,100)
t=linspace(0,200,2000)
m = 0;
eqn = @(z,t,c,dcdz) pde1PDE(z,t,c,dcdz,C);
sol = pdepe(m,eqn,@pde1IC,@pde1BC,z,t);
but the command window display:
pde1IC' is an unrecognized function or variable. Error occurred: pdepe (line 229) temp = feval(ic,xmesh(1),varargin{:});
What can I do .....
1 commentaire
Isaac Revie
le 12 Oct 2021
Getting the same error! driving me nuts
Réponses (0)
Catégories
En savoir plus sur Boundary Conditions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!