![]() |
MFEM v4.8.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. | |
void | SetGridFunction (const GridFunction *gf) |
Set the vector grid function. | |
const GridFunction * | GetGridFunction () const |
Get the vector grid function. | |
real_t | Eval (ElementTransformation &T, const IntegrationPoint &ip) override |
Evaluate the scalar divergence coefficient at ip. | |
virtual | ~DivergenceGridFunctionCoefficient () |
![]() | |
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 void | Project (QuadratureFunction &qf) |
Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points. | |
virtual | ~Coefficient () |
Protected Attributes | |
const GridFunction * | GridFunc |
![]() | |
real_t | time |
Scalar coefficient defined as the Divergence of a vector GridFunction.
Definition at line 921 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 550 of file coefficient.cpp.
|
inlinevirtual |
Definition at line 941 of file coefficient.hpp.
|
overridevirtual |
Evaluate the scalar divergence coefficient at ip.
Implements mfem::Coefficient.
Definition at line 556 of file coefficient.cpp.
|
inline |
Get the vector grid function.
Definition at line 935 of file coefficient.hpp.
|
inline |
Set the vector grid function.
Definition at line 932 of file coefficient.hpp.
|
protected |
Definition at line 924 of file coefficient.hpp.