|
[Sponsors] |
paraView in shell mode (python script running) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 17, 2012, 12:08 |
paraView in shell mode (python script running)
|
#1 |
New Member
Andrzej Prusiński
Join Date: Jul 2011
Posts: 10
Rep Power: 15 |
Dear all,
I'm looking for a method that helps me to run my *.py file under paraView without starting its GUI. Maybe you know how to solve it? Roughly speaking, I try to automatize a process of meshing (in snappyHexMesh). Instead of running paraFoam after each process, I would like to produce some predefined screenshots, so I could compare it later by myself. Until now, I've made a small script thanks to the macro tracking option (in paraView's GUI) and saved it into makro.py file and I know how to run it using Python shell when GUI is available, but since I will work remotely on a server which is equipped with extremely low bandwith I need another way to produce those pictures. Just to stress the problem is the fact that I need about 15 min only to run GUI via Xterm (Cygwin), not mentioning that I need to load the mesh and probably rotate it or cut it... which takes another 15 (or more) minutes. I would appreciate any help. Thanks in advance. |
|
March 17, 2012, 15:19 |
|
#2 |
Senior Member
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22 |
Hi Andrzej,
you can start Python scripts for Paraview with the "pvbatch" command via ssh. Depending on the Paraview installation on the server side it might be necessary to compile Paraview there with OSMesa (CPU based offscreen rendering) and Python enabled. The Paraview directory to the location of "pvbatch" must be known by the servers system, of course. An easy way to to create the scripts is to use your macro as a starting point. Especially the camera settings are useful. Then add more Python code as necessary, a good source of knowledge can be found here: http://paraview.org/Wiki/ParaView/Python_Scripting Martin |
|
March 19, 2012, 08:54 |
|
#3 |
Senior Member
|
Hi,
as all visualisation is based on "VTK" you might also take a look at mayavi2 as well =>scripting http://github.enthought.com/mayavi/m...e-to-scripting http://github.enthought.com/mayavi/mayavi/mlab.html http://github.enthought.com/mayavi/mayavi/index.html foamToVTK can convert you shm to vtk-files that can be viewed by mayavi or visit |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running FLUENT in batch mode for Windows OS | Jake Lee | FLUENT | 7 | June 29, 2016 09:38 |
script file for running fluent on linux cluster | Worth | FLUENT | 2 | February 9, 2012 12:31 |
Running Job in Batch mode (EFD) | Nick Sessions | FloEFD, FloWorks & FloTHERM | 0 | April 16, 2008 17:44 |
problem with running UDF in batch mode | James | FLUENT | 0 | June 6, 2006 07:49 |
Running script files without opening grafic inter | Jim | CFX | 0 | March 21, 2006 07:57 |