Public Member Functions | List of all members
CustomMotion Class Reference

Abstract class for custom motion of mesh generating points. More...

#include <CustomMotion.hpp>

Inheritance diagram for CustomMotion:
Inheritance graph
[legend]
Collaboration diagram for CustomMotion:
Collaboration graph
[legend]

Public Member Functions

 CustomMotion (PointMotion const &otherpm, CustomMotionCriteria const &criteria)
 Class constructor. More...
 
vector< Vector2Doperator() (const Tessellation &tess, const vector< ComputationalCell > &cells, double time, TracerStickerNames const &tracerstickernames) const
 Calculates the velocity of all mesh points. More...
 
vector< Vector2DApplyFix (Tessellation const &tess, vector< ComputationalCell > const &cells, double time, double dt, vector< Vector2D > const &velocities, TracerStickerNames const &tracerstickernames) const
 Applies a small fix to the velocity of all mesh points once the time step is known. More...
 
- Public Member Functions inherited from PointMotion
virtual ~PointMotion (void)
 Virtual destructor.
 

Detailed Description

Abstract class for custom motion of mesh generating points.

Definition at line 47 of file CustomMotion.hpp.

Constructor & Destructor Documentation

◆ CustomMotion()

CustomMotion::CustomMotion ( PointMotion const &  otherpm,
CustomMotionCriteria const &  criteria 
)

Class constructor.

Parameters
otherpmAnother point motion scheme
criteriaCriterion for when to use other scheme

Definition at line 5 of file CustomMotion.cpp.

Member Function Documentation

◆ ApplyFix()

vector< Vector2D > CustomMotion::ApplyFix ( Tessellation const &  tess,
vector< ComputationalCell > const &  cells,
double  time,
double  dt,
vector< Vector2D > const &  velocities,
TracerStickerNames const &  tracerstickernames 
) const
virtual

Applies a small fix to the velocity of all mesh points once the time step is known.

Parameters
tessThe tessellation
cellsHydrodynamics cells
timeThe simulation time
velocitiesVelocities of the points
dtThe time step
tracerstickernamesThe names of the tracers and stickers
Returns
The new velocities

Reimplemented from PointMotion.

Definition at line 14 of file CustomMotion.cpp.

Here is the call graph for this function:

◆ operator()()

vector< Vector2D > CustomMotion::operator() ( const Tessellation tess,
const vector< ComputationalCell > &  cells,
double  time,
TracerStickerNames const &  tracerstickernames 
) const
virtual

Calculates the velocity of all mesh points.

Parameters
tessThe tessellation
cellsHydrodynamics cells
timeThe simulation time
tracerstickernamesThe names of the tracers and stickers
Returns
Velocities of the points

Implements PointMotion.

Definition at line 8 of file CustomMotion.cpp.


The documentation for this class was generated from the following files: