MFEM  v3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
mfem::FunctionCoefficient Class Reference

class for C-function coefficient More...

#include <coefficient.hpp>

Inheritance diagram for mfem::FunctionCoefficient:
[legend]
Collaboration diagram for mfem::FunctionCoefficient:
[legend]

Public Member Functions

 FunctionCoefficient (double(*f)(Vector &))
 Define a time-independent coefficient from a C-function. More...
 
 FunctionCoefficient (double(*tdf)(Vector &, double))
 Define a time-dependent coefficient from a C-function. More...
 
virtual double Eval (ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate 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 ()
 

Protected Attributes

double(* Function )(Vector &)
 
double(* TDFunction )(Vector &, double)
 
- Protected Attributes inherited from mfem::Coefficient
double time
 

Detailed Description

class for C-function coefficient

Definition at line 103 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::FunctionCoefficient::FunctionCoefficient ( double(*)(Vector &)  f)
inline

Define a time-independent coefficient from a C-function.

Definition at line 111 of file coefficient.hpp.

mfem::FunctionCoefficient::FunctionCoefficient ( double(*)(Vector &, double)  tdf)
inline

Define a time-dependent coefficient from a C-function.

Definition at line 118 of file coefficient.hpp.

Member Function Documentation

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

Evaluate coefficient.

Implements mfem::Coefficient.

Definition at line 31 of file coefficient.cpp.

Member Data Documentation

double(* mfem::FunctionCoefficient::Function)(Vector &)
protected

Definition at line 106 of file coefficient.hpp.

double(* mfem::FunctionCoefficient::TDFunction)(Vector &, double)
protected

Definition at line 107 of file coefficient.hpp.


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