MFEM
v4.4.0
Finite element discretization library
|
A general function coefficient. More...
#include <coefficient.hpp>
Public Member Functions | |
FunctionCoefficient (std::function< double(const Vector &)> F) | |
Define a time-independent coefficient from a std function. More... | |
FunctionCoefficient (std::function< double(const Vector &, double)> TDF) | |
Define a time-dependent coefficient from a std function. More... | |
MFEM_DEPRECATED | FunctionCoefficient (double(*f)(Vector &)) |
(DEPRECATED) Define a time-independent coefficient from a C-function More... | |
MFEM_DEPRECATED | FunctionCoefficient (double(*tdf)(Vector &, double)) |
(DEPRECATED) Define a time-dependent coefficient from a C-function More... | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate the coefficient at ip. More... | |
Public Member Functions inherited from mfem::Coefficient | |
Coefficient () | |
virtual void | SetTime (double t) |
Set the time for time dependent coefficients. More... | |
double | GetTime () |
Get the time for time dependent coefficients. More... | |
double | Eval (ElementTransformation &T, const IntegrationPoint &ip, double t) |
Evaluate the coefficient in the element described by T at the point ip at time t. More... | |
virtual | ~Coefficient () |
Protected Attributes | |
std::function< double(const Vector &)> | Function |
std::function< double(const Vector &, double)> | TDFunction |
Protected Attributes inherited from mfem::Coefficient | |
double | time |
A general function coefficient.
Definition at line 210 of file coefficient.hpp.
|
inline |
Define a time-independent coefficient from a std function.
F | time-independent std::function |
Definition at line 219 of file coefficient.hpp.
|
inline |
Define a time-dependent coefficient from a std function.
TDF | time-dependent function |
Definition at line 225 of file coefficient.hpp.
|
inline |
(DEPRECATED) Define a time-independent coefficient from a C-function
Definition at line 232 of file coefficient.hpp.
|
inline |
(DEPRECATED) Define a time-dependent coefficient from a C-function
Definition at line 241 of file coefficient.hpp.
|
virtual |
Evaluate the coefficient at ip.
Implements mfem::Coefficient.
Definition at line 104 of file coefficient.cpp.
|
protected |
Definition at line 213 of file coefficient.hpp.
|
protected |
Definition at line 214 of file coefficient.hpp.