CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing giving error: IndexError: list index out of range

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

LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2016, 10:27
Default giving error: IndexError: list index out of range
Senior Member
Join Date: Aug 2015
Posts: 127
Rep Power: 9
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 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: . --fields=magU --dir=postProcessing/probes/0/ --basic-mode=lines --csv=magU.csv
I get the following output:

Traceback (most recent call last):
  File "/usr/local/bin/", line 5, in <module>
    pkg_resources.run_script('PyFoam==0.6.5', '')
  File "/usr/lib/python2.7/dist-packages/", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/", 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/", line 5, in <module>
  File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/Applications/", line 34, in __init__
  File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/Applications/", line 424, in __init__
  File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/Applications/", line 239, in run
  File "/usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/RunDictionary/", line 53, in __init__
IndexError: list index out of range
I get the same output when I run

Code: . --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


index of range, openfoam 2.3.0, pyfoam,, ubuntu 12.04

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
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
AMI memory leak? MichiB OpenFOAM Programming & Development 14 August 1, 2015 18:18
[OpenFOAM] Paraview 3.98 - errors when saving geometry file pajot ParaView 1 September 28, 2013 10:45
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01: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 01:21.