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

#include <coefficient.hpp>

Inherited by HessianCoefficient, HessianCoefficient, mfem::IdentityMatrixCoefficient, mfem::InverseMatrixCoefficient, mfem::MatrixArrayCoefficient, mfem::MatrixConstantCoefficient, mfem::MatrixFunctionCoefficient, mfem::MatrixRestrictedCoefficient, mfem::MatrixSumCoefficient, mfem::OuterProductCoefficient, mfem::ScalarMatrixProductCoefficient, and mfem::TransposeMatrixCoefficient.

Public Member Functions

 MatrixCoefficient (int dim)
 
 MatrixCoefficient (int h, int w)
 
void SetTime (double t)
 
double GetTime ()
 
int GetHeight () const
 
int GetWidth () const
 
int GetVDim () const
 
virtual void Eval (DenseMatrix &K, ElementTransformation &T, const IntegrationPoint &ip)=0
 Evaluate the matrix coefficient in the element described by T at the point ip, storing the result in K. More...
 
virtual ~MatrixCoefficient ()
 

Protected Attributes

int height
 
int width
 
double time
 

Detailed Description

Definition at line 546 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::MatrixCoefficient::MatrixCoefficient ( int  dim)
inlineexplicit

Definition at line 553 of file coefficient.hpp.

mfem::MatrixCoefficient::MatrixCoefficient ( int  h,
int  w 
)
inline

Definition at line 555 of file coefficient.hpp.

virtual mfem::MatrixCoefficient::~MatrixCoefficient ( )
inlinevirtual

Definition at line 573 of file coefficient.hpp.

Member Function Documentation

virtual void mfem::MatrixCoefficient::Eval ( DenseMatrix K,
ElementTransformation T,
const IntegrationPoint ip 
)
pure 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).

Implemented in mfem::OuterProductCoefficient, mfem::InverseMatrixCoefficient, mfem::TransposeMatrixCoefficient, mfem::ScalarMatrixProductCoefficient, mfem::MatrixSumCoefficient, mfem::IdentityMatrixCoefficient, mfem::MatrixRestrictedCoefficient, mfem::MatrixArrayCoefficient, mfem::MatrixFunctionCoefficient, and mfem::MatrixConstantCoefficient.

int mfem::MatrixCoefficient::GetHeight ( ) const
inline

Definition at line 560 of file coefficient.hpp.

double mfem::MatrixCoefficient::GetTime ( )
inline

Definition at line 558 of file coefficient.hpp.

int mfem::MatrixCoefficient::GetVDim ( ) const
inline

Definition at line 563 of file coefficient.hpp.

int mfem::MatrixCoefficient::GetWidth ( ) const
inline

Definition at line 561 of file coefficient.hpp.

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

Definition at line 557 of file coefficient.hpp.

Member Data Documentation

int mfem::MatrixCoefficient::height
protected

Definition at line 549 of file coefficient.hpp.

double mfem::MatrixCoefficient::time
protected

Definition at line 550 of file coefficient.hpp.

int mfem::MatrixCoefficient::width
protected

Definition at line 549 of file coefficient.hpp.


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