Problems with solving a PDE system of 3 parabolic equations
Mostrar comentarios más antiguos
Hi,
I'm beginner in using the PDE toolbox and I get an error message as I'm trying to execute the attached code. The error message is the following:
Error using .* Matrix dimensions must agree.
Error in pdeasma (line 8)
aod=a.*ar/12; % Off diagonal element
Error in pde.internal.assema2DImpl (line 184)
km1=pdeasma(it1,it2,it3,np,ar,x,y,sd,u,ux,uy,time,a);
Error in pde.PDEModel/assema (line 51)
[ks,km,fm] = pde.internal.assema2DImpl(pdebc, p, t, c, a, f, varargin{idxstart:end});
Error in pdeODEInfo/getMats (line 163)
[~,MM]=self.thePde.assema(self.p,self.t,0,self.d,self.f,u,time);
Error in pdeODEInfo/checkFuncDepen (line 61)
[MM0,K0,M0,F0,Q0,G0,H0,R0] = self.getMats(u0, t0);
Error in pdeParabolicInfo (line 13)
obj=obj.checkFuncDepen(u0, tlist);
Error in parabolic (line 109)
pdeprb=pdeParabolicInfo(u0,tlist,b,p,e,t,c,a,f,d);
Error in test_illumination2 (line 78)
u = parabolic(u0,tlist,model,c,a,f,d);
Any idea where this comes from? I guess that one of my matrices is probably too small. Thanks for helping me!
Best regards,
Kai
Respuestas (1)
Alan Weiss
el 8 de Mayo de 2015
0 votos
It is possible that you gave a PDE coefficient incorrectly. How did you specify your coefficients? Through a matrix? A string? The possible forms of coefficients is described here.
If this does not help, then please give us your coefficient specifications so we can check for errors.
Alan Weiss
MATLAB mathematical toolbox documentation
2 comentarios
Kai
el 8 de Mayo de 2015
Alan Weiss
el 13 de Mayo de 2015
I am sorry, but I cannot read your coefficients. Please format them using the {} Code button.
Alan Weiss
MATLAB mathematical toolbox documentation
Categorías
Más información sobre Eigenvalue Problems en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!