[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 05:32:54 +02:00
parent 42b3b8daed
commit e4e34affac
2 changed files with 7 additions and 1 deletions

View File

@@ -252,7 +252,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.Document.recompute()

View File

@@ -1500,6 +1500,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")