LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
lf::mesh::utils::MeshFunctionConstant< R > Class Template Reference

A MeshFunction which takes the same constant value on the whole mesh. More...

#include <lf/uscalfe/uscalfe.h>

Public Member Functions

 MeshFunctionConstant (R value)
 Create a new MeshFunctionConstant by passing the globally constant value.
 
std::vector< R > operator() (const mesh::Entity &, const Eigen::MatrixXd &local) const
 the key evaluation operator to be supplied by all MeshFunctions
 

Private Attributes

value_
 

Detailed Description

template<class R>
class lf::mesh::utils::MeshFunctionConstant< R >

A MeshFunction which takes the same constant value on the whole mesh.

Template Parameters
RThe type of the value, must be copyable.

Definition at line 26 of file mesh_function_constant.h.

Constructor & Destructor Documentation

◆ MeshFunctionConstant()

template<class R >
lf::mesh::utils::MeshFunctionConstant< R >::MeshFunctionConstant ( R value)
inlineexplicit

Create a new MeshFunctionConstant by passing the globally constant value.

Parameters
valueThe value that the MeshFunction should have globally.

Definition at line 33 of file mesh_function_constant.h.

Member Function Documentation

◆ operator()()

template<class R >
std::vector< R > lf::mesh::utils::MeshFunctionConstant< R >::operator() ( const mesh::Entity & ,
const Eigen::MatrixXd & local ) const
inline

the key evaluation operator to be supplied by all MeshFunctions

Definition at line 38 of file mesh_function_constant.h.

References lf::mesh::utils::MeshFunctionConstant< R >::value_.

Member Data Documentation

◆ value_

template<class R >
R lf::mesh::utils::MeshFunctionConstant< R >::value_
private

stored constant value

Definition at line 44 of file mesh_function_constant.h.

Referenced by lf::mesh::utils::MeshFunctionConstant< R >::operator()().


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