MFEM  v4.3.0 Finite element discretization library
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...

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 ()

int dim

double time

## Detailed Description

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

Definition at line 950 of file coefficient.hpp.

## Constructor & Destructor Documentation

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

Construct a dim x dim matrix coefficient.

Definition at line 958 of file coefficient.hpp.

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

Definition at line 978 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 968 of file coefficient.hpp.

 double mfem::SymmetricMatrixCoefficient::GetTime ( )
inline

Get the time for time dependent coefficients.

Definition at line 965 of file coefficient.hpp.

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

Set the time for time dependent coefficients.

Definition at line 962 of file coefficient.hpp.

## Member Data Documentation

 int mfem::SymmetricMatrixCoefficient::dim
protected

Definition at line 953 of file coefficient.hpp.

 double mfem::SymmetricMatrixCoefficient::time
protected

Definition at line 954 of file coefficient.hpp.

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