From dialog to tree
Posted: Tue Oct 26, 2021 6:32 pm
Hi guys,
I need to implement a way to store load combinations in the data tree using the new problem type. Combination cases in our solver comprise basically load cases and load factors. The input file is something like this:
<COMBINATION_PARAMETERS>
COMBINATION_NUMBER = 3 ;
COMBINATION_TITLE = comb_3 ;
COMBINATION_GROUP = FEMIXDefaultGroup ;
PHASE_NUMBER = 1 ;
</COMBINATION_PARAMETERS>
<LOAD_CASE_FACTORS>
COUNT = 3 ;
1 1 1.00000000 ;
2 2 1.00000000 ;
3 3 1.00000000 ;
</LOAD_CASE_FACTORS>
In our classic problem type, we have a dialog (see figure 1) to collect this information in the preprocessing phase in GiD:
Note that using this dialog, the user can create a combination by defining a title, group name, load case, a load factor and clicking on “Addâ€Â. The user can also remove or edit a combination case.
In our new problem type, we have a node in the data tree called “Load Cases“ (see figure 2), where the user defines a new load case and a node called “Combinations“ (to store the combinations created by the user). My idea is to create a similar window (as the one implemented in the classic problem type) to create combination cases. Thus, once the user closes the dialog, the combinations created in this dialog are stored in the tree as children of the combinations node, figure 2.
Could you please guide me on this task? I do not know how to create this dialog and send the information to the data tree. Could you provide me with an example showing how to do this? Is this the best approach to implement this feature using the new problem type, or do you have another suggestion?
I need to implement a way to store load combinations in the data tree using the new problem type. Combination cases in our solver comprise basically load cases and load factors. The input file is something like this:
<COMBINATION_PARAMETERS>
COMBINATION_NUMBER = 3 ;
COMBINATION_TITLE = comb_3 ;
COMBINATION_GROUP = FEMIXDefaultGroup ;
PHASE_NUMBER = 1 ;
</COMBINATION_PARAMETERS>
<LOAD_CASE_FACTORS>
COUNT = 3 ;
1 1 1.00000000 ;
2 2 1.00000000 ;
3 3 1.00000000 ;
</LOAD_CASE_FACTORS>
In our classic problem type, we have a dialog (see figure 1) to collect this information in the preprocessing phase in GiD:
Note that using this dialog, the user can create a combination by defining a title, group name, load case, a load factor and clicking on “Addâ€Â. The user can also remove or edit a combination case.
In our new problem type, we have a node in the data tree called “Load Cases“ (see figure 2), where the user defines a new load case and a node called “Combinations“ (to store the combinations created by the user). My idea is to create a similar window (as the one implemented in the classic problem type) to create combination cases. Thus, once the user closes the dialog, the combinations created in this dialog are stored in the tree as children of the combinations node, figure 2.
Could you please guide me on this task? I do not know how to create this dialog and send the information to the data tree. Could you provide me with an example showing how to do this? Is this the best approach to implement this feature using the new problem type, or do you have another suggestion?