I'm a French student in the second year of my engineering school. I completed a 3-month internship at NTNU, and during this internship, I programmed various JavaScript functions to calculate and visualize different ship characteristics. The purpose of this page is to show you these functions and how they work. All of these functions use a JSON file. This file contains all the information about the ship being studied. To generate the examples that will follow, you can download any JSON file using the link and then import the file below. By default, the calculations will be performed using the JSON file of the Gunnerus ship.
The JSON file contains a Half-Breadths table that allows for reconstructing the shape of the ship's hull. The values in this table will be normalized between 0 and 1. To standardize these values into an unit, they must be multiplied by the calculation parameters'values. In this table, we find the waterlines which represent the Z-axis values (cf. Figure No. 1), as well as the stations which represent the X-axis values. At the intersection of these values are the buttocklines values. These values represent the Y-axis and, due to the symmetry of the boats, start at 0 in the middle of the ship.
Figure No. 1: Ship hull cut by buttocklines. [1]
The JSON file includes the Half-Breadths table, which provides information about the shape of the ship's hull. Using this table and the Draft value - also included in the JSON -, the submerged volume can be calculated. To calculate it, the area of each waterline - represented in Figure No. 2 - is computed using the Half-Breadths table. Then, the distance between two areas - represented by the "d" in Figure No. 2 - is multiplied by their average to obtain the volume.
Figure No. 2: Ship hull cut by waterlines. [1]
By clicking the button below, you can calculate the submerged volume of the boat. The values have already been multiplied by the calculation parameters'values.
V =
Several coefficients exist to characterize the hull of a ship. Each of them defines the ship's water-penetrating power. The smaller the coefficient, the less power the ship will need to penetrate the water.
Figure No. 3 Ship hull values.
The waterplane coefficient Cw is obtained as follows:
With:
The Block coefficient Cb is obtained as follows:
With:
The Prismatic coefficient Cp is obtained as follows:
With:
The Midship Section coefficient Cm is obtained as follows:
With:
All of these coefficients are calculated from the JSON file, you can click the following button to display them. The calculated values are in the expected orders of magnitude but could not be verified.
To determine the stability of a ship, calculations of various points are necessary. The center of Gravity of the boat is one of them. The closer it is to the center of Buoyancy - which represents the center of gravity of the submerged volume - the more stable the ship is. By clicking the button below, you can calculate the submerged volume of the boat. The values have already been multiplied by the calculation parameters' values.
Gravity center =
Buoyancy center =
The Y value is zero for both points because we consider here that there is no trim. Since the boats are symmetrical, the Y value is zero.
The functions presented allow for the calculation of characteristic values of a boat's hull based on data present in a JSON file. The coefficient values could not be verified, and the quality of the results greatly depends on the accuracy of the Half-Breadths table. The more points provided, the more accurate the calculations will be. However, if the Draft value lies between two waterlines, a new waterline is created by interpolation. This helps to make the values of the submerged volume, Cw, and the coordinates of the Buoyancy point more accurate.