Versions Compared

Key

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

GiD_Info Mesh
This command gives the user information about the selected mesh in the project.
Without arguments it returns 1 if there is mesh, followed by a list with all types of element used in the mesh.
?-pre | -post -step <step>?: To specify to use the preproces or postprocess mesh, and the time step if it changes along the time. (default -pre)

    • NumElements <Elemtype> ?<nnode>?: returns the number of elements of the mesh.

...


Modifiers:
-sublist : Instead of a plane list it returns each result item as a Tcl list (enclosed in braces)
-array : Instead of a plane list it returns the resuls as a list of objarrays (more efficient).
For 'Nodes' it returns a list with 1 objarray for the NodeIDs and a list with 3 objarrays: the X coordinates, the Y coordinates and the Z coordinates.
For 'Elements' it returns a list with the element type, an objarray with the element id's, a list with an objarray for each node of the connectivity (i.e. for a triangle an objarray for all node1, another for the node2 and another for the node3), and an objarray for the material id of the elements.
-array2 : Instead of a plane list it returns the resuls as a list of objarrays (more efficient).
For 'Nodes' it returns a list with 2 objarrays: one for the NodeIDs and another for the xyz coordinates.
For 'Elements' it returns a list with the element type, an objarray with the element id's, an objarray for all the connectivities (i.e. for a triangle an objarray with node1-node2-node3-node1-node2-node3), and an objarray for the material id of the elements.
An 'objarray' is a Tcl_Obj object specialized for arrays, implemented as a Tcl package named 'objarray'. (for more information see scripts/objarray/objarray.pdf|md|html)
-avoid_frozen_layers : to ignore nodes or elements of frozen layers
-layer <layername> : to get only nodes of element of this layer
-group <groupname> : to get only nodes of element of this group

    • EmbeddedDistances: Returns a list with 2 items, the objarray of ids of the nodes (integers) and the objarray of distances to the boundary (doubles). This information is only available meshing with embedded mesh type

...