raisim::FluidWave
struct · #include <raisim/Fluid.hpp>
A wave on the surface of a deep liquid (linear, Airy): the surface rises by amplitude cos(theta), with theta = k direction . (x, y) - omega t + phase, k = 2 pi / wavelength and omega = sqrt(g k), g the strength of the world's gravity. The liquid under the wave moves in circles of radius amplitude exp(-k d) at the depth d below the mean surface, forward under a crest.
Public member functions
operator==
cpp
bool operator==(const FluidWave &) const = defaultPublic attributes
direction
cpp
Vec<2> directionDirection the wave travels in, (x, y); normalized when used.
wavelength
cpp
double wavelengthDistance from crest to crest [m].
amplitude
cpp
double amplitudeHeight of a crest above the mean surface [m].
phase
cpp
double phasePhase at the origin at time zero [rad].