Clear Filters
Clear Filters

Solving a non linear set of pdes with multiple dependent variables.

17 views (last 30 days)
I'm currently working on a student project to design a pressure swing adsorption system. To do this, I need to solve a set of 5 coupled non-linear PDEs with multiple dependent variables. I was wondering if anyone has ever tackled a similar problem with MATLAB before, and whether it would be possible using the PDE Toolbox. Any pointers for the direction I should be heading in would be appreciated.
  3 Comments
PSA
PSA on 21 Mar 2016
Hi Torsten, thanks for replying. The equations are outlined in the two files I've attached, initial conditions are zero for all variables at t = 0 for all z.
Gizem Kusoglu
Gizem Kusoglu on 6 Apr 2022
Hi PSA, did you solve your problem? Could you please share your way for solution, if you find solution with matlab?

Sign in to comment.

Answers (4)

Torsten
Torsten on 21 Mar 2016
Edited: Torsten on 21 Mar 2016
There is no ready-to-use MATLAB tool available to solve the equations you posted. The problem is that you have a system of ordinary together with partial differential equations.
You'll have to discretize the equations in space and solve the resulting system of ordinary differential equations using ODE15S, e.g.. Look up "method-of-lines" for more details.
Best wishes
Torsten.
  1 Comment
santi
santi on 24 Oct 2017
Hello Torsten, I have same problem to solve and i'm facing problem in discreatizing boundary conditions.

Sign in to comment.


PSA
PSA on 21 Mar 2016
Ah yes I'd considered that, unfortunately the authors of the paper from which those equations came noted that doing so would lead to stiffness problems and was therefore not feasible. Consequently I'll proceed by applying a Crank-Nicolson discretisation in space and time, I'm also trying to use COMSOL to solve them but that is a different matter altogether.
Thanks for the input.
Chris
  2 Comments
Torsten
Torsten on 21 Mar 2016
Edited: Torsten on 21 Mar 2016
The stiffness argument does not apply because you can use a stiff solver, namely ODE15S. I strongly recommend using the method-of-line approach because you only have to do the spatial discretization, but don't have to care about the time integration.
Best wishes
Torsten.
PSA
PSA on 21 Mar 2016
Ah I had no idea, thanks for clarifying that. MOL should be much simpler, thanks!

Sign in to comment.


ahmad
ahmad on 7 Nov 2016
Hi, if it still matters to you, I do not see any problem solving the set of posted equations using the pdepe MATLAB solver. However, of course you can always use MOL, but that would be a bit more work to do.
Best, Ahmad

santi
santi on 16 Oct 2017
Ahmad, can you please tell me how can i solve these set of equations by using pdepe.

Community Treasure Hunt

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

Start Hunting!