28 typedef std::function<Eigen::Vector3d(
const Eigen::Vector3d &)>
FunctionType;
54 return m_vem_core.
mesh();
60 return m_vem_core.
degree();
74 return *m_cell_operators[
iT];
80 return * m_cell_operators[T.global_index()];
86 return *m_face_operators[
iF];
92 return * m_face_operators[
F.global_index()];
104 return m_vem_core.
cellBases(T.global_index());
116 return m_vem_core.
faceBases(
F.global_index());
128 return m_vem_core.
edgeBases(E.global_index());
137 const Eigen::MatrixXd &
mass_Pk3_T = Eigen::MatrixXd::Zero(1,1),
142 LocalOperators _compute_cell_operators(
size_t iT);
146 std::ostream & m_output;
149 std::vector<std::unique_ptr<LocalOperators> > m_cell_operators;
150 std::vector<std::unique_ptr<LocalOperators> > m_face_operators;
Base class for global DOF spaces. Provides functions to manipulate global DOFs (the local version bei...
Definition globaldofspace.hpp:16
Virtual Hdiv space: local operators, L2 product and global interpolator.
Definition vdiv.hpp:26
Construct all polynomial spaces for the VEM sequence.
Definition vemcore.hpp:39
Class to describe a mesh.
Definition MeshND.hpp:17
@ Matrix
Definition basis.hpp:67
bool use_threads
Definition HHO_DiffAdvecReac.hpp:47
const VEMCore::FaceBases & faceBases(const Face &F) const
Return cell bases for face F.
Definition vdiv.hpp:114
const VEMCore::CellBases & cellBases(const Cell &T) const
Return cell bases for cell T.
Definition vdiv.hpp:102
Eigen::VectorXd interpolate(const FunctionType &v, const DivergenceType &div_v, const int doe_cell=-1, const int doe_face=-1) const
Interpolator of a continuous function.
Definition vdiv.cpp:52
const EdgeBases & edgeBases(size_t iE) const
Return edge bases for edge iE.
Definition vemcore.hpp:145
Eigen::MatrixXd proj_function
Definition vdiv.hpp:45
const size_t & degree() const
Return the polynomial degree.
Definition vemcore.hpp:123
const CellBases & cellBases(size_t iT) const
Return cell bases for element iT.
Definition vemcore.hpp:129
const VEMCore::CellBases & cellBases(size_t iT) const
Return cell bases for the face of index iT.
Definition vdiv.hpp:96
const LocalOperators & cellOperators(size_t iT) const
Return cell operators for the cell of index iT.
Definition vdiv.hpp:72
const LocalOperators & faceOperators(size_t iF) const
Return face operators for the face of index iF.
Definition vdiv.hpp:84
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 for the cell of index iT. The stabilisation here is b...
Definition vdiv.cpp:207
const Mesh & mesh() const
Return a const reference to the mesh.
Definition vemcore.hpp:117
const VEMCore::EdgeBases & edgeBases(size_t iE) const
Return edge bases for the edge of index iE.
Definition vdiv.hpp:120
const LocalOperators & cellOperators(const Cell &T) const
Return cell operators for cell T.
Definition vdiv.hpp:78
Eigen::MatrixXd proj_divergence
Definition vdiv.hpp:44
const VEMCore::FaceBases & faceBases(size_t iF) const
Return face bases for the face of index iF.
Definition vdiv.hpp:108
const VEMCore::EdgeBases & edgeBases(const Edge &E) const
Return edge bases for edge E.
Definition vdiv.hpp:126
const Mesh & mesh() const
Return the mesh.
Definition vdiv.hpp:52
std::function< double(const Eigen::Vector3d &)> DivergenceType
Definition vdiv.hpp:29
LocalOperators(const Eigen::MatrixXd &_proj_divergence, const Eigen::MatrixXd &_proj_function)
Definition vdiv.hpp:34
const FaceBases & faceBases(size_t iF) const
Return face bases for face iF.
Definition vemcore.hpp:137
const size_t & degree() const
Return the polynomial degree.
Definition vdiv.hpp:58
const LocalOperators & faceOperators(const Face &F) const
Return face operators for face F.
Definition vdiv.hpp:90
std::function< Eigen::Vector3d(const Eigen::Vector3d &)> FunctionType
Definition vdiv.hpp:28
Definition ddr-magnetostatics.hpp:41
Structure for weights (scalar, at the moment) in integral.
Definition integralweight.hpp:36
A structure to store the local operators (projections of div and function)
Definition vdiv.hpp:33
Structure to store element bases.
Definition vemcore.hpp:63
Structure to store edge bases.
Definition vemcore.hpp:104
Structure to store face bases.
Definition vemcore.hpp:84