/Johnswap-and-ITTC-Spectra-Calculation

Wave spectra must be calculated in order to perform seakeeping calculations of floating objects. This shared code calculates the spectrum of the wave according to the determined sea condition.

Primary LanguagePythonMIT LicenseMIT

Johnswap-and-ITTC-Spectra-Calculation

In this repository, the wave spectrum obtained in different sea conditions has been calculated. Although the first figure given is the input screen of the GUI to be used, the converged results in Fig 2. are given. At the same time, it is shown in Fig 3. that the problem does not converge when the frequency interval is reduced.

Steps to Obtain Wave Spectra:

  • Download and open the GUI.py file
  • Determine your sea state and depend on your sea state put equivalent values for significant wave height(Hs) and zero crossing period(Tz)
  • Determine your frequency range and number of intervals
  • Determine your nondimensional peak shape parameter
  • Click the calculate button

GUI:

image Fig 1. Clear Screen View

image Fig 2. Results with Enough Intervals to Converge

image Fig 3. Results with Convergence Issue

Notes :

  • A value other than 0 should be selected as the smallest frequency value. Otherwise, the value is infinite in obtaining the spectra and the result gives an error.
  • You must clear the results if you performed analysis before and want to perform a new one
  • In case of a change in sea condition, zero crossing period and significant wave height values should change.