CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[PyFoam] pyFoamPVSnapshot problem

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Romarius

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2015, 07:32
Default pyFoamPVSnapshot problem
  #1
New Member
 
Jishen Zhang
Join Date: Jun 2014
Location: Vigo, Spain
Posts: 12
Rep Power: 11
Romarius is on a distinguished road
Dear Foamers,

I have encounter a problem when I try to execute the following command line:

pyFoamPVSnapshot.py --time=1e-06 --state=default.pvsm .

The error message:

Error in /usr/local/bin/pyFoamPVSnapshot.py : FatalError in PyFoam: 'PyFoam FATAL ERROR on line 85 of file /usr/local/lib/python2.7/dist-packages/PyFoam/Paraview/StateFile.py: Wrong number of Readers in State-File. Need 1 but got 0'

Any help would be appreciated.

Jishen
manoj_nav likes this.
Romarius is offline   Reply With Quote

Old   August 28, 2015, 11:15
Default
  #2
New Member
 
Juan Marcelo Gimenez
Join Date: Dec 2009
Location: Santa Fe, Argentina
Posts: 12
Rep Power: 16
nisi is on a distinguished road
I have the same problem. Any news about it?
nisi is offline   Reply With Quote

Old   April 26, 2017, 06:46
Default
  #3
New Member
 
Patrick Kastner
Join Date: Apr 2016
Posts: 10
Rep Power: 10
kostnermo is on a distinguished road
I did not bother to solve the issue but I can offer a workaround. Please open the case with:
Code:
paraview
instead of
Code:
paraFoam
and save the statefile accordingly (e.g. default.pvsm).

Now do:

Code:
pyFoamPVSnapshot.py . --all-times --state=default.pvsm --magnification=1
This way, the script should be able to properly read the statefile.

Best,

Patrick
kostnermo is offline   Reply With Quote

Old   April 26, 2017, 09:43
Default Same issue
  #4
New Member
 
Max
Join Date: Sep 2016
Location: Delft
Posts: 22
Rep Power: 9
WildeCat is on a distinguished road
Hi all,

I can confirm the same issue as mentioned in posts #1 and 2.

Thank you for the workaround option Romarius
WildeCat is offline   Reply With Quote

Reply


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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 07:34.