solving 1D parabolic-elliptic equations with one initial condition

13 views (last 30 days)
Hello, I am asking for help for solving a system of partial differential equations on 1D. I have two equaitons, one is parabolic and another one is elliptic. But I have only one intial value for parabolic equation. I am trying to use pdepe solver. However, pdepe solver requires that the number of initial conditions must equal the number of equations. Is there any Matlab solver can slove such problem?

Answers (1)

Torsten
Torsten on 1 Nov 2022
Edited: Torsten on 1 Nov 2022
Supply an arbitrary initial condition for the elliptic pde - if possible one that satisfies its boundary conditions.
If pdepe accepts it, it won't influence the overall solution in the sequel.
  16 Comments
Torsten
Torsten on 5 Nov 2022
Edited: Torsten on 5 Nov 2022
Is it because the "correct" initial function is not correct?
No. The initial condition for v is correct.
pdepe just gets different results for the two equivalent formulations of the problem. But why ?
I think the reason is the boundary condition.
It's not that simple in the first formulation for the solver to detect that setting
f = [dudx(1)-chi*u(1)/u(2)*dudx(2); dudx(2)]
ql(1) = qr(1) = ql(2) = qr(2) = 1
really leads to
du/dx = dv/dx = 0
on both ends.
You defined
f = [dudx(1)-chi*u(1)/u(2)*dudx(2); dudx(2)]
Together with
ql(1) = qr(1) = ql(2) = qr(2) = 1
this gives
du/dx - chi*u/v*dv/dx = 0 and dv/dx = 0
at both ends since the boundary condition is
p+q*f = 0.
This is a linear system in du/dx and dv/dx which is solved by du/dx = dv/dx = 0.
But I don't know how the pdepe solver internally works. Judging from the different result, I guess that the two boundary condition settings are interpreted differently.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!