MFEM  v4.1.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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 (GridFunction *gf)
 
void SetGridFunction (GridFunction *gf)
 
GridFunctionGetGridFunction () const
 
virtual double Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient in the element described by T at the point ip. More...
 
virtual ~DivergenceGridFunctionCoefficient ()
 
- Public Member Functions inherited from mfem::Coefficient
 Coefficient ()
 
void SetTime (double t)
 
double GetTime ()
 
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

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

Detailed Description

Scalar coefficient defined as the Divergence of a vector GridFunction.

Definition at line 462 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::DivergenceGridFunctionCoefficient::DivergenceGridFunctionCoefficient ( GridFunction gf)

Definition at line 232 of file coefficient.cpp.

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

Definition at line 476 of file coefficient.hpp.

Member Function Documentation

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

Evaluate the coefficient in the element described by T at the point ip.

Note
When this method is called, the caller must make sure that the IntegrationPoint associated with T is the same as ip. This can be achieved by calling T.SetIntPoint(&ip).

Implements mfem::Coefficient.

Definition at line 238 of file coefficient.cpp.

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

Definition at line 471 of file coefficient.hpp.

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

Definition at line 470 of file coefficient.hpp.

Member Data Documentation

GridFunction* mfem::DivergenceGridFunctionCoefficient::GridFunc
protected

Definition at line 465 of file coefficient.hpp.


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