LHEEA / HOS-NWT

Numerical Wave Tank based on High-Order Spectral method
GNU General Public License v3.0
50 stars 25 forks source link

A confusion about the code of wave Spectrum in NWT #30

Open zuiwohuaqian opened 2 years ago

zuiwohuaqian commented 2 years ago

Hello Guillaume, Recently I read the codes of wave spectrum in https://github.com/LHEEA/HOS-NWT/blob/master/sources/main/initial_condition.f90#L261,I have some confusions.

  1. For JONSWAP spectrum, compared with JONSWAP equation, the source code missed a parameter alpha
  2. For Bretchneider spectrum, the source code missed Hs.

Why does there exist difference?

Reference: https://www.orcina.com/webhelp/OrcaFlex/Content/html/Waves,Wavespectra.htm Sincerely, huaqian

gducrozet commented 2 years ago

Hello Huaqian,

After the specification of the wave spectrum shape that you have found, there is an iterative procedure to impose exactly the target significant wave height. This iterative procedure is adjusting the amplitude of the spectrum accordingly. This is preferred to the only use of the analytical formula to have a better control of the significant wave height.

Best, Guillaume