|
[Sponsors] |
February 6, 2014, 07:52 |
Pvpython find centroid dataset
|
#1 |
New Member
Anonymous
Join Date: Aug 2013
Location: Europe
Posts: 24
Rep Power: 13 |
Dear Paraview users,
I am working on a script to automatically generate pictures from my OpenFOAM cases. In order for it to be fully automated, I want to know the centroid of my dataset in order to focus the camera on it. Is there any way to find that? Or perhaps a method to convert the VTK data to a numpy array and then use mean? Thanks! |
|
February 16, 2014, 13:32 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings maero21,
I believe what you are looking for is a combination of the following:
Bruno |
|
Tags |
pvpython vtk openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make a code parallel? | Bruno Machado | Fluent UDF and Scheme Programming | 15 | May 27, 2016 10:18 |
[General] pvpython can't find numpy | seanread | ParaView | 0 | April 4, 2016 22:40 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
Problem Building OF on Centos cluster (no admin rights) | CKH | OpenFOAM Installation | 5 | November 13, 2011 07:32 |