Menu

#227 pyFoamRunner.py snappyHexMesh error

fixed
None
normal
minor
Always
none
Ubuntu 20.04
2020.05
general
2020-11-08
2020-11-07
No

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"],
            },
        }

Discussion

  • Bernhard Gschaider

    • status: new --> fixed
    • assigned_to: Bernhard Gschaider
     

Log in to post a comment.

MongoDB Logo MongoDB