MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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 (const QuadratureFunction &qf)
 Constructor with a quadrature function as input.
 
const QuadratureFunctionGetQuadFunction () const
 
virtual real_t Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient in the element described by T at the point ip.
 
virtual void Project (QuadratureFunction &qf)
 Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points.
 
virtual ~QuadratureFunctionCoefficient ()
 
- Public Member Functions inherited from mfem::Coefficient
 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 ~Coefficient ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::Coefficient
real_t 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 2269 of file coefficient.hpp.

Constructor & Destructor Documentation

◆ QuadratureFunctionCoefficient()

mfem::QuadratureFunctionCoefficient::QuadratureFunctionCoefficient ( const QuadratureFunction & qf)

Constructor with a quadrature function as input.

Definition at line 1628 of file coefficient.cpp.

◆ ~QuadratureFunctionCoefficient()

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

Definition at line 2284 of file coefficient.hpp.

Member Function Documentation

◆ Eval()

real_t 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 1634 of file coefficient.cpp.

◆ GetQuadFunction()

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

Definition at line 2278 of file coefficient.hpp.

◆ Project()

void mfem::QuadratureFunctionCoefficient::Project ( QuadratureFunction & qf)
virtual

Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points.

Reimplemented from mfem::Coefficient.

Definition at line 1648 of file coefficient.cpp.


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