How do I solve coupled PDEs and ODEs together using pdepe?
Show older comments
Hey everyone!
I am trying to use pdepe to solve a system of 6 differential equations. Four of them are PDEs , being first order in time and second order in space. But two of them are ODEs which are first order in time. I want to use pdepe to solve them together since the variables of the two ODEs in the appearance PDEs of the other system variables.
I tried the c values in pdefun of the ODEs to 1 while the f values were set to 0 since I do have any spatial derivative and just a time derivative. And for the ODEs, I set the p and q values in bcfun to zero for both the left and right matrixes (pl,ql,pr and qr) since there are no BCs defined for the variables.
But my simulation is failing and I getting an error saying that my spatial discretization has failed.
Lemme know if anyone has info that could help me out or need any additional information from my end!
Best,
Manu
Accepted Answer
More Answers (0)
Categories
Find more on Eigenvalue Problems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!