LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
A MeshFunction representing an element from a ScalarFESpace (e.g. solution of BVP) More...
#include <lf/fe/fe.h>
Public Types | |
using | Scalar = decltype(SCALAR_FE(0) * SCALAR_COEFF(0)) |
Public Member Functions | |
MeshFunctionFE (std::shared_ptr< const ScalarFESpace< SCALAR_FE > > fe_space, Eigen::Matrix< SCALAR_COEFF, Eigen::Dynamic, 1 > coeff_vector) | |
Create a new MeshFunctionFE from a ScalarFESpace and a coefficient vector. | |
std::vector< Scalar > | operator() (const lf::mesh::Entity &e, const Eigen::MatrixXd &local) const |
Evaluate the mesh function on a MeshEntity. | |
std::shared_ptr< const mesh::Mesh > | getMesh () const |
Convenience method to retrieve the underlying mesh. | |
std::shared_ptr< const ScalarFESpace< SCALAR_FE > > | getFESpace () const |
Convenience method to retrieve the finite element space in which the mesh function lives. | |
Private Attributes | |
std::shared_ptr< const ScalarFESpace< SCALAR_FE > > | fe_space_ |
Eigen::Matrix< SCALAR_COEFF, Eigen::Dynamic, 1 > | dof_vector_ |
A MeshFunction representing an element from a ScalarFESpace (e.g. solution of BVP)
SCALAR_FE | The scalar type of the finite element basis functions. |
SCALAR_COEFF | The scalar type of the coefficient vector |
The MeshFunctionFE takes essentially two parameters:
Definition at line 44 of file mesh_function_fe.h.
using lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::Scalar = decltype(SCALAR_FE(0) * SCALAR_COEFF(0)) |
Definition at line 48 of file mesh_function_fe.h.
|
inline |
Create a new MeshFunctionFE from a ScalarFESpace and a coefficient vector.
fe_space | the approximation space in which the function lies. |
coeff_vector | Defines the coefficients in front of the basis functions of fe_space |
Definition at line 61 of file mesh_function_fe.h.
|
inline |
Convenience method to retrieve the finite element space in which the mesh function lives.
Definition at line 107 of file mesh_function_fe.h.
References lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::fe_space_.
|
inline |
Convenience method to retrieve the underlying mesh.
Definition at line 97 of file mesh_function_fe.h.
References lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::fe_space_.
|
inline |
Evaluate the mesh function on a MeshEntity.
e | the relevant mesh entity |
local | reference coordinates of evalation points passed in the columns of a matrix |
Definition at line 72 of file mesh_function_fe.h.
References lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::dof_vector_, and lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::fe_space_.
|
private |
Definition at line 114 of file mesh_function_fe.h.
Referenced by lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::operator()().
|
private |
Definition at line 113 of file mesh_function_fe.h.
Referenced by lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::getFESpace(), lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::getMesh(), and lf::fe::MeshFunctionFE< SCALAR_FE, SCALAR_COEFF >::operator()().