|
[Sponsors] |
[OpenFOAM] setting up pvpython to act like parafoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 25, 2013, 08:10 |
setting up pvpython to act like parafoam
|
#1 |
New Member
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13 |
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? |
|
September 26, 2013, 10:42 |
|
#2 |
New Member
Jonathan byrne
Join Date: Sep 2013
Posts: 17
Rep Power: 13 |
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' ) |
|
|
|
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 |