MFEM
v4.4.0
Finite element discretization library
|
Base class for vector Coefficients that optionally depend on time and space. More...
#include <coefficient.hpp>
Public Member Functions | |
VectorCoefficient (int vd) | |
Initialize the VectorCoefficient with vector dimension vd. More... | |
virtual void | SetTime (double t) |
Set the time for time dependent coefficients. More... | |
double | GetTime () |
Get the time for time dependent coefficients. More... | |
int | GetVDim () |
Returns dimension of the vector. More... | |
virtual void | Eval (Vector &V, ElementTransformation &T, const IntegrationPoint &ip)=0 |
Evaluate the vector coefficient in the element described by T at the point ip, storing the result in V. More... | |
virtual void | Eval (DenseMatrix &M, ElementTransformation &T, const IntegrationRule &ir) |
Evaluate the vector coefficient in the element described by T at all points of ir, storing the result in M. More... | |
virtual | ~VectorCoefficient () |
Protected Attributes | |
int | vdim |
double | time |
Base class for vector Coefficients that optionally depend on time and space.
Definition at line 432 of file coefficient.hpp.
|
inline |
Initialize the VectorCoefficient with vector dimension vd.
Definition at line 440 of file coefficient.hpp.
|
inlinevirtual |
Definition at line 474 of file coefficient.hpp.
|
pure virtual |
Evaluate the vector coefficient in the element described by T at the point ip, storing the result in V.
Implemented in mfem::VectorQuadratureFunctionCoefficient, mfem::NodeExtrudeCoefficient, mfem::MatrixVectorProductCoefficient, mfem::VectorCrossProductCoefficient, mfem::NormalizedVectorCoefficient, mfem::ScalarVectorProductCoefficient, mfem::VectorSumCoefficient, mfem::VectorRestrictedCoefficient, mfem::VectorDeltaCoefficient, mfem::CurlGridFunctionCoefficient, mfem::GradientGridFunctionCoefficient, mfem::VectorGridFunctionCoefficient, mfem::VectorArrayCoefficient, mfem::VectorFunctionCoefficient, mfem::PWVectorCoefficient, mfem::VectorConstantCoefficient, Dist_Vector_Coefficient, mfem::NormalizedGradCoefficient, mfem::LevelSetNormalGradCoeff, and mfem::ShiftedVectorFunctionCoefficient.
|
virtual |
Evaluate the vector coefficient in the element described by T at all points of ir, storing the result in M.
The dimensions of M are GetVDim() by ir.GetNPoints() and they must be set by the implementation of this method.
The general implementation provided by the base class (using the Eval method for one IntegrationPoint at a time) can be overloaded for more efficient implementation.
Reimplemented in mfem::VectorRestrictedCoefficient, mfem::GradientGridFunctionCoefficient, and mfem::VectorGridFunctionCoefficient.
Definition at line 192 of file coefficient.cpp.
|
inline |
Get the time for time dependent coefficients.
Definition at line 446 of file coefficient.hpp.
|
inline |
Returns dimension of the vector.
Definition at line 449 of file coefficient.hpp.
|
inlinevirtual |
Set the time for time dependent coefficients.
Reimplemented in mfem::MatrixVectorProductCoefficient, mfem::VectorCrossProductCoefficient, mfem::NormalizedVectorCoefficient, mfem::ScalarVectorProductCoefficient, mfem::VectorSumCoefficient, mfem::VectorRestrictedCoefficient, mfem::VectorDeltaCoefficient, mfem::VectorArrayCoefficient, and mfem::PWVectorCoefficient.
Definition at line 443 of file coefficient.hpp.
|
protected |
Definition at line 436 of file coefficient.hpp.
|
protected |
Definition at line 435 of file coefficient.hpp.