scientimate.wavepowerfrompsd

scientimate.wavepowerfrompsd#

E, Pw = scientimate.wavepowerfrompsd(h, f, Syy, Rho=1000, kCalcMethod='beji')

Description#

Calculate wave energy and wave power from power spectral density

Inputs#

h

Water depth in (m)

f

frequency in (Hz)

Syy

Wave power spectral density in (m^2/Hz)

Rho=1000

Water density in (kg/m^3)

kCalcMethod=’beji’
Wave number calculation method
‘hunt’: Hunt (1979), ‘beji’: Beji (2013), ‘vatankhah’: Vatankhah and Aghashariatmadari (2013)
‘goda’: Goda (2010), ‘exact’: calculate exact value

Outputs#

E

Wave Energy in (Joule/m^2)

Pw

Wave Power in (Watt/m)

Examples#

import scientimate as sm
import numpy as np

E,Pw=sm.wavepowerfrompsd(1,[0,0.1,0.2,0.3,0.4,0.5],[0,1e-5,1e-4,1e-3,1e-4,1e-5],1000,'beji')

E,Pw=sm.wavepowerfrompsd(1,np.array([0,0.1,0.2,0.3,0.4,0.5]),np.array([0,1e-5,1e-4,1e-3,1e-4,1e-5]),1000,'exact')

References#

Beji, S. (2013). Improved explicit approximation of linear dispersion relationship for gravity waves. Coastal Engineering, 73, 11-12.

Goda, Y. (2010). Random seas and design of maritime structures. World scientific.

Hunt, J. N. (1979). Direct solution of wave dispersion equation. Journal of the Waterway Port Coastal and Ocean Division, 105(4), 457-459.

Vatankhah, A. R., & Aghashariatmadari, Z. (2013). Improved explicit approximation of linear dispersion relationship for gravity waves: A discussion. Coastal engineering, 78, 21-22.