![]() |
MFEM v4.10.0
Finite element discretization library
|
Scalar coefficient defined as component of a vector coefficient. More...
#include <coefficient.hpp>
Public Member Functions | |
| VectorComponentCoefficient (VectorCoefficient &A) | |
| Construct with a vector coefficient. | |
| VectorComponentCoefficient (VectorCoefficient &A, int c) | |
| Construct with a vector coefficient and a component index c. | |
| void | SetTime (real_t t) override |
| Set the time for internally stored coefficients. | |
| void | SetACoef (VectorCoefficient &A) |
| Reset the vector coefficient. | |
| VectorCoefficient * | GetACoef () const |
| Return the vector coefficient. | |
| void | SetComponent (int c) |
| Set the component. | |
| int | GetComponent () const |
| Return the component. | |
| real_t | Eval (ElementTransformation &T, const IntegrationPoint &ip) override |
| Evaluate the component coefficient at ip. | |
Public Member Functions inherited from mfem::Coefficient | |
| Coefficient () | |
| real_t | GetTime () |
| Get the time for time dependent coefficients. | |
| int | GetVDim () |
| Returns dimension of the vector. | |
| 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 component of a vector coefficient.
Definition at line 1883 of file coefficient.hpp.
|
inline |
Construct with a vector coefficient.
Definition at line 1893 of file coefficient.hpp.
| mfem::VectorComponentCoefficient::VectorComponentCoefficient | ( | VectorCoefficient & | A, |
| int | c ) |
Construct with a vector coefficient and a component index c.
Definition at line 1311 of file coefficient.cpp.
|
overridevirtual |
Evaluate the component coefficient at ip.
Implements mfem::Coefficient.
Definition at line 1333 of file coefficient.cpp.
|
inline |
Return the vector coefficient.
Definition at line 1906 of file coefficient.hpp.
|
inline |
Return the component.
Definition at line 1912 of file coefficient.hpp.
|
inline |
Reset the vector coefficient.
Definition at line 1903 of file coefficient.hpp.
| void mfem::VectorComponentCoefficient::SetComponent | ( | int | c | ) |
Set the component.
Definition at line 1318 of file coefficient.cpp.
|
overridevirtual |
Set the time for internally stored coefficients.
Reimplemented from mfem::Coefficient.
Definition at line 1327 of file coefficient.cpp.