...
Examples:
in: GiD_Info Mesh
out: "1 Tetrahedra Triangle"
in: GiD_Info Mesh MaxNumNodes
out: "1623"
Code Block |
---|
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
...