CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

EngineeringWavesSpectra

JONSWAP

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 3.00
sub units 3.00
add a commercial licence to your cart
0
viewed 160 times and licensed 10 times

The JONSWAP spectra in the wave-frequency domain

Further Info Controller: lloyd  Contact Controller
+View version details
Contents hide toc
buy now     get GPL     add to cart

Group Description

The JONSWAP (Joint North Sea Wave Project) spectra is an empirical relationship that defines the distribution of energy with frequency within the ocean.

The JONSWAP spectrum is effectively a fetch-limited version of the Pierson-Moskowitz spectrum, except that the wave spectrum is never fully developed and may continue to develop due to non-linear wave-wave interactions for a very long time. Therefore in the JONSWAP spectrum, waves continues to grow with distance (or time) as specified by the α (alpha) term, and the peak in the spectrum is more pronounced, as specified by the γ (gamma) term. Hasselmann (1966) found the latter to be particularly important as it lead to enhanced non-linear interactions.
References:

Interface

#include <codecogs/engineering/waves/spectra/jonswap.h>

using namespace Engineering::Waves::Spectra;

double JONSWAP_Gnnw (double w, double wp, double alpha=0.0081, double gamma=3.3, double beta=1.25)
Defines the JONSWAP spectra in the wave-frequency domain
double JONSWAP_wp (double wind, double length)
Compute the peak frequency for a JONSWAP spectrum based on wind speed and fetch length.
double JONSWAP_alpha (double wind, double length)
Compute the constant α that defines the intensity of the JONSWAP spectra from wind speed and fetch length.
double JONSWAP_Gnnk (double k, double dk, double wp, double depth=0, double alpha=0.0081,double gamma=3.3, double beta=1.25)
Defines the Jonswap spectra in the wave-number domain

Function Documentation

JONSWAP Gnnw Calculator
  
Add calculator to website or email
 
doubleJONSWAP_Gnnwdoublew
doublewp
doublealpha = 0.0081
doublegamma = 3.3
doublebeta = 1.25 )
The JONSWAP (Joint North Sea Wave Project) spectra is an empirical relationship that defines the distribution of energy with frequency within the ocean.

The underlying equation is:
S(\omega) = \frac{\alpha g^2}{\omega^5} \exp \left[-\beta \frac{\omega_p^4}{\omega^4}\right ] \gamma^a
where

Most problems is the literature are expressed in the above form. However if a particular wind speed and fetch length are known, then α and \omega_p can be estimated using the subsequent two functions.

For a range of typical north sea conditions (where α =0.0081 and \omega_p=2 \pi/12.4=0.5), but with varying peak enhancements the JONSWAP spectra has the form
\graph  w=0:1.5, wp=0.5, alpha=0.0081, gamma=1:3.3:4, beta=1.25

Standards

This function conforms to British Standards (BS 6349-1:2000), 24 July 2003.
Parameters:
wwave-frequency (2 π/s)
wpthe peak wave frequency (2 π/s)
alphaThe intensity of the Spectra. Default value = 0.0081
gammaPeak enhancement factor. Default value = 3.3
betaA shape factor (Rarely changed). Default value = 1.25
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


JONSWAP Wp Calculator
  
Add calculator to website or email
 
doubleJONSWAP_wpdoublewind
doublelength )
The peak of the JONSWAP spectrum is empirically define by
\omega_p = 2.84 \; g^{0.7}\; L_F^{-0.3}\; U_W^{-0.4}
where

Standards

This function conforms to British Standards (BS 6349-1:2000), 24 July 2003.
Parameters:
windThe wind speed 10m above the sea surface. [m/s]
lengthThe fetch length. [m]
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


JONSWAP Alpha Calculator
  
Add calculator to website or email
 
doubleJONSWAP_alphadoublewind
doublelength )
The overall energy within the JONSWAP spectrum is controlled by the α constant and is related to wind speed and the peak frequency by:
\alpha = 0.033 \left ( \frac{\omega_p U_w}{g} \right )^{2/3}
where

This function uses JONSWAP_wp (above) to obtain w_p for a given fetch length and wind speed.
Parameters:
windThe wind speed 10m above the sea surface. [m/s]
lengthThe fetch length. [m]
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


JONSWAP Gnnk Calculator
  
Add calculator to website or email
 
doubleJONSWAP_Gnnkdoublek
doubledk
doublewp
doubledepth = 0
doublealpha = 0.0081
doublegamma = 3.3
doublebeta = 1.25 )
This function uses the description of the JONSWAP spectra described in frequency to obtain an estimate of the distribution in wave-number using the 1st order dispersion relationship give in dispersion.

The function uses a 1st order central difference scheme to compute the corresponding value in wave-number, i.e.
T(k) = \frac{S(\omega(k-\Delta k/2)) + S(\omega(k+\Delta k/2))}{2}
where

For a range of north sea conditions (where α =0.0081 and \omega_p=2 \pi/12.4=0.5), but with varying peak enhancements the JONSWAP spectra has the following form in wave-number:
\graph  k=0:0.1, dk=0.01, wp=0.5, depth=0, alpha=0.0081, gamma=1:3.3:4, beta=1.25
Parameters:
kWave-number (2 π/m)
dkThe discretization in wave-number (representing accuracy of conversion)
wpThe peak wave frequency
depthThe water depth. Default value=0 (infinite depth)
alphaThe intensity of the spectra. Default value = 0.01
gammaThe peak enhancement factor. Default value = 3.3
betaA shape factor (Rarely changed). Default value = 1.25
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 17 May 09 @ 18:26     Page Rendered: 2010-03-13 17:21:52

Valid CSS!   Valid XHTML 1.0 Transitional