Difficulties implementing a problemtype using the customLib
Posted: Wed Jun 09, 2021 6:50 pm
I am writing the problemtype for our solver using the new system (customLib). I have managed the implementation of the tree by reading the customisation manual and analysing the cmas2d_customlib.gid example provided by GiD. However, I still have a lot of basic questions that I could not find answers in the manual. For example, I want to write the elements’ connectivities to the solver input file. Reading the manual I could write the following code:
However, when I have different elements (beam, shells, etc) in the same model it writes the element’s connectivities not ordered as below:
The solver requires element’s connectivities numbered sequentially from 1 to 101. How can I do that? Also, does anyone have any suggestion to learn more about implementation of problemtypes using the customLib as the customisation manual does not cover much?
Code: Select all
set condition_name [list "parts_1d" "parts_2d" "parts_3d"]
set element_formats [list {"%10d" "element" "id"} {"%10d" "element" "connectivities"}]
customlib::WriteConnectivities $condition_name $element_formats
Code: Select all
87 1 2
88 2 3
89 3 4
90 4 5
91 5 6
92 6 7
93 7 8
94 8 12
95 12 19
96 19 25
97 25 32
98 32 39
99 39 46
100 46 53
101 53 60
1 69 65 70
2 15 9 10
3 62 68 64
4 64 68 72
5 62 64 57
...