MFEM v4.7.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) |
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. | |
virtual void | Eval (DenseMatrix &M, ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate the matrix coefficient at ip. | |
Public Member Functions inherited from mfem::MatrixCoefficient | |
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 | |
Protected Attributes inherited from mfem::MatrixCoefficient | |
int | height |
int | width |
real_t | time |
bool | symmetric |
Matrix coefficient defined as the linear combination of two matrices.
Definition at line 2003 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 1213 of file coefficient.cpp.
|
virtual |
Evaluate the matrix coefficient at ip.
Implements mfem::MatrixCoefficient.
Definition at line 1232 of file coefficient.cpp.
|
inline |
Return the first matrix coefficient.
Definition at line 2025 of file coefficient.hpp.
|
inline |
Return the factor in front of the first matrix coefficient.
Definition at line 2035 of file coefficient.hpp.
|
inline |
Return the second matrix coefficient.
Definition at line 2030 of file coefficient.hpp.
|
inline |
Return the factor in front of the second matrix coefficient.
Definition at line 2040 of file coefficient.hpp.
|
inline |
Reset the first matrix coefficient.
Definition at line 2023 of file coefficient.hpp.
|
inline |
Reset the factor in front of the first matrix coefficient.
Definition at line 2033 of file coefficient.hpp.
|
inline |
Reset the second matrix coefficient.
Definition at line 2028 of file coefficient.hpp.
|
inline |
Reset the factor in front of the second matrix coefficient.
Definition at line 2038 of file coefficient.hpp.
|
virtual |
Set the time for internally stored coefficients.
Reimplemented from mfem::MatrixCoefficient.
Definition at line 1225 of file coefficient.cpp.