im digging here in the forum, but i cant get a working solution.
Im importing an ensight case and i want to access different patches of my cfd-domain to gain surface-averaged values of these patches depending on the patch name (for each outlet*)
i know, i can extract these with extractblock and i know also about the syntax changes of extractblock for selecting these blocks from my vtkmultiblockdataset.
What i dont know, is the name of these blocks.
How can i retrieve, for example a list in python, with all the block names and maybe the case structure? Im really sorry, but i cant a working solution.
if i do the following:
... ensightReader = EnSightReader(registrationName='ensightReader.case', CaseFileName='/path/to/ensight.case') numberOfDataSets = ensightReader.GetDataInformation().DataInformation.GetNumberOfDataSets print(numberOfDataSets)
it returns only 0
on the other hand, i know my case shows some hierarchical blocks:
is someone here who can help me with this? im not very experienced with acessing paraview via python, but i learn quickly and i think the problem is really easy.
Allow me to point out, im just using the openfoam pitzdaily case as an minimal working example.
Thank you all very much.