[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:
@@ -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()
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user