MoorDyn
Public Member Functions | List of all members
moordyn::SpectrumKinWrapper Class Reference

Wrapper around waves::SpectrumKin to make it adhere to the AbstractWaveKin interface. More...

#include <Waves.hpp>

Inheritance diagram for moordyn::SpectrumKinWrapper:
Inheritance graph
[legend]
Collaboration diagram for moordyn::SpectrumKinWrapper:
Collaboration graph
[legend]

Public Member Functions

 SpectrumKinWrapper (waves::SpectrumKin &&spectrum)
 Construct a new Spectrum Kin Wrapper object. More...
 
void getWaveKin (const vec3 &pos, real time, const SeafloorProvider &seafloor, real *zeta, vec3 *vel, vec3 *acc, real *pdyn) override
 Get the velocity, acceleration, wave height and dynamic pressure at a specific position and time. More...
 

Detailed Description

Wrapper around waves::SpectrumKin to make it adhere to the AbstractWaveKin interface.

This probably shouldn't exist, and SpectrumKin should do this by itself, but this is easy enough

Constructor & Destructor Documentation

◆ SpectrumKinWrapper()

moordyn::SpectrumKinWrapper::SpectrumKinWrapper ( waves::SpectrumKin &&  spectrum)
inline

Construct a new Spectrum Kin Wrapper object.

SpectrumKin should be fully initialized, including having called setup. Move the spectrum into the wrapper just to avoid an unnecessary copy.

Parameters
spectrum

Member Function Documentation

◆ getWaveKin()

void moordyn::SpectrumKinWrapper::getWaveKin ( const vec3 pos,
real  time,
const SeafloorProvider seafloor,
real zeta,
vec3 vel,
vec3 acc,
real pdyn 
)
inlineoverridevirtual

Get the velocity, acceleration, wave height and dynamic pressure at a specific position and time.

Parameters
posThe location
timeThe time
seafloorA SeafloorProvider used for kinematic stretching
zetaThe output wave height, not set if null
UThe output velocity, not set if null
UdThe output acceleration, not set if null
PDynThe output dynamic pressure, not set if null

Implements moordyn::AbstractWaveKin.


The documentation for this class was generated from the following file: