As I do not know the patch names of my cgns file in advance (when loading the file with python), I would like to get a list of all available patches.
For e.g. OpenFOAM cases this can be done with foamReader.GetProperty(‘PatchArrayInfo’). Is there something similar for the CGNSReader?
Thanks and best regards,
Sadly there is no easy accessor for this one.
However, it can be done this way:
domain = reader.GetProperty("Blocks").SMProperty.GetDomain("array_list")
for i in range(0, domain.GetNumberOfStrings()):
sigh! another reason why we need to revert back to the original block/family selection mechanism. I’ve reported an issue here.