Get the hex id's from a surface

Hello!
I would like to get to know the hex id’s only from a certain surface.
For example: I have a regular brick and just would like to know the id’s of hexes on surface 3.

Is there a method to do that? I found something to get all hexes from certain volumes but nothing about single surfaces.

Best regards and thank you for your help!
Gebi

Gebi,

Yes, you can list the hexes that have a face in surface 3 with the following command.

list hex in face in surface 3

Does this give you what you are looking for?

Hi!
Thank you for your help!
The command is working for me! Are there opportunities to store the list for further data processing in phyton e.g to write it in a *.txt file or is there a phyton command to get an array?!

Thank you and best regards

Yes! See the Python documentation for in the Help under Appendix-Python-CubitInterface Class Reference for parse_cubit_list(type, int_list, include_sheet_bodies)

In the your Python script you can do something like this:

hex_ids = cubit.parse_cubit_list(“hex”, “in face in surface 3”, 0)

To see the list of ids, type “print hex_ids”

It’s working :slight_smile: Thank you for your quick help!!

Regards,
Gebi