FEM: Better defaults for mesh export (#23553)
* FEM: Update mesh_gmsh.py * FEM: Update DlgSettingsFemExportAbaqus.ui * FEM: Update DlgSettingsFemExportAbaqus.ui * FEM: Update DlgSettingsFemExportAbaqusImp.cpp * FEM: Update AppFemPy.cpp
This commit is contained in:
@@ -232,8 +232,8 @@ private:
|
||||
else if (file.hasExtension("inp")) {
|
||||
// get Abaqus inp prefs
|
||||
ParameterGrp::handle g = hGrp->GetGroup("Abaqus");
|
||||
int elemParam = g->GetInt("AbaqusElementChoice", 1);
|
||||
bool groupParam = g->GetBool("AbaqusWriteGroups", false);
|
||||
int elemParam = g->GetInt("AbaqusElementChoice", 2);
|
||||
bool groupParam = g->GetBool("AbaqusWriteGroups", true);
|
||||
// write ABAQUS Output
|
||||
femMesh.writeABAQUS(file.filePath(), elemParam, groupParam);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ not belonging to faces and faces not belonging to volumes.</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string>element parameter: All: all elements, highest: highest elements only, FEM: FEM elements only (only edges not belonging to faces and faces not belonging to volumes)</string>
|
||||
<string>element parameter: All: all elements, Highest: highest elements only, FEM: FEM elements only (only edges not belonging to faces and faces not belonging to volumes)</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>AbaqusElementChoice</cstring>
|
||||
@@ -80,14 +80,14 @@ not belonging to faces and faces not belonging to volumes.</string>
|
||||
<property name="toolTip">
|
||||
<string>Mesh groups are exported too.
|
||||
Every analysis feature and, if there are different materials,
|
||||
material consists of two mesh groups, faces and nodes where
|
||||
material consists of two mesh groups - faces and nodes where
|
||||
the constraint or material is applied.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>AbaqusWriteGroups</cstring>
|
||||
|
||||
@@ -61,7 +61,7 @@ void DlgSettingsFemExportAbaqusImp::loadSettings()
|
||||
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath(
|
||||
"User parameter:BaseApp/Preferences/Mod/Fem/Abaqus");
|
||||
int index = hGrp->GetInt("AbaqusElementChoice", 0);
|
||||
int index = hGrp->GetInt("AbaqusElementChoice", 2);
|
||||
if (index > -1) {
|
||||
ui->comboBoxElemChoiceParam->setCurrentIndex(index);
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ class MeshGmsh(base_fempythonobject.BaseFemPythonObject):
|
||||
name="GroupsOfNodes",
|
||||
group="Mesh Parameters",
|
||||
doc="For each group create not only the elements but the nodes too",
|
||||
value=False,
|
||||
value=True,
|
||||
)
|
||||
)
|
||||
prop.append(
|
||||
|
||||
Reference in New Issue
Block a user