MFEM  v4.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 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 545 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::MatrixCoefficient::MatrixCoefficient ( int  dim)

Definition at line 552 of file coefficient.hpp.

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

Definition at line 554 of file coefficient.hpp.

virtual mfem::MatrixCoefficient::~MatrixCoefficient ( )

Definition at line 572 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.

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

Definition at line 559 of file coefficient.hpp.

double mfem::MatrixCoefficient::GetTime ( )

Definition at line 557 of file coefficient.hpp.

int mfem::MatrixCoefficient::GetVDim ( ) const

Definition at line 562 of file coefficient.hpp.

int mfem::MatrixCoefficient::GetWidth ( ) const

Definition at line 560 of file coefficient.hpp.

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

Definition at line 556 of file coefficient.hpp.

Member Data Documentation

int mfem::MatrixCoefficient::height

Definition at line 548 of file coefficient.hpp.

double mfem::MatrixCoefficient::time

Definition at line 549 of file coefficient.hpp.

int mfem::MatrixCoefficient::width

Definition at line 548 of file coefficient.hpp.

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