MFEM
v4.3.0
Finite element discretization library
|
Scalar coefficient defined as the Divergence of a vector GridFunction. More...
#include <coefficient.hpp>
Public Member Functions | |
DivergenceGridFunctionCoefficient (const GridFunction *gf) | |
Construct the coefficient with a vector grid function gf. The grid function is not owned by the coefficient. More... | |
void | SetGridFunction (const GridFunction *gf) |
Set the vector grid function. More... | |
const GridFunction * | GetGridFunction () const |
Get the vector grid function. More... | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate the scalar divergence coefficient at ip. More... | |
virtual | ~DivergenceGridFunctionCoefficient () |
Public Member Functions inherited from mfem::Coefficient | |
Coefficient () | |
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 | |
const GridFunction * | GridFunc |
Protected Attributes inherited from mfem::Coefficient | |
double | time |
Scalar coefficient defined as the Divergence of a vector GridFunction.
Definition at line 575 of file coefficient.hpp.
mfem::DivergenceGridFunctionCoefficient::DivergenceGridFunctionCoefficient | ( | const GridFunction * | gf | ) |
Construct the coefficient with a vector grid function gf. The grid function is not owned by the coefficient.
Definition at line 238 of file coefficient.cpp.
|
inlinevirtual |
Definition at line 595 of file coefficient.hpp.
|
virtual |
Evaluate the scalar divergence coefficient at ip.
Implements mfem::Coefficient.
Definition at line 244 of file coefficient.cpp.
|
inline |
Get the vector grid function.
Definition at line 589 of file coefficient.hpp.
|
inline |
Set the vector grid function.
Definition at line 586 of file coefficient.hpp.
|
protected |
Definition at line 578 of file coefficient.hpp.