Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defining boundary conditions in COMSOL Script

Status
Not open for further replies.

razlin

Bioengineer
Nov 20, 2006
2
I'm using Comsol script to solve coefficient form PDE. I assign boundary conditions using e.g. fem.bnd.h={1 0 0 0} and fem.bnd.r={1 0 0 0}. However, depending on relative positions of various structures, the Comsol arbitrarily changes the numbering order of the boundaries in my geometry, which makes it impossible to automatically program geometry changes using the script. For instance, the 6 boundaries of the same cylinder could be numbered as 12,13,14,15,22,23 when it's located in one position but then they are changed to 8,9,10,11,12,13 when the cylinder moves to another position. Is there a way to make the boundary numbering static or at least know in what order it is assigned each time ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor