MFEM
v4.2.0
Finite element discretization library
|
Scalar coefficient defined as the product of two scalar coefficients or a scalar and a scalar coefficient. More...
#include <coefficient.hpp>
Public Member Functions | |
ProductCoefficient (double A, Coefficient &B) | |
Constructor with one coefficient. Result is A * B. More... | |
ProductCoefficient (Coefficient &A, Coefficient &B) | |
Constructor with two coefficients. Result is A * B. More... | |
void | SetAConst (double A) |
Reset the first term in the product as a constant. More... | |
double | GetAConst () const |
Return the first term in the product. More... | |
void | SetACoef (Coefficient &A) |
Reset the first term in the product. More... | |
Coefficient * | GetACoef () const |
Return the first term in the product. More... | |
void | SetBCoef (Coefficient &B) |
Reset the second term in the product. More... | |
Coefficient * | GetBCoef () const |
Return the second term in the product. More... | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate the coefficient at ip. More... | |
Public Member Functions inherited from mfem::Coefficient | |
Coefficient () | |
void | SetTime (double t) |
Set the time for time dependent coefficients. More... | |
double | GetTime () |
Get the time for time dependent coefficients. More... | |
double | Eval (ElementTransformation &T, const IntegrationPoint &ip, double t) |
Evaluate the coefficient in the element described by T at the point ip at time t. More... | |
virtual | ~Coefficient () |
Additional Inherited Members | |
Protected Attributes inherited from mfem::Coefficient | |
double | time |
Scalar coefficient defined as the product of two scalar coefficients or a scalar and a scalar coefficient.
Definition at line 945 of file coefficient.hpp.
|
inline |
Constructor with one coefficient. Result is A * B.
Definition at line 954 of file coefficient.hpp.
|
inline |
Constructor with two coefficients. Result is A * B.
Definition at line 958 of file coefficient.hpp.
|
inlinevirtual |
Evaluate the coefficient at ip.
Implements mfem::Coefficient.
Definition at line 977 of file coefficient.hpp.
|
inline |
Return the first term in the product.
Definition at line 969 of file coefficient.hpp.
|
inline |
Return the first term in the product.
Definition at line 964 of file coefficient.hpp.
|
inline |
Return the second term in the product.
Definition at line 974 of file coefficient.hpp.
|
inline |
Reset the first term in the product.
Definition at line 967 of file coefficient.hpp.
|
inline |
Reset the first term in the product as a constant.
Definition at line 962 of file coefficient.hpp.
|
inline |
Reset the second term in the product.
Definition at line 972 of file coefficient.hpp.