Solving a system of equtions with first an pde and the others first order odes
3 次查看(过去 30 天)
显示 更早的评论
Now i have the same system but with the first equation be a PDE i would like to solve it pdepe solver and using ode45 1) R*dX/dt = -0.000038*X - (X*(X/Xinit)^frac)*rext -v*dX/dx + alpha*d^2X/dx^2 2) dY/dt = - 0.000038*Y + rext*X - rtra*Y + Sr. 3) dZ/dt = - 0.000038*Z + rext*Y - rtra*Z + Sti 4) dU/dt = 0.000038*U + rext*Z - rvol*U + Sfeu Satisfying Y(0)=Z(0)=U(0)=0 X(t,0)=0; dX/dx(t,x=L)=0; X(t=0,x)=Xinit Where the functions are X, Y,Z and U and the variables are x and t. The others parameters are known constant. If frac=0 i know how to.solve it with Laplace transform and then by an intégration over the space domaine i obtain X(t) and then the others functions (Y(t), Z(t), U(t)). Due toi the présence of frac i dont know how to solve it in MATLAB.
0 个评论
回答(1 个)
Torsten
2023-9-20
"pdepe" does not support pure ODEs together with a partial differential equation with 2nd order derivatives in space.
Use "pde1dM" instead:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PDE Solvers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!