MFEM v4.7.0
Finite element discretization library
|
Scalar coefficient defined as the ratio of two scalars where one or both scalars are scalar coefficients. More...
#include <coefficient.hpp>
Public Member Functions | |
RatioCoefficient (real_t A, Coefficient &B) | |
RatioCoefficient (Coefficient &A, Coefficient &B) | |
RatioCoefficient (Coefficient &A, real_t B) | |
void | SetTime (real_t t) |
Set the time for internally stored coefficients. | |
void | SetAConst (real_t A) |
Reset the numerator in the ratio as a constant. | |
real_t | GetAConst () const |
Return the numerator of the ratio. | |
void | SetBConst (real_t B) |
Reset the denominator in the ratio as a constant. | |
real_t | GetBConst () const |
Return the denominator of the ratio. | |
void | SetACoef (Coefficient &A) |
Reset the numerator in the ratio. | |
Coefficient * | GetACoef () const |
Return the numerator of the ratio. | |
void | SetBCoef (Coefficient &B) |
Reset the denominator in the ratio. | |
Coefficient * | GetBCoef () const |
Return the denominator of the ratio. | |
virtual real_t | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate the coefficient. | |
Public Member Functions inherited from mfem::Coefficient | |
Coefficient () | |
real_t | GetTime () |
Get the time for time dependent coefficients. | |
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 |
Scalar coefficient defined as the ratio of two scalars where one or both scalars are scalar coefficients.
Definition at line 1588 of file coefficient.hpp.
|
inline |
Initialize a coefficient which returns A / B where A is a constant and B is a scalar coefficient
Definition at line 1599 of file coefficient.hpp.
|
inline |
Initialize a coefficient which returns A / B where A and B are both scalar coefficients
Definition at line 1603 of file coefficient.hpp.
|
inline |
Initialize a coefficient which returns A / B where A is a scalar coefficient and B is a constant
Definition at line 1607 of file coefficient.hpp.
|
inlinevirtual |
Evaluate the coefficient.
Implements mfem::Coefficient.
Definition at line 1634 of file coefficient.hpp.
|
inline |
Return the numerator of the ratio.
Definition at line 1626 of file coefficient.hpp.
|
inline |
Return the numerator of the ratio.
Definition at line 1616 of file coefficient.hpp.
|
inline |
Return the denominator of the ratio.
Definition at line 1631 of file coefficient.hpp.
|
inline |
Return the denominator of the ratio.
Definition at line 1621 of file coefficient.hpp.
|
inline |
Reset the numerator in the ratio.
Definition at line 1624 of file coefficient.hpp.
|
inline |
Reset the numerator in the ratio as a constant.
Definition at line 1614 of file coefficient.hpp.
|
inline |
Reset the denominator in the ratio.
Definition at line 1629 of file coefficient.hpp.
|
inline |
Reset the denominator in the ratio as a constant.
Definition at line 1619 of file coefficient.hpp.
|
virtual |
Set the time for internally stored coefficients.
Reimplemented from mfem::Coefficient.
Definition at line 962 of file coefficient.cpp.