MFEM  v4.4.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
mfem::QuadratureFunctionCoefficient Class Reference

Quadrature function coefficient which requires that the quadrature rules used for this coefficient be the same as those that live within the supplied QuadratureFunction. More...

#include <coefficient.hpp>

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

Public Member Functions

 QuadratureFunctionCoefficient (QuadratureFunction &qf)
 Constructor with a quadrature function as input. More...
 
const QuadratureFunctionGetQuadFunction () const
 
virtual double Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient in the element described by T at the point ip. More...
 
virtual ~QuadratureFunctionCoefficient ()
 
- 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::Coefficient
double time
 

Detailed Description

Quadrature function coefficient which requires that the quadrature rules used for this coefficient be the same as those that live within the supplied QuadratureFunction.

Definition at line 2076 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::QuadratureFunctionCoefficient::QuadratureFunctionCoefficient ( QuadratureFunction qf)

Constructor with a quadrature function as input.

Definition at line 1442 of file coefficient.cpp.

virtual mfem::QuadratureFunctionCoefficient::~QuadratureFunctionCoefficient ( )
inlinevirtual

Definition at line 2089 of file coefficient.hpp.

Member Function Documentation

double mfem::QuadratureFunctionCoefficient::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 1448 of file coefficient.cpp.

const QuadratureFunction& mfem::QuadratureFunctionCoefficient::GetQuadFunction ( ) const
inline

Definition at line 2085 of file coefficient.hpp.


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