CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] pyFoampvsnapshot error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2018, 08:23
Default pyFoampvsnapshot error
  #1
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7
ssa_cfd is on a distinguished road
Hi all,

I tried to create a set of png images using pyfoam. It says wrong number of readers. I read in pyFoamPVSnapshot problem that using paraview can work. But I couldn't do that. Anyone know about this error..?

Quote:
student@CFD-Modellierung:~/Schreibtisch$ pyFoamPVSnapshot.py --state-file=prt.pvsm --after-time=20 --file-prefix=anim NTU_foranimation
Executing PVSnapshot with pvpython trough a proxy-script options:
Error in /tmp/pyFoamPVSnapshot_pUhMAU.py : FatalError in PyFoam: 'PyFoam FATAL ERROR on line 125 of file /usr/local/lib/python2.7/dist-packages/PyFoam-0.6.10-py2.7.egg/PyFoam/Paraview/StateFile.py: Wrong number of Readers in State-File. Need 1 but got 0'
Error: Return code 255 executing /tmp/pyFoamPVSnapshot_pUhMAU.py
Thanks.
ssa
ssa_cfd is offline   Reply With Quote

Old   November 21, 2018, 03:29
Default fresh user solution
  #2
New Member
 
Claudio
Join Date: Feb 2018
Posts: 1
Rep Power: 0
claudio.padricelli is on a distinguished road
Hello I was having the same issue as you. I am a fresh user so I don't know if it is the correct way to solve the problem, also for you but it worked for me.


My solution was to save the state while running the paraview in builtin mode, I will write all the commands for clarity.



run from terminal > paraFoam -builtin


in the paraview GUI > choose proper angle for the image


in the paraview GUI > file/save state (save as paraView state file) and close paraview


run from terminal > pyFoamPVSnapshot.py . --all-times --state=<name of the file>.pvsm


At this point you should get the snapshot done. I tried also to use the same state file for other cases and it worked for me.


I hope it may help you as well.
claudio.padricelli is offline   Reply With Quote

Old   November 21, 2018, 03:36
Default
  #3
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7
ssa_cfd is on a distinguished road
Hi,

I know about running paraview using builtin. The problem is my simulation is with lagrangian data, and If I run paraview with builtin, paraview couldn't read lagrangian data. So I couldn't see the particles. The only way is running through paraFoam.

So is there any other possible way.

Thanks.
ssa
ssa_cfd 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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 22:23.