Marine systems simulation
WaveEnergySpecter Class Reference

#include <WaveEnergySpecter.h>

Classes

struct  SSpecterParameters
 

Public Types

enum  EWaveSpecter_t { EWaveSpecter_Jonswap =0 , EWaveSpecter_Issc }
 
enum  EDirectionSpecter_t { EDirectionSpecter_None =0 , EDirectionSpecter_CosineSquared }
 

Public Member Functions

 WaveEnergySpecter (EWaveSpecter_t EWaveSpecter, EDirectionSpecter_t EDirectionSpecter, SSpecterParameters *pSSpecterParameters, int iNumWaves, unsigned int RandomSeed)
 
const std::vector< double > * GetWaveFrequencyArray ()
 
const std::vector< double > * GetWaveDirectionArray ()
 
const std::vector< double > * GetSpectralValueArray ()
 
const std::vector< double > * GetRandomPhaseArray ()
 
const std::vector< double > * GetWaveNumberArray ()
 

Protected Types

typedef double(WaveEnergySpecter::* NormalizedProbabilityDistribution) (const double)
 

Protected Member Functions

void fillRandomVector (NormalizedProbabilityDistribution f, double limit_low, double limit_high, std::vector< double > &result)
 
void makeWaveFrequencyVectorWithRandomIntervals ()
 
double randomNumber (double limit_low, double limit_high)
 
double cosPower (double theta)
 
double SpectralEnergy (double omega)
 
double Jonswap (double omega)
 
double NormalizedConstantSteepnessJonswap (double omega)
 
double Issc (double omega)
 
double SpectralDirectionDistribution (double theta)
 
double NormalizedConstantSteepnessIssc (double omega)
 

Protected Attributes

double m_dHs
 
double m_dT1
 Significant wave height.
 
double m_cosPower
 Mean wave period.
 
bool m_isLongCrested
 
double m_mainWaveDirection
 Boolean. True if sea state is long crested. False if sea state is short crested.
 
double m_dRho
 
double m_dGravity
 Mass density of sea water.
 
double m_omgLowLim_nDim
 Acceleration of gravity.
 
double m_omgUppLim_nDim
 Non-dimensional omega omega_nDim = omega*T1/(2*pi) lower limit.
 

Detailed Description

Author
David Kristiansen
Revision history:
21.08.2009 DK: Initial version. 12.07.2010 DK: Modified by using std::vector templates

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