MFEM v4.10.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::MatrixComponentCoefficient Class Reference

Scalar coefficient defined as component of a matrix coefficient. More...

#include <coefficient.hpp>

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

Public Member Functions

 MatrixComponentCoefficient (MatrixCoefficient &A)
 Construct with a matrix coefficient.
 
 MatrixComponentCoefficient (MatrixCoefficient &A, int ri, int ci)
 Construct with the matrix coefficient.
 
void SetTime (real_t t) override
 Set the time for internally stored coefficients.
 
void SetACoef (MatrixCoefficient &A)
 Reset the matrix coefficient.
 
MatrixCoefficientGetACoef () const
 Return the matrix coefficient.
 
void SetRowIndex (int ri)
 Reset the index.
 
int GetRowIndex () const
 Return the index.
 
void SetColumnIndex (int ci)
 Reset the index.
 
int GetColumnIndex () const
 Return the index.
 
real_t Eval (ElementTransformation &T, const IntegrationPoint &ip) override
 Evaluate the component coefficient at ip.
 
- Public Member Functions inherited from mfem::Coefficient
 Coefficient ()
 
real_t GetTime ()
 Get the time for time dependent coefficients.
 
int GetVDim ()
 Returns dimension of the vector.
 
real_t Eval (ElementTransformation &T, const IntegrationPoint &ip, real_t t)
 Evaluate the coefficient in the element described by T at the point ip at time t.
 
virtual void Project (QuadratureFunction &qf)
 Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points.
 
virtual ~Coefficient ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::Coefficient
real_t time
 

Detailed Description

Scalar coefficient defined as component of a matrix coefficient.

Definition at line 1920 of file coefficient.hpp.

Constructor & Destructor Documentation

◆ MatrixComponentCoefficient() [1/2]

mfem::MatrixComponentCoefficient::MatrixComponentCoefficient ( MatrixCoefficient & A)
inline

Construct with a matrix coefficient.

Definition at line 1930 of file coefficient.hpp.

◆ MatrixComponentCoefficient() [2/2]

mfem::MatrixComponentCoefficient::MatrixComponentCoefficient ( MatrixCoefficient & A,
int ri,
int ci )

Construct with the matrix coefficient.

Definition at line 1340 of file coefficient.cpp.

Member Function Documentation

◆ Eval()

real_t mfem::MatrixComponentCoefficient::Eval ( ElementTransformation & T,
const IntegrationPoint & ip )
overridevirtual

Evaluate the component coefficient at ip.

Implements mfem::Coefficient.

Definition at line 1371 of file coefficient.cpp.

◆ GetACoef()

MatrixCoefficient * mfem::MatrixComponentCoefficient::GetACoef ( ) const
inline

Return the matrix coefficient.

Definition at line 1943 of file coefficient.hpp.

◆ GetColumnIndex()

int mfem::MatrixComponentCoefficient::GetColumnIndex ( ) const
inline

Return the index.

Definition at line 1955 of file coefficient.hpp.

◆ GetRowIndex()

int mfem::MatrixComponentCoefficient::GetRowIndex ( ) const
inline

Return the index.

Definition at line 1949 of file coefficient.hpp.

◆ SetACoef()

void mfem::MatrixComponentCoefficient::SetACoef ( MatrixCoefficient & A)
inline

Reset the matrix coefficient.

Definition at line 1940 of file coefficient.hpp.

◆ SetColumnIndex()

void mfem::MatrixComponentCoefficient::SetColumnIndex ( int ci)

Reset the index.

Definition at line 1357 of file coefficient.cpp.

◆ SetRowIndex()

void mfem::MatrixComponentCoefficient::SetRowIndex ( int ri)

Reset the index.

Definition at line 1348 of file coefficient.cpp.

◆ SetTime()

void mfem::MatrixComponentCoefficient::SetTime ( real_t t)
overridevirtual

Set the time for internally stored coefficients.

Reimplemented from mfem::Coefficient.

Definition at line 1365 of file coefficient.cpp.


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