Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GiD_Mesh create|delete|edit|get|list

...

  • <num>|append: <num> is the identifier (integer > 0) for the node. You can use the word 'append' to set a new number automatically. The number of the created entity is returned as the result.
  • <x y z> are the node coordinates. If the z coordinate is missing, it is set to z=0.0.

...

  • <num>|append: <num> is the identifier (integer > 0) for the node. You can use the word 'append' to set a new number automatically. The number of the created entity is returned as the result.
  • <elemtype>: must be one of "Point | Line | Triangle | Quadrilateral | Tetrahedra | Hexahedra | Prism | Pyramid | Sphere | Circle"
  • <nnode> is the number of nodes an element has
  • <N1 ... Nnnode> is a Tcl list with the element connectivities
  • <radius> is the element radius, only for sphere and circle elements
  • <nx> <ny> <nz> is the normal of the plane that contain the circle, must be specified for circle elements only
  • <matname> is the optional element material name

...

GiD_Mesh edit element <num> <elemtype> <nnode> <N1 ... Nnnode> <radius> <nx> <ny> <nz> ?<matname>?
Same syntax as create

or

GiD_Mesh edit node|element  <num> material|label_on|selected <value>

<num> the entity id

<material> to set the material number (value>=0)

<label_on> to set the label flat (value 0 or 1)

<selected> to set the selection flag (value 0 or 1)

...

  • 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)

...

  • <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)

...

  • <face_nodes> is the list of integer ids of the face nodes {<face_node_1> ... <face_node_n>} (only corner lineal nodes must be specified in the list)
  • if -ordered is specified then only faces with the same orientation of the nodes will be taken into account (else the order of the face nodes doesn't matter)

...

  • <edge_nodes> is the list of integer ids of the edge nodes {<edge_node_1> <edge_node_2>} (only corner lineal nodes must be specified in the list)

...

  • GiD_Mesh list ?<filter_flags>? node|element|face ?<num>|<num_min:num_max>?

<filter_flags> could be: ?-higherentity <num_higher>? ?-material <id_material>? ?-layer <layer_name>? ?-plane {a b c d r}? ?-element_type <types_allowed>?
-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 wigth 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")

...

The preprocess and postprocess meshes are different objects, and there are different commands for them.