46template <
typename ShapeFunction>
50 constexpr int space_dim = 3;
54 auto const& integration_method =
55 NumLib::IntegrationMethodRegistry::template getIntegrationMethod<
58 auto const shape_function_data =
60 e,
false , integration_method);
62 auto const n_integration_points = integration_method.getNumberOfPoints();
64 for (
unsigned ip = 0; ip < n_integration_points; ++ip)
66 auto const weight = integration_method.getWeightedPoint(ip).getWeight();
67 volume += shape_function_data[ip].detJ * weight;
109 "Numerical volume calculation is not available for element "
Definition of the Element class.
Definition of the Hex class.
Definition of the Line class.
Definition of mesh-related Enumerations.
Definition of the Prism class.
Definition of the Pyramid class.
Definition of the Quad class.
Definition of the Tet class.
Definition of the Tri class.
virtual CellType getCellType() const =0
std::string CellType2String(const CellType t)
Given a MeshElemType this returns the appropriate string.
std::vector< typename ShapeMatricesType::ShapeMatrices, Eigen::aligned_allocator< typename ShapeMatricesType::ShapeMatrices > > initShapeMatrices(MeshLib::Element const &e, bool const is_axially_symmetric, IntegrationMethod const &integration_method)