https://linen.dev logo
When running a solver, or a coded FO, how would I ...
# programming
q
When running a solver, or a coded FO, how would I gain access to faceSet and faceZones I created,? If I print out ``mesh().toc()``, I can see ``faceZones`` as one of the registered entities, but I am not sure what is its type, or how to perform a lookup to gain access to it. Is there a better mesh().toc() which can print type of objects? Looking at the ``faceZones`` file created in my case using topoSet, it basically contains a list of faceZones, and within that structure, each faceZone is an object with a labelList and a boolean List. So faceZone is not exactly a labelListList.. How would I go about accessing a faceZone or set I created at the beginning of sim? EDIT: solved with ``const faceZone& myZone = mesh().faceZones()[mesh().faceZones().findIndex('myZoneName')];``