GiD_Mesh create|delete|edit|get|list|exists
...
GiD_Mesh edit node|element <num> material|label_on|selected <value>
<num> the entity id
<material> to set the material number (value>=0)
...
GiD_Mesh get node <num> ?coordinates|material|label_on|selected|higherentity?
It return the list: <node_layer> <x> <y> <z>
with the extra word
- coordinates only the <x> <y> <z> coordinates are returned
- material: the material integer id is returned
- label_on: 0 or 1 is returned (label flag)
- selected: 0 or 1 is returned (selection flag)
- higherentity: integer >=0 with the counter of parent elements using this node
GiD_Mesh get element <num>|from_face|from_edge|from_node ?face|face_linear|num_faces|edge_linear|num_edges|normal|tangent|center|connectivities|geometry_source|material|label_on|selected
?<face_id>|<edge_id>??
- <num> is the identifier (integer > 0) for the element to be asked
- face optional, instead of the element nodes it returns the nodes of the face, first the linear corner nodes and then the quadratic nodes
- face_linear optional, instead of the element nodes it returns only the linear corner nodes, also is the element is quadratic
- num_faces returns the amount of faces of the element (for surface elements its edges act as faces)
- <face_id> is the local face index from 1 to the number of faces of the element. If <face_id> is missing then a list with all faces is returned
- edge_linear optional, instead of the element nodes it returns only the linear edge nodes, also is the element is quadratic
- num_edges returns the amount of edges of the element
- <edge_id> is the local edge index from 1 to the number of edges of the element. If <edge_id> is missing then a list with all edges is returned
- normal return a 3D vector with the normal direction for surface elements (and for line elements in 2D the normal to the tangent)
- tangent return a 3D vector with the tangent direction for line elements
- center return a 3D vector with the element center
- connectivities return a list of integers with the element's nodes
- geometry_source return a list where the first item is the category: POINT_LT|LINE_LT|SURFACE_LT|VOLUME_LT and then the integer ids of the geometric entity source of the mesh element (usually one entity, but could be more than one meshing with Rjump)
material: the material integer id is returned
label_on: 0 or 1 is returned (label flag)
selected: 0 or 1 is returned (selection flag)
...
<filter_flags> could be: ?-count? ?-higherentity <num_higher>? ?-material <id_material>? ?-layer <layer_name>? ?-plane {a b c d r}? ?-element_type <types_allowed>? ?-orphan? ?-avoid_frozen_layers?
-count to return the amount of entities instead of the objarray with its ids
-higherentity <num_higher> to filter the selection and list only the entities with the amount of parents equal to <num_higher> (integer >=0)
-material <id_material>to filter the selection and list only the entities with material id equal to <id_material> (integer >=0)
-layer <layer_name>to filter the selection and list only the entities with layer equal to <layer_name>
-plane <a b c d r> to list only the entities with center that match the plane equation a*x+b*y+c*z+d<=r (r>=0.0)
-element_type <types_allowed> to list only the elements of a type contained in <types_allowed>, that must be a list of allowed types ("Point | Line | Triangle | Quadrilateral | Tetrahedra | Hexahedra | Prism | Pyramid | Sphere | Circle")
-orphan to list only the orphan elements, that do not belong to the mesh of any geometrical entity,
-avoid_frozen_layers to ignore the entities on layers frozen
...