![]() |
LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
MeshFunction wrapper for a simple function of physical coordinates. More...
#include <lf/uscalfe/uscalfe.h>
Public Member Functions | |
| MeshFunctionGlobal (const MeshFunctionGlobal &)=default | |
| MeshFunctionGlobal (MeshFunctionGlobal &&) noexcept=default | |
| MeshFunctionGlobal & | operator= (const MeshFunctionGlobal &)=delete |
| MeshFunctionGlobal & | operator= (MeshFunctionGlobal &&)=delete |
| MeshFunctionGlobal (F f) | |
| std::vector< F_return_type > | operator() (const mesh::Entity &e, const Eigen::MatrixXd &local) const |
| MeshFunction compliant evaluation operator. | |
| virtual | ~MeshFunctionGlobal ()=default |
Private Types | |
| using | F_return_type |
Private Attributes | |
| F | f_ |
MeshFunction wrapper for a simple function of physical coordinates.
| F | a functor type, offering an evaluation operator that acccepts a single coordinate vector. |
MeshFunctionGlobal essentially wraps a function object which represents a function defined on the mesh that depends only on the global coordinates. An example is e.g. the function \( \vec{x} \mapsto \norm{x}^2 \).
FF is a function object that should overload the call operator as follows:
which should return the value of the mesh function at the global coordinates x. The return type of the call operator can in principle be anything, but usually it is one of:
double for a scalar valued mesh functionstd::complex<double> for complex valued mesh functionEigen::Vector2d for a tensor valued mesh function.For instance, a MeshFunctionGlobal object may be instantiated with a lambda function.
DimGlobal==3, the call operator should of course accept a Eigen::Vector3d.Definition at line 55 of file mesh_function_global.h.
|
private |
Definition at line 56 of file mesh_function_global.h.
|
default |
References MeshFunctionGlobal().
Referenced by MeshFunctionGlobal(), MeshFunctionGlobal(), MeshFunctionGlobal(), operator=(), and operator=().
|
defaultnoexcept |
References MeshFunctionGlobal().
|
inlineexplicit |
Definition at line 72 of file mesh_function_global.h.
References f_, and MeshFunctionGlobal().
|
virtualdefault |
|
inline |
MeshFunction compliant evaluation operator.
Definition at line 77 of file mesh_function_global.h.
References lf::base::RefEl::Dimension(), f_, lf::mesh::Entity::Geometry(), lf::geometry::Geometry::Global(), and lf::mesh::Entity::RefEl().
|
delete |
References MeshFunctionGlobal().
|
delete |
References MeshFunctionGlobal().
|
private |
Definition at line 93 of file mesh_function_global.h.
Referenced by MeshFunctionGlobal(), and operator()().