MFEM
v4.4.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 (double A, Coefficient &B) | |
RatioCoefficient (Coefficient &A, Coefficient &B) | |
RatioCoefficient (Coefficient &A, double B) | |
void | SetTime (double t) |
Set the time for internally stored coefficients. More... | |
void | SetAConst (double A) |
Reset the numerator in the ratio as a constant. More... | |
double | GetAConst () const |
Return the numerator of the ratio. More... | |
void | SetBConst (double B) |
Reset the denominator in the ratio as a constant. More... | |
double | GetBConst () const |
Return the denominator of the ratio. More... | |
void | SetACoef (Coefficient &A) |
Reset the numerator in the ratio. More... | |
Coefficient * | GetACoef () const |
Return the numerator of the ratio. More... | |
void | SetBCoef (Coefficient &B) |
Reset the denominator in the ratio. More... | |
Coefficient * | GetBCoef () const |
Return the denominator of the ratio. More... | |
virtual double | Eval (ElementTransformation &T, const IntegrationPoint &ip) |
Evaluate the coefficient. More... | |
Public Member Functions inherited from mfem::Coefficient | |
Coefficient () | |
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 ratio of two scalars where one or both scalars are scalar coefficients.
Definition at line 1395 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 1406 of file coefficient.hpp.
|
inline |
Initialize a coefficient which returns A / B where A and B are both scalar coefficients
Definition at line 1410 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 1414 of file coefficient.hpp.
|
inlinevirtual |
Evaluate the coefficient.
Implements mfem::Coefficient.
Definition at line 1441 of file coefficient.hpp.
|
inline |
Return the numerator of the ratio.
Definition at line 1433 of file coefficient.hpp.
|
inline |
Return the numerator of the ratio.
Definition at line 1423 of file coefficient.hpp.
|
inline |
Return the denominator of the ratio.
Definition at line 1438 of file coefficient.hpp.
|
inline |
Return the denominator of the ratio.
Definition at line 1428 of file coefficient.hpp.
|
inline |
Reset the numerator in the ratio.
Definition at line 1431 of file coefficient.hpp.
|
inline |
Reset the numerator in the ratio as a constant.
Definition at line 1421 of file coefficient.hpp.
|
inline |
Reset the denominator in the ratio.
Definition at line 1436 of file coefficient.hpp.
|
inline |
Reset the denominator in the ratio as a constant.
Definition at line 1426 of file coefficient.hpp.
|
virtual |
Set the time for internally stored coefficients.
Reimplemented from mfem::Coefficient.
Definition at line 792 of file coefficient.cpp.