cuIBM
A GPU-based Immersed Boundary Method code
|
Contains information about an immersed boundary in the flow. More...
#include <body.h>
Public Member Functions | |
void | update (real Time) |
Updates the position of the center of rotation of the body, as well as its the translational and rotational velocities. More... | |
void | reset () |
Resets the position and motion of the body. More... | |
Public Attributes | |
int | numPoints |
number of boundary points More... | |
vecH | X |
reference x-coordinate of boundary points More... | |
vecH | Y |
reference y-coordinate of boundary points More... | |
real | X0 [2] |
reference center of rotation More... | |
real | Xc0 [2] |
initial position of center of rotation More... | |
real | Theta0 |
initial angle of attack More... | |
real | Xc [2] |
actual center of rotation (x- and y-coordinates) More... | |
real | Theta |
actual angle of attack (counterclockwise is positive) More... | |
real | vel [2] |
translational velocity (x- and y- components) More... | |
real | angVel |
angular velocity (counterlockwise is positive) More... | |
bool | moving [2] |
flag to indicate if the body is moving (translating or rotating) More... | |
real | velocity [2] |
uniform translational velocity (x- and y-components) More... | |
real | omega |
uniform rotational velocity More... | |
real | xOscillation [3] |
amplitude, angular frequency and phase difference of oscillation in the x-direction More... | |
real | yOscillation [3] |
amplitude, angular frequency and phase difference of oscillation in the y-direction More... | |
real | pitchOscillation [3] |
amplitude, angular frequency and phase difference of pitch oscillation More... | |
Contains information about an immersed boundary in the flow.
The number of boundary points and the reference x- and y- coordinates of the boundary points are provided. The motion of the body is also described. For uniform motion, the translational velocity needs to be specified. For uniform rotation, the angular velocity has to be specified. You can also provide options for oscillations in the x and y directions, as well as pitching (rotational) oscillations. When the body rotates, the center of rotation must be provided too.
|
inline |
Resets the position and motion of the body.
The body center is now at (0,0) and is not moving anymore.
Definition at line 84 of file body.h.
Referenced by io::parseBodiesFile().
|
inline |
real body::angVel |
bool body::moving[2] |
flag to indicate if the body is moving (translating or rotating)
Definition at line 41 of file body.h.
Referenced by io::parseBodiesNode().
int body::numPoints |
number of boundary points
Definition at line 26 of file body.h.
Referenced by io::parseBodiesNode().
real body::omega |
uniform rotational velocity
Definition at line 43 of file body.h.
Referenced by io::parseBodiesNode().
real body::pitchOscillation[3] |
amplitude, angular frequency and phase difference of pitch oscillation
Definition at line 46 of file body.h.
Referenced by io::parseBodiesNode().
real body::Theta |
actual angle of attack (counterclockwise is positive)
Definition at line 36 of file body.h.
Referenced by io::parseBodiesNode().
real body::Theta0 |
real body::vel[2] |
real body::velocity[2] |
uniform translational velocity (x- and y-components)
Definition at line 43 of file body.h.
Referenced by io::parseBodiesNode().
vecH body::X |
reference x-coordinate of boundary points
Definition at line 28 of file body.h.
Referenced by io::parseBodiesNode().
real body::X0[2] |
reference center of rotation
Definition at line 31 of file body.h.
Referenced by io::parseBodiesNode().
real body::Xc[2] |
actual center of rotation (x- and y-coordinates)
Definition at line 36 of file body.h.
Referenced by io::parseBodiesNode().
real body::Xc0[2] |
initial position of center of rotation
Definition at line 33 of file body.h.
Referenced by io::parseBodiesNode().
real body::xOscillation[3] |
amplitude, angular frequency and phase difference of oscillation in the x-direction
Definition at line 46 of file body.h.
Referenced by io::parseBodiesNode().
vecH body::Y |
reference y-coordinate of boundary points
Definition at line 28 of file body.h.
Referenced by io::parseBodiesNode().
real body::yOscillation[3] |
amplitude, angular frequency and phase difference of oscillation in the y-direction
Definition at line 46 of file body.h.
Referenced by io::parseBodiesNode().