CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

pyFoam use error

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By qutadah.r

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2021, 11:45
Default pyFoam use error
  #1
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
i downloaded pyFoam and added its directory to path on my linux pc.


I tried running the pitzDaily case with the pyPlotWatchRunner.py and it gives me following error ....


$ pyFoamPlotRunner.py simpleFoam


how exactly should i run the code?


Error:

Traceback (most recent call last):
File "/home/rababqjt/.local/bin/pyFoamPlotRunner.py", line 5, in <module>
PlotRunner()
File "/home/rababqjt/.local/lib/python2.7/site-packages/PyFoam/Applications/PlotRunner.py", line 70, in __init__
**kwargs)
File "/home/rababqjt/.local/lib/python2.7/site-packages/PyFoam/Applications/PyFoamApplication.py", line 496, in __init__
result=self.run()
File "/home/rababqjt/.local/lib/python2.7/site-packages/PyFoam/Applications/PlotRunner.py", line 108, in run
sol=SolutionDirectory(cName,archive=None)
File "/home/rababqjt/.local/lib/python2.7/site-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 69, in __init__
self.reread()
File "/home/rababqjt/.local/lib/python2.7/site-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 561, in reread
procDirs = self.processorDirs()
File "/home/rababqjt/.local/lib/python2.7/site-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 609, in processorDirs
self.procDirs.sort(key=lambda x:int(x[len("processor"):]))
File "/home/rababqjt/.local/lib/python2.7/site-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 609, in <lambda>
self.procDirs.sort(key=lambda x:int(x[len("processor"):]))
ValueError: invalid literal for int() with base 10: '0.log'


i need some help thanks
qutadah.r is offline   Reply With Quote

Reply

Tags
postprocessing, pyfoam, python

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 19:17.