Skip to content

Commit

Permalink
FEM: ccx tools solver task panel, add missing check analysis type
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and wwmayer committed Mar 4, 2019
1 parent 0b5cc82 commit e8044ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Mod/Fem/Gui/Resources/ui/SolverCalculix.ui
Expand Up @@ -85,6 +85,13 @@
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="Gui::PrefRadioButton" name="rb_check_mesh">
<property name="text">
<string>Check Mesh</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down
6 changes: 6 additions & 0 deletions src/Mod/Fem/femguiobjects/_ViewProviderFemSolverCalculix.py
Expand Up @@ -127,6 +127,7 @@ def __init__(self, solver_object):
QtCore.QObject.connect(self.form.rb_static_analysis, QtCore.SIGNAL("clicked()"), self.select_static_analysis)
QtCore.QObject.connect(self.form.rb_frequency_analysis, QtCore.SIGNAL("clicked()"), self.select_frequency_analysis)
QtCore.QObject.connect(self.form.rb_thermomech_analysis, QtCore.SIGNAL("clicked()"), self.select_thermomech_analysis)
QtCore.QObject.connect(self.form.rb_check_mesh, QtCore.SIGNAL("clicked()"), self.select_check_mesh)

QtCore.QObject.connect(self.Calculix, QtCore.SIGNAL("started()"), self.calculixStarted)
QtCore.QObject.connect(self.Calculix, QtCore.SIGNAL("stateChanged(QProcess::ProcessState)"), self.calculixStateChanged)
Expand Down Expand Up @@ -154,6 +155,8 @@ def update(self):
self.form.rb_frequency_analysis.setChecked(True)
elif self.fea.solver.AnalysisType == 'thermomech':
self.form.rb_thermomech_analysis.setChecked(True)
elif self.fea.solver.AnalysisType == 'check':
self.form.rb_check_mesh.setChecked(True)
return

def femConsoleMessage(self, message="", color="#000000"):
Expand Down Expand Up @@ -339,3 +342,6 @@ def select_frequency_analysis(self):

def select_thermomech_analysis(self):
self.select_analysis_type('thermomech')

def select_check_mesh(self):
self.select_analysis_type('check')

0 comments on commit e8044ac

Please sign in to comment.