3.5.4. ADD-MESH function
optional
Description
Once you have created the model, the next step is to define the mesh that carries the geometrical information of your physical system. SesamX allows you to define the mesh piece by piece with successive calls to the ADD-MESH
function. You need to provide the nodes positions as well as the elements connectivities.
Nodes and elements are identified with their identification number (ID). There are 2 rules to keep in mind while defining mesh data:
- a node or element ID already defined cannot be defined again.
- while adding a new mesh, you can connect the new elements with the nodes defined in previous
ADD-MESH
calls.
Keywords
Name | Data Type | Data number | Optional | Default value | Physical quantity |
---|---|---|---|---|---|
MODEL | STRING | 1 | NO | ||
Name of the model on which to add a mesh. |
NODES branch
optional
Inside this branch, SesamX expects a list of ID
and POINT
keywords, as showcased in the example.
Keywords
Name | Data Type | Data number | Optional | Default value | Physical quantity |
---|---|---|---|---|---|
ID | INTEGER | 1 | NO | ||
Identification number of the node. | |||||
POINT | FLOAT | 3 | NO | LENGTH | |
Position of the node. |
ELEMENTS branch
optional
Inside this branch, the SHAPE
keyword must be present only once, while a list of ID
and NODES
keywords is expected, as showcased in the example.
Keywords
Name | Data Type | Data number | Optional | Default value | Physical quantity |
---|---|---|---|---|---|
SHAPE | ENUM | 1 | NO | ||
Shape of the elements. The possible choices are: LN2 for 2-node line element. TR3 for 3-node triangle element. QD4 for 4-node quadrangle element. TE4 for 4-node tetrahedron element. TE10 for 10-node tetrahedron element. WE6 for 6-node wedge element. HE8 for 8 node hexahedron element. |
|||||
ID | INTEGER | 1 | NO | ||
Identification number of the element. | |||||
NODES | INTEGER | Depending on the shape | NO | ||
Nodes id connected through the element. |
Examples
In this example, a sub-mesh is created mixing the various methods available.
ADD-MESH MODEL: MY_MODEL NODES - ID: 1 POINT: 0.,0.,0. - ID: 2 POINT: 1.,0.,0. - ID: 3 POINT: 0.,1.,0. - ID: 4 POINT: 0.,0.,1. ELEMENTS SHAPE: QD4 - ID: 1 NODES: 1,2,3,4 ELEMENTS SHAPE: LN2 - ID: 2 NODES: 1,2 - ID: 3 NODES: 4,3
See also
-
References
-