FEM: 3D beam/shell output preferences
FEM 3D Beam shell output ui update FEM: 3d Beam/Shell output ui variables added
This commit is contained in:
committed by
Bernd Hahnebach
parent
62bbda819b
commit
8341e0ea4a
@@ -1019,7 +1019,10 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
|
||||
f.write('** Outputs --> frd file\n')
|
||||
f.write('** written by {} function\n'.format(sys._getframe().f_code.co_name))
|
||||
if self.beamsection_objects or self.shellthickness_objects or self.fluidsection_objects:
|
||||
f.write('*NODE FILE, OUTPUT=2d\n')
|
||||
if self.solver_obj.BeamShellResultOutput3D == False:
|
||||
f.write('*NODE FILE, OUTPUT=2d\n')
|
||||
else:
|
||||
f.write('*NODE FILE, OUTPUT=3d\n')
|
||||
else:
|
||||
f.write('*NODE FILE\n')
|
||||
if self.analysis_type == "thermomech": # MPH write out nodal temperatures if thermomechanical
|
||||
|
||||
@@ -457,6 +457,29 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="Gui::PrefCheckBox" name="cb_BeamShellOutput">
|
||||
<property name="text">
|
||||
<string>3D Output, unchecked for 2D</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>BeamShellOutput</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>Mod/Fem/Ccx</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="l_BeamShellOutput">
|
||||
<property name="text">
|
||||
<string>Beam, shell element 3D output format </string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
@@ -61,6 +61,7 @@ void DlgSettingsFemCcxImp::saveSettings()
|
||||
dsb_ccx_analysis_time->onSave(); //Analysis time
|
||||
|
||||
cb_analysis_type->onSave();
|
||||
cb_BeamShellOutput->onSave(); //Beam shell output 3d or 2d
|
||||
sb_eigenmode_number->onSave();
|
||||
dsb_eigenmode_high_limit->onSave();
|
||||
dsb_eigenmode_low_limit->onSave();
|
||||
@@ -85,6 +86,7 @@ void DlgSettingsFemCcxImp::loadSettings()
|
||||
dsb_ccx_analysis_time->onRestore(); //Analysis time
|
||||
|
||||
cb_analysis_type->onRestore();
|
||||
cb_BeamShellOutput->onRestore(); //Beam shell output 3d or 2d
|
||||
sb_eigenmode_number->onRestore();
|
||||
dsb_eigenmode_high_limit->onRestore();
|
||||
dsb_eigenmode_low_limit->onRestore();
|
||||
|
||||
@@ -143,6 +143,10 @@ class _FemSolverCalculix():
|
||||
obj.MatrixSolverType = known_ccx_solver_types
|
||||
solver_type = ccx_prefs.GetInt("Solver", 0)
|
||||
obj.MatrixSolverType = known_ccx_solver_types[solver_type]
|
||||
|
||||
obj.addProperty("App::PropertyBool", "BeamShellResultOutput3D", "Fem", "Output 3D results for 1D and 2D anlysis ")
|
||||
dimout = ccx_prefs.GetBool("BeamShellOutput", False)
|
||||
obj.BeamShellResultOutput3D = dimout
|
||||
|
||||
def execute(self, obj):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user