LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
Public Member Functions | Private Attributes | List of all members
projects::hldo_sphere::assemble::LoadVectorProvider< SCALAR > Class Template Reference

Element Vector Provider for scalar valued load functions using picewise linear barycentric basis functions. More...

#include </home/nico/bildung/SemVI/thesis/lehrfempp/projects/hldo_sphere/assemble/load_vector_provider.h>

Public Member Functions

 LoadVectorProvider (const std::function< SCALAR(const Eigen::Vector3d &)> &f)
 Constructor setting the load function. More...
 
Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 > Eval (const lf::mesh::Entity &entity) const
 Compute the element vector for some cell on the mesh. More...
 
bool isActive (const lf::mesh::Entity &entity) const
 All entities are regarded as active. More...
 

Private Attributes

const std::function< SCALAR(const Eigen::Vector3d &)> f_
 

Detailed Description

template<typename SCALAR>
class projects::hldo_sphere::assemble::LoadVectorProvider< SCALAR >

Element Vector Provider for scalar valued load functions using picewise linear barycentric basis functions.

The element matrix provider works in a 3 dimensional world with 2 dimensional triangular cells.

Template Parameters
SCALAReither double or std::complex

The locally evaluated linear form is

\[ v \mapsto \int\limits_{K}\ f(\mathbf{x}) \cdot v(\mathbf{x}) \, dx, \quad f, v \in H^1(\Omega) \]

Details regarding the mathematical derivations can be found in the thesis Hodge-Laplacians and Dirac Operators on the Surface of the 3-Sphere section 4.2.3.

Note
This class complies with the type requirements for the template argument ENTITY_VECTOR_PROVIDER of the function lf::assemble::AssembleVectorLocally().
Only triangular meshes are supported

Definition at line 49 of file load_vector_provider.h.

Constructor & Destructor Documentation

◆ LoadVectorProvider()

template<typename SCALAR >
projects::hldo_sphere::assemble::LoadVectorProvider< SCALAR >::LoadVectorProvider ( const std::function< SCALAR(const Eigen::Vector3d &)> &  f)
inline

Constructor setting the load function.

Parameters
fa SCALAR valued functor defined on the Mesh on which Eval() will be called

Definition at line 59 of file load_vector_provider.h.

Member Function Documentation

◆ Eval()

template<typename SCALAR >
Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 > projects::hldo_sphere::assemble::LoadVectorProvider< SCALAR >::Eval ( const lf::mesh::Entity entity) const
inline

Compute the element vector for some cell on the mesh.

Parameters
entitythe mesh cell to compute the element vector for
Returns
The element vector of the given cell
Note
Only triangular cells are supported

Definition at line 69 of file load_vector_provider.h.

References lf::uscalfe::FeLagrangeO1Tria< SCALAR >::EvalReferenceShapeFunctions(), projects::hldo_sphere::assemble::LoadVectorProvider< SCALAR >::f_, lf::mesh::Entity::Geometry(), lf::base::RefEl::kTria(), lf::quad::make_TriaQR_EdgeMidpointRule(), lf::base::RefEl::NodeCoords(), and lf::mesh::Entity::RefEl().

◆ isActive()

template<typename SCALAR >
bool projects::hldo_sphere::assemble::LoadVectorProvider< SCALAR >::isActive ( const lf::mesh::Entity entity) const
inline

All entities are regarded as active.

Definition at line 116 of file load_vector_provider.h.

Member Data Documentation

◆ f_

template<typename SCALAR >
const std::function<SCALAR(const Eigen::Vector3d &)> projects::hldo_sphere::assemble::LoadVectorProvider< SCALAR >::f_
private

The documentation for this class was generated from the following file: