Documents

Home QuickStart Guide User's Guide Commands reference

There are awnsering for some common questions:


Q3. How to get a mesh file from Gambit ?

This part will not going to help you to create a mesh from Gambit. You can read this tutorial for that puporse. Here, we will only forcus on the declaration boundary in Gambit program.
 

In order to let femLego read the correct boundary. The boundary type in Gambit have to set to ELEMENT_SIDE. The name of the boundaries need to be an integer and start from 1 to n.

Corresponding to each boundary named in Gambit. The boundary condition will be set in another file (boundary.ini). For example, each boundary will be presented in file boundary.ini by following: first line is a comment line, to let you know where is this. The second line is the name of this boundary. This name have to be an integer and corresponds with the name was specified in Gambit. Next m lines is the boundary condition declaration of m equations for this boundary.

! id; ivar qBCval bctype : inflow face
1
1 D 1.
2 D 0.
....
m N 0.

Note !!! The name list of the boundaries need to be in ordering: from 1 to n

 






Mechanics Department, KTH
Stockholm 2005
minh@mech.kth.se

Update: 2004-12-27