// ------------------------------------------------------------------------ // // SPDX-License-Identifier: LGPL-2.1-or-later // Copyright (C) 2022 by the deal.II authors // // This file is part of the deal.II library. // // Part of the source code is dual licensed under Apache-2.0 WITH // LLVM-exception OR LGPL-2.1-or-later. Detailed license information // governing the source code and code contributions can be found in // LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. // // ------------------------------------------------------------------------ #ifndef dealii_fe_mapping_related_data_h #define dealii_fe_mapping_related_data_h #include #include #include #include #include #include DEAL_II_NAMESPACE_OPEN /** @addtogroup feaccess */ /** @{ */ namespace internal { namespace FEValuesImplementation { /** * A class that stores all of the mapping related data used in * dealii::FEValues, dealii::FEFaceValues, and dealii::FESubfaceValues * objects. Objects of this kind will be given as output argument * when dealii::FEValues::reinit() calls Mapping::fill_fe_values() for a * given cell, face, or subface. * * The data herein will then be provided as input argument in the * following call to FiniteElement::fill_fe_values(). * * @ingroup feaccess */ template class MappingRelatedData { public: /** * Initialize all vectors to correct size. */ void initialize(const unsigned int n_quadrature_points, const UpdateFlags flags); /** * Compute and return an estimate for the memory consumption (in bytes) * of this object. */ std::size_t memory_consumption() const; /** * Store an array of weights times the Jacobi determinant at the * quadrature points. This function is reset each time reinit() is * called. The Jacobi determinant is actually the reciprocal value of * the Jacobi matrices stored in this class, see the general * documentation of this class for more information. * * However, if this object refers to an FEFaceValues or FESubfaceValues * object, then the JxW_values correspond to the Jacobian of the * transformation of the face, not the cell, i.e. the dimensionality is * that of a surface measure, not of a volume measure. In this case, it * is computed from the boundary forms, rather than the Jacobian matrix. */ std::vector JxW_values; /** * Array of the Jacobian matrices at the quadrature points. */ std::vector> jacobians; /** * Array of the derivatives of the Jacobian matrices at the quadrature * points. */ std::vector> jacobian_grads; /** * Array of the inverse Jacobian matrices at the quadrature points. */ std::vector> inverse_jacobians; /** * Array of the derivatives of the Jacobian matrices at the quadrature * points, pushed forward to the real cell coordinates. */ std::vector> jacobian_pushed_forward_grads; /** * Array of the second derivatives of the Jacobian matrices at the * quadrature points. */ std::vector> jacobian_2nd_derivatives; /** * Array of the second derivatives of the Jacobian matrices at the * quadrature points, pushed forward to the real cell coordinates. */ std::vector> jacobian_pushed_forward_2nd_derivatives; /** * Array of the third derivatives of the Jacobian matrices at the * quadrature points. */ std::vector> jacobian_3rd_derivatives; /** * Array of the third derivatives of the Jacobian matrices at the * quadrature points, pushed forward to the real cell coordinates. */ std::vector> jacobian_pushed_forward_3rd_derivatives; /** * Array of quadrature points. This array is set up upon calling * reinit() and contains the quadrature points on the real element, * rather than on the reference element. */ std::vector> quadrature_points; /** * List of outward normal vectors at the quadrature points. */ std::vector> normal_vectors; /** * List of boundary forms at the quadrature points. */ std::vector> boundary_forms; }; } // namespace FEValuesImplementation } // namespace internal /** @} */ DEAL_II_NAMESPACE_CLOSE #endif