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.

Continuity constraint equation

Please login with a confirmed email address before reporting spam

I want to modify the equation shown in the equation view node for the continuity boundary condition for an identity pair, to make the velocity rather than displacement continuous across the boundary. However, I am having trouble interpreting the constraint equation shown, for example for the u component of the displacement: if(root.comp1.incontact_ap1&&u_fld_act&&if(root.comp1.incontact_ap1,root.comp1.src2dst_ap1(u_fld_act),0),u-root.comp1.src2dst_ap1(u),0).

In the manual, the src2dst operator is described, but I cannot find an explanation of the root.comp1.incontact variable or the u_fld_act variable, so I'm not sure how to interpret this expression. I'd appreciate any guidance on this.


2 Replies Last Post 2020年7月29日 GMT-4 12:11
Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 2020年7月29日 GMT-4 09:16

root.comp1.incontact_ap1 is a Boolean variable indicating if the boundaries are adjacent to each other or not.

u_fld_act is a Boolean variable indicating that the field 'u' is active on the selection.

These are just safeguards to avoid setting up an invalid constraint.

Why would you be interested in constraining the velocities? If the velocities are equal, so are the displacements. Placing constraints on time derivatives requires special methods, so you cannot directly convert the equation above.

-------------------
Henrik Sönnerlind
COMSOL
*root.comp1.incontact_ap1* is a Boolean variable indicating if the boundaries are adjacent to each other or not. *u_fld_act* is a Boolean variable indicating that the field 'u' is active on the selection. These are just safeguards to avoid setting up an invalid constraint. Why would you be interested in constraining the velocities? If the velocities are equal, so are the displacements. Placing constraints on time derivatives requires special methods, so you cannot directly convert the equation above.

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 2020年7月29日 GMT-4 12:11

Thanks for explaining those variables. I was wanting to constrain the velocities to match the boundary conditions used in some other studies, but in thinking about it more, that is unnecessary and I can just constrain the displacements.

Thanks for explaining those variables. I was wanting to constrain the velocities to match the boundary conditions used in some other studies, but in thinking about it more, that is unnecessary and I can just constrain the displacements.

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.