#include <flowData.h>
Public Member Functions | |
vector5f (void) | |
vector5f (float nx, float ny, float nz, float np, float nv) | |
void | setVecor5f (float nx, float ny, float nz, float np, float nv) |
double | length () |
double | getAngle () |
Public Attributes | |
float | x |
float | y |
float | z |
float | p |
float | v |
vector5f::vector5f | ( | void | ) |
constructor
vector5f::vector5f | ( | float | nx, | |
float | ny, | |||
float | nz, | |||
float | np, | |||
float | nv | |||
) |
overloaded constructor
nx | - new xvelocity value | |
ny | - new yvelocity value | |
nz | - new zvelocity value | |
np | - new pressure value | |
nv | - new vorticity value |
void vector5f::setVecor5f | ( | float | nx, | |
float | ny, | |||
float | nz, | |||
float | np, | |||
float | nv | |||
) |
Function to set the values of the struct object.
nx | - new xvelocity value | |
ny | - new yvelocity value | |
nz | - new zvelocity value | |
np | - new pressure value | |
nv | - new vorticity value |
double vector5f::length | ( | ) |
This function returns the length of the Velocity vector of the struct.
double vector5f::getAngle | ( | ) |
This function calculated the angle from the velocity vector to the vector <0, 1, 0>
float vector5f::x |
float vector5f::y |
xValue of the velocity
float vector5f::z |
yValue of the velocity
float vector5f::p |
zValue of the velocity
float vector5f::v |
pressure