MFEM
v4.6.0
Finite element discretization library

A coefficient that is constant across space and time. More...
#include <coefficient.hpp>
Public Member Functions  
ConstantCoefficient (double c=1.0)  
c is value of constant function More...  
virtual double  Eval (ElementTransformation &T, const IntegrationPoint &ip) 
Evaluate the coefficient at ip. More...  
void  Project (QuadratureFunction &qf) 
Fill the QuadratureFunction qf with the constant value. More...  
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 () 
Public Attributes  
double  constant 
Additional Inherited Members  
Protected Attributes inherited from mfem::Coefficient  
double  time 
A coefficient that is constant across space and time.
Definition at line 84 of file coefficient.hpp.

inlineexplicit 
c is value of constant function
Definition at line 90 of file coefficient.hpp.

inlinevirtual 
Evaluate the coefficient at ip.
Implements mfem::Coefficient.
Definition at line 93 of file coefficient.hpp.

virtual 
Fill the QuadratureFunction qf with the constant value.
Reimplemented from mfem::Coefficient.
Definition at line 71 of file coefficient.cpp.
double mfem::ConstantCoefficient::constant 
Definition at line 87 of file coefficient.hpp.