Loading Unstructured_mesh/Unstructured_mesh.pro +2 −1 Original line number Diff line number Diff line Loading @@ -50,4 +50,5 @@ HEADERS += \ ../src/NumericStaticArray/Vertex.h DISTFILES += \ ../src/Debug/README.md ../src/Debug/README.md \ ../src/UnstructuredMesh/MeshFunctions/README.md src/UnstructuredMesh/MeshFunctions/ComputeMeasures.h +7 −2 Original line number Diff line number Diff line Loading @@ -7,6 +7,11 @@ #include "GrammSchmidt.h" #include <array> namespace Detail { template <unsigned int dim, unsigned int Dimension, ComputationMethod Method = DEFAULT> struct _ComputeMeasures{ template <typename IndexType, typename Real, unsigned int ...Reserve> Loading Loading @@ -188,7 +193,7 @@ struct _ComputeMeasures<3, 3, TESSELLATED>{ } }; } Loading @@ -198,7 +203,7 @@ template <ComputationMethod Method, unsigned int Dimension,typename IndexType, t MakeMeshDataContainer_t<Real, make_custom_integer_sequence_t<unsigned int, 1, Dimension>> ComputeMeasures(MeshElements<Dimension, IndexType, Real, Reserve...>& mesh){ MakeMeshDataContainer_t<Real, make_custom_integer_sequence_t<unsigned int, 1, Dimension>> measures(mesh); _ComputeMeasures<1, Dimension, Method>::compute(measures, mesh); Detail::_ComputeMeasures<1, Dimension, Method>::compute(measures, mesh); return measures; } Loading src/UnstructuredMesh/MeshFunctions/README.md 0 → 100644 +18 −0 Original line number Diff line number Diff line ## Mesh functions ## The directory MeshFunctions includes headder files implementing several important algorithms to work with an unstructured mesh. <table> <tr> <th>headder name</th><th>functionality</th> </tr> <tr> <ti>ComputeCenter.h</ti><ti>defines class computing centers of mesh elements</ti> </tr> Example how to calculate centers of mesh elements. ```c++ UnstructuredMesh<3, size_t, double> mesh; MeshDataContainer<Vertex<3,double>, 1,2,3> centers = ComputeCenters(mesh); ``` </table> Loading
Unstructured_mesh/Unstructured_mesh.pro +2 −1 Original line number Diff line number Diff line Loading @@ -50,4 +50,5 @@ HEADERS += \ ../src/NumericStaticArray/Vertex.h DISTFILES += \ ../src/Debug/README.md ../src/Debug/README.md \ ../src/UnstructuredMesh/MeshFunctions/README.md
src/UnstructuredMesh/MeshFunctions/ComputeMeasures.h +7 −2 Original line number Diff line number Diff line Loading @@ -7,6 +7,11 @@ #include "GrammSchmidt.h" #include <array> namespace Detail { template <unsigned int dim, unsigned int Dimension, ComputationMethod Method = DEFAULT> struct _ComputeMeasures{ template <typename IndexType, typename Real, unsigned int ...Reserve> Loading Loading @@ -188,7 +193,7 @@ struct _ComputeMeasures<3, 3, TESSELLATED>{ } }; } Loading @@ -198,7 +203,7 @@ template <ComputationMethod Method, unsigned int Dimension,typename IndexType, t MakeMeshDataContainer_t<Real, make_custom_integer_sequence_t<unsigned int, 1, Dimension>> ComputeMeasures(MeshElements<Dimension, IndexType, Real, Reserve...>& mesh){ MakeMeshDataContainer_t<Real, make_custom_integer_sequence_t<unsigned int, 1, Dimension>> measures(mesh); _ComputeMeasures<1, Dimension, Method>::compute(measures, mesh); Detail::_ComputeMeasures<1, Dimension, Method>::compute(measures, mesh); return measures; } Loading
src/UnstructuredMesh/MeshFunctions/README.md 0 → 100644 +18 −0 Original line number Diff line number Diff line ## Mesh functions ## The directory MeshFunctions includes headder files implementing several important algorithms to work with an unstructured mesh. <table> <tr> <th>headder name</th><th>functionality</th> </tr> <tr> <ti>ComputeCenter.h</ti><ti>defines class computing centers of mesh elements</ti> </tr> Example how to calculate centers of mesh elements. ```c++ UnstructuredMesh<3, size_t, double> mesh; MeshDataContainer<Vertex<3,double>, 1,2,3> centers = ComputeCenters(mesh); ``` </table>