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

[OpenFOAM] setting up pvpython to act like parafoam

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By jonathanbyrn

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2013, 08:10
Default setting up pvpython to act like parafoam
  #1
New Member
 
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13
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, 10:42
Default
  #2
New Member
 
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13
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, taalf and Knusper like this.
jonathanbyrn 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
Fluent Parallelization Problem After AC Power Dropped pawl Hardware 5 November 13, 2016 07:08
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 23:38
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
Warning 097- AB Siemens 6 November 15, 2004 05:41


All times are GMT -4. The time now is 03:40.