|
[Sponsors] |
October 12, 2015, 04:45 |
query point data with python
|
#1 |
Member
sean read
Join Date: Sep 2014
Location: Melbourne, Australia
Posts: 41
Rep Power: 11 |
I'm trying to query values integrated on a point to return as a float.
I can integrate over an object, for example Code:
MyObject= GetActiveSource() Slice1 = Slice(SliceType="Plane") Slice1 = GetActiveSource() Int = IntegrateVariables() |
|
October 12, 2015, 07:28 |
|
#2 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 12 |
Hello,
You can get the area (cell data) and velocity (point data) with following code: Code:
from paraview import numpy_support as ns intData = servermanager.Fetch(Int) Area = ns.vtk_to_numpy(intData.GetCellData().GetArray('Area'))[0] U = ns.vtk_to_numpy(intData.GetPointData().GetArray('U'))[0] Mikko |
|
October 13, 2015, 00:06 |
|
#3 |
Member
sean read
Join Date: Sep 2014
Location: Melbourne, Australia
Posts: 41
Rep Power: 11 |
Thanks Mikko, that did the trick
|
|
Tags |
python script |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 21:00 |
sample a 3D sub-domain with boundary point data | yongxiang | OpenFOAM Post-Processing | 0 | August 22, 2016 07:00 |
[General] How to extract time series data at a specific point location using paraview script | Jack001 | ParaView | 0 | April 7, 2016 10:05 |
water velocities (point data) are all zero | sophie_l | OpenFOAM Post-Processing | 2 | April 20, 2013 06:08 |
Fieldview 11.1 + Python to extract 3D core of data | Rebecca | FieldView | 0 | April 13, 2011 13:06 |