diff --git a/src/Mod/Fem/Gui/DlgSettingsFemGeneral.ui b/src/Mod/Fem/Gui/DlgSettingsFemGeneral.ui index ea264c56f8..0ec652f2ea 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemGeneral.ui +++ b/src/Mod/Fem/Gui/DlgSettingsFemGeneral.ui @@ -273,13 +273,13 @@ - false + true Create mesh groups for analysis reference shapes (highly experimental) - true + false AnalysisGroupMeshing diff --git a/src/Mod/Fem/femmesh/meshtools.py b/src/Mod/Fem/femmesh/meshtools.py index d8ff9133f7..f694f1d3c6 100644 --- a/src/Mod/Fem/femmesh/meshtools.py +++ b/src/Mod/Fem/femmesh/meshtools.py @@ -1666,10 +1666,12 @@ def get_pressure_obj_faces( # How to find the orientation of a FEM mesh face? # https://forum.freecad.org/viewtopic.php?f=18&t=51898 else: - FreeCAD.Console.PrintError( - "Pressure on shell mesh at the moment only " - "supported for meshes with appropriate group data.\n" - ) + for sh, elems in femobj["Object"].References: + for e in elems: + meshfaces = femmesh.getFacesByFace(sh.getSubObject(e)) + for mf in meshfaces: + pressure_faces.append([mf, -1]) + return pressure_faces