LCS::VelocityFunction::DoubleGyreModel< T > Struct Template Reference
Double-gyre model. More...
#include <velocity_function.hpp>
Public Member Functions | |
| DoubleGyreModel () | |
| DoubleGyreModel (std::vector< T > &p) | |
| auto | operator() (const T x, const T y, const T t) const |
Public Attributes | |
| T | epsilon_ |
| T | a_ |
| T | omega_ |
Detailed Description
template<typename T>
struct LCS::VelocityFunction::DoubleGyreModel< T >
Double-gyre model.
The velocity function of the double-gyre model is implemented here. The model consists of a pair of counter-rotating gyres. [2]
The velocity for a given point
at time
is given by
and
where
,
and
.
- Template Parameters
-
T Numeric data type of the values.
Constructor & Destructor Documentation
template<typename T >
|
inline |
Constructor with default parameters.
template<typename T >
|
inline |
Constructor with customized parameters.
- Parameters
-
p A vector of parameters.
Member Function Documentation
template<typename T >
|
inline |
Get the velocity for a given point at a given time
- Parameters
-
x
-coordinate of the point. y
-coordinate of the point. t Time for velocity.
Member Data Documentation
template<typename T >
| T LCS::VelocityFunction::DoubleGyreModel< T >::a_ |
Parameter
for the model.
template<typename T >
| T LCS::VelocityFunction::DoubleGyreModel< T >::epsilon_ |
Parameter
for the model.
template<typename T >
| T LCS::VelocityFunction::DoubleGyreModel< T >::omega_ |
Parameter
for the model.
The documentation for this struct was generated from the following file:
