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

setting up pvpython to act like parafoam

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

Like Tree1Likes
  • 1 Post By jonathanbyrn

Reply
 
LinkBack Thread Tools Display Modes
Old   September 25, 2013, 07:10
Default setting up pvpython to act like parafoam
  #1
New Member
 
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 3
jonathanbyrn is on a distinguished road
Hey.
I used trace to generate a python script that would add a slice to a model and render it. It works fine when I run:
paraFoam --script=genimage.py
but it opens up paraview to do the rendering. I wanted to do all this from the commandline so I tried using pvpython and pvbatch but they cannot find the source.

I examined the the paraFoam script and it seems to be creating a config file that specifies the initial source but when I open x.OpenFOAM but there is nothing in it.

My question is how do I get pvpython to load my source in the same way paraFoam does?

I also tried pyFoamPVSnapshot.py but it seems to be expecting an older version of paraview, has it been deprecated?
jonathanbyrn is offline   Reply With Quote

Old   September 26, 2013, 09:42
Default
  #2
New Member
 
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 3
jonathanbyrn is on a distinguished road
It turns out paraFoam just creates a dummy file, e.g.; cfd.OpenFOAM and then calls paraview with the command:

paraview --data=cfd.OpenFOAM

The equivalent can be done in a pvpython script by calling:

cfd_OpenFOAM = PV3FoamReader( FileName='/home/cfd/cfd.OpenFOAM' )
wyldckat likes this.
jonathanbyrn is offline   Reply With Quote

Reply

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
OpenFoam (Ubuntu): paraFoam via Xming+PuTTY raketenmaid OpenFOAM Paraview & paraFoam 4 February 5, 2013 06:20
Residual level setting of Fluent lhlh ANSYS 2 November 17, 2012 22:35
Cells with t below lower limit Purushothama CD-adapco 2 May 31, 2010 21:58
Could not change parafoam setting parameter lin OpenFOAM Paraview & paraFoam 0 February 17, 2008 05:06
Warning 097- AB CD-adapco 6 November 15, 2004 05:41


All times are GMT -4. The time now is 13:53.