Skip to content

Commit 3b21dc5

Browse files
committed
Fem: Pressure loads without references mesh groups - fixes FreeCAD#12114
1 parent 8a3407a commit 3b21dc5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Mod/Fem/femmesh/meshtools.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -1666,10 +1666,12 @@ def get_pressure_obj_faces(
16661666
# How to find the orientation of a FEM mesh face?
16671667
# https://forum.freecad.org/viewtopic.php?f=18&t=51898
16681668
else:
1669-
FreeCAD.Console.PrintError(
1670-
"Pressure on shell mesh at the moment only "
1671-
"supported for meshes with appropriate group data.\n"
1672-
)
1669+
for sh, elems in femobj["Object"].References:
1670+
for e in elems:
1671+
meshfaces = femmesh.getFacesByFace(sh.getSubObject(e))
1672+
for mf in meshfaces:
1673+
pressure_faces.append([mf, -1])
1674+
16731675
return pressure_faces
16741676

16751677

0 commit comments

Comments
 (0)