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

조회 수: 5 (최근 30일)
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);

답변 (1개)

Torsten
Torsten 2023년 8월 23일
편집: Torsten 2023년 8월 23일
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
Hau Trien
Hau Trien 2024년 2월 2일
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 2024년 2월 2일
편집: Torsten 2024년 2월 2일
The forum has little experience with the application of the PDE Toolbox to Fluid Flow Problems.
Better ask Technical Support for such specific questions:

댓글을 달려면 로그인하십시오.

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by