6#include <unsupported/Eigen/KroneckerProduct>
50 return m_sxgrad.
mesh();
85 return (*m_face_transfer_operators[
iF]).serendipity;
91 return (*m_face_transfer_operators[
iF]).extension;
97 return (*m_face_transfer_operators[
iF]).reduction;
101 inline const Eigen::MatrixXd &
SgradFace(
const Face &
F)
const
107 inline const Eigen::MatrixXd &
EgradFace(
const Face &
F)
const
113 inline const Eigen::MatrixXd &
RgradFace(
const Face &
F)
const
123 return (*m_cell_transfer_operators[
iT]).serendipity;
129 return (*m_cell_transfer_operators[
iT]).extension;
135 return (*m_cell_transfer_operators[
iT]).reduction;
139 inline const Eigen::MatrixXd &
SgradCell(
const Cell & T)
const
145 inline const Eigen::MatrixXd &
EgradCell(
const Cell & T)
const
151 inline const Eigen::MatrixXd &
RgradCell(
const Cell & T)
const
162 Eigen::MatrixXd
id = Eigen::MatrixXd::Identity(m_lie_algebra.
dimension(), m_lie_algebra.
dimension());
175 Eigen::MatrixXd
id = Eigen::MatrixXd::Identity(m_lie_algebra.
dimension(), m_lie_algebra.
dimension());
188 Eigen::MatrixXd
id = Eigen::MatrixXd::Identity(m_lie_algebra.
dimension(), m_lie_algebra.
dimension());
201 Eigen::MatrixXd
id = Eigen::MatrixXd::Identity(m_lie_algebra.
dimension(), m_lie_algebra.
dimension());
214 Eigen::MatrixXd
id = Eigen::MatrixXd::Identity(m_lie_algebra.
dimension(), m_lie_algebra.
dimension());
227 Eigen::MatrixXd
id = Eigen::MatrixXd::Identity(m_lie_algebra.
dimension(), m_lie_algebra.
dimension());
241 const Eigen::MatrixXd &
mass_Pk3_T = Eigen::MatrixXd::Zero(1,1),
261 return m_sxgrad.
cellBases(T.global_index());
285 return m_sxgrad.
edgeBases(E.global_index());
289 TransferOperators _compute_face_transfer_operators(
size_t iF);
290 TransferOperators _compute_cell_transfer_operators(
size_t iT);
296 std::vector<std::unique_ptr<TransferOperators> > m_face_transfer_operators;
297 std::vector<std::unique_ptr<TransferOperators> > m_cell_transfer_operators;
300 std::ostream & m_output;
Discrete Serendipity Hgrad space: local operators, L2 product and global interpolator.
Definition lasxgrad.hpp:18
Lie algebra class: mass matrix, structure constants and Lie bracket.
Definition liealgebra.hpp:17
Discrete Serendipity Hgrad space: local operators, L2 product and global interpolator.
Definition sxgrad.hpp:20
Construct all polynomial spaces for the DDR sequence.
Definition serendipity_problem.hpp:40
Base class for global DOF spaces.
Definition variabledofspace.hpp:17
Class to describe a mesh.
Definition MeshND.hpp:17
@ Matrix
Definition basis.hpp:67
const size_t & degree() const
Return the polynomial degree.
Definition sxgrad.hpp:55
const Eigen::MatrixXd edgePotential(size_t iE) const
Return the potential operator on the edge of index iE.
Definition sxgrad.hpp:166
const Mesh & mesh() const
Return the mesh.
Definition sxgrad.hpp:49
const Eigen::MatrixXd facePotential(size_t iF) const
Return the potential operator on the face of index iF.
Definition sxgrad.hpp:190
const SerendipityProblem & serPro() const
Definition sxgrad.hpp:60
const Eigen::MatrixXd cellPotential(size_t iT) const
Return the potential operator on the cell of index iT.
Definition sxgrad.hpp:214
Eigen::MatrixXd computeL2Product(const size_t iT, const double &penalty_factor=1., const Eigen::MatrixXd &mass_Pkpo_T=Eigen::MatrixXd::Zero(1, 1), const IntegralWeight &weight=IntegralWeight(1.)) const
Compute the matrix of the (weighted) L2-product.
Definition sxgrad.hpp:226
const Eigen::MatrixXd edgeGradient(size_t iE) const
Return the full gradient operator on the edge of index iE.
Definition sxgrad.hpp:154
const DDRCore::CellBases & cellBases(size_t iT) const
Return cell bases for the face of index iT.
Definition sxgrad.hpp:260
const Eigen::MatrixXd faceGradient(size_t iF) const
Return the full gradient operator on the face of index iF.
Definition sxgrad.hpp:178
const Eigen::MatrixXd cellGradient(size_t iT) const
Return the full gradient operator on the cell of index iT.
Definition sxgrad.hpp:202
const DDRCore::EdgeBases & edgeBases(size_t iE) const
Return edge bases for the edge of index iE.
Definition sxgrad.hpp:284
const DDRCore::FaceBases & faceBases(size_t iF) const
Return face bases for the face of index iF.
Definition sxgrad.hpp:272
bool use_threads
Definition HHO_DiffAdvecReac.hpp:47
const LieAlgebra & lieAlg() const
Return the Lie algebra.
Definition lasxgrad.hpp:60
const Eigen::MatrixXd & RgradCell(size_t iT) const
Return the reduction for the cell of index iT.
Definition lasxgrad.hpp:133
const size_t & degree() const
Return the polynomial degree.
Definition lasxgrad.hpp:54
const Eigen::MatrixXd cellPotential(size_t iT) const
Return the potential operator on the cell of index iT.
Definition lasxgrad.hpp:225
const Eigen::MatrixXd edgePotential(const Edge &E) const
Return the potential operator on edge E.
Definition lasxgrad.hpp:180
const Eigen::MatrixXd facePotential(const Face &F) const
Return the potential operator on face F.
Definition lasxgrad.hpp:206
const Eigen::MatrixXd & SgradFace(size_t iF) const
Return the serendipity reconstruction for the face of index iF.
Definition lasxgrad.hpp:83
std::function< double(const Eigen::Vector3d &)> FunctionType
Definition lasxgrad.hpp:20
const Eigen::MatrixXd & SgradCell(const Cell &T) const
Return the serendipity reconstruction for cell T.
Definition lasxgrad.hpp:139
const Eigen::MatrixXd faceGradient(size_t iF) const
Return the full gradient operator on the face of index iF.
Definition lasxgrad.hpp:186
const Eigen::MatrixXd & EgradCell(size_t iT) const
Return the extension for the cell of index iT.
Definition lasxgrad.hpp:127
const DDRCore::EdgeBases & edgeBases(size_t iE) const
Return edge bases for the edge of index iE.
Definition lasxgrad.hpp:277
const Eigen::MatrixXd edgeGradient(size_t iE) const
Return the full gradient operator on the edge of index iE.
Definition lasxgrad.hpp:160
const Eigen::MatrixXd cellGradient(const Cell &T) const
Return the full gradient operator on cell T.
Definition lasxgrad.hpp:219
const Eigen::MatrixXd faceGradient(const Face &F) const
Return the full gradient operator on face F.
Definition lasxgrad.hpp:193
const Eigen::MatrixXd edgeGradient(const Edge &E) const
Return the full gradient operator on edge E.
Definition lasxgrad.hpp:167
Eigen::VectorXd interpolate(const LAFunctionType &q, const int doe_cell=-1, const int doe_face=-1, const int doe_edge=-1) const
Interpolator of a continuous function.
Definition lasxgrad.cpp:61
Eigen::MatrixXd reduction
Definition lasxgrad.hpp:41
const DDRCore::FaceBases & faceBases(const Face &F) const
Return cell bases for face F.
Definition lasxgrad.hpp:271
Eigen::MatrixXd computeL2Product(const size_t iT, const double &penalty_factor=1., const Eigen::MatrixXd &mass_Pk3_T=Eigen::MatrixXd::Zero(1, 1), const IntegralWeight &weight=IntegralWeight(1.)) const
Compute the matrix of the (weighted) L2-product.
Definition lasxgrad.hpp:238
const Eigen::MatrixXd cellPotential(const Cell &T) const
Return the potential operator on cell T.
Definition lasxgrad.hpp:232
const Eigen::MatrixXd cellGradient(size_t iT) const
Return the full gradient operator on the cell of index iT.
Definition lasxgrad.hpp:212
TransferOperators(const Eigen::MatrixXd &_serendipity, const Eigen::MatrixXd &_extension, const Eigen::MatrixXd &_reduction)
Definition lasxgrad.hpp:27
const Eigen::MatrixXd & EgradFace(const Face &F) const
Return the extension for face F.
Definition lasxgrad.hpp:107
const Eigen::MatrixXd & massMatrix() const
Returns the Gram matrix of the Lie algebra.
Definition liealgebra.hpp:40
const Eigen::MatrixXd & EgradCell(const Cell &T) const
Return the extension for cell T.
Definition lasxgrad.hpp:145
const size_t dimension() const
Assuming orthonormal basis.
Definition liealgebra.hpp:28
const Eigen::MatrixXd & SgradCell(size_t iT) const
Return the serendipity reconstruction for the cell of index iT.
Definition lasxgrad.hpp:121
const SerendipityProblem & serPro() const
Return the serendipity operators.
Definition lasxgrad.hpp:66
Eigen::MatrixXd extension
Definition lasxgrad.hpp:40
Eigen::MatrixXd serendipity
Definition lasxgrad.hpp:39
std::vector< FunctionType > LAFunctionType
Definition lasxgrad.hpp:21
const DDRCore::FaceBases & faceBases(size_t iF) const
Return face bases for the face of index iF.
Definition lasxgrad.hpp:265
const Eigen::MatrixXd & EgradFace(size_t iF) const
Return the extension for the face of index iF.
Definition lasxgrad.hpp:89
const Eigen::MatrixXd & RgradFace(size_t iF) const
Return the reduction for the face of index iF.
Definition lasxgrad.hpp:95
const DDRCore::EdgeBases & edgeBases(const Edge &E) const
Return edge bases for edge E.
Definition lasxgrad.hpp:283
const Eigen::MatrixXd & RgradCell(const Cell &T) const
Return the reduction for cell T.
Definition lasxgrad.hpp:151
const DDRCore::CellBases & cellBases(const Cell &T) const
Return cell bases for cell T.
Definition lasxgrad.hpp:259
const Eigen::MatrixXd & RgradFace(const Face &F) const
Return cell reduction for cell T.
Definition lasxgrad.hpp:113
const Mesh & mesh() const
Return the mesh.
Definition lasxgrad.hpp:48
const DDRCore::CellBases & cellBases(size_t iT) const
Return cell bases for the face of index iT.
Definition lasxgrad.hpp:253
const Eigen::MatrixXd & SgradFace(const Face &F) const
Return the serendipity reconstruction for face F.
Definition lasxgrad.hpp:101
const Eigen::MatrixXd facePotential(size_t iF) const
Return the potential operator on the face of index iF.
Definition lasxgrad.hpp:199
const Eigen::MatrixXd edgePotential(size_t iE) const
Return the potential operator on the edge of index iE.
Definition lasxgrad.hpp:173
Definition ddr-magnetostatics.hpp:41
Structure to store element bases.
Definition ddrcore.hpp:86
Structure to store edge bases.
Definition ddrcore.hpp:121
Structure to store face bases.
Definition ddrcore.hpp:105
Structure for weights (scalar, at the moment) in integral.
Definition integralweight.hpp:36
A structure to store the serendipity, extension and reduction operators.
Definition lasxgrad.hpp:26