[FEM] Elmer: resale the mesh using Elmer

- according to Peter from the Elmer team, we can use Elmer for both, scaling in and scaling back just for consistency
This commit is contained in:
Uwe
2022-08-07 06:25:28 +02:00
parent 8913921f5b
commit 7fbae8a314
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -234,7 +234,9 @@ class Results(run.Results):
self.fail()
return
self.solver.ElmerResult.read(postPath)
self.solver.ElmerResult.scale(1000)
# at the moment we scale the mesh back using Elmer
# this might be changed in future, therefore leave this
#self.solver.ElmerResult.scale(1000)
self.solver.ElmerResult.getLastPostObject().touch()
self.solver.ElmerResult.recomputeChildren()
self.solver.Document.recompute()
+4
View File
@@ -915,6 +915,10 @@ class Writer(object):
def _addOutputSolver(self):
s = sifio.createSection(sifio.SOLVER)
# Since FreeCAD meshes are in mm we let Elmer scale it
# _handleSimulation(self).
# To get it back in the original size we let Elmer scale it back
s["Coordinate Scaling Revert"] = True
s["Equation"] = "ResultOutput"
s["Exec Solver"] = "After simulation"
s["Procedure"] = sifio.FileAttr("ResultOutputSolve/ResultOutputSolver")