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

[General] Getting data into pvpython.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2017, 05:47
Question Getting data into pvpython.
  #1
New Member
 
Didrick Kruse
Join Date: Jul 2017
Posts: 1
Rep Power: 0
hdkruse is on a distinguished road
Hi I am trying to take a vtk mesh, and getting the area for each part as I move over the array. I have gotten this far with my script but I can't find a way to reliable get data out to pvpython when I change the position of my Clipbox.
I am new to Paraview and have read most of what I can find about this on the internet.
Code:
from paraview.simple import *
svtf=OpenDataFile('surface.vtk')
clip=Clip(Input=svtf)
clip.ClipType = "Box"
clip.ClipType.Scale = [0.1,1,1]
clip.InsideOut=1
areaint=IntegrateVariables(clip)
hdkruse is offline   Reply With Quote

Reply

Tags
pvpython


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
[OpenFOAM] Paraview doesn't seem to be picking up data generated by icofoam MikeHersee ParaView 2 January 6, 2015 09:27
Data Produced From Fine Marine Cant Match with The Experimental Data PeiSan Fidelity CFD 4 August 23, 2014 06:33
Problem running in parralel Val OpenFOAM Running, Solving & CFD 1 June 12, 2014 03:47
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 11:52
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


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