[FEM] Elmer: don't push mesh scaled to Elmer

- the mesh scaling was a hack to work around the fact that FC's mesh is in mm while all input units are in SI. It turned out that this made more problems than it solved because Elmer checks the length unit and makes internal recalculations. So the mesh must not be scaled when send to Elmer (despite the ElmerGrid docs doesn't state this).
forum thread: https://forum.freecadweb.org/viewtopic.php?p=614162#p614162
This commit is contained in:
Uwe
2022-08-01 03:58:09 +02:00
parent 927cecc742
commit ea8e13dfa0
2 changed files with 1 additions and 3 deletions

View File

@@ -252,7 +252,6 @@ class Results(run.Results):
self.fail()
return
self.solver.ElmerResult.read(postPath)
self.solver.ElmerResult.scale(1000)
self.solver.ElmerResult.getLastPostObject().touch()
self.solver.Document.recompute()

View File

@@ -224,8 +224,7 @@ class Writer(object):
argsBasic = [binary,
_ELMERGRID_IFORMAT,
_ELMERGRID_OFORMAT,
unvPath,
"-scale", "0.001", "0.001", "0.001"]
unvPath]
args = argsBasic
args.extend(["-out", self.directory])
if system() == "Windows":