1 #ifndef VTESTBED_CORE_COSINE_WAVE_HH 2 #define VTESTBED_CORE_COSINE_WAVE_HH 4 #include <vtestbed/core/linear_wave.hh> 16 template <
class T,
int N>
20 using typename Linear_wave<T,N>::vec;
55 template <
class T,
int N>
59 using typename Linear_wave<T,N>::vec;
105 #endif // vim:filetype=cpp Propagating plain wave which has cosine shape.
T angular_frequency() const noexcept
Get wave angular frequency.
const vec & wave_number() const noexcept
Get wave numbers for each dimension.
vec length() const noexcept
Get wave length.
T direction() const noexcept
Get wave direction in radians.
T amplitude() const noexcept
Get wave amplitude.
Standing plain wave which has cosine shape.
T velocity_potential(const vec &x, T t, T z)
Return velocity potential at point x.
T operator()(const vec &x, T t) const noexcept
Returns wavy surface elevation at point x.