LBIBCell
|
The LagrangianPoint class A class for storing a point's coordinates and its velocity This class is the base class for all points which have a velocity and can be at any position. More...
#include <LagrangianPoint.hpp>
Public Member Functions | |
LagrangianPoint (double x, double y) | |
LagrangianPoint Constructs a new point. More... | |
virtual | ~LagrangianPoint () |
~LagrangianPoint vitual Destructor | |
double | getXVelocity () const |
getXVelocity Getter for x-velocity component More... | |
double | getYVelocity () const |
getYVelocity Getter for the y-velocity component More... | |
Field< double > | getVelocity () const |
getVelocity Getter for the velocity More... | |
double | getXPos () const |
getXPos Getter for the X position More... | |
double | getYPos () const |
getYPos Getter for the Y position More... | |
Field< double > | getPos () const |
getPos Getter for the pos More... | |
virtual void | setPos (double x, double y) |
setPos Set the position new override this method to change default behaviour More... | |
void | setXPos (double x) |
setXPos Set a new x position. More... | |
void | setYPos (double y) |
setYPos Set a new y position. More... | |
virtual void | setVelocity (Field< double > velocity) |
setVelocity Set the velocity More... | |
virtual std::string | getType () const |
getType The type of a node class More... | |
The LagrangianPoint class A class for storing a point's coordinates and its velocity This class is the base class for all points which have a velocity and can be at any position.
Definition at line 35 of file LagrangianPoint.hpp.
|
explicit |
LagrangianPoint Constructs a new point.
x | The x position |
y | The y position |
Definition at line 35 of file LagrangianPoint.cpp.
Field< double > LbmLib::nodes::LagrangianPoint::getPos | ( | ) | const |
|
virtual |
getType The type of a node class
Reimplemented in LbmLib::nodes::GeometryNode, and LbmLib::nodes::BoundaryNode.
Definition at line 88 of file LagrangianPoint.cpp.
Field< double > LbmLib::nodes::LagrangianPoint::getVelocity | ( | ) | const |
getVelocity Getter for the velocity
Definition at line 51 of file LagrangianPoint.cpp.
double LbmLib::nodes::LagrangianPoint::getXPos | ( | ) | const |
getXPos Getter for the X position
Definition at line 57 of file LagrangianPoint.cpp.
double LbmLib::nodes::LagrangianPoint::getXVelocity | ( | ) | const |
getXVelocity Getter for x-velocity component
Definition at line 43 of file LagrangianPoint.cpp.
double LbmLib::nodes::LagrangianPoint::getYPos | ( | ) | const |
getYPos Getter for the Y position
Definition at line 61 of file LagrangianPoint.cpp.
double LbmLib::nodes::LagrangianPoint::getYVelocity | ( | ) | const |
getYVelocity Getter for the y-velocity component
Definition at line 47 of file LagrangianPoint.cpp.
|
virtual |
setPos Set the position new override this method to change default behaviour
x | The new x position |
y | The new y position |
Reimplemented in LbmLib::nodes::GeometryNode.
Definition at line 69 of file LagrangianPoint.cpp.
|
virtual |
setVelocity Set the velocity
velocity | The new velocity |
Definition at line 92 of file LagrangianPoint.cpp.
void LbmLib::nodes::LagrangianPoint::setXPos | ( | double | x | ) |
setXPos Set a new x position.
x | The new x position. |
Definition at line 76 of file LagrangianPoint.cpp.
void LbmLib::nodes::LagrangianPoint::setYPos | ( | double | y | ) |
setYPos Set a new y position.
y | The new y position |
Definition at line 82 of file LagrangianPoint.cpp.