20 typedef std::function<Eigen::Vector3d(
const Eigen::Vector3d &)>
FunctionType;
38 const Eigen::MatrixXd &
_curl,
56 return m_xcurl.
mesh();
76 return *m_cell_operators[
iT];
82 return * m_cell_operators[T.global_index()];
88 return *m_face_operators[
iF];
94 return * m_face_operators[
F.global_index()];
106 return m_xcurl.
cellBases(T.global_index());
130 return m_xcurl.
edgeBases(E.global_index());
139 const Eigen::MatrixXd &
mass_Pk3_T = Eigen::MatrixXd::Zero(1,1),
147 const std::string &
side,
149 const Eigen::MatrixXd &
mass_Pk3_T = Eigen::MatrixXd::Zero(1,1),
154 LocalOperators _compute_face_curl_potential(
size_t iF);
155 LocalOperators _compute_cell_curl_potential(
size_t iT);
157 const XCurl & m_xcurl;
160 std::ostream & m_output;
163 std::vector<std::unique_ptr<LocalOperators> > m_cell_operators;
164 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
Discrete Lie algebra valued Hcurl space.
Definition laxcurl.hpp:18
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 H1 space: local operators, L2 product and global interpolator.
Definition xgrad.hpp:18
Class to describe a mesh.
Definition MeshND.hpp:17
@ Matrix
Definition basis.hpp:67
const DDRCore::CellBases & cellBases(size_t iT) const
Return cell bases for the face of index iT.
Definition xcurl.hpp:88
const DDRCore::FaceBases & faceBases(size_t iF) const
Return face bases for the face of index iF.
Definition xcurl.hpp:100
const DDRCore::EdgeBases & edgeBases(size_t iE) const
Return edge bases for the edge of index iE.
Definition xcurl.hpp:112
const size_t & degree() const
Return the polynomial degree.
Definition xcurl.hpp:50
const Mesh & mesh() const
Return the mesh.
Definition xcurl.hpp:44
bool use_threads
Definition HHO_DiffAdvecReac.hpp:47
const LocalOperators & cellOperators(const Cell &T) const
Return cell operators for cell T.
Definition laxcurl.hpp:80
LocalOperators(const Eigen::MatrixXd &_curl, const Eigen::MatrixXd &_potential)
Definition laxcurl.hpp:37
Eigen::MatrixXd curl
Definition laxcurl.hpp:46
const size_t & degree() const
Return the polynomial degree.
Definition laxcurl.hpp:60
Eigen::MatrixXd computeL2ProductGradient(const size_t iT, const XGrad &x_grad, 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 laxcurl.cpp:124
const LieAlgebra & lieAlgebra() const
Returns the Lie algebra.
Definition laxcurl.hpp:24
const DDRCore::CellBases & cellBases(size_t iT) const
Return cell bases for the face of index iT.
Definition laxcurl.hpp:98
std::vector< FunctionType > LAFunctionType
Definition laxcurl.hpp:21
const LocalOperators & faceOperators(size_t iF) const
Return face operators for the face of index iF.
Definition laxcurl.hpp:86
Eigen::MatrixXd potential
Definition laxcurl.hpp:47
const DDRCore::CellBases & cellBases(const Cell &T) const
Return cell bases for cell T.
Definition laxcurl.hpp:104
const XCurl & xCurl() const
Returns the space XCurl.
Definition laxcurl.hpp:29
const LocalOperators & cellOperators(size_t iT) const
Return cell operators for the cell of index iT.
Definition laxcurl.hpp:74
const DDRCore::EdgeBases & edgeBases(size_t iE) const
Return edge bases for the edge of index iE.
Definition laxcurl.hpp:122
const Mesh & mesh() const
Return the mesh.
Definition laxcurl.hpp:54
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
Definition laxcurl.cpp:110
const LocalOperators & faceOperators(const Face &F) const
Return face operators for face F.
Definition laxcurl.hpp:92
const DDRCore::EdgeBases & edgeBases(const Edge &E) const
Return edge bases for edge E.
Definition laxcurl.hpp:128
Eigen::VectorXd interpolate(const LAFunctionType &v, const int doe_cell=-1, const int doe_face=-1, const int doe_edge=-1) const
Interpolator of a continuous Lie algebra valued function decomposed on the basis of the LieAlgebra,...
Definition laxcurl.cpp:63
std::function< Eigen::Vector3d(const Eigen::Vector3d &)> FunctionType
Definition laxcurl.hpp:20
const DDRCore::FaceBases & faceBases(size_t iF) const
Return face bases for the face of index iF.
Definition laxcurl.hpp:110
const DDRCore::FaceBases & faceBases(const Face &F) const
Return cell bases for face F.
Definition laxcurl.hpp:116
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 local operators (curl and potential)
Definition laxcurl.hpp:36