|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Christian Schaad
Join Date: Mar 2010
Posts: 3
Rep Power: 5 ![]() |
I am working with OF-1.6 and really happy with pyFoam from the svn-repository.
I am not sure, if I'm doing something wrong or if pyFoamSamplePlot is not compatible with OF-1.6. pyFoamSamplePlot is looking for a "samples" directory instead of the "sets" directory created by the sample command. Creating a soft link from sets to samples leads to the following error message: PyFoam FATAL ERROR on line 123 of file OpenFOAM/ThirdParty-1.6/pyfoam/lib/python2.6/site-packages/PyFoam/Applications/SamplePlot.py : At least one line has to be specified. Found were ['data', 'data1', 'data2', 'data3'] My sampleDict contains: interpolationScheme cellPoint; setFormat raw; sets ( data3 { type uniform; axis distance; start ( 1.3 0.028 0 ); end ( 1.3 -2 0 ); nPoints 1000; } .....); surfaces (); fields ( U ); Does anyone have similar problems or am I doing something wrong? |
|
|
|
|
|
|
|
|
#2 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,131
Rep Power: 30 ![]() ![]() |
Quote:
Code:
Data
----
Select the data to plot
--line=LINE Thesample line from which data is plotted (can be used
more than once)
--field=FIELD The fields that are plotted (can be used more than
once). If none are specified all found fields are used
--directory-name=DIRNAME
Alternate name for the directory with the samples
(Default: samples)
Bernhard PS: Any hints how to improve the help-texts are welcome. User provided usage-examples on the Wiki are even more welcome |
||
|
|
|
||
|
|
|
#3 |
|
New Member
Christian Schaad
Join Date: Mar 2010
Posts: 3
Rep Power: 5 ![]() |
Hello Bernhard,
Thank You for your quick answer. I already tried the options. So, the error message I get when I do pyFoamSamplePlot.py --dir=sets --line=data1 --time=10000 . is: Traceback (most recent call last): File "/home/chrisso/OpenFOAM/ThirdParty-1.6/pyfoam/bin/pyFoamSamplePlot.py", line 5, in <module> SamplePlot() File "/home/chrisso/OpenFOAM/ThirdParty-1.6/pyfoam/lib/python2.6/site-packages/PyFoam/Applications/SamplePlot.py", line 27, in __init__ interspersed=True) File "/home/chrisso/OpenFOAM/ThirdParty-1.6/pyfoam/lib/python2.6/site-packages/PyFoam/Applications/PyFoamApplication.py", line 138, in __init__ self.run() File "/home/chrisso/OpenFOAM/ThirdParty-1.6/pyfoam/lib/python2.6/site-packages/PyFoam/Applications/SamplePlot.py", line 247, in run if abs(vRange[0]-vRange[1])>1e-5*max(abs(vRange[0]),abs(vRange[1])) and max(abs(vRange[0]),abs(vRange[1]))>1e-10: TypeError: unsupported operand type(s) for -: 'tuple' and 'tuple' Or am I still doing something wrong? |
|
|
|
|
|
|
|
|
#4 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,131
Rep Power: 30 ![]() ![]() |
Quote:
Bernhard |
||
|
|
|
||
|
|
|
#5 |
|
New Member
Christian Schaad
Join Date: Mar 2010
Posts: 3
Rep Power: 5 ![]() |
Now I got it. It's working with scalar fields, but not with a vector field, in my case U.
Sadly, U.component(0) is not working with the sample utility, like mentioned here: Sample Utility not working in OpenFoam 1.6 Thank You anyway for your really powerful pyFoam, Christian |
|
|
|
|
|
|
|
|
#6 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,131
Rep Power: 30 ![]() ![]() |
Quote:
http://sourceforge.net/apps/mantisbt...e_status_id=90 I will see what I can do for the next release (can't promise anything though) Bernhard |
||
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| k-omega-SST model (OF 1.6) - turbulent flat plate | cboss | OpenFOAM Running, Solving & CFD | 23 | November 13, 2011 01:28 |
| Sample Utility not working in OpenFoam 1.6 | titio | OpenFOAM | 5 | June 6, 2011 05:40 |
| Sample Utility not working in OpenFoam 1.6 | titio | OpenFOAM Post-Processing | 0 | February 5, 2010 12:12 |
| Troubles installing OF 1.6 on Opensuse 11.1 | magnounibo | OpenFOAM Installation | 1 | November 28, 2009 13:12 |
| force function not working in OF 1.6 | franzisko | OpenFOAM | 3 | August 4, 2009 14:24 |