Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Different boundary conditions for dependent variables in PDE mode (coefficient form)

Please login with a confirmed email address before reporting spam

Hi all,

I'm trying to solve a system of 4 PDEs on a rectangular box. My problem concerns the implementation of the boundary conditions. If I name my dependent variables, say u, v, w and p, then I want to implement dirichlet boundary conditions for the variables u, v and w. I found the Dirichlet boundary node and specified my conditions.
Nevertheless, for the variable p I need to implement something like: dp/dx = - (d^2 u)/(d x^2).

The zero flux condition doesn't seem right, especially because it applies to all variables (as far as I understand it).

So:
- Is there a way to specify the boundary conditions for each independent variable separately?
- What node has to be used to specify a condition as stated above?


It would be super awesome if someone could point me in the right direction.

Lothar

1 Reply Last Post 15 oct. 2012, 08:22 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 15 oct. 2012, 08:22 UTC−4
Hello, Lothar,

You don't need to include all the dependent variables in the same PDE. In the case you mention, perhaps you can include u, v, and w in one PDE (with particular boundary conditions) and the variable p in another PDE (with different boundary cond.). You can do this simply by adding new PDEs to your model. In order to couple the different PDE's, you can simply use some variables in the equations for other variables.

Bye,

Jesus.
Hello, Lothar, You don't need to include all the dependent variables in the same PDE. In the case you mention, perhaps you can include u, v, and w in one PDE (with particular boundary conditions) and the variable p in another PDE (with different boundary cond.). You can do this simply by adding new PDEs to your model. In order to couple the different PDE's, you can simply use some variables in the equations for other variables. Bye, Jesus.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.