Solving PDE involving boundary condition with partial derivatives with respect to space and time.
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lei Huang
el 16 de Dic. de 2015
Comentada: Lei Huang
el 1 de Abr. de 2019
Dear all,
I am trying to solve the following PDE (one-dimension diffusion):

with the following boundary condition :

I read the documentation here : http://www.mathworks.com/help/matlab/math/partial-differential-equations.html?refresh=true#f1-697925 and I saw that it works for boundary conditions that can be expressed as :

I don't know how to express my boundary condition under this form, since it contains two partial derivatives. How to address this problem properly?
Thank you.
PS: I have quite a few libraries available, but not the PDE toolbox.
3 comentarios
Cedric
el 17 de Dic. de 2015
So your question is not how to fully solve your differential equation, but rather how to treat this kind of problems numerically with MATLAB?
Respuesta aceptada
Torsten
el 18 de Dic. de 2015
Editada: Torsten
el 18 de Dic. de 2015
In principle, your boundary condition for C is
C|x=L = y*K_v
together with an ordinary differential equation for y that has to be solved simultaneously with your PDE
V*dy/dt = -D*A*dC/dx|x=L - Vdot*(y-y_in).
The solution of this ordinary differential equation is not possible within pdepe.
But it should be no problem to discretize the PDE in space and solve the resulting system of ordinary differential equations together with the ordinary differential equation for y using ODE15S, e.g. (method-of-lines).
Maybe you have access to COMSOL Multiphysics. With this program, you can easily couple the PDE with the above boundary ODE.
Best wishes
Torsten.
6 comentarios
CHORFi Salah
el 27 de En. de 2019
Hi Lei,
I'm facing a similar but more complicated problem, can you provide your code to couple the two equations.
Thanks in advance.
Más respuestas (0)
Ver también
Categorías
Más información sobre Boundary Conditions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




