MFEM  v3.4
Finite element discretization library
Public Member Functions | Protected Attributes | List of all members
mfem::Coefficient Class Referenceabstract

Base class Coefficient that may optionally depend on time. More...

#include <coefficient.hpp>

Inherited by ElasticEnergyCoefficient, ElasticEnergyCoefficient, ElasticEnergyCoefficient, ElasticEnergyCoefficient, ElasticEnergyCoefficient, mfem::ConstantCoefficient, mfem::DeltaCoefficient, mfem::electromagnetics::JouleHeatingCoefficient, mfem::electromagnetics::MeshDependentCoefficient, mfem::ExtrudeCoefficient, mfem::FunctionCoefficient, mfem::GridFunctionCoefficient, mfem::PWConstCoefficient, mfem::RestrictedCoefficient, mfem::TransformedCoefficient, StressCoefficient, and StressCoefficient.

Public Member Functions

 Coefficient ()
 
void SetTime (double t)
 
double GetTime ()
 
virtual double Eval (ElementTransformation &T, const IntegrationPoint &ip)=0
 
double Eval (ElementTransformation &T, const IntegrationPoint &ip, double t)
 
virtual ~Coefficient ()
 

Protected Attributes

double time
 

Detailed Description

Base class Coefficient that may optionally depend on time.

Definition at line 31 of file coefficient.hpp.

Constructor & Destructor Documentation

◆ Coefficient()

mfem::Coefficient::Coefficient ( )
inline

Definition at line 37 of file coefficient.hpp.

◆ ~Coefficient()

virtual mfem::Coefficient::~Coefficient ( )
inlinevirtual

Definition at line 52 of file coefficient.hpp.

Member Function Documentation

◆ Eval() [1/2]

virtual double mfem::Coefficient::Eval ( ElementTransformation T,
const IntegrationPoint ip 
)
pure virtual

◆ Eval() [2/2]

double mfem::Coefficient::Eval ( ElementTransformation T,
const IntegrationPoint ip,
double  t 
)
inline

Definition at line 45 of file coefficient.hpp.

◆ GetTime()

double mfem::Coefficient::GetTime ( )
inline

Definition at line 40 of file coefficient.hpp.

◆ SetTime()

void mfem::Coefficient::SetTime ( double  t)
inline

Definition at line 39 of file coefficient.hpp.

Member Data Documentation

◆ time

double mfem::Coefficient::time
protected

Definition at line 34 of file coefficient.hpp.


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