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

1 view (last 30 days)
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 Comments
Torsten
Torsten on 16 Nov 2018
Edited: Torsten on 16 Nov 2018
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 on 16 Nov 2018
Does that mean those bc will be ignored by PDEPE since there is no spatial eqts for c3 and c4?

Sign in to comment.

Answers (0)

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!