MFEM v2.0
Public Member Functions | Public Attributes
ConstantCoefficient Class Reference

Subclass constant coefficient. More...

#include <coefficient.hpp>

Inheritance diagram for ConstantCoefficient:
Inheritance graph
[legend]
Collaboration diagram for ConstantCoefficient:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConstantCoefficient (double c=1.0)
 c is value of constant function
virtual double Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the coefficient.
virtual void Read (istream &in)

Public Attributes

double constant

Detailed Description

Subclass constant coefficient.

Definition at line 29 of file coefficient.hpp.


Constructor & Destructor Documentation

ConstantCoefficient::ConstantCoefficient ( double  c = 1.0) [inline, explicit]

c is value of constant function

Definition at line 36 of file coefficient.hpp.

References constant.


Member Function Documentation

virtual double ConstantCoefficient::Eval ( ElementTransformation T,
const IntegrationPoint ip 
) [inline, virtual]

Evaluate the coefficient.

Implements Coefficient.

Definition at line 39 of file coefficient.hpp.

References constant.

virtual void ConstantCoefficient::Read ( istream &  in) [inline, virtual]

Implements Coefficient.

Definition at line 43 of file coefficient.hpp.

References constant.


Member Data Documentation

Definition at line 33 of file coefficient.hpp.

Referenced by ConstantCoefficient(), Eval(), and Read().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines