MFEM  v4.4.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::SymmetricMatrixCoefficient Class Referenceabstract

Base class for symmetric matrix coefficients that optionally depend on time and space. More...

#include <coefficient.hpp>

Inheritance diagram for mfem::SymmetricMatrixCoefficient:
[legend]

Public Member Functions

 SymmetricMatrixCoefficient (int dimension)
 Construct a dim x dim matrix coefficient. More...
 
virtual void SetTime (double t)
 Set the time for time dependent coefficients. More...
 
double GetTime ()
 Get the time for time dependent coefficients. More...
 
int GetSize () const
 Get the size of the matrix. More...
 
virtual void Eval (DenseSymmetricMatrix &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 ~SymmetricMatrixCoefficient ()
 

Protected Attributes

int dim
 
double time
 

Detailed Description

Base class for symmetric matrix coefficients that optionally depend on time and space.

Definition at line 1250 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::SymmetricMatrixCoefficient::SymmetricMatrixCoefficient ( int  dimension)
inlineexplicit

Construct a dim x dim matrix coefficient.

Definition at line 1258 of file coefficient.hpp.

virtual mfem::SymmetricMatrixCoefficient::~SymmetricMatrixCoefficient ( )
inlinevirtual

Definition at line 1278 of file coefficient.hpp.

Member Function Documentation

virtual void mfem::SymmetricMatrixCoefficient::Eval ( DenseSymmetricMatrix 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::SymmetricMatrixFunctionCoefficient, and mfem::SymmetricMatrixConstantCoefficient.

int mfem::SymmetricMatrixCoefficient::GetSize ( ) const
inline

Get the size of the matrix.

Definition at line 1268 of file coefficient.hpp.

double mfem::SymmetricMatrixCoefficient::GetTime ( )
inline

Get the time for time dependent coefficients.

Definition at line 1265 of file coefficient.hpp.

virtual void mfem::SymmetricMatrixCoefficient::SetTime ( double  t)
inlinevirtual

Set the time for time dependent coefficients.

Reimplemented in mfem::SymmetricMatrixFunctionCoefficient.

Definition at line 1262 of file coefficient.hpp.

Member Data Documentation

int mfem::SymmetricMatrixCoefficient::dim
protected

Definition at line 1253 of file coefficient.hpp.

double mfem::SymmetricMatrixCoefficient::time
protected

Definition at line 1254 of file coefficient.hpp.


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