CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: linnemann
Forum: ParaView December 6, 2012, 05:10
Replies: 30
Views: 34,236
Posted By linnemann
Hi Here is some code that works in the...

Hi

Here is some code that works in the pvPython script environment.

from paraview.simple import *

r = OpenDataFile("THI2D_0000.vts")
r.SMProxy.UpdatePipeline(0) # If dealing with multiple...
Forum: ParaView December 6, 2012, 01:02
Replies: 30
Views: 34,236
Posted By linnemann
Hi Did this on a windows machine with the...

Hi

Did this on a windows machine with the python programmable filter inside paraview.

Code
pdi = self.GetInput()
inn=pdi.GetPointData()
numPoints=pdi.GetNumberOfPoints()
print numPoints...
Forum: ParaView January 19, 2012, 01:44
Replies: 30
Views: 34,236
Posted By linnemann
Hi Try this numCells =...

Hi

Try this


numCells = DataSliceFile.GetNumberOfCells()

data=[]
for x in range(numCells):
data.append(DataSliceFile.GetCellData().GetArray('p').GetValue(x))
Showing results 1 to 3 of 3

 
Forum Jump

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