|
Virtual Testbed
Ship dynamics simulator for extreme conditions
|
Base class for water waves. More...
#include <wave.hh>
Public Types | |
| typedef T | value_type |
| typedef blitz::TinyVector< T, N-1 > | vec |
Public Member Functions | |
| Wave_base (const Wave_base &)=default | |
| Wave_base & | operator= (const Wave_base &)=default |
| Wave_base (Amplitude< T > amplitude, const vec &k, Frequency< T > freq) | |
| Wave_base (Amplitude< T > amplitude, Length< T > length, Direction< T > direction, Frequency< T > velocity) | |
| T | amplitude () const noexcept |
| Get wave amplitude. | |
| const vec & | wave_number () const noexcept |
| Get wave numbers for each dimension. | |
| T | angular_frequency () const noexcept |
| Get wave angular frequency. | |
| vec | length () const noexcept |
| Get wave length. | |
| T | scalar_length () const noexcept |
| Get wave length. | |
| T | direction () const noexcept |
| Get wave direction in radians. | |
| T | period () const noexcept |
| Get wave period. | |
| vec | phase_velocity () const noexcept |
| Get phase velocity. | |
Static Public Member Functions | |
| static constexpr int | dimensions () noexcept |
Protected Attributes | |
| T | _amplitude {1} |
| vec | _k {T{0.05}} |
| T | _angfrequency {1} |
Base class for water waves.
Definition at line 49 of file core/types.hh.
1.8.15