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

Contains grid based current data. More...

#include <Waves.hpp>

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

Public Member Functions

 CurrentGrid (moordyn::Log *log, const std::vector< real > &px, const std::vector< real > &py, const std::vector< real > &pz, unsigned int nt, real dt)
 
void allocateKinematicArrays ()
 
void getCurrentKin (const vec3 &pos, real time, const SeafloorProvider &seafloor, vec3 *vel, vec3 *acc) override
 Get the velocity and acceleration at a specific position and time. More...
 
Vec4D< vec3 > & CurrentVel ()
 
const Vec4D< vec3 > & getCurrentVel () const
 
Vec4D< vec3 > & CurrentAcc ()
 
const Vec4D< vec3 > & getCurrentAcc () const
 
const std::vector< real > & Px () const
 
const std::vector< real > & Py () const
 
const std::vector< real > & Pz () const
 
- Public Member Functions inherited from moordyn::GridXYZT
 GridXYZT (const std::vector< real > &px, const std::vector< real > &py, const std::vector< real > &pz, unsigned int nt, real dt)
 

Additional Inherited Members

- Public Attributes inherited from moordyn::GridXYZT
unsigned int nx
 number of grid points in x direction
 
unsigned int ny
 number of grid points in y direction
 
unsigned int nz
 number of grid points in z direction
 
unsigned int nt = 0
 number of time steps used in wave kinematics time series
 
real dtWave
 time step for wave kinematics time series
 
- Protected Attributes inherited from moordyn::GridXYZT
std::vector< realpx
 grid x coordinate arrays
 
std::vector< realpy
 grid y coordinate arrays
 
std::vector< realpz
 grid z coordinate arrays
 

Detailed Description

Contains grid based current data.

Is an AbstractCurrentKin

Member Function Documentation

◆ getCurrentKin()

void moordyn::CurrentGrid::getCurrentKin ( const vec3 pos,
real  time,
const SeafloorProvider seafloor,
vec3 vel,
vec3 acc 
)
overridevirtual

Get the velocity and acceleration at a specific position and time.

Parameters
posThe location
timeThe time
seafloorA SeafloorProvider, could be used for kinematic stretching
velThe output velocity, not set if null
accThe output acceleration, not set if null

Implements moordyn::AbstractCurrentKin.


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