MFEM
v4.0
Finite element discretization library
|
A class that performs interpolation from an E-vector to quadrature point values and/or derivatives (Q-vectors). More...
#include <fespace.hpp>
Public Types | |
enum | EvalFlags { VALUES = 1 << 0, DERIVATIVES = 1 << 1, DETERMINANTS = 1 << 2 } |
Public Member Functions | |
QuadratureInterpolator (const FiniteElementSpace &fes, const IntegrationRule &ir) | |
QuadratureInterpolator (const FiniteElementSpace &fes, const QuadratureSpace &qs) | |
void | DisableTensorProducts (bool disable=true) const |
Disable the use of tensor product evaluations, for tensor-product elements, e.g. quads and hexes. More... | |
void | Mult (const Vector &e_vec, unsigned eval_flags, Vector &q_val, Vector &q_der, Vector &q_det) const |
Interpolate the E-vector e_vec to quadrature points. More... | |
void | MultTranspose (unsigned eval_flags, const Vector &q_val, const Vector &q_der, Vector &e_vec) const |
Perform the transpose operation of Mult(). (TODO) More... | |
Static Public Member Functions | |
template<const int T_VDIM = 0, const int T_ND = 0, const int T_NQ = 0> | |
static void | Eval2D (const int NE, const int vdim, const DofToQuad &maps, const Vector &e_vec, Vector &q_val, Vector &q_der, Vector &q_det, const int eval_flags) |
Template compute kernel for 2D. More... | |
template<const int T_VDIM = 0, const int T_ND = 0, const int T_NQ = 0> | |
static void | Eval3D (const int NE, const int vdim, const DofToQuad &maps, const Vector &e_vec, Vector &q_val, Vector &q_der, Vector &q_det, const int eval_flags) |
Template compute kernel for 3D. More... | |
Protected Attributes | |
const FiniteElementSpace * | fespace |
Not owned. More... | |
const QuadratureSpace * | qspace |
Not owned. More... | |
const IntegrationRule * | IntRule |
Not owned. More... | |
bool | use_tensor_products |
Static Protected Attributes | |
static const int | MAX_NQ2D = 100 |
static const int | MAX_ND2D = 100 |
static const int | MAX_VDIM2D = 2 |
static const int | MAX_NQ3D = 1000 |
static const int | MAX_ND3D = 1000 |
static const int | MAX_VDIM3D = 3 |
Friends | |
class | FiniteElementSpace |
A class that performs interpolation from an E-vector to quadrature point values and/or derivatives (Q-vectors).
An E-vector represents the element-wise discontinuous version of the FE space and can be obtained, for example, from a GridFunction using the Operator returned by FiniteElementSpace::GetElementRestriction().
The target quadrature points in the elements can be described either by an IntegrationRule (all mesh elements must be of the same type in this case) or by a QuadratureSpace.
Definition at line 909 of file fespace.hpp.
Enumerator | |
---|---|
VALUES |
Evaluate the values at quadrature points. |
DERIVATIVES |
Evaluate the derivatives at quadrature points. |
DETERMINANTS |
Assuming the derivative at quadrature points form a matrix, this flag can be used to compute and store their determinants. This flag can only be used in Mult(). |
Definition at line 929 of file fespace.hpp.
mfem::QuadratureInterpolator::QuadratureInterpolator | ( | const FiniteElementSpace & | fes, |
const IntegrationRule & | ir | ||
) |
Definition at line 2769 of file fespace.cpp.
mfem::QuadratureInterpolator::QuadratureInterpolator | ( | const FiniteElementSpace & | fes, |
const QuadratureSpace & | qs | ||
) |
Definition at line 2783 of file fespace.cpp.
|
inline |
Disable the use of tensor product evaluations, for tensor-product elements, e.g. quads and hexes.
Currently, tensor product evaluations are not implemented and this method has no effect.
Definition at line 949 of file fespace.hpp.
|
static |
Template compute kernel for 2D.
Definition at line 2798 of file fespace.cpp.
|
static |
Template compute kernel for 3D.
Definition at line 2886 of file fespace.cpp.
void mfem::QuadratureInterpolator::Mult | ( | const Vector & | e_vec, |
unsigned | eval_flags, | ||
Vector & | q_val, | ||
Vector & | q_der, | ||
Vector & | q_det | ||
) | const |
Interpolate the E-vector e_vec to quadrature points.
The eval_flags are a bitwise mask of constants from the EvalFlags enumeration. When the VALUES flag is set, the values at quadrature points are computed and stored in the Vector q_val. Similarly, when the flag DERIVATIVES is set, the derivatives are computed and stored in q_der. When the DETERMINANTS flags is set, it is assumed that the derivatives form a matrix at each quadrature point (i.e. the associated FiniteElementSpace is a vector space) and their determinants are computed and stored in q_det.
Definition at line 2978 of file fespace.cpp.
void mfem::QuadratureInterpolator::MultTranspose | ( | unsigned | eval_flags, |
const Vector & | q_val, | ||
const Vector & | q_der, | ||
Vector & | e_vec | ||
) | const |
Perform the transpose operation of Mult(). (TODO)
Definition at line 3119 of file fespace.cpp.
|
friend |
Definition at line 912 of file fespace.hpp.
|
protected |
Not owned.
Definition at line 914 of file fespace.hpp.
|
protected |
Not owned.
Definition at line 916 of file fespace.hpp.
|
staticprotected |
Definition at line 921 of file fespace.hpp.
|
staticprotected |
Definition at line 925 of file fespace.hpp.
|
staticprotected |
Definition at line 920 of file fespace.hpp.
|
staticprotected |
Definition at line 924 of file fespace.hpp.
|
staticprotected |
Definition at line 922 of file fespace.hpp.
|
staticprotected |
Definition at line 926 of file fespace.hpp.
|
protected |
Not owned.
Definition at line 915 of file fespace.hpp.
|
mutableprotected |
Definition at line 918 of file fespace.hpp.