CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] pvpython, using ProbeLocation (https://www.cfd-online.com/Forums/paraview/152783-pvpython-using-probelocation.html)

dmaz May 8, 2015 13:30

pvpython, using ProbeLocation
 
Hi I'm trying to access to the probe data of a point in a simulation using pvpython.
I run the pitzDaily tutorial in OpenFoam and in Paraview I can see the probe values using the command "probe location", specifying the point coordinate.
I'm setting the pvpython script in this way:

from paraview.simple import *
pitzDaily_foam = OpenFOAMReader( FileName='/home/pyt/pitzDaily/pitzDaily.foam' )

AnimationScene1 = GetAnimationScene()
AnimationScene1.EndTime = 817.0
AnimationScene1.PlayMode = 'Snap To TimeSteps'
pitzDaily_foam.TimestepValues.GetData()

pitzDaily_foam.CellArrays = ['U', 'epsilon', 'k', 'nuTilda', 'nut', 'p']
pitzDaily_foam.LagrangianArrays = []
pitzDaily_foam.MeshRegions = ['internalMesh']
pitzDaily_foam.PointArrays = []

ProbeLocation1 = ProbeLocation( ProbeType="Fixed Radius Point Source" )
ProbeLocation1.ProbeType.Center = [0.2, 0.0, 0.0]


From there, I'm not able to extract the information using the command ProbeLocation, what can I do?
Thanks in advance,
Dmaz


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