How to handle interface boundary condition in convection-diffusion reaction equation for pressure, velocity and concentration equation?

11 visualizaciones (últimos 30 días)
Complete mathematical model equations and boundary condition is given in the attached pdf. the domain for the problem taken as 2D disk with three region separated by different radius (given the attached pdf). I am trying to solve the problem using finite element method using MATLAB Partial Differential Equation Toolbox ( MATLAB pdetoolbox). There in the boundary condition section it is given that for the inside regions it follows interface boundary condition where it gives continuity for the variables (see the attached pdf boundary condition). but in the pdetoolbox manual it is written, we can not implement boundary condition for subdomains boundaries. but there must be some way to handle these interface boundary condition, may be by making these equation as coupled equation with the original equation, or some otherway in the specify boundary condition. I want to solve the problem using finite element method, and very new to pdetoolbox. i am seeking help from the community, please help me out.
although i tried to solve the problem using dirichlet and neumann boundary condition but answer and graph not coming as expected. I am providing some portion of my code, please help me out.
G = [0;0;0];
Q=[0;0;0;0;0;0;0;0;0];
u0=[0;0;10];
applyBoundaryCondition(model,"dirichlet","Edge",9:12,"u",[0;0;0]);
applyBoundaryCondition(model,"neumann","Edge",1:4,"g",G,"q",Q);
applyBoundaryCondition(model,"neumann","Edge",5:8,"g",G,"q",Q);
setInitialConditions(model,u0);
specifyCoefficients(model,"m",0,"d",dn,"c",cn,"a",an,"f",fn,"Face",3);
specifyCoefficients(model,"m",0,"d",dt,"c",cv,"a",av,"f",fv,"Face",2);
specifyCoefficients(model,"m",0,"d",dh,"c",ch,"a",ah,"f",fh,"Face",1);

Respuestas (1)

Torsten
Torsten el 23 de Ag. de 2023
Editada: Torsten el 23 de Ag. de 2023
If the interface conditions are continuity of the variable and the flux, the finite element method will automatically respect them - you don't need to set any conditions at the internal boundaries. If you want other interface conditions (that might perhaps cause discontinuous solutions or something exotic), you cannot use the PDE toolbox.
  8 comentarios
Hau Trien
Hau Trien el 2 de Feb. de 2024
Hi Torsten,
In case I use different type of elements on different zones, will continuity interface conditions apply automatically? For example, I use P2-P1 on zone 1 and RT0-P0 on zone 2 for velocity and pressure, respectively.
Torsten
Torsten el 2 de Feb. de 2024
Editada: Torsten el 2 de Feb. de 2024
The forum has little experience with the application of the PDE Toolbox to Fluid Flow Problems.
Better ask Technical Support for such specific questions:

Iniciar sesión para comentar.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by