![]() |
MFEM v4.8.0
Finite element discretization library
|
#include <mesh_extras.hpp>
Public Member Functions | |
SpiralTransformation (int dim_, real_t turns_=1.0, real_t width_=0.1, real_t gap_=0.05, real_t height_=1.0) | |
void | Eval (Vector &V, ElementTransformation &T, const IntegrationPoint &ip) override |
Evaluate the vector coefficient in the element described by T at the point ip, storing the result in V. | |
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. | |
![]() | |
VectorCoefficient (int vd) | |
Initialize the VectorCoefficient with vector dimension vd. | |
virtual void | SetTime (real_t t) |
Set the time for time dependent coefficients. | |
real_t | GetTime () |
Get the time for time dependent coefficients. | |
int | GetVDim () |
Returns dimension of the vector. | |
virtual void | Project (QuadratureFunction &qf) |
Fill the QuadratureFunction qf by evaluating the coefficient at the quadrature points. | |
virtual | ~VectorCoefficient () |
Additional Inherited Members | |
![]() | |
int | vdim |
real_t | time |
Transform a [0,1]^D mesh into a spiral. The parameters are: turns - number of turns around the origin, width - for D >= 2, the width of the spiral arm, @ gap - gap between adjacent spiral arms at the end of each turn, @ height - for D = 3, the maximum height of the spiral.
Definition at line 115 of file mesh_extras.hpp.
|
inline |
Definition at line 121 of file mesh_extras.hpp.
|
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 from mfem::VectorCoefficient.
Definition at line 605 of file coefficient.cpp.
|
overridevirtual |
Evaluate the vector coefficient in the element described by T at the point ip, storing the result in V.
Implements mfem::VectorCoefficient.
Definition at line 302 of file mesh_extras.cpp.