FEM: get pressure faces ids, some better comments and very small code improvement

This commit is contained in:
Bernd Hahnebach
2020-02-03 23:10:03 +01:00
parent 72da26a0c7
commit dbf4e9dc4a
3 changed files with 14 additions and 5 deletions

View File

@@ -1157,6 +1157,9 @@ class FemInputWriterCcx(writerbase.FemInputWriter):
rev = -1 if prs_obj.Reversed else 1
f.write("*DLOAD\n")
for ref_shape in femobj["PressureFaces"]:
# the loop is needed for compatibility reason
# in depretiated method get_pressure_obj_faces_depreciated
# the face ids where per ref_shape
f.write("** " + ref_shape[0] + "\n")
for face, fno in ref_shape[1]:
if fno > 0: # solid mesh face