...
Examples:
in: GiD_Info Mesh
out: "1 Tetrahedra Triangle"
in: GiD_Info Mesh MaxNumNodes
out: "1623"
set data [GiD_Info Mesh EmbeddedDistances]
lassign $data nodes distances
set length [objarray length $nodes_list]
for {set i 0} {$i < $length} {incr i } {
set node_id [objarray get $nodes $i]
set distance [objarray get $distances $i]
W "$node_id $distance"
}
Example 2:
Mesh with
node_id x_coord y_coord z_coord
1 0.0 1.0 0.0
2 1.0 1.0 0.0
3 0.0 0.0 0.0
4 1.0 0.0 0.0
element_id node1 node2 node3 material
1 3 4 1 0
2 1 4 2 0
Code Block |
---|
GiD_Info Mesh nodes |
...
-> 1 0.0 1.0 0.0 2 1.0 1.0 0.0 3 0.0 0.0 0.0 4 1.0 0.0 0.0 |
...
GiD_Info Mesh nodes -sublist |
...
-> {1 0.0 1.0 0.0} {2 1.0 1.0 0.0} {3 0.0 0.0 0.0} {4 1.0 0.0 0.0} |
...
GiD_Info Mesh nodes -array |
...
-> {1 2 3 4} {{0.0 1.0 0.0 1.0} {1.0 1.0 0.0 0.0} {0.0 0.0 0.0 0.0 |
...
}} GiD_Info Mesh nodes -array2 |
...
-> {1 2 3 4} {0.0 1.0 0.0 1.0 1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0} |
...
GiD_Info Mesh elements triangle |
...
-> 1 3 4 1 0 2 1 4 2 0 |
...
GiD_Info Mesh elements triangle -sublist |
...
-> {1 3 4 1 0} {2 1 4 2 0} |
...
GiD_Info Mesh elements triangle -array |
...
-> {Triangle {1 2} {{3 1} {4 4} {1 2}} {0 0}} |
...
GiD_Info Mesh elements triangle -array2 |
...
-> {Triangle {1 2} {3 4 1 1 4 2} {0 0}} |