Skip to content

Resistance curve with VoF at six speeds, with rudder (KCS)

This example computes the calm-water resistance of a container ship over a range of speeds, with the free surface (VOF) and the hull free to sink and trim: the KRISO Container Ship (KCS) at model scale, with its rudder and without the propeller. The computation is compared with the towing-tank measurements of the National Maritime Research Institute (NMRI) at six Froude numbers from 0.108 to 0.282, the reference of the Tokyo 2015 CFD workshop: the total resistance, the sinkage and the trim.

It demonstrates the recommended set-up for a resistance curve of a fast, slender hull with a transom stern and a rudder: one RANS computation per speed with VOF and FREE, on the MEDIUM grid with the hull mesh of XGRID 8 (XGRID CONTROL(XGR8)) and the rudder grid fitted to the hull (APPEND), and otherwise on the defaults. The nominal wake in the propeller plane comes with the resistance. The page also shows how the result depends on the grid size, and how far a free-surface computation has to run before the hull has settled in sinkage and trim, which at the higher speeds takes longer than the resistance itself.

The measured case

The model was towed at constant speed in calm water, free to sink and trim, with the rudder and without the propeller (Tokyo 2015 case 2.1, the same test as Gothenburg 2010 case 2.2b). Six speeds were run.

Quantity Value Source
Scale 1 : 31.6 geometry
Length between perpendiculars Lpp 7.2786 m test condition
Draught 0.3418 m, even keel at rest geometry
Wetted surface at rest S0, with the rudder 9.5519 m² (S0/Lpp² = 0.1803) test condition
Of which the hull 9.4379 m² geometry
Water ρ = 999.5 kg/m³, ν = 1.27·10⁻⁶ m²/s test condition
Gravity g = 9.81 m/s² test condition
Attitude free to sink and trim test condition

The measured values used as the reference, with the data uncertainty NMRI gives for each:

Fn U (m/s) Re CT·10³ Sinkage (cm) Trim (°)
0.108 0.915 5.23·10⁶ 3.796 ± 1.0 % −0.090 ± 8.2 % −0.017 ± 9.6 %
0.152 1.281 7.33·10⁶ 3.641 ± 1.0 % −0.275 ± 5.9 % −0.053 ± 6.8 %
0.195 1.647 9.42·10⁶ 3.475 ± 1.0 % −0.599 ± 3.9 % −0.097 ± 4.6 %
0.227 1.922 1.10·10⁷ 3.467 ± 1.0 % −0.944 ± 2.8 % −0.127 ± 3.3 %
0.260 2.196 1.26·10⁷ 3.711 ± 1.0 % −1.394 ± 1.9 % −0.169 ± 2.3 %
0.282 2.379 1.36·10⁷ 4.501 ± 1.0 % −1.702 ± 1.4 % −0.159 ± 1.8 %

CT = RT/(½ρU²S0) on the wetted surface at rest with the rudder. The sinkage is the mean of the sinkage at the fore and aft perpendiculars, positive up; the trim is positive bow up. The hull sinks and trims by the bow more as the speed rises; the trim is largest at Fn = 0.26, the design speed. The resistance coefficient has its hollow at Fn 0.2 to 0.23 and rises steeply above the design speed, where the bow and stern waves grow.

Deriving the inputs

The hull is read from the IGES file at full scale (LPP=230, ZORI=10.8, the draught in metres), and the speed is given as the ship's speed with the scale of the model, VSHIP(VKNOT=24, SCALE=31.6). SHIPFLOW scales the hull and the speed to the model by Froude's law: U = 24 · 1852/3600/√31.6 = 2.1964 m/s and Fn = 0.260 on Lpp, as the test gives it. See Speed, size and water in the in-depth examples.

Water. FLUID(FRESH, TEMPERATURE=11): fresh water at 11 °C has the viscosity of the test, 1.27·10⁻⁶ m²/s (SHIPFLOW's 1.2697·10⁻⁶), and Re = UL/ν = 2.1964 · 7.2785 / 1.2697·10⁻⁶ = 1.259·10⁷. To use the test's density and viscosity exactly, give FLUID(FRESH, TEMPERATURE=11, DENSITY=999.5, VISCOSITY=1.27e-6).

The speeds. The six speeds of the test, in whole knots at full scale. The test lists the Froude number rounded to three decimals with g = 9.81 m/s²; the speeds in whole knots are within 0.3 % of the test's, and the results are compared at the computed Froude number:

VKNOT on VSHIP Fn U (m/s) Test Fn Against the test's speed Re Against the test
10 0.1083 0.9152 0.108 +0.28 % 5.246·10⁶ +0.30 %
14 0.1516 1.2812 0.152 −0.25 % 7.345·10⁶ −0.23 %
18 0.1950 1.6473 0.195 −0.03 % 9.443·10⁶ −0.01 %
21 0.2275 1.9218 0.227 +0.19 % 1.102·10⁷ +0.21 %
24 (the card) 0.2600 2.1964 0.260 −0.03 % 1.259·10⁷ −0.01 %
26 0.2816 2.3794 0.282 −0.15 % 1.364·10⁷ −0.13 %

The differences change the friction resistance by less than 0.1 %.

Wetted surface. The resistance coefficients on this page are on the test's S0 = 0.1803 Lpp², with the rudder, as the measurement: CT = RT/(½ρU²S0) from the computed resistance of hull and rudder together. The coefficients in SHIPFLOW's output are on its own wetted surface at rest, S = 0.1807 Lpp² (the S line of <case>_OUTPUT, also in <case>_RUN_DIR/<case>_SUMMARY), 0.2 % larger than S0; multiply them by S/S0 = 1.002 to compare with the test.

The command file

examples/kcs_resistance_vof (4 657 921 cells, one side of the hull), at 24 knots. For the other speeds of the test, change VKNOT on VSHIP to the values in the table above: one computation per speed. A list of speeds on VSHIP is not supported; only the first value would be computed.

Resources: about 32 GB of memory. The computation of the card was run on 24 cores (PARALLEL(NPROC=24)) and took 1 h 12 min for 3560 iterations; the six speeds took 1 to 3 hours for 2700 to 4000 iterations, depending on the speed and the machine. Any number of cores can be used; fewer cores take longer. The FINE grid needs about 49 GB and about twice the time, see How fine the grid needs to be.

xflow
  titl   ( titl="KCS resistance with a free surface (VOF), with rudder, free sinkage and trim, Tokyo 2015 case 2.1, 24 knots" )
  prog   ( xchap )
  hull   ( mono, vof, medium )
  offs   ( iges="geometry/kcs_g2010.igs", zori=10.8, lpp=230 )
  vshi   ( vknot=24, scale=31.6 )
  fluid  ( fresh, temperature=11 )
  prop   ( id="KCS_prop", xsh=4.025, zsh=4.108, dprop=7.9, dhub=1.422 )
  rudder ( id="rudder", tp2f, rmax=0.5, section=["NACA0018","NACA0018"],
           span=11.9, s=[0,1], c=[6.2,5], orig=[0.000,0.000,12.0], xle=[2.6,2.0] )
  append ( id="rudder", adapt=["Xgrid"], adir=3, aside=1 )
end
xgrid
  cont ( xgr8 )
end
xchap
  parallel ( nproc=24 )
  free     ( on )
end

Why each setting

PROGRAM(XCHAP): the RANS computation only. With VOF XCHAP computes the free surface itself, and with FREE it finds the sinkage and trim itself, so the potential-flow solution (XPAN) is not needed.

HULL(MONO, VOF, MEDIUM): a single-screw hull computed with the volume-of-fluid free surface (VOF) on the MEDIUM grid, the default size. For this slender, fast hull the MEDIUM grid gives the resistance curve within the accuracy needed for a validation or a design comparison, at a third less memory and half the time of FINE. The JBC example recommends FINE for its full hull at a low Froude number, with short waves and a thick boundary layer at the stern. How fine the grid needs to be compares MEDIUM, FINE and VFINE at two speeds.

XGRID CONTROL(XGR8): the hull grid is made by XGRID 8, the newer hull mesher of XGRID. It lays out the surface mesh from the groups of the hull (main body, bulb, stern, transom) by itself, fits the grid to the transom, and takes its cell counts from the grid size on HULL (MEDIUM, FINE, VFINE). It is the mesher to use with VOF. Without this block XGRID makes the hull grid with its default mesher; How fine the grid needs to be compares the two on the FINE size.

OFFSET, VSHIP, FLUID: the hull, the speed and the water, see Deriving the inputs. The water is given by its temperature, at which SHIPFLOW's viscosity is the test's, so that the Reynolds number is the test's.

RUDDER: the rudder of the test, defined at full scale like the hull and scaled with it: NACA 0018 sections (NACA0018, one of the wing sections supplied with SHIPFLOW), a span of 11.9 m, chords of 6.2 m at the root and 5.0 m at the tip, with the leading edge 2.6 m and 2.0 m from the rudder axis (XLE). The root is open (the default): it lies above the waterline (ORIGIN at z = 12.0 m, the draught is 10.8 m), where the rudder meets the hull; the tip is closed flat (TP2F; the default is a rounded tip). RMAX=0.5 makes the rudder grid thinner than the default (RMAX=1). The rudder is on the centre plane, so only one side of it is computed with the hull (see below). The measured resistance includes the rudder, and so does the computed one.

APPEND: the rudder grid is fitted to the hull grid. Along its spanwise grid lines (ADIR=3) the root face of the rudder grid (ASIDE=1, the low side) is moved onto the hull surface of the hull grid (ADAPT=["Xgrid"], the name of the hull grid), so that the rudder grid ends on the hull where the rudder meets it. The rudder's ID names the object to fit. This is the way to attach a rudder, or any appendage, to the hull grid of XGRID 8.

PROPELLER: the position and the diameter of the propeller, and no propeller model, as in the hybrid example. With them XCHAP computes the nominal wake in the propeller plane (WAKE is on by default), with the free surface and the computed attitude; see The nominal wake. The line is not needed for the resistance; the nominal wake comes with it at no extra cost, and it is an essential input for propeller design and for judging the hull form at the stern.

PARALLEL(NPROC=24): 24 processes; any number the machine has works.

FREE(ON): the hull is free to sink and trim, as in the test. From iteration 300 (ITSTART), every 10 iterations, XCHAP compares the vertical force and the pitching moment on the hull with the weight and moves the hull toward equilibrium, deforming the grid around it. The drag is balanced at the hydrodynamic centre, so the towing force puts no trimming moment on the hull (NOMOMENT, the default).

What is not on the card. No CONTROL(MAXITER): with VOF and the default Krylov solver the computation runs up to 4000 iterations (CONTROL, note 1), and stops earlier when the convergence criterion is met; with VOF the criterion also waits for the sinkage and trim to settle. The card stopped on the criterion after 3560 iterations; four of the six speeds stopped on it between 2700 and 3840 iterations, and the lowest and the highest speed ran to the 4000. No SYMMETRY: without a working propeller the default is the xz-plane of symmetry, so one side of the hull and of the rudder is computed. No WTRANSOM: with VOF the transom block of XGRID, which lets the free surface follow the flow off the transom stern, is added by default. The turbulence model is the default, EASM on the hull. On RUDDER, the rudder angle is the default, ANGLE=0, the root is open by default (TP1O), and SHIPFLOW places the rudder on the computed side of the centre plane itself (YSIGN). The rudder grid is the default: its nodes around the section, outward and along the span (DIMENSION), and the y+ aimed at for the first cell on the rudder (YTARGET=1). The relaxation of the attitude is FREE's default; see How long to run for what it means for the higher speeds.

Results and comparison with the measurement

The results on this page were computed with SHIPFLOW 9.0.01.

Fn CT·10³ measured computed difference Sinkage (cm) measured computed Trim (°) measured computed
0.108 3.796 3.597 −5.2 % −0.090 −0.208 −0.017 −0.023
0.152 3.641 3.587 −1.5 % −0.275 −0.417 −0.053 −0.045
0.195 3.475 3.493 +0.5 % −0.599 −0.729 −0.097 −0.083
0.227 3.467 3.502 +1.0 % −0.944 −1.044 −0.127 −0.117
0.260 3.711 3.721 +0.3 % −1.394 −1.427 −0.169 −0.156
0.282 4.501 4.491 −0.2 % −1.702 −1.756 −0.159 −0.133

At Fn = 0.26 the computed resistance splits into friction CF = 2.923·10⁻³ and pressure CP = 0.798·10⁻³; the rudder carries 0.083·10⁻³ of it (2.2 %), its own force. Without the rudder the hull alone has CT = 3.658·10⁻³ on the same S0: the rudder adds 1.7 % to the resistance, a little less than its own force, because the hull's own resistance is 0.5 % lower with the rudder behind it, and it leaves the sinkage and trim unchanged. The values are the mean over the last 500 iterations.

Resistance coefficient, sinkage and trim against the Froude number, measured with the data uncertainty and computed

The upper panel shows the total resistance coefficient CT on S0 against the Froude number, the lower panels the sinkage (cm, positive up) and the trim (degrees, positive bow up). The open circles are the measurement, with bars of ± the data uncertainty UD that NMRI gives for each value; the blue squares are the computation, at its own Froude number.

The grey band is ±3 % around the measured CT. A computed CT inside this band is accurate enough for most practical purposes. The ±3 % is a judgement of the accuracy that is needed from a resistance computation. In the ITTC procedure for CFD validation, such a value is called the validation requirement, Ureqd (ITTC 2017).

To read from it:

  1. The resistance follows the measured curve over the whole range, the hollow at Fn 0.2 to 0.23 and the steep rise above the design speed included. Five of the six speeds are inside the ±3 % band, and four of them within 1 %: at Fn = 0.195 the difference is +0.5 %, at 0.227 +1.0 %, at the design speed +0.3 % and at Fn = 0.282 −0.2 %, all within or close to the data uncertainty of 1 %. At Fn = 0.152 the difference is −1.5 %, and at the lowest speed −5.2 %, outside the band. Over the six speeds the computed CT differs from the measured by 1.5 % on average; the submissions to the Tokyo 2015 workshop differ by 2.0 % on average (Kim, in Hino et al. 2020). The lowest speed is where the submissions scatter most as well (3.4 % on average): the measured curve rises toward Fn = 0.108, and the computed one stays flat. The towing tank measures the total only; the split into friction and pressure is the computation's. How fine the grid needs to be shows what the finer grids give: more resistance, by 2 to 3 %, and the same attitude and waves.
  2. The sinkage agrees with the measurement within 3.2 % at the two highest speeds (0.3 and 0.5 mm) and within 11 % at Fn = 0.227; over the speeds above Fn = 0.2 it differs by 5.4 % on average, against 4.3 % for the workshop submissions. The trim is 8 % smaller than measured at the design speed (0.013°) and 8 to 16 % smaller from Fn = 0.152 to 0.282. Sinkage and trim are much less certain than the resistance: on a displacement hull at model scale they are small (at Fn = 0.108 the hull sinks 0.9 mm and trims 0.017°), and NMRI's data uncertainty rises from 1.4 and 1.8 % at the highest speed to 8.2 and 9.6 % at the lowest, against 1 % for CT.
  3. At the lowest speeds the computed hull sinks deeper than measured, by 1.2 mm (131 %) at Fn = 0.108 and 1.4 mm (52 %) at 0.152. The workshop submissions show the same trend: on average they sink 89 % deeper than measured at Fn = 0.108, 42 % at 0.152, 20 % at 0.195 and 7.5 % at 0.227, against 131, 52, 22 and 11 % here (below Fn = 0.2, 45 % on average in the workshop and 68 % here). The trim at Fn = 0.108 is larger than measured by 0.006° (35 %); the workshop submissions are 55 % larger on average.
  4. The attitude is converged at every speed. From iteration 1600 to 2750, depending on the speed, the hull moved less than 10⁻⁵ Lpp and 0.001° per update, which XCHAP reports in the log; the differences to the measurement above are not from an unfinished computation. See How long to run.

The resistance, sinkage and trim are in <case>_OUTPUT and <case>_RUN_DIR/<case>_SUMMARY, the history in <case>_RUN_DIR/<case>_FORCELOG and <case>_SINK_TRIM. The force of the rudder alone is in the rudder columns of the FORCELOG (the name given by ID); like the other forces there it is divided by ρU²Lpp², and with the plane of symmetry it is the force on one side.

The wave pattern

Computed wave pattern around the KCS at Fn 0.26

The figure shows the free surface seen from above, with the ship moving to the left: x/L runs from the forward perpendicular (0) to the aft perpendicular (1), and one side of the hull is computed, y/L < 0. The colour is the elevation of the free surface above the still-water level, z/L × 10³, positive up (10⁻³ L is 7.3 mm at model scale); the thin lines are the contours of the colour levels, and the hull is white.

The bow wave, the trough along the shoulder and the stern wave that rises behind the transom, with the Kelvin pattern spreading from them. Directly behind the transom the stern wave rises to about 9·10⁻³ L, above the colour range. The finer grids give the same pattern. Case 2.1 measured the resistance and the attitude only; the wave pattern is shown, not compared. The wave elevation is taken from the volume fraction 0.5 in the computed field (<case>.cgns, the VolumeFraction of the hull grid and, behind the transom, of the transom grid that SHIPFLOW adds with VOF), for example with the Contour filter of ParaView.

The nominal wake

Total wake fraction in the propeller plane at Fn 0.26, seen from behind, from the report of the computation

The figure is the SHIPFLOW plot from the report of the computation at 24 knots. It shows the total wake fraction w = 1 − V/V0 in the propeller plane, seen from behind. The angle is measured clockwise from the top. The circles show the radii r/R from 0.2 to 1.4, and the thick circle is the propeller radius. The wake is deepest in the sector above the shaft and at the inner radii, where the slow flow of the boundary layer comes down from the stern. The two lobes below the hub are caused by the bilge vortices. The wake is computed with the free surface, with the hull at its computed sinkage and trim, and with the rudder behind the propeller plane.

Fn 0.108 0.152 0.195 0.227 0.260 0.282
Mean total wake fraction w 0.349 0.329 0.311 0.300 0.289 0.285
Mean axial wake fraction wa 0.354 0.334 0.316 0.306 0.295 0.291

The mean wake fraction falls as the speed rises, from 0.349 at the lowest speed to 0.285 at the highest: the boundary layer is thinner at the higher Reynolds number, and the stern wave and the attitude change the flow at the stern. At the design speed w = 0.289 and wa = 0.295. The rudder is part of this wake: without it, the computation gives w = 0.275 at the design speed. The rudder stands close behind the propeller plane and slows the flow ahead of it, so the nominal wake of a hull with its rudder is deeper than that of the bare hull. The mean wake fractions are in <case>_OUTPUT (Wn, Wn_a). The distribution over the propeller disc, with the velocity components and the wake fractions, is in <case>_RUN_DIR/<case>_<ID>_flow_field.html and .csv; the figures are in the report. The hybrid example computes the nominal wake of the same hull from a double-body computation.

How fine the grid needs to be

Two speeds of the test, 14 and 24 knots (Fn 0.152 and 0.260), were also computed on the FINE and VFINE grids of XGRID 8, and on the FINE grid of XGRID's default mesher (the card without the XGRID block and without APPEND):

Grid Cells (one side) Memory Fn Iterations CT·10³ Difference to the measurement Sinkage (cm) Trim (°) Wake fraction w
MEDIUM (the card) 4.7 million 32 GB 0.152 2700 3.587 −1.5 % −0.417 −0.045 0.329
0.260 3560 3.721 +0.3 % −1.427 −0.156 0.289
FINE 7.5 million 49 GB 0.152 3040 3.663 +0.6 % −0.417 −0.045 0.328
0.260 4000 3.819 +2.9 % −1.428 −0.155 0.285
VFINE 9.1 million 60 GB 0.152 3480 3.668 +0.7 % −0.418 −0.045 0.327
0.260 4000 3.823 +3.0 % −1.428 −0.155 0.284
FINE, default mesher (no XGRID block) 6.7 million 45 GB 0.152 3980 3.694 +1.5 % −0.418 −0.045 0.331
0.260 4000 3.856 +3.9 % −1.435 −0.152 0.280

The three XGRID 8 grids differ in the cells along and around the hull; the cells across the free surface are the same, so VFINE has 1.2 times the cells of FINE. On one machine, at 24 knots, MEDIUM took 1 h 12 min, FINE 2 h 22 min and the default mesher's FINE 1 h 46 min; the time per iteration grows with the number of cells.

Resistance coefficient, sinkage and trim against the Froude number: the card's grid at the six speeds, and the finer grids at 14 and 24 knots, with the measurement

The figure shows the card's MEDIUM curve at the six speeds, and at 14 and 24 knots the FINE (triangle), VFINE (circle) and default mesher's FINE (diamond) results. To read from it:

  1. FINE and VFINE give the same result: the resistance within 0.1 % at both speeds, and the same sinkage and trim. The FINE result is grid converged. At 14 knots it is 0.6 % above the measurement, within the ±3 % band, and at 24 knots 2.9 % above, at the edge of the band.
  2. MEDIUM gives less resistance, 2.1 % less than FINE at 14 knots and 2.6 % less at 24, with the same sinkage and trim, the same wave pattern and the nominal wake within 0.005. It lies closer to the measurement at both speeds, and over the six speeds within 1.5 % on average. This closeness is in part a cancellation: the resistance a coarser grid misses offsets the difference the converged solution has to the measurement. For this slender, fast hull the MEDIUM grid gives the curve within the accuracy needed for a validation or a design comparison, at two thirds of the memory and half the time of FINE. MEDIUM, the card, is the grid to use for this kind of hull. Choose FINE or VFINE when the details of the flow matter more than the resistance: the waves away from the hull, the flow at the stern, or a hull where the boundary layer is thick, as the JBC example shows.
  3. The default mesher and XGRID 8 give, on the FINE size, the same sinkage and trim. The default mesher's grid has 11 % fewer cells and gives 0.8 to 1.0 % more resistance. Its computations also settle more slowly: the attitude converged after 3410 iterations at 24 knots against 2340 with XGRID 8, and at 14 knots after 3980 iterations against 3040. XGRID 8 is the mesher to use with VOF.

How long to run

Resistance coefficient, sinkage and trim over the iterations at Fn 0.26, with the measured values

The upper panel shows CT at every iteration of the card's computation, the lower panels the sinkage and the trim from iteration 300, when FREE starts to move the hull; the dotted lines are the measured values.

To read from it:

  1. The resistance settles in a slow oscillation. The waves reflecting along the hull make the forces oscillate with a period of about 300 iterations; the oscillation dies out over some 2500 iterations. Over the last 500 iterations CT varies by ±0.04 %.
  2. The attitude settles in about 2000 iterations. With FREE's default relaxation the hull moves a small part of the remaining correction at each update (1 % in sinkage, SIRELAX; 2 % in trim, TRRELAX; every 10 iterations), so it approaches the equilibrium exponentially. The sinkage is settled at about 2000 iterations and the trim at about 2500; XCHAP reports the attitude converged at iteration 2390, when the hull had moved less than 10⁻⁵ Lpp and 0.001° per update for ten updates. At the lower speeds the attitude converges earlier, from 1600 iterations at Fn = 0.108, and at the highest later, at 2750.
  3. The computation stopped on the convergence criterion after 3560 iterations, well after the forces and the attitude had settled. Four of the six speeds stopped on the criterion between 2700 and 3840 iterations; the lowest and the highest speed ran to the 4000 iterations of the default MAXITER, although their forces and attitude had settled too. Judge a free-surface computation by the histories, not by the iteration count: the force should have stopped oscillating, and the sinkage and trim should have levelled off.

References

  • Tokyo 2015 Workshop on CFD in Ship Hydrodynamics, KCS test case 2.1 (resistance, sinkage and trim in calm water with the rudder, six speeds), NMRI.
  • Larsson, L., Stern, F., Visonneau, M. (eds.): Numerical Ship Hydrodynamics: An Assessment of the Gothenburg 2010 Workshop, Springer, 2014 (case 2.2b, the same test).
  • Kim, J.: Evaluation of Resistance, Sinkage, Trim and Self-propulsion Predictions for KCS, in Hino et al. (eds.), below.
  • Hino, T., Stern, F., Larsson, L., Visonneau, M., Hirata, N., Kim, J. (eds.): Numerical Ship Hydrodynamics: An Assessment of the Tokyo 2015 Workshop, Lecture Notes in Applied and Computational Mechanics 94, Springer, 2020.
  • ITTC: Uncertainty Analysis in CFD Verification and Validation, Methodology and Procedures, Recommended Procedures and Guidelines 7.5-03-01-01, Rev. 03, 2017.