In order to run the code, first you need to satisfy the libraries required for the program in Python. Then you should clone the repository and unzip it. Afterwards, you have to run the tool.py file in the Python notebook then the interface will come out. You are supposed to see the screen in Figure 1. Everything you can calculate using the tool is given below in detail.
Prerequisites:
- Tkinter
- PIL
Fig 1. General View of the System
The program allows you to import your model test results .csv file. You should click load model test results on the left-hand side and when you import the file successfully you will able to see "CSV File processing completed." text in the console on the bottom.
Fig 2. Kernel when you import Model Results
Afterwards, when you perform a model test you will not be able to perform it 200 times so in order to increase the convergence of the model test. RAO results that you imported as .csv file interpolated. In order to apply the tool you should put the desired number for interpolation to the interpolation size entry then you should click the interpolate model test results button. In the end, you should able to see "Interpolation has complated" text in the console(Fig 3.)
Fig 3. Interpolation of Results
Then there are several options available which include calculating heave, pitch, and ship spectral values with specific significant wave height and zero crossing period(Fig 4.) or you can choose the polar plot option which includes RMS values for every heading angle. (Fig 5.)
Fig 5. Polar Plot for Different Heading Angles
Additionally, you can validate results, which calculates 4mo^0.5 values for both wave and ship spectra which corresponds to significant wave height value approximately and you can also calculate your RMS values for specific heading angles using the calculate RMS button on the top.