FEM: analysing group meshing, set default to False

This commit is contained in:
Bernd Hahnebach
2020-05-28 00:36:26 +02:00
parent 4538963192
commit d4655c8ef9
2 changed files with 8 additions and 2 deletions

View File

@@ -272,8 +272,11 @@
<layout class="QGridLayout" name="gl_2">
<item row="0" column="0">
<widget class="Gui::PrefCheckBox" name="cb_analysis_group_meshing">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Create mesh groups for analysis reference shapes</string>
<string>Create mesh groups for analysis reference shapes (highly experimental)</string>
</property>
<property name="checked">
<bool>true</bool>

View File

@@ -338,7 +338,10 @@ class GmshTools():
"User parameter:BaseApp/Preferences/Mod/Fem/General"
).GetBool("AnalysisGroupMeshing", False)
if self.analysis and analysis_group_meshing:
Console.PrintMessage(" Group meshing for analysis.\n")
Console.PrintWarning(
" Group meshing for analysis is set to true in FEM General Preferences. "
"Are you really sure about this? You could run into trouble!\n"
)
self.group_nodes_export = True
new_group_elements = meshtools.get_analysis_group_elements(
self.analysis,