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

Subclass constant coefficient. More...

#include <coefficient.hpp>

Inheritance diagram for mfem::ConstantCoefficient:
Collaboration diagram for mfem::ConstantCoefficient:

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. More...
- Public Member Functions inherited from mfem::Coefficient
 Coefficient ()
void SetTime (double t)
double GetTime ()
double Eval (ElementTransformation &T, const IntegrationPoint &ip, double t)
virtual ~Coefficient ()

Public Attributes

double constant

Additional Inherited Members

- Protected Attributes inherited from mfem::Coefficient
double time

Detailed Description

Subclass constant coefficient.

Definition at line 57 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::ConstantCoefficient::ConstantCoefficient ( double  c = 1.0)

c is value of constant function

Definition at line 63 of file coefficient.hpp.

Member Function Documentation

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

Evaluate the coefficient.

Implements mfem::Coefficient.

Definition at line 66 of file coefficient.hpp.

Member Data Documentation

double mfem::ConstantCoefficient::constant

Definition at line 60 of file coefficient.hpp.

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