Hi every one. I Have two interlinked PDEs that I want to solve with pdepe. I already saw in mathwork that pdepe is capable of solving two pdes but my case is a little bit different. In my case, not only the fluxs are combinations of u1 and u2, but also in the time-dependent part I have both u1 and u2. In below form:
∂/∂x (f( x,t,u1,u2,∂u1/∂x,∂u2/∂x))+S1=C1 ∂(u1,u2)/∂t
∂/∂x (f( x,t,u1,u2,∂u1/∂x,∂u2/∂x))+S2=C2 ∂(u1,u2)/∂t
I was wondering if pdepe can solve these sort of pdes?

1 commentaire

Torsten
Torsten le 24 Sep 2018
How exactly does d(u1,u2)/dt look like in your case ?

Connectez-vous pour commenter.

 Réponse acceptée

Shokufe
Shokufe le 24 Sep 2018
Modifié(e) : Shokufe le 24 Sep 2018

0 votes

Here are the general formulations of my pdes:
∂/∂x ((ρo K kro/μo) (∂po/∂x) ) + qo = ∂(so)/∂t
.
∂/∂x ((ρw K krw/μw) (∂pw/∂x) ) + qw = ∂(sw)/∂t
.
∂/∂x ((ρg K krg/μg) (∂pg/∂x) ) + qg = ∂(1-so-sw)/∂t
.
And the u is defined as: u=[po;so;sw]
Other parameters are functions of u1 or u2. For example:
pw=f(u1,u2)
pg=f(u1,u2)

2 commentaires

Torsten
Torsten le 24 Sep 2018
Modifié(e) : Torsten le 24 Sep 2018
(1-so-sw)/t =
-((so)/t+(sw)/t)=
-(/x ((ρo K kro/μo) (po/x) ) + qo + /x ((ρw K krw/μw) (pw/x) ) + qw )
Thus the third equation must be included without time-derivative term (c=0) as
/x ((ρo K kro/μo) (po/x) ) + qo + /x ((ρw K krw/μw) (pw/x) ) + qw + /x ((ρg K krg/μg) (pg/x) ) + qg = 0
Shokufe
Shokufe le 27 Sep 2018
Many thanks, Torsten, that is correct! I applied the pdepe form for the pdes but I'm getting warnings and NAN answers which I think it might be due to the boundary conditions. However, if I couldn't solve it I may get back to you again. Thanks so much again!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by