![]() |
MFEM v4.8.0
Finite element discretization library
|
Matrix coefficient defined as the linear combination of two matrices. More...
#include <coefficient.hpp>
Public Member Functions | |
MatrixSumCoefficient (MatrixCoefficient &A, MatrixCoefficient &B, real_t alpha_=1.0, real_t beta_=1.0) | |
Construct with the two coefficients. Result is alpha_ * A + beta_ * B. | |
void | SetTime (real_t t) override |
Set the time for internally stored coefficients. | |
void | SetACoef (MatrixCoefficient &A) |
Reset the first matrix coefficient. | |
MatrixCoefficient * | GetACoef () const |
Return the first matrix coefficient. | |
void | SetBCoef (MatrixCoefficient &B) |
Reset the second matrix coefficient. | |
MatrixCoefficient * | GetBCoef () const |
Return the second matrix coefficient. | |
void | SetAlpha (real_t alpha_) |
Reset the factor in front of the first matrix coefficient. | |
real_t | GetAlpha () const |
Return the factor in front of the first matrix coefficient. | |
void | SetBeta (real_t beta_) |
Reset the factor in front of the second matrix coefficient. | |
real_t | GetBeta () const |
Return the factor in front of the second matrix coefficient. | |
void | Eval (DenseMatrix &M, ElementTransformation &T, const IntegrationPoint &ip) override |
Evaluate the matrix coefficient at ip. | |
![]() | |
MatrixCoefficient (int dim, bool symm=false) | |
Construct a dim x dim matrix coefficient. | |
MatrixCoefficient (int h, int w, bool symm=false) | |
Construct a h x w matrix coefficient. | |
real_t | GetTime () |
Get the time for time dependent coefficients. | |
int | GetHeight () const |
Get the height of the matrix. | |
int | GetWidth () const |
Get the width of the matrix. | |
int | GetVDim () const |
For backward compatibility get the width of the matrix. | |
bool | IsSymmetric () const |
virtual void | Project (QuadratureFunction &qf, bool transpose=false) |
Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points. The matrix will be transposed or not according to the boolean argument transpose. | |
virtual void | EvalSymmetric (Vector &K, ElementTransformation &T, const IntegrationPoint &ip) |
(DEPRECATED) Evaluate a symmetric matrix coefficient. | |
virtual | ~MatrixCoefficient () |
Additional Inherited Members | |
![]() | |
int | height |
int | width |
real_t | time |
bool | symmetric |
Matrix coefficient defined as the linear combination of two matrices.
Definition at line 2092 of file coefficient.hpp.
mfem::MatrixSumCoefficient::MatrixSumCoefficient | ( | MatrixCoefficient & | A, |
MatrixCoefficient & | B, | ||
real_t | alpha_ = 1.0, | ||
real_t | beta_ = 1.0 ) |
Construct with the two coefficients. Result is alpha_ * A + beta_ * B.
Definition at line 1303 of file coefficient.cpp.
|
overridevirtual |
Evaluate the matrix coefficient at ip.
Implements mfem::MatrixCoefficient.
Definition at line 1322 of file coefficient.cpp.
|
inline |
Return the first matrix coefficient.
Definition at line 2114 of file coefficient.hpp.
|
inline |
Return the factor in front of the first matrix coefficient.
Definition at line 2124 of file coefficient.hpp.
|
inline |
Return the second matrix coefficient.
Definition at line 2119 of file coefficient.hpp.
|
inline |
Return the factor in front of the second matrix coefficient.
Definition at line 2129 of file coefficient.hpp.
|
inline |
Reset the first matrix coefficient.
Definition at line 2112 of file coefficient.hpp.
|
inline |
Reset the factor in front of the first matrix coefficient.
Definition at line 2122 of file coefficient.hpp.
|
inline |
Reset the second matrix coefficient.
Definition at line 2117 of file coefficient.hpp.
|
inline |
Reset the factor in front of the second matrix coefficient.
Definition at line 2127 of file coefficient.hpp.
|
overridevirtual |
Set the time for internally stored coefficients.
Reimplemented from mfem::MatrixCoefficient.
Definition at line 1315 of file coefficient.cpp.