|
[Sponsors] |
pyFoamTimelinePlot.py giving error: IndexError: list index out of range |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2016, 11:27 |
pyFoamTimelinePlot.py giving error: IndexError: list index out of range
|
#1 |
Senior Member
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 11 |
Hi everyone,
I am trying to use probes and functionObjects for the first time (still pretty new to openfoam) and then I want to use pyFoamTimelinePlot.py to convert the files to csv and plot the data. First of all, when I look into the postProcessing directory, the function objects and probes (from system/probeDict and running probeLocations) seem to have done what they're supposed to do but when I run the following command: Code:
pyFoamTimelinePlot.py . --fields=magU --dir=postProcessing/probes/0/ --basic-mode=lines --csv=magU.csv Code:
Traceback (most recent call last): File "/usr/local/bin/pyFoamTimelinePlot.py", line 5, in <module> pkg_resources.run_script('PyFoam==0.6.5', 'pyFoamTimelinePlot.py') File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/EGG-INFO/scripts/pyFoamTimelinePlot.py", line 5, in <module> TimelinePlot() File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/Applications/TimelinePlot.py", line 34, in __init__ **kwargs) File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/Applications/PyFoamApplication.py", line 424, in __init__ result=self.run() File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/Applications/TimelinePlot.py", line 239, in run writeTime=self.opts.writeTime) File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/RunDictionary/TimelineDirectory.py", line 53, in __init__ self.usedTime=self.writeTimes[0] IndexError: list index out of range Code:
pyFoamTimelinePlot.py . --fields=magU --dir=postProcessing/probes/0/ --basic-mode=lines | gnuplot Does anyone have experience with this issue who can offer some help? |
|
Tags |
index of range, openfoam 2.3.0, pyfoam, pyfoamtimelineplot.py, ubuntu 12.04 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
AMI memory leak? | MichiB | OpenFOAM Programming & Development | 14 | August 1, 2015 19:18 |
[OpenFOAM] Paraview 3.98 - errors when saving geometry file | pajot | ParaView | 1 | September 28, 2013 11:45 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 06:48 |