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

#include <coefficient.hpp>

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

Public Member Functions

 MatrixFunctionCoefficient (int dim, void(*F)(const Vector &, DenseMatrix &), Coefficient *q=NULL)
 Construct a time-independent square matrix coefficient from a C-function. More...
 
 MatrixFunctionCoefficient (const DenseMatrix &m, Coefficient &q)
 Construct a constant matrix coefficient times a scalar Coefficient. More...
 
 MatrixFunctionCoefficient (int dim, void(*TDF)(const Vector &, double, DenseMatrix &), Coefficient *q=NULL)
 Construct a time-dependent square matrix coefficient from a C-function. More...
 
virtual void Eval (DenseMatrix &K, ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the matrix coefficient in the element described by T at the point ip, storing the result in K. More...
 
virtual ~MatrixFunctionCoefficient ()
 
- Public Member Functions inherited from mfem::MatrixCoefficient
 MatrixCoefficient (int dim)
 
 MatrixCoefficient (int h, int w)
 
void SetTime (double t)
 
double GetTime ()
 
int GetHeight () const
 
int GetWidth () const
 
int GetVDim () const
 
virtual ~MatrixCoefficient ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::MatrixCoefficient
int height
 
int width
 
double time
 

Detailed Description

Definition at line 588 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::MatrixFunctionCoefficient::MatrixFunctionCoefficient ( int  dim,
void(*)(const Vector &, DenseMatrix &)  F,
Coefficient q = NULL 
)
inline

Construct a time-independent square matrix coefficient from a C-function.

Definition at line 598 of file coefficient.hpp.

mfem::MatrixFunctionCoefficient::MatrixFunctionCoefficient ( const DenseMatrix m,
Coefficient q 
)
inline

Construct a constant matrix coefficient times a scalar Coefficient.

Definition at line 608 of file coefficient.hpp.

mfem::MatrixFunctionCoefficient::MatrixFunctionCoefficient ( int  dim,
void(*)(const Vector &, double, DenseMatrix &)  TDF,
Coefficient q = NULL 
)
inline

Construct a time-dependent square matrix coefficient from a C-function.

Definition at line 617 of file coefficient.hpp.

virtual mfem::MatrixFunctionCoefficient::~MatrixFunctionCoefficient ( )
inlinevirtual

Definition at line 630 of file coefficient.hpp.

Member Function Documentation

void mfem::MatrixFunctionCoefficient::Eval ( DenseMatrix K,
ElementTransformation T,
const IntegrationPoint ip 
)
virtual

Evaluate the matrix coefficient in the element described by T at the point ip, storing the result in K.

Note
When this method is called, the caller must make sure that the IntegrationPoint associated with T is the same as ip. This can be achieved by calling T.SetIntPoint(&ip).

Implements mfem::MatrixCoefficient.

Definition at line 288 of file coefficient.cpp.


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