Skip to content

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 = default

Public attributes ​

direction ​

cpp
Vec<2> direction

Direction the wave travels in, (x, y); normalized when used.

wavelength ​

cpp
double wavelength

Distance from crest to crest [m].

amplitude ​

cpp
double amplitude

Height of a crest above the mean surface [m].

phase ​

cpp
double phase

Phase at the origin at time zero [rad].

RaiSim — physics for robotics and AI.