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

[General] servermanager.Fetch() vs CellArrays.Available

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2013, 06:58
Default servermanager.Fetch() vs CellArrays.Available
  #1
New Member
 
Alejandor Mata
Join Date: Oct 2011
Posts: 2
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”]
UpdatePipeline()
Now I check which variables are loaded:
Mesh.CellArrays.Available
>>> [“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:
Debug:Off
ModifiedTime:560721
Reference Count:1
RegisteredEvents(none)
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

Old   November 14, 2023, 12:23
Default
  #2
New Member
 
Join Date: Aug 2017
Posts: 16
Rep Power: 9
Wang Shang is on a distinguished road
Hi,

have you solved this problem? I am confused with it too.

Regards
Wang Shang is offline   Reply With Quote

Old   November 14, 2023, 12:51
Default
  #3
New Member
 
Alejandor Mata
Join Date: Oct 2011
Posts: 2
Rep Power: 0
A_kenny_A is on a distinguished road
No idea, I have not done CFD for many years.
A_kenny_A is offline   Reply With Quote

Old   November 14, 2023, 13:07
Default
  #4
New Member
 
Join Date: Aug 2017
Posts: 16
Rep Power: 9
Wang Shang is on a distinguished road
Thank you.
Wang Shang is offline   Reply With Quote

Reply

Tags
servermanager variables


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



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