MFEM  v4.6.0
Finite element discretization library
Public Member Functions | Protected Attributes | List of all members
mfem::DivergenceGridFunctionCoefficient Class Reference

Scalar coefficient defined as the Divergence of a vector GridFunction. More...

#include <coefficient.hpp>

Inheritance diagram for mfem::DivergenceGridFunctionCoefficient:
[legend]
Collaboration diagram for mfem::DivergenceGridFunctionCoefficient:
[legend]

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 GridFunctionGetGridFunction () 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 ()
 
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 void Project (QuadratureFunction &qf)
 Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points. More...
 
virtual ~Coefficient ()
 

Protected Attributes

const GridFunctionGridFunc
 
- Protected Attributes inherited from mfem::Coefficient
double time
 

Detailed Description

Scalar coefficient defined as the Divergence of a vector GridFunction.

Definition at line 915 of file coefficient.hpp.

Constructor & Destructor Documentation

◆ DivergenceGridFunctionCoefficient()

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.

◆ ~DivergenceGridFunctionCoefficient()

virtual mfem::DivergenceGridFunctionCoefficient::~DivergenceGridFunctionCoefficient ( )
inlinevirtual

Definition at line 935 of file coefficient.hpp.

Member Function Documentation

◆ Eval()

double mfem::DivergenceGridFunctionCoefficient::Eval ( ElementTransformation T,
const IntegrationPoint ip 
)
virtual

Evaluate the scalar divergence coefficient at ip.

Implements mfem::Coefficient.

Definition at line 556 of file coefficient.cpp.

◆ GetGridFunction()

const GridFunction* mfem::DivergenceGridFunctionCoefficient::GetGridFunction ( ) const
inline

Get the vector grid function.

Definition at line 929 of file coefficient.hpp.

◆ SetGridFunction()

void mfem::DivergenceGridFunctionCoefficient::SetGridFunction ( const GridFunction gf)
inline

Set the vector grid function.

Definition at line 926 of file coefficient.hpp.

Member Data Documentation

◆ GridFunc

const GridFunction* mfem::DivergenceGridFunctionCoefficient::GridFunc
protected

Definition at line 918 of file coefficient.hpp.


The documentation for this class was generated from the following files: