I am trying to run Maria’s example in the following topic.
https://discourse.gidsimulation.com/t/difficulties-implementing-a-problemtype-using-the-customlib/2605/2
But I don’t have got information on beam condition in the calculation file.
Here is what I have tried.
- load problem type
- apply beam condition to a line of the model
- apply material condition to the model
- generate mesh
- create boundary mesh
- save project
- run the calculation
All connectivities for linear elements was written in the output file by the following command.
GiD_WriteCalculationFile all_connectivities -elemtype Linear "id: %d connnectivities: %d %d\n"
But connectivities for the beam elements was not written.
set condition_name [list "beam"]
set condition_formats [list {"%3d" "element" "id"} {"%13.5e" "property" "beamV"}]
set formats [customlib::GetElementsFormats $condition_name $condition_formats]
GiD_WriteCalculationFile elements -elemtype Linear $formats
I attached the problem type files and the output.
(I don’t care the calculation result. I just want to know how to write information on linear elements)
Any comments are welcome.
cmas2d_customlib2c_test.gid.zip (399 KB)