OOFEM has some parts written in python (*.py) such as unv2oofem used for preprocessing and extractor used for postprocessing.
To run these scripts first make sure you have setup the python interpreter (see here)
Next simply open the python script such as /tools/unv2oofem/unv2oofem.py by openning the script and right click on the file tab and clicking “run…”
Notice that the file is now added to select run/debug drop-down menu next to the hammer button:
Chances are you get “Process finished with exit code 127” in that case
In that case:
- select edit configuratins… from select run/debug menu
- Uncheck Add content roots to PYTHONPATH and Add source roots to PYTHONPATH.
- You may want to modify the Parameters and Working directory options accordingly depending on what you want to do.
More information:
test comment
LikeLike