FEM: workaround, Scaling factor needed to obtain correct results when using DFLUX or CFLUX card.

This commit is contained in:
vdwalts 2016-12-20 18:13:44 +01:00 committed by Yorik van Havre
parent 3842f9c80b
commit 5abb99b37f

View File

@ -817,7 +817,7 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
f.write('\n')
elif fixedtemp_obj.ConstraintType == "CFlux":
f.write('*CFLUX\n')
f.write('{},11,{}\n'.format(fixedtemp_obj.Name, fixedtemp_obj.CFlux / NumberOfNodes))
f.write('{},11,{}\n'.format(fixedtemp_obj.Name, fixedtemp_obj.CFlux * 0.001 / NumberOfNodes))
f.write('\n')
def write_constraints_heatflux(self, f):
@ -845,7 +845,7 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
v = self.mesh_object.FemMesh.getccxVolumesByFace(ho)
f.write("** Heat flux on face {}\n".format(elem))
for i in v:
f.write("{},S{},{}\n".format(i[0], i[1], heatflux_obj.DFlux))
f.write("{},S{},{}\n".format(i[0], i[1], heatflux_obj.DFlux * 0.001))
def write_outputs_types(self, f):
f.write('\n***********************************************************\n')