...
Code Block |
---|
set condition_name "frameData" # If we want this output format "element_id connectivity_x connectivity_y connectivity_z" set condition_formats [list {"%5d" "element" "id"} {"%5d" "element" "connectivities"}] # If we want this output format with element id and properties set condition_formats [list {"%1d" "element" "id"} {"%13.5e" "property" "Ax"} {"%13.5e" "property" "Asy"} ... {"%13.5e" "material" "Density"}] # To get the number of elements set formats [customlib::GetElementsFormats $condition_name $condition_formats] set number_of_elements [GiD_WriteCalculationFile elements -count -elemtype Linear $formats] # To write the connectivities customlib::WriteConnectivities $condition_name $formats$condition_formats "" active |
Constraints
This is the way we get the number of nodes assigned to a condition called 'constraints' in the spd.
...