|
[Sponsors] |
October 17, 2008, 05:39 |
problems with pyFoamSamplePlot.py
|
#1 |
New Member
Sébastien Bocquet
Join Date: Mar 2009
Posts: 21
Rep Power: 17 |
Hi everyone,
Has someone been able to run the routine "pyFoamSamplePlot.py" from the pyFoam library (version 2.3). It seems to be a problem when the routine is reading the file header of the sample files, obtained from the sample command in FoamX. The bug slightly differs from one output format to another of the sample command (gnuplot, raw, xmgr or jplot). It says for the gnuplot format : Traceback (most recent call last): File "/home/admintools/ext_python/bin/pyFoamSamplePlot.py", line 5, in ? SamplePlot() File "/home/admintools/ext_python/lib/python2.3/site-packages/PyFoam/Applicati ons/SamplePlot.py", line 25, in __init__ interspersed=True) File "/home/admintools/ext_python/lib/python2.3/site-packages/PyFoam/Applicati ons/PyFoamApplication.py", line 26, in __init__ self.run() File "/home/admintools/ext_python/lib/python2.3/site-packages/PyFoam/Applicati ons/SamplePlot.py", line 88, in run lines=samples.lines() File "/home/admintools/ext_python/lib/python2.3/site-packages/PyFoam/RunDictio nary/SampleDirectory.py", line 54, in lines for t in self: File "/home/admintools/ext_python/lib/python2.3/site-packages/PyFoam/RunDictio nary/SampleDirectory.py", line 29, in __iter__ yield SampleTime(self.dir,t) File "/home/admintools/ext_python/lib/python2.3/site-packages/PyFoam/RunDictio nary/SampleDirectory.py", line 117, in __init__ vals=self.extractValues(f) File "/home/admintools/ext_python/lib/python2.3/site-packages/PyFoam/RunDictio nary/SampleDirectory.py", line 136, in extractValues tmp[-1]=tmp[-1].split(".")[0] IndexError: list index out of range It always seems to come from the tmp array. Thanks for your help Séb |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 11:12 |
[mesh manipulation] Problems with rotational cyclic boundaries | TReviol | OpenFOAM Meshing & Mesh Conversion | 8 | July 11, 2014 03:45 |
Needed Benchmark Problems for FSI | Mechstud | Main CFD Forum | 4 | July 26, 2011 12:13 |
Two-phase air water flow problems by activating Wall Lubrication Force | challenger85 | CFX | 5 | November 5, 2009 05:44 |
Help required to solve Hydraulic related problems | aero | CFX | 0 | October 30, 2006 11:00 |