Multi-domain PDE system with pdepe
Show older comments
Hello everyone,
I am trying to create a 1-D transient model of an electrochemical cell that has 5 different layers (domains). I structured the whole problem using pdepe but unfortunately I noticed how it is not possible to handle variable boundaries internally to the domains (so as to handle jumps and possible missing of some equations in the domains). Therefore I step in here by asking some questions:
1.Considering that the model is now completely set up according to the logic of pdepe, does it make sense to spend time trying to modify the source code of pdepe allowing the inclusion of internal BCs to handle jumps in the solution due to the absence of the variable in that domain?
2. In case there is no solution in using pdepe, what is the best tool to deal with this problem in matlab?
Thank you in advance for your response.
3 Comments
Torsten
on 18 Jun 2024
What do you mean by
inclusion of internal BCs to handle jumps in the solution due to the absence of the variable in that domain
How can internal BCs compensate for the absence of variables ?
There is no solution possible with "pdepe".
COMSOL can handle such user-defined transmission conditions. If you don't have access to COMSOL, you will have to discretize your equations in space including boundary and transmission conditions and solve the resulting system of differential-algebraic equations in time using ODE15S, e.g.
Look up "method-of-lines" for more details.
Answers (0)
Categories
Find more on Boundary Conditions 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!