Borrar filtros
Borrar filtros

How to solve PDE with two regions

4 visualizaciones (últimos 30 días)
Jagadeesh Korukonda
Jagadeesh Korukonda el 10 de En. de 2023
Comentada: Torsten el 11 de En. de 2023
Suppose I've a PDE which is valid in two regions.
Can we solve this eqns with pdepe solver?

Respuestas (1)

Torsten
Torsten el 10 de En. de 2023
Yes.
Choose "a" as a grid point for pdepe. Then you can solve your system as one partial differential equation for C_B by adding the source term depending on whether z < a or z >= a.
  4 comentarios
Jagadeesh Korukonda
Jagadeesh Korukonda el 11 de En. de 2023
yes, what I'm asking now is more general case. Can we solve above system with these BC's?
Torsten
Torsten el 11 de En. de 2023
Can we solve above system with these BC's?
Not with pdepe.
You will have to discretize your equation and your transmission conditions in space, leave the time derivative in its continuous form and solve the system of ordinary differential equations using ODE15S.
Look up "method of lines" for more details.

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by