Hi,
Just updated my pyfoam to 2020.05, running snappyHexMesh with pyFoamRunner.py or the class Runner() throws the error:
Error in /home/user/.local/bin/pyFoamRunner.py : FatalError in PyFoam: 'PyFoam FATAL ERROR on line 75 of file /home/user/.local/lib/python3.8/site-packages/PyFoam/Error.py: The method addVerticalMarker is not implemented in this object of type <class 'PyFoam.Basics.DummyPlotTimelines.DummyPlotTimelines'>'
I suspect this is linked to the new plots for snappyHexMesh. I may have missed something, but I found no information about this issue or how to disable the plotting. So far my workaround is to comment these lines 407 to 435 in Configuration.py:
"cellsPerLevel": {
"solvers": ["snappyHexMesh.*"],
"plotinfo": {
"type": "dynamic",
"theTitle": "Cells per refinement level",
"logscale": True,
"titles": ["nr"],
"expr": r"([0-9]+)\s+([0-9]+)",
"idNr": 1,
"with": "fsteps",
"xlabel": "Steps",
"alternateTime": "countrefinements",
},
},
"countRefinements": {
"solvers": ["snappyHexMesh.*"],
"plotinfo": {"type": "count", "expr": "Cells per refinement level:"},
},
"snappyPhases": {
"solvers": ["snappyHexMesh.*"],
"plotinfo": {
"type": "mark",
"expr": ".+ phase$|^Stopping .*",
"targets": ["cellsperlevel"],
},
}
Thank you for the report
It was spot-on and therefor easy to fix. The fix is already in the source repository and will be in the next release (later this moth hopefully)
https://sourceforge.net/p/openfoam-extend/PyFoam/ci/8f888824390390cf101aa8ce09d1141d27baeaa2/tree/src/PyFoam/Basics/DummyPlotTimelines.py?diff=9eb867a85a7dfbde1fc97e7fa6cd33a63b773521