How to solve a system of parabolic PDEs and 1st order ODEs?

5 次查看(过去 30 天)
I'm trying to solve a system of parabolic ODEs and first-order ODEs. I understand that Matlab's pdepe solver cannot solve 1st-order differential equations. How do I solve this sytem? I also tried solving the DAE system using a mass matrix, but encountered the following error:
Error in ode15s (line 310) [y,yp,f0,dfdy,nFE,nPD,Jfac] = daeic12(odeFcn,odeArgs,t,ICtype,Mt,y,yp0,f0,...
A sample set of equations is given below.
  12 个评论
Torsten
Torsten 2018-11-16
编辑:Torsten 2018-11-16
c3 and c4 don't need boundary conditions.
Artificially setting pl=pr=0, ql=qr=1 in the boundary function of "pdepe" makes the equations tractable for the "pdepe" solver.
Bruno Luong
Bruno Luong 2018-11-16
Does that mean those bc will be ignored by PDEPE since there is no spatial eqts for c3 and c4?

请先登录,再进行评论。

回答(0 个)

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by