The current problems with reading back the results from Elmer into FC are maybe related to some naming problems of the generated .vtk files.
Seems like now ElmerSolver produces "case_t0001.vtu" files instead of the origianlly hardcoded "case0001.vtu".
I posted a related question in the Elmer-FEM forum: http://www.elmerfem.org/forum/viewtopic.php?f=3&t=6963
If the elmer-devs do confirm the changes in the filename, then we should change the following....
Related code in FC from https://github.com/FreeCAD/FreeCAD/blob ... r/tasks.py
Code: Select all
class Results(run.Results):
def run(self):
if self.solver.ElmerResult is None:
self._createResults()
postPath = os.path.join(self.directory, "case0001.vtu")
self.solver.ElmerResult.read(postPath)
self.solver.ElmerResult.getLastPostObject().touch()
self.solver.Document.recompute()
def _createResults(self):
self.solver.ElmerResult = self.analysis.Document.addObject(
"Fem::FemPostPipeline", self.solver.Name + "Result")
self.solver.ElmerResult.Label = self.solver.Label + "Result"
self.analysis.addObject(self.solver.ElmerResult)
HoWil