![]() |
MFEM v4.8.0
Finite element discretization library
|
Returns f(u(x)) where u is a scalar GridFunction and f:R → R. More...
#include <ex37.hpp>
Public Member Functions | |
| MappedGridFunctionCoefficient () | |
| MappedGridFunctionCoefficient (const GridFunction *gf, std::function< real_t(const real_t)> fun_, int comp=1) | |
| real_t | Eval (ElementTransformation &T, const IntegrationPoint &ip) override |
| Evaluate the coefficient at ip. | |
| void | SetFunction (std::function< real_t(const real_t)> fun_) |
Public Member Functions inherited from mfem::GridFunctionCoefficient | |
| GridFunctionCoefficient () | |
| GridFunctionCoefficient (const GridFunction *gf, int comp=1) | |
| void | SetGridFunction (const GridFunction *gf) |
| Set the internal GridFunction. | |
| const GridFunction * | GetGridFunction () const |
| Get the internal GridFunction. | |
| void | Project (QuadratureFunction &qf) override |
| Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points. | |
Public Member Functions inherited from mfem::Coefficient | |
| Coefficient () | |
| virtual void | SetTime (real_t t) |
| Set the time for time dependent coefficients. | |
| real_t | GetTime () |
| Get the time for time dependent coefficients. | |
| real_t | Eval (ElementTransformation &T, const IntegrationPoint &ip, real_t t) |
| Evaluate the coefficient in the element described by T at the point ip at time t. | |
| virtual | ~Coefficient () |
Protected Attributes | |
| std::function< real_t(const real_t)> | fun |
Protected Attributes inherited from mfem::Coefficient | |
| real_t | time |
Returns f(u(x)) where u is a scalar GridFunction and f:R → R.
|
inline |
|
inline |
|
inlineoverridevirtual |
Evaluate the coefficient at ip.
Reimplemented from mfem::GridFunctionCoefficient.