23 typedef std::function<Eigen::Vector3d(
const Eigen::Vector3d &)>
FunctionType;
30 const Eigen::MatrixXd & _divergence,
31 const Eigen::MatrixXd & _divergence_rhs,
32 const Eigen::MatrixXd & _potential
64 const int doe_cell = -1,
65 const int doe_face = -1
109 const double & penalty_factor = 1.,
110 const Eigen::MatrixXd & mass_Pk3_T = Eigen::MatrixXd::Zero(1,1),
117 const XCurl & x_curl,
118 const std::string & side,
119 const double & penalty_factor = 1.,
120 const Eigen::MatrixXd & mass_Pk3_T = Eigen::MatrixXd::Zero(1,1),
Base class for global DOF spaces. Provides functions to manipulate global DOFs (the local version bei...
Definition: globaldofspace.hpp:16
Discrete Lie algebra valued Hdiv space: local operators, L2 product and global interpolator.
Definition: laxdiv.hpp:20
Lie algebra class: mass matrix, structure constants and Lie bracket.
Definition: liealgebra.hpp:17
Discrete Hcurl space: local operators, L2 product and global interpolator.
Definition: xcurl.hpp:19
Discrete Hdiv space: local operators, L2 product and global interpolator.
Definition: xdiv.hpp:20
Class to describe a mesh.
Definition: MeshND.hpp:17
const size_t & degree() const
Return the polynomial degree.
Definition: xdiv.hpp:54
const Mesh & mesh() const
Return the mesh.
Definition: xdiv.hpp:48
const DDRCore::FaceBases & faceBases(size_t iF) const
Return face bases for the face of index iF.
Definition: xdiv.hpp:92
const DDRCore::CellBases & cellBases(size_t iT) const
Return cell bases for the face of index iT.
Definition: xdiv.hpp:80
bool use_threads
Definition: HHO_DiffAdvecReac.hpp:47
const LieAlgebra & m_lie_algebra
Definition: laxdiv.hpp:127
std::ostream & m_output
Definition: laxdiv.hpp:130
LAXDiv(const LieAlgebra &lie_algebra, const XDiv &xdiv, bool use_threads=true, std::ostream &output=std::cout)
Constructor.
Definition: laxdiv.cpp:12
const LocalOperators & cellOperators(const Cell &T) const
Return cell operators for cell T.
Definition: laxdiv.hpp:75
const DDRCore::FaceBases & faceBases(const Face &F) const
Return cell bases for face F.
Definition: laxdiv.hpp:99
Eigen::MatrixXd divergence
Definition: laxdiv.hpp:41
const DDRCore::CellBases & cellBases(size_t iT) const
Return cell bases for the face of index iT.
Definition: laxdiv.hpp:81
Eigen::MatrixXd divergence_rhs
Definition: laxdiv.hpp:42
const size_t & degree() const
Return the polynomial degree.
Definition: laxdiv.hpp:56
std::function< Eigen::Vector3d(const Eigen::Vector3d &)> FunctionType
Definition: laxdiv.hpp:23
Eigen::VectorXd interpolate(const LAFunctionType &v, const int doe_cell=-1, const int doe_face=-1) const
Interpolator of a continuous function.
Definition: laxdiv.cpp:51
Eigen::MatrixXd computeL2ProductCurl(const size_t iT, const XCurl &x_curl, const std::string &side, 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 as 'computeL2Product', with application of the discre...
Definition: laxdiv.cpp:101
const LocalOperators & cellOperators(size_t iT) const
Return cell operators for the cell of index iT.
Definition: laxdiv.hpp:69
bool m_use_threads
Definition: laxdiv.hpp:129
std::vector< FunctionType > LAFunctionType
Definition: laxdiv.hpp:24
Eigen::MatrixXd potential
Definition: laxdiv.hpp:43
LocalOperators(const Eigen::MatrixXd &_divergence, const Eigen::MatrixXd &_divergence_rhs, const Eigen::MatrixXd &_potential)
Definition: laxdiv.hpp:29
const Mesh & mesh() const
Return the mesh.
Definition: laxdiv.hpp:50
const XDiv & m_xdiv
Definition: laxdiv.hpp:128
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.
Definition: laxdiv.cpp:87
const DDRCore::FaceBases & faceBases(size_t iF) const
Return face bases for the face of index iF.
Definition: laxdiv.hpp:93
const DDRCore::CellBases & cellBases(const Cell &T) const
Return cell bases for cell T.
Definition: laxdiv.hpp:87
LocalOperators _compute_cell_divergence_potential(size_t iT)
Definition: laxdiv.cpp:70
std::vector< std::unique_ptr< LocalOperators > > m_cell_operators
Definition: laxdiv.hpp:133
Definition: ddr-magnetostatics.hpp:40
MeshND::Face< 2 > Face
Definition: Mesh2D.hpp:12
MeshND::Cell< 2 > Cell
Definition: Mesh2D.hpp:13
Structure to store element bases.
Definition: ddrcore.hpp:86
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 local operators (divergence and potential)
Definition: laxdiv.hpp:28