Hello,
Is there any way to find the face elements of a cell in python? I only got something like:
with cellID → getNodesIDs
with nodesIDs → getElementsOnNodes of type face
get nodesIDs of each face and if all nodesIDsOfFace are in the nodesIDs of the cell then they are faces of the cell
this is quite ‘hacky’ and not at all optimized, I imagine that there is a cleaner way to do this in salome directly? also would like to know (in same problematic) how to know for a internal face (so shared by two cells) which one is the main cell and which is its neighbor cell (where the normal of the internal face, will go out of the main cell and into the neighbour cell) is there any clean(or at least efficient) way of having this info?
thanks
maybe you can achieve what you want with CreateDimGroup?
I don’t know… there is no such notion. But getting the face normal on the shape will allow you to get the face normal on all the mesh faces lying on it.
the did the original post combined with multiprocessing gave a quite increase of speed (as they are list of ints, one can use concurrent library without problems).
for the neighbour cell it is a concept of polyhedra mesh definition, I resolved by checking distance of the postion of end of the normal vector on the face in respect to the two cells centers that share that face.
thanks in any case,