FEM: constraint pressure, add support for shell meshes if they have group data

This commit is contained in:
Bernd Hahnebach
2017-05-26 21:41:09 +01:00
committed by Yorik van Havre
parent 34cac07b43
commit 7ed786cf86
3 changed files with 42 additions and 8 deletions

View File

@@ -897,7 +897,12 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
for ref_shape in femobj['PressureFaces']:
f.write('** ' + ref_shape[0] + '\n')
for face, fno in ref_shape[1]:
f.write("{},P{},{}\n".format(face, fno, rev * prs_obj.Pressure))
if fno > 0: # solid mesh face
f.write("{},P{},{}\n".format(face, fno, rev * prs_obj.Pressure))
elif fno == 0: # on shell mesh face: fno == 0 --> normal of element face == face normal
f.write("{},P,{}\n".format(face, rev * prs_obj.Pressure))
elif fno == -1: # on shell mesh face: fno == -1 --> normal of element face oposite direction face normal
f.write("{},P,{}\n".format(face, -1 * rev * prs_obj.Pressure))
def write_constraints_temperature(self, f):
f.write('\n***********************************************************\n')