-
Notifications
You must be signed in to change notification settings - Fork 3
loadMesh
The program looks for the files COORDS and TETS inside the DATAIN directory.
name | type | default | explanation |
---|---|---|---|
DATAIN | string | empty | Directory containing COORDS and TETS file. This parameter is shared between the modules loadMesh, loadBoundaryCondition and loadDeformation |
COORDS | string | coords.dat | Name of file containing the coordinates of the nodes of the tetrahedral mesh. |
TETS | string | tets.dat | Name of file containing the tetrahedral elements that are build out of nodes defined in COORDS. |
The COORDS file (asci format) is structured as follows: Every line describes the postion of one node. Every line has 3 entries, which are sperated by white space. The three columns are read in as the x,y and z values of the nodes in meters.
The TETS file (asci format) is strucutred as follows: Every line describes which nodes form a tetrahedron. Every line therefore has 4 integer entries seperated by a blank key. The integers refer to the row of the corresponding node in the coords file. The row counting starts with 1 (not with 0). The list of nodes of every tetrahedron must be right-handed. This means that the nodes 2, 3 and 4 are arranged clockwise, when seen from node 1. NOTICE FOR DEVELOPERS: inside the SAENO program the index of the nodes start with 0 (C++ standard).
The following blocks show the content of the COORDS and TETS file for a mesh in the shape of an cubic box of size 1m^3 filled with 5 tetrahedra.
content of COORDS file:
0 0 0
0 1 0
1 1 0
1 0 0
0 0 1
1 0 1
1 1 1
0 1 1
content of TETS file:
1 2 8 3
1 3 6 4
1 5 6 8
3 6 7 8
1 8 6 3