Class for flow fields with a continous velocity function. More...
#include <flow.hpp>
Public Member Functions | |
ContinuousFlowField (unsigned nx, unsigned ny) | |
ContinuousFlowField (unsigned nx, unsigned ny, std::vector< T > ¶meters) | |
void | SetCurrentVelocity () |
ContinuousVelocity< T, Func, Dim > & | CurrentVelocity () |
void | CopyInitialPositionToCurrentPosition () |
void | SetDirection (const Direction direction) |
![]() | |
FlowField (unsigned nx, unsigned ny) | |
auto & | InitialPosition () |
auto & | CurrentPosition () |
auto | GetTime () |
auto | GetDirection () |
void | SetDelta (const T delta) |
void | SetStep (const unsigned step) |
void | SetInitialTime (const T time) |
void | UpdateTime () |
void | UpdateTime (const T time) |
void | Run () |
Additional Inherited Members | |
![]() | |
const unsigned | nx_ |
const unsigned | ny_ |
T | delta_ |
T | initial_time_ |
T | current_time_ |
unsigned | step_ |
Direction | direction_ = Forward |
std::unique_ptr< Position< T, Dim > > | initial_pos_ |
std::unique_ptr< Position< T, Dim > > | current_pos_ |
std::shared_ptr< Velocity< T, Dim > > | current_vel_ |
Detailed Description
template<typename T, typename Func, unsigned Dim>
class LCS::ContinuousFlowField< T, Func, Dim >
Class for flow fields with a continous velocity function.
This class is used for representing flow fields with a given continous velocity function, which means that we could obtain the exact velocities of any point in the field.
- Template Parameters
-
T Numeric data type of all the numeric values in the flow. Func Continous velocity function for this field. Dim Dimension of the flow field (2 or 3).

Constructor & Destructor Documentation
|
inline |
Constructor for initializating the flow field.
- Parameters
-
nx The number of grid points in -direction.
ny The number of grid points in -direction.
|
inline |
Constructor for initializating the flow field that the velocity function has parameters.
- Parameters
-
nx The number of grid points in -direction.
ny The number of grid points in -direction.
parameters A vector that contains all the parameters of the velocity function.
Member Function Documentation
|
inlinevirtual |
Copy the initial position to the current position.
Reimplemented from LCS::FlowField< T, Dim >.
|
inlinevirtual |
Get the velocity field at the current time
- Returns
- ContinuousVelocity field that contains the current velocities.
Reimplemented from LCS::FlowField< T, Dim >.
|
inlinevirtual |
Calculate and set the current velocities of the flow particles using the velocity function.
Reimplemented from LCS::FlowField< T, Dim >.
|
inlinevirtual |
Set the advection direction.
- Parameters
-
direction Direction for particle advection.
Reimplemented from LCS::FlowField< T, Dim >.
The documentation for this class was generated from the following file:
- src/flow.hpp