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

Automatic figures/picture extraction from paraFoam.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 8, 2012, 12:37
Default Automatic figures/picture extraction from paraFoam.
  #1
New Member
 
Rach
Join Date: Mar 2012
Posts: 1
Rep Power: 0
rachelm is on a distinguished road
Hi All,

I am quite new to OpenFOAM- and have just about managed to install and run the examples in OpenFoam (cavity, dam..).

I find it rather annoying to launch paraFoam and extract results for individual cases or timesteps. Id rather have a code, which automates this process and throws my *.pngs in my directory.

Is there a way to (efficiently) do this? I tried for example, following:
http://www.cfd-online.com/Forums/ope...-paraview.html

but, I get some nasty exceptions as below (+ the perl script fails to execute):

======
Reading startup template case: cavity_base
Clone base to new current: cavity_U0.2_init1
Make mesh: cavity_U0.2_init1
Traceback (most recent call last):
File "cavUvar.py", line 62, in <module>
UtilityRunner(argv=["blockMesh","-case",casefile,],silent=False).start()
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Execution/UtilityRunner.py", line 38, in __init__
jobId=jobId)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Execution/AnalyzedRunner.py", line 33, in __init__
jobId=jobId)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Execution/BasicRunner.py", line 100, in __init__
error("Solution directory",self.dir,"does not exist. No use running. Problem:",e)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Error.py", line 49, in error
raise FatalErrorPyFoamException(*text)
PyFoam.Error.FatalErrorPyFoamException: FatalError in PyFoam: 'PyFoam FATAL ERROR on line 100 of file /usr/local/lib/python2.7/dist-packages/PyFoam/Execution/BasicRunner.py: Solution directory -case/cavity_U0.2_init1 does not exist. No use running. Problem: [Errno 2] No such file or directory: '/home/ram/OpenFOAM/ram-2.1.0/run/tutorials/incompressible/icoFoam/cavity/cavityseries/-case/cavity_U0.2_init1''
./go.sh: 3: pvbatchprocess.pl: not found
find: `cavity_U*init1/Images': No such file or directory
movies created
find: `cavity_U*init1/Images': No such file or directory
=======

Is there an easier way to extract images and possibly even the data (in csv maybe?) without using the GUI? I m using OF2.1 and ParaView 3.12.0 64bit.

Many thanks for all you time and help.

regards,

Rachel.M
rachelm is offline   Reply With Quote

Reply

Tags
openfoam 2.1, parafoam

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
transient simulation of a rotating rectangle icesniffer CFX 1 August 8, 2009 07:25
No results for solid domain Gary Holland CFX 10 March 13, 2009 04:30
Parafoam basic questions qtian OpenFOAM Paraview & paraFoam 0 July 20, 2007 11:52
ParaFoam OF 14 decomposed cases philippose OpenFOAM Paraview & paraFoam 4 April 18, 2007 05:17


All times are GMT -4. The time now is 05:44.