![]() |
MFEM
v4.2.0
Finite element discretization library
|
Vector coefficient defined by a scalar DeltaCoefficient and a constant vector direction. More...
#include <coefficient.hpp>
Public Member Functions | |
| VectorDeltaCoefficient (int _vdim) | |
| Construct with a vector of dimension _vdim. More... | |
| VectorDeltaCoefficient (const Vector &_dir) | |
| Construct with a Vector object representing the direction and a unit delta function centered at (0.0,0.0,0.0) More... | |
| VectorDeltaCoefficient (const Vector &_dir, double x, double s) | |
| Construct with a Vector object representing the direction and a delta function scaled by s and centered at (x,0.0,0.0) More... | |
| VectorDeltaCoefficient (const Vector &_dir, double x, double y, double s) | |
| Construct with a Vector object representing the direction and a delta function scaled by s and centered at (x,y,0.0) More... | |
| VectorDeltaCoefficient (const Vector &_dir, double x, double y, double z, double s) | |
| Construct with a Vector object representing the direction and a delta function scaled by s and centered at (x,y,z) More... | |
| void | SetDeltaCoefficient (const DeltaCoefficient &_d) |
| Replace the associated DeltaCoefficient with a new DeltaCoefficient. More... | |
| DeltaCoefficient & | GetDeltaCoefficient () |
| Return the associated scalar DeltaCoefficient. More... | |
| void | SetScale (double s) |
| void | SetDirection (const Vector &_d) |
| void | SetDeltaCenter (const Vector ¢er) |
| void | GetDeltaCenter (Vector ¢er) |
| virtual void | EvalDelta (Vector &V, ElementTransformation &T, const IntegrationPoint &ip) |
| Return the specified direction vector multiplied by the value returned by DeltaCoefficient::EvalDelta() of the associated scalar DeltaCoefficient. More... | |
| virtual void | Eval (Vector &V, ElementTransformation &T, const IntegrationPoint &ip) |
| A VectorDeltaFunction cannot be evaluated. Calling this method will cause an MFEM error, terminating the application. More... | |
| virtual | ~VectorDeltaCoefficient () |
Public Member Functions inherited from mfem::VectorCoefficient | |
| VectorCoefficient (int vd) | |
| Initialize the VectorCoefficient with vector dimension vd. More... | |
| 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 (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 | |
| Vector | dir |
| DeltaCoefficient | d |
Protected Attributes inherited from mfem::VectorCoefficient | |
| int | vdim |
| double | time |
Vector coefficient defined by a scalar DeltaCoefficient and a constant vector direction.
WARNING this cannot be used as a normal coefficient. The usual Eval method is disabled.
Definition at line 603 of file coefficient.hpp.
|
inline |
Construct with a vector of dimension _vdim.
Definition at line 611 of file coefficient.hpp.
|
inline |
Construct with a Vector object representing the direction and a unit delta function centered at (0.0,0.0,0.0)
Definition at line 616 of file coefficient.hpp.
|
inline |
Construct with a Vector object representing the direction and a delta function scaled by s and centered at (x,0.0,0.0)
Definition at line 621 of file coefficient.hpp.
|
inline |
Construct with a Vector object representing the direction and a delta function scaled by s and centered at (x,y,0.0)
Definition at line 626 of file coefficient.hpp.
|
inline |
Construct with a Vector object representing the direction and a delta function scaled by s and centered at (x,y,z)
Definition at line 631 of file coefficient.hpp.
|
inlinevirtual |
Definition at line 661 of file coefficient.hpp.
|
inlinevirtual |
A VectorDeltaFunction cannot be evaluated. Calling this method will cause an MFEM error, terminating the application.
Implements mfem::VectorCoefficient.
Definition at line 658 of file coefficient.hpp.
|
virtual |
Return the specified direction vector multiplied by the value returned by DeltaCoefficient::EvalDelta() of the associated scalar DeltaCoefficient.
Definition at line 256 of file coefficient.cpp.
|
inline |
Definition at line 647 of file coefficient.hpp.
|
inline |
Return the associated scalar DeltaCoefficient.
Definition at line 641 of file coefficient.hpp.
|
inline |
Definition at line 646 of file coefficient.hpp.
|
inline |
Replace the associated DeltaCoefficient with a new DeltaCoefficient.
The new DeltaCoefficient cannot have a specified weight Coefficient, i.e. DeltaCoefficient::Weight() should return NULL.
Definition at line 638 of file coefficient.hpp.
| void mfem::VectorDeltaCoefficient::SetDirection | ( | const Vector & | _d | ) |
Definition at line 250 of file coefficient.cpp.
|
inline |
Definition at line 643 of file coefficient.hpp.
|
protected |
Definition at line 607 of file coefficient.hpp.
|
protected |
Definition at line 606 of file coefficient.hpp.
1.8.5