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

pyFoamTimelinePlot.py giving error: IndexError: list index out of range

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 29, 2016, 11:27
Default pyFoamTimelinePlot.py giving error: IndexError: list index out of range
  #1
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 3
arieljeds is on a distinguished road
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
I get the following output:

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
I get the same output when I run

Code:
pyFoamTimelinePlot.py . --fields=magU --dir=postProcessing/probes/0/ --basic-mode=lines | gnuplot
I found some advice from 2008 which seems to not be relevant any more but haven't seen anything else useful.

Does anyone have experience with this issue who can offer some help?
arieljeds is offline   Reply With Quote

Reply

Tags
index of range, openfoam 2.3.0, pyfoam, pyfoamtimelineplot.py, ubuntu 12.04

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMI memory leak? MichiB OpenFOAM Programming & Development 14 August 1, 2015 18:18
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 11 April 22, 2014 12:32
Paraview 3.98 - errors when saving geometry file pajot OpenFOAM Paraview & paraFoam 1 September 28, 2013 10: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 05:48


All times are GMT -4. The time now is 13:55.