discretization algorithm (hexahedron)
discretization algorithm (hexahedron)Posted by Wolfgang at March 22. 2013
does anybody know the algorithm of the discretization, so the order of the nodes, after a mesh with hexahedron or where to find this algorithm?
I need for my project an other order (lexicographic order).
Re: discretization algorithm (hexahedron)Posted by SMESH expert at March 25. 2013
The algorithm of discretization, and thus order of nodes, is in general as follows.
- nodes on vertices
- segments on edges
- faces on surfaces
- volumes in solids.
Re: discretization algorithm (hexahedron)Posted by Wolfgang at April 09. 2013
thank you for your indication.
Perhaps there is a way to get the source code of this algorithm with all its loops and enumeration?
Re: discretization algorithm (hexahedron)Posted by SMESH expert at April 09. 2013
I'm afraid that the source code of the hexahedral algorithm (see SMESH/src/StdMeshers/StdMeshers_Hexa_3D.cxx) won't help you.
As far as I see you need to renumber nodes of a hexahedral mesh. You can do it using the fact that the hexahedrons are in the lexicographic order as you need. So, you write a Python script to iterate over all hexahedra and get nodes of each hexahedron, thus you can find out correspondence between the actual node numbers and the desired ones.