CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > ParaView

servermanager.Fetch() vs CellArrays.Available

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   May 28, 2013, 05:58
Default servermanager.Fetch() vs CellArrays.Available
New Member
Alejandor Mata
Join Date: Oct 2011
Posts: 1
Rep Power: 0
A_kenny_A is on a distinguished road
I am trying to map a variable onto a stl file with ResampleWithDataset with a Python-Script (client – server). The problem is that it always maps all the variables (I have 25). One variable takes about 2 minutes and because of that resamplewithdataset takes about 60minutes.
So I have tried to load only the desired variables:
Mesh = OpenFOAMReader()
Mesh.FileName = “…case.foam”
Mesh.CellArrays = [“U”, “p”]
Now I check which variables are loaded:
>>> [“U”,”p”]
this is ok. But if I check the vtkMultiblockDataset I see that all variables are loaded:

data = servermanager.Fetch(Mesh)
print data
Cell Data:
Reference Count:1
Number Of Arrays: 24
Array 0 name = U
Array 1 name = p
Array 22 name = UMean
Array 23 name = pMean …
How can I avoid to load all variables? Or how can I define, that only one variable is mapped?
A_kenny_A is offline   Reply With Quote


servermanager variables

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

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