Cell selection by nodes
Posted: Wed Sep 17, 2014 4:51 pm
Hello,
I would like to find all the cells whose grid nodes (not the cell centre!) satisfy a geometrical criterion.
I can loop all over the nodes, and select the ones that satisfy it. Afterwards, is there an array that contains all the faces related to one node (in my case I have a hexa mesh, so I should have 12 faces touching each internal node, less for the boundary nodes), or must I loop inside nodfac and nodfbr until I find all the (in this case 12 or less) positions in those arrays?
I don't know how common my request is, but it might be comfortable to have a function similar to getcel, but with nodes. Or, it might be useful to have an option in getcel, so that the geometric criterion must be satisfied not by the cell centre, but by either one or all the nodes of the cell.
I hope you can help me!
Cheers
I would like to find all the cells whose grid nodes (not the cell centre!) satisfy a geometrical criterion.
I can loop all over the nodes, and select the ones that satisfy it. Afterwards, is there an array that contains all the faces related to one node (in my case I have a hexa mesh, so I should have 12 faces touching each internal node, less for the boundary nodes), or must I loop inside nodfac and nodfbr until I find all the (in this case 12 or less) positions in those arrays?
I don't know how common my request is, but it might be comfortable to have a function similar to getcel, but with nodes. Or, it might be useful to have an option in getcel, so that the geometric criterion must be satisfied not by the cell centre, but by either one or all the nodes of the cell.
I hope you can help me!
Cheers