GiD - The personal pre and post processor
Mesh data
GiD_MeshData size|size_by_chordal_error|size_background_mesh|size_correct|unstructured|mesher|structured|semi_structured|boundary_layer|element_type|mesh_criteria|reset
To assign mesh data to geometrical entities
GiD_MeshData size points|lines|surfaces|volumes <size> <ids>
To assign desired mesh size to geometrical entities
<size>: double, the desired mesh size.
<ids>: objarray of integers with the ids of the geometrical entities to be meshed with this size
GiD_MeshData size_by_chordal_error <min_size> <max_size> <chordal_error>
To assign sizes to the whole model, based on a chordal error (distance from the approximated mesh to shape of the geometry). The values calculated cannot be outside the range [min_size, max_size]
GiD_MeshData size_background_mesh <filename>
To assign the mesh sizes using an auxiliary file with 'background mesh format' (a mesh covering the domain with desired sizes on nodes or elements)
GiD_MeshData size_correct <max_size>
To modify the current assigned sizes to be 'more feasible' (some assigned sizes can be decreased to avoid strong spatial change of sizes)
GiD_MeshData unstructured lines|surfaces|volumes <ids>
To set entities to be meshed unstructuredly (with assigned or general size)
GiD_MeshData mesher surfaces|volumes default|rfast|rsurf|advancingfront|tetgen|octree <ids>
To set entities with the kind of meshing algorithm to be used to mesh them unstructured
GiD_MeshData structured lines|surfaces|volumes ?<ids_surfaces_or_volumes>? num_divisions|num_divisions_by_size|weights <num_divisions>|<size>|{<w1> <w2>} <ids_lines>
To set entities to be meshed structuredly, setting the number of divisions in some of its lines.
<ids_surfaces_or_volumes>: objarray of integers (only in case of surfaces or volumes)
num_divisions <num_divisions>: integer amount of mesh divisions to be assigned to the lines
num_divisions_by_size <size>: an alternative double value, it is an approximated size that will be converted to an integer number of divisions base on each line length.
weights {<weight_start> <weight_end>}: to set a not uniform size, assigning weights (double value from -1.0 to 1.0) to start and end of the lines.
<ids_lines>: objarray of integers with the ids of the lines to be assigned the number of divisions.
- GiD_MeshData structured lines num_divisions <num_divisions> <ids_lines>
- GiD_MeshData structured lines num_divisions_by_size <size> <ids_lines>
- GiD_MeshData structured lines weights {<weight_start> <weight_end>} <ids_lines>
- GiD_MeshData structured surfaces|volumes <ids_surfaces_or_volumes> num_divisions|num_divisions_by_size <num_divisions>|<size> <ids_lines>
GiD_MeshData semi_structured <num_divisions>|master_surfaces|structured_directions <ids>
- GiD_MeshData semi_structured <num_divisions> <ids_volumes>
To set volumes to be meshed semi-structuredly, setting the amount of divisions in the structured direction.
- GiD_MeshData semi_structured master_surfaces <ids_surfaces>
To expliciltly set the surfaces that will be meshed first and then extruded to the opposite tap. Before use this command the volumes must be set as semi-structured
- GiD_MeshData semi_structured structured_directions <ids_lines>
To expliciltly set direction that define the extrusion direction. Before use this command the volumes must be set as semi-structured.
GiD_MeshData element_type surfaces|volumes <element_type>|default <ids>
To set the type of element to be generated (default to restore its initial value)
GiD_MeshData mesh_criteria default_all|to_be_meshed|to_be_duplicated|force_points|skip <value|force_points_data> points|lines|surfaces|volumes <ids>
To set some mesh criteria to entities: (0=default, 1=no, 2=yes)
- default_all points|lines|surfaces|volumes <ids>
- to_be_meshed 0|1|2 points|lines|surfaces|volumes <ids>
- to_be_duplicated 0|1|2 lines|surfaces <ids>
- force_points surfaces|volumes <ids_to_force> points <ids>
- force_points remove points <ids>
- skip 0|1|2 point|lines <ids>
GiD_MeshData reset
To reset all meshing information data assigned to the model
GiD_MeshData boundary_layer assign|unassign lines|surfaces|all <parent_ids> {<num_layers> <size_first_layer>} <ids>
To assign or unassign boundary layer mesh data
- GiD_MeshData boundary_layer assign lines|surfaces <parent_ids> {<num_layers> <size_first_layer>} <ids>
To assign the boundary layer mesh data of a selection of lines (2D) or surfaces (3D).
<parent_ids>: objarray of integer ids of the parent entities (surfaces 2D, volumes 3D)
<num_layers>: integer, the desired amount of boundary layers
<size_first_layer>: double, the depth size of the first layer
<ids>: objarray of integer ids of the entities (lines 2D, surfaces 3D)
- GiD_MeshData boundary_layer unassign lines|surfaces <ids>
To unassign the boundary layer mesh data of a selection of lines (2D) or surfaces (3D)
- GiD_MeshData boundary_layer unassign all
To unassign the boundary layer mesh data of the whole model
GidUtils::GetMeshData
This Tcl procedure allow ask the MeshData information of a geometric entity ,with this syntax
GidUtils::GetMeshData <entity_type> <entity_id> ?<key>?
<entity_type>: point line surface volume
<entity_type>: the integer >0 of that identify the entity
<key>: Elemtype IsStructured Meshing size num_divisions weight tops SkipMesh BLMnlevels1 BLMnlevels2 BLMfirsth1 BLMfirsth2 Mesher
if key is omitted or "" it return all MeshData items, otherwise only the required item
out codes
Elemtype: 0 None 1 Linear 2 Triangle 3 Quadrilateral 4 Tetrahedra 5 Hexahedra 6 Prism 7 Only points 8 Pyramid 9 Sphere 10 Circle
Meshing: No Default Yes No,Duplicate Duplicate
SkipMesh: -1 No 0 Automatic 1 Yes
Mesher: 1 RFast 2 Rsurf 3 DelaunaySurf3 4 AdvancingFront4 5 MinElem 6 "Advancing front" 7 DelaunayVol7 8 Isosurface 9 Tetgen 10 Octree 11 PVolume11
weight: (w1,w2)
tops: semi-structured volumes codification (num_surface_1,num_surface_2),top surface global ids (if negative mean that is also set as master)
e.g. for the surface number 1 that has been set forced to be meshed
GidUtils::GetMeshData surface 1
→ IsStructured 0 Elemtype 0 size 0 Meshing Yes
GidUtils::GetMeshData surface 1 Meshing
Yes
COPYRIGHT © 2022 · GID · CIMNE