LocalFunction of a Gridfunction returning a constant value per element. More...
#include <ElementGridFunction.hpp>
Public Types | |
enum | { hasDerivative = true } |
This LocalFunction has its own derivativeOf() function. | |
using | Domain = D |
The LocalDomain this LocalFunction can be evaluated in. | |
using | Range = R |
The range type of the LocalFunction. | |
using | Element = typename IndexSet::template Codim< 0 >::Entity |
Type of the entity to bind. | |
Public Member Functions | |
ElementLocalFunction (IndexSet const &indexSet, Container const &container) | |
Constructor. Stores the constant value. | |
Element const & | localContext () const |
Return the bound element. | |
void | bind (Element const &element) |
Extract the constant data associated to the element. | |
void | unbind () |
bool | bound () const |
Check whether this localfunction is bound to an element. | |
Range const & | operator() (Domain const &) const |
Return the constant value_ . | |
template<class Type > | |
auto | makeDerivative (Type const &) const |
Create a ConstantLocalFunction representing the derivative of a constant function, that ist, the value 0. | |
int | order () const |
Return the constant polynomial order 0. | |
LocalFunction of a Gridfunction returning a constant value per element.