Guide, methods & validation
What every number on every page means, how it is calculated, how far to trust it, and where the methods come from.
Working through a hull
- Offsets. Pick a reference hull or start a new one in Projects, then enter or paste the table on Offset table. Set L, B, D, T and water density.
- Fair. Open the Fairness check. Fix the cells it flags if they are typing or reading errors.
- Look. Check the lines plan and the 3D hull. A wrong offset is often obvious in a body plan.
- Calculate. Hydrostatics at any draught and trim, curves of form for the hydrostatic table, and stability for a loading condition.
- Export. CSV from every table, DXF for CAD, STL/OBJ for CFD or printing, and a JSON backup of the hull.
Axes and sign conventions
| x | Longitudinal, metres forward of the aft perpendicular (AP = 0, FP = L). Stations can lie aft of the AP (negative x, e.g. a transom) or forward of the FP. |
|---|---|
| z | Vertical, metres above the base line (moulded keel). K is on the base line at the centreline. |
| y | Half-breadth from the centreline. The hull is symmetric; heel is to starboard. |
| Draughts | Ta at the AP and Tf at the FP. Trim = Ta − Tf, positive by the stern. Mean draught Tm = (Ta + Tf)/2 at midships. |
| LCB, LCF, LCG | Stored from the AP. Tables also give them from midships (⊗), positive forward. |
| Units | Metres, tonnes, t/m³. The offset editor can show millimetres. All values are moulded, so there is no shell plating and no appendages. |
From offsets to a surface
Each station becomes a curve yi(z) through its offsets. At any height, the hull across stations is a second curve through yi(z). Both are piecewise cubic Hermite (PCHIP) curves with Fritsch–Carlson slopes. The curve passes exactly through every offset. Its slope is set to zero where the data change direction, and limited elsewhere, so the curve never overshoots:
- no negative breadths at the ends;
- no wiggles between a flat bottom and the bilge;
- a flat side stays flat.
A natural cubic spline can overshoot: on a full hull it may put small bumps near the end of the parallel middle body.
- Empty cell below the first offset of a station: no breadth there (a cut-up or rising keel). The breadth runs from zero at the waterline below the first offset.
- Empty cell above the last offset: the side is vertical up to the deck.
- Deck: deck-at-side height per station. Blank means depth D. The deck is taken as flat across, with no camber.
For integration the surface is sampled on a dense grid. Each station interval is split into 8 equal parts, so Simpson’s rule applies exactly to each interval even when the stations are unevenly spaced. Vertically there are about 240 levels between the base and the deck.
Hydrostatics
The waterline at x is zw(x) = Ta + (Tf − Ta)·x/L. For each grid section the immersed area A(x) = 2∫y dz and its moment about the base are summed strip by strip. Each strip is an exact trapezoid with a linearly varying breadth, so a wall-sided section is exact. Along the length, Simpson weights give:
Awp = 2∫yw dx · LCF = 2∫yw x dx / Awp
IT = ⅔∫yw³ dx · IL = 2∫yw x² dx − Awp·LCF²
BMt = IT/∇ · BML = IL/∇ · KM = KB + BM · Δ = ρ∇
TPC = ρ·Awp/100 · MCT1cm = Δ·BML/(100 L) (the usual GML ≈ BML form)
Cb = ∇/(L·B·Tm) · Cm = Am/(B·Tm) · Cp = Cb/Cm · Cw = Awp/(L·B) · Cvp = Cb/Cw
Wetted surface is the true area of the surface y(x, z) below the waterline: each strip contributes √(dy² + dz² + (∂y/∂x·dz)²) per unit length, so the slope of the hull along the ship is included, not only the girth. On the Wigley hull this is 0.35 % below the exact surface integral; the remainder comes from fairing the analytic shape through 21 × 11 offsets. Bare hull: no appendages, no transom area.
Free-trim equilibrium. Given Δ and LCG:
- Find the mean draught for that displacement by bisection at the current trim.
- Correct the trim by Δ·(LCB − LCG)/MCT.
- Repeat until LCB is within 10−5 L of LCG. This normally takes 2 to 4 passes.
Large-angle stability
At each grid station the section is closed into a polygon from keel to deck edge on both sides. For heel φ and waterline distance d, the immersed part is the polygon clipped by the half-plane z·cos φ − y·sin φ ≤ d (Sutherland–Hodgman). Its area and centroid are exact for the polygon. These are integrated along the length with the same Simpson weights. If the condition has trim, d varies along the ship.
The value of d is found by bisection so that the heeled volume equals the upright volume. Then:
For a box barge this reproduces the wall-sided formula GZ = sin φ·(GM + ½BM tan²φ) to better than 0.01 % until the deck edge immerses. The box result in the validation table below is that check.
Things the calculation does not model:
- Superstructures, deckhouses, hatch coamings and bulwarks. These add buoyancy at large angles, so leaving them out is conservative.
- Openings. Enter a downflooding angle so the areas stop there.
- Camber.
- Trim changing with heel. Trim is held at the equilibrium value, which is the usual fixed-trim KN.
IMO 2008 IS Code, Part A, 2.2 — general criteria (MSC.267(85))
| Criterion | Requirement |
|---|---|
| Area under GZ 0°–30° | ≥ 0.055 m·rad |
| Area under GZ 0°–40°, or to θf if smaller | ≥ 0.090 m·rad |
| Area between 30° and 40°, or θf | ≥ 0.030 m·rad |
| GZ at an angle of heel of 30° or more | ≥ 0.20 m |
| Angle of maximum GZ | ≥ 25° (preferably above 30°) |
| Initial GM₀, corrected for free surface | ≥ 0.15 m |
Not included: the severe wind and rolling (weather) criterion of 2.3, which needs the windage area and its lever, and the special criteria for particular ship types.
Free-surface correction is entered as a height, FSC = Σ(free-surface moments)/Δ. It raises G to the fluid KG.
Fairness
For each offset, a cubic is passed through the four nearest offsets on the same waterline, leaving the offset itself out. The residual is the actual offset minus the value the cubic predicts there.
- An isolated large residual is almost always a misread or mistyped value.
- A band of residuals across several stations is usually real shape, such as the end of parallel middle body.
The default tolerance is 0.4 % of B (at least 2 mm); cells over four times that are marked red. Near the ends and at the turn of the bilge a fair hull can legitimately exceed it, so treat a flag as “check this”, not “wrong”. Residuals up the station are shown but not scored, because a section turns sharply at the bilge by design.
The inflexion count is the number of curvature sign changes along each waterline.
Simpson’s rules by hand
The hydrostatics page also works the classical sheet on the tabulated offsets alone.
- Equal spacing, odd number of ordinates: the multipliers are 1, 4, 2, 4, …, 4, 1, times h/3.
- Uneven spacing (half stations at the ends): each pair of intervals h₀, h₁ uses the parabolic weights
(h₀+h₁)/6 · [(2 − h₁/h₀), (h₀+h₁)²/(h₀h₁), (2 − h₀/h₁)] - A last odd interval uses the parabola through the last three points.
Comparing the sheet with the spline result shows how much the fairing between offsets matters. It matters most for fine ends and sparse tables.
Validation
Computed while this page was built, by the same code the app runs:
| Hull | Quantity | OffsetCalc | Reference | Difference |
|---|---|---|---|---|
| Wigley | Cb | 0.4444 | 0.4444 | < 0.01 % |
| Wigley | Cw | 0.6667 | 0.6667 | < 0.01 % |
| Wigley | Cm | 0.6666 | 0.6667 | < 0.01 % |
| Wigley | KB (m) | 3.9062 | 3.9063 | < 0.01 % |
| Wigley | BMt (m) | 1.3714 | 1.3714 | < 0.01 % |
| Box 60 × 12 × 3 | ∇ (m³) | 2160.0000 | 2160.0000 | < 0.01 % |
| Box 60 × 12 × 3 | BMt (m) | 4.0000 | 4.0000 | < 0.01 % |
| Box 60 × 12 × 3 | KN 25° (m) | 2.5082 | 2.5082 | < 0.01 % |
| Series 60 Cb 0.60 | Cb | 0.5972 | 0.6000 | 0.47 % |
| Series 60 Cb 0.60 | Cp | 0.6138 | 0.6140 | 0.04 % |
| Series 60 Cb 0.60 | Cm | 0.9729 | 0.9770 | 0.42 % |
| Series 60 Cb 0.60 | LCB, % L aft of ⊗ | 1.4835 | 1.5000 | 0.02 % L |
- Wigley and box hulls have closed-form answers.
- Series 60 uses the published Table 3 offsets of the Cb 0.60 parent (Todd 1963), against its published coefficients. Todd also tabulates the sectional-area ratio at every station. The engine’s sectional-area curve matches it to within 0.004 of A/Am at all 25 stations (an automated test).
- The small shortfall in Cm (and so in Cb) comes from the three-figure offsets at the bilge. The tabulated bilge points do not quite carry the published midship coefficient.
Exports
- CSV — offsets, hydrostatics, curves of form, KN/GZ.
- DXF (R12, ASCII) — profile, half-breadth and body plan in metres, on layers STATIONS, WATERLINES, BUTTOCKS, DECK and GRID. Opens in AutoCAD, DraftSight, LibreCAD, Rhino and most CAM tools.
- STL / OBJ — a closed triangulated hull to the deck (x forward, y starboard, z up, metres).
- JSON — the full hull for backup or for moving to another device.
References
- Fritsch, F.N. & Carlson, R.E. (1980). Monotone piecewise cubic interpolation. SIAM J. Numer. Anal. 17(2), 238–246.
- Todd, F.H. (1963). Series 60 — Methodical experiments with models of single-screw merchant ships. DTMB Report 1712.
- Wigley, W.C.S. (1934). A comparison of experiment and calculated wave-profiles and wave-resistances for a form having parabolic waterlines. Proc. Royal Society A 144.
- IMO (2008). International Code on Intact Stability, 2008 (2008 IS Code), resolution MSC.267(85).
- Biran, A. & López-Pulido, R. (2014). Ship Hydrostatics and Stability, 2nd ed. Butterworth-Heinemann.
- Rawson, K.J. & Tupper, E.C. (2001). Basic Ship Theory, 5th ed., Vol. 1. Butterworth-Heinemann.
- Lewis, E.V. (ed.) (1988). Principles of Naval Architecture, Vol. I: Stability and Strength. SNAME.
OffsetCalc is a design and teaching aid. Stability booklets for approval must be prepared with approved software and the ship’s own lightship and tank data.