Need a better guess yo for consistent initial conditions_Error using daeic3 (line 230)

3 次查看(过去 30 天)
I am trying to solve coupled transient heat and mass transfer equations in 2D in a food material using the PDE toolbox (Matlab 2018b).
I am rgetting those errors :
Error using daeic3 (line 230)
Need a better guess y0 for consistent initial conditions.
Error in ode15s (line 313)
[y,yp,f0,dfdy,nFE,nPD,Jfac,dMfac] = daeic3(odeFcn,odeArgs,tspan,htry,Mtype,Mt,Mfun,...
Error in pde.EquationModel/solveTimeDependent (line 104)
sol=ode15s(fcn,tlist,uu0,odeoptions);
Error in pde.PDEModel/solvepde (line 54)
[u,dudt] = self.solveTimeDependent(coefstruct, u0, ut0, tlist, ...
Error in Riceheat_and_mass (line 66)
results = solvepde(riceHeatandMass,tlist);
What the errors mean and how to fix them. Details on the equations and the script are in the attachment.

回答(1 个)

Pravin Jagtap
Pravin Jagtap 2019-8-23
Hello Fidele,
The approach followed by you in the attached script may not be the easiest way to solve this coupled system. To solve the system of coupled Partial Differential Equations we need to have both equations consistent with the form given in the documentation.
For better understanding of how to solve coupled partial differential equations refer following link:
The following link points have a similar example, which will probably help you in solving the problem.
Kind Regards
~Pravin

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by