...
Code Block |
---|
set list_of_condition_names [list "Point_Weight"] set parameters [list {"%1d" "element" "id"} {"%13.5e" "property" "Weight"}] customlib::WriteNodes $list_of_condition_names $parameters |
Output
1 7.80000e+000
83 9.60000e+000
108 7.80000e+000
- customlib::GetNumberOfNodes
...
- list_of_condition_names
...
- ?flags?
...
Utility to get the number of nodes of the groups of the conditions specified at list_of_condition_names.
...
Writes the coordinates of the nodes of the model.
2D example:
Code Block |
---|
customlib::WriteCoordinates "%5d %14.5e %14.5e%.0s\n" |
Output:
1 6.89301E-002 8.61382E-003
2 7.49755E-002 1.26044E-002
3 7.44487E-002 3.68638E-003
3D example:
Code Block |
---|
customlib::WriteCoordinates "%5d %14.5e %14.5e %14.5e\n" |
Output:
1 6.89301E-002 8.61382E-003 8.61382E-003
2 7.49755E-002 1.26044E-002 1.26044E-002
3 7.44487E-002 3.68638E-003 3.68638E-003
- customlib::GetMaterials ?state?
This procedure returns a nested dict, where the first key is the name of a material, the second key is the name of the property.
state can be 'used', to return only the used materials, or 'all' to return all the materials.
Example:
Code Block |
---|
set mat_dict [customlib::GetMaterials used] |
...
set aluminium [dict get $mat_dict "Aluminium"] |
...
set density [dict get $aluminium "Density"] |
- customlib::GetMaterials ?state?
This procedure returns a nested dict, where the first key is the name of a material, the second key is the name of the property.
state can be 'used', to return only the used materials, or 'all' to return all the materials.
Example:
Code Block |
---|
set mat_dict [customlib::GetMaterials used] |
...
set aluminium [dict get $mat_dict "Aluminium"] |
...
set density [dict get $aluminium "Density"] |
- customlib::GetNumberOfMaterials ?state?
...
state can be 'all' or 'used'.
Utility to print the list of materials, and their properties defined in parameters.
Example:
Code Block |
---|
set parameters [list {"%4d" "material" "MID"} {"%13.5e" "material" "Density"}] |
...
customlib::WriteMaterials $parameters used |
Output:
1 7.85000e+003
2 2.65000e+003