Skip to content

Resistance with VoF, free to sink and trim (JBC)

This example computes the resistance of a full hull form towed in calm water, with the free surface (VOF) and the hull free to sink and trim: the Japan Bulk Carrier (JBC) at model scale, without rudder, propeller or energy-saving device. The computation is compared with the towing-tank measurements of the National Maritime Research Institute (NMRI), the reference of the Tokyo 2015 CFD workshop: the total resistance, the sinkage and trim, the wave profile on the hull, two longitudinal wave cuts, and the velocity field at the stern measured by stereo-PIV.

It demonstrates the recommended set-up for a resistance computation of a displacement hull with the free surface: one RANS computation with VOF, the hull free to sink and trim (FREE), on the FINE grid with the hull mesh of XGRID 8 (XGRID CONTROL(XGR8)) and otherwise on the defaults. It also shows what to look at in the results beyond the resistance coefficients: how far the computation has converged in sinkage and trim, how well the wave field is resolved away from the hull, and the nominal wake at the propeller position.

The measured case

The model was towed at constant speed in calm water, free to sink and trim, without rudder, propeller or the energy-saving duct (Tokyo 2015 cases 1.1a for the resistance and 1.3a for the local flow).

Quantity Value Source
Scale 1 : 40 geometry
Length between perpendiculars Lpp 7.000 m geometry
Draught 0.4125 m, even keel at rest test condition
Wetted surface at rest S0 12.221 m² (S0/Lpp² = 0.2494) test condition
Speed U 1.179 m/s (Fn = 0.142) test condition
Water fresh, ν = 1.107·10⁻⁶ m²/s (no density given) test condition
Reynolds number 7.46·10⁶ test condition
Attitude free to sink and trim test condition

The measured values used as the reference:

Quantity Measured Uncertainty
Total resistance coefficient CT (on S0) 4.289·10⁻³ (RT = 36.2 N) 1.0 %
Sinkage at Lpp/2 (positive up) −0.086 % of Lpp (6.0 mm down) not given
Trim (positive bow up) −0.180 % of Lpp (0.103°, bow down) not given
Wave profile on the hull 20 points, x/Lpp 0 to 1 not given
Longitudinal wave cuts at y/Lpp = −0.1043 and −0.1900, x/Lpp −0.94 to 4.96 not given
Velocity, stereo-PIV three cross-planes at the stern (below) not given
Plane Position, from the fore perpendicular Where
S2 x/Lpp = 0.9625 the stern frame SS 3/8
S4 x/Lpp = 0.9843 10 mm ahead of the propeller plane (no propeller fitted)
S7 x/Lpp = 1.0 (aft perpendicular) behind the propeller plane

The PIV planes are fixed to the model, so they moved with it as it sank and trimmed. The wave pattern around the hull was measured through the two longitudinal wave cuts only; the wave pattern figure on this page is the computation's.

Deriving the inputs

The hull is read from the model-scale IGES file (LPP=7, ZORI=0.4125, the draught), and the speed is the measured speed of the model, VSHIP(VM_S=1.179). The hull is given at the size of the model and nothing on the card scales it (no SCALE or REFLEN), so VM_S is the model's speed. See Speed, size and water in the in-depth examples.

Water. FLUID(FRESH, TEMPERATURE=16.08): SHIPFLOW's fresh water at 16.08 °C has ν = 1.107·10⁻⁶ m²/s, the viscosity NMRI gives for the test, and the computation runs at the test's Re = UL/ν = 1.179 · 7 / 1.107·10⁻⁶ = 7.46·10⁶ and Fn = 1.179/√(9.80665 · 7) = 0.1423, which the test rounds to 0.142. NMRI gives no density; SHIPFLOW's 998.9 kg/m³ at 16.08 °C only scales the forces in newtons, and the comparison is made with the resistance coefficient.

Other ways to set up the speed and the water:

  • The test's water given explicitly: the temperature is enough on the card, but when a test report gives the properties of its water, they can be stated on FLUID and then replace the values SHIPFLOW takes from the temperature, for example FLUID(FRESH, TEMPERATURE=16.08, VISCOSITY=1.107e-6), with DENSITY= as well when the density is reported. Keep TEMPERATURE where a propeller model runs: it takes its water from it.
  • The Froude number: VSHIP(FN=0.1423, REFLEN=7) gives the same speed, with the Reynolds number from the water.
  • Not VSHIP(FN=..., RN=...) for a model test: with both numbers SHIPFLOW computes the reference length from Fn, Re and the viscosity, L = (Re²ν²/(Fn²g))1/3, and REFLEN is not used. With the water of 16.08 °C and Re = 7.46·10⁶ that is 7.013 m instead of the model's 7 m.

Wetted surface. SHIPFLOW computes the wetted surface of the hull from its own geometry, S = 12.421 m² (S/Lpp² = 0.25349, printed in the _SUMMARY file), 1.6 % more than the S0 of the test. The resistance coefficient in the output is on SHIPFLOW's S. To compare forces, the computed CT is taken to the test's S0: CT · S/S0. All coefficients on this page are on S0.

The command file

examples/jbc_resistance_vof (7.1 million cells, one side of the hull).

Resources: about 47 GB of memory. The computation was run on 24 cores (PARALLEL(NPROC=24)) and took 1 h 30 min for 4000 iterations. Any number of cores can be used; fewer cores take longer. With less memory, the MEDIUM grid needs about 30 GB and gives the resistance within 1 % of FINE, see How fine the grid needs to be.

xflow
  titl   ( titl="JBC resistance with a free surface (VOF), free sinkage and trim, Tokyo 2015 cases 1.1a and 1.3a" )
  prog   ( xchap )
  hull   ( mono, vof, fine )
  offs   ( iges="geometry/jbc_hull.igs", zori=0.4125, lpp=7 )
  vshi   ( vm_s=1.179 )
  fluid  ( fresh, temperature=16.08 )
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 neither the potential-flow solution (XPAN) nor its estimate of the attitude is needed.

HULL(MONO, VOF, FINE): a single-skeg hull computed with the volume-of-fluid free surface (VOF); FINE is the grid size (see How fine the grid needs to be).

OFFSET, VSHIP, FLUID: the hull, the speed and the water, see Deriving the inputs.

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, boss, 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.

PARALLEL(NPROC=24): the number of processes, 24 for the computations on this page; any number the machine has can be used.

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. With the defaults the drag is balanced at the hydrodynamic centre, so the towing force puts no trimming moment on the hull (NOMOMENT). Holding the hull at even keel instead gives 0.9 % less resistance here (see At even keel).

What is not on the card. No SYMMETRY: without a propeller the default is the xz-plane of symmetry, so one side of the hull is computed. No WTRANSOM: with VOF the transom block of XGRID, which closes the grid behind the transom stern so that the free surface can follow the transom, is added by default (NOWTRANSOM leaves it out). The turbulence model is the default, EASM on the hull. The solver is the default Krylov solver. The free-surface settings of XGRID (the refinement band around the still waterline, XDISTR) are the defaults. No CONTROL(MAXIT): with VOF the maximum number of iterations is 4000 by default (200 without a free surface), since the waves along the hull take some 2000 iterations to settle and the sinkage and trim follow them. The computation stops earlier when the convergence criterion (CONVERGENCE, on by default) is met; with VOF the criterion also waits for the sinkage and trim to settle. The computation of the card ran to the 4000 iterations: its forces were steady from about 2500 iterations and the attitude had converged at 1870, but the residuals had not yet met the criterion. The other grids on this page stopped on the criterion between 2600 and 4000 iterations.

Results and comparison with the measurement

The results on this page were computed with SHIPFLOW 9.0.01.

Quantity Measured Computed Difference
CT·10³ (on S0) 4.289 4.243 −1.1 %
CF·10³, friction 3.078
CP·10³, pressure 1.167
Sinkage at Lpp/2 (% Lpp) −0.086 −0.088 0.002 (0.15 mm) more
Trim (°, bow up positive) −0.103 −0.106 0.003° more

Resistance coefficient, sinkage and trim over the iterations, with the measured values, for the card and for the hull held at even keel

To read from it:

  1. The resistance is 1.1 % below the measurement, just outside the measurement's uncertainty of 1 %. On the VFINE grid it is 0.5 % below, see How fine the grid needs to be. The towing tank measures the total resistance only; the split into friction and pressure is the computation's.
  2. The attitude agrees with the test: the computed sinkage is 2.5 % larger than measured (0.15 mm of 6.0 mm) and the trim 2.5 % larger (0.003°). Sinkage and trim are much harder to measure than the resistance: on a displacement hull at this speed they are very small, here 6 mm of sinkage on a 7 m model, and NMRI gives no uncertainty for them. Over all the computations submitted to the Tokyo 2015 workshop, the mean difference from these measurements was 4.7 % in sinkage and 3.1 % in trim (see the references). The attitude is converged: from iteration 1870 the hull moved less than 10⁻⁵ Lpp and 0.001° per update, which XCHAP reports in the log, and the middle and right panels are flat from there.
  3. The forces settle in a slow oscillation that dies out over 2500 iterations. Judge a free-surface computation by the force history, not by the iteration count.

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 waves

Wave profile on the hull and two longitudinal wave cuts, computed with free sinkage and trim and at even keel, against the measurement

Computed wave pattern around the hull, with the positions of the two measured wave cuts

To read from it:

  1. The wave profile on the hull agrees closely with the measurement: the bow wave of 9.6·10⁻³ Lpp (67 mm, measured 66 mm), the trough at the shoulder and the stern wave, with an rms difference of 0.30·10⁻³ Lpp (2.1 mm) and a correlation of 0.995.
  2. The near wave cut (y/Lpp = −0.1043, 0.024 Lpp outside the side of the hull) has the measured waves with the measured lengths and heights, but 0.02 Lpp (0.15 m) further forward over its whole length, the bow wave, the waves along the hull and the stern waves alike. Moved by that distance, the computed cut matches the measured one with a correlation of 0.99. The same constant shift, and a bow wave higher than measured, are found in every computation submitted to the workshop, at both cuts; the workshop's assessment notes that this may point to an error in the reported data.
  3. The far wave cut (y/Lpp = −0.19) has the right wave system, 0.03 Lpp ahead of the measured one, with the waves up to 1.4 times as high in the shoulder region (x/Lpp 0.15 to 0.45); behind the stern they fade where the measurement still shows them. At this cut the workshop's computations differed more from each other: all had the shifted phase and the higher bow wave, most predicted lower waves than measured and some higher. The grid away from the hull limits this cut, see How fine the grid needs to be.
  4. Sinkage and trim hardly change the waves: the computation at even keel gives the same profile and cuts, only the resistance changes.

The wave elevation is taken from the volume fraction 0.5 in the computed field (<case>.cgns, the VolumeFraction of the hull grid), for example with the Contour filter of ParaView.

The flow at the stern

Axial velocity and transverse velocity vectors on the three PIV planes at the stern, measured and computed

The figure shows the three planes seen from behind, looking forward: measured on the left, computed on the right. The colour is the axial velocity U divided by the speed of the model V: 1 is the undisturbed flow, and dark blue is the slow flow in the wake of the hull. The arrows are the velocity in the plane (V sideways, W upwards), which shows how the flow turns behind the hull. The dashed circle is the propeller disc (no propeller was fitted). The measurement covers part of each plane; the computation covers the whole plane, one side computed and mirrored, with the hull and the shaft left blank.

Circumferential mean of the axial velocity on rings about the shaft at S4 and S7, measured and computed

The second figure averages the axial velocity on rings about the shaft, from 0.2 to 1.2 propeller radii R, over the part of each plane that was measured: the wake ring by ring, as the propeller would meet it.

Nominal wake, 1 − U/V over the propeller disc (0.2 to 1.0 R) Measured Computed
S2 (x/Lpp 0.9625) 0.653 0.633
S4 (x/Lpp 0.9843, ahead of the propeller plane) 0.641 0.613
S7 (x/Lpp 1.0) 0.559 0.555

To read from it:

  1. The stern flow of a full hull is predicted: the hook-shaped low-velocity region of the bilge vortex at S2 and the deep wake around the shaft at S4 and S7, with the vortex pair that turns the flow up into the propeller disc.
  2. The nominal wake over the disc is close to the measurement: within 0.004 at S7, the propeller plane, and 0.02 to 0.03 shallower at S2 and S4. At S4, 10 mm ahead of the propeller plane, the difference sits mostly in the outer part of the disc (0.85 to 1.05 R). The hull grid of the default mesher, on the same FINE size, gives a slightly deeper wake on all three planes (0.652, 0.628 and 0.567), see How fine the grid needs to be.
  3. At S7, behind the propeller plane, the wake follows the measurement ring by ring: within about 0.02 U/V from 0.35 R to the tip, including the slowest flow at about 0.65 R. Only on the innermost ring next to the shaft (0.2 to 0.3 R) is the computed flow 0.045 slower.
  4. The free surface and the attitude hardly change the stern flow: at even keel the nominal wake over the disc changes by less than 0.001, and a double-body computation gives it within about 0.01. A double-body computation therefore gives the propeller inflow of a slow full hull, which the self-propulsion example builds on (see Self-propulsion DB with and without an energy-saving duct (JBC)).

The planes were sampled at their position on the sunk and trimmed model, and the velocity was turned into the model's axes, as the PIV measures it.

At even keel

Without FREE the hull is held at the even keel of rest, at the still waterline:

Measured Free (the card) Even keel
CT·10³ 4.289 4.243 (−1.1 %) 4.207 (−1.9 %)

The sunk and trimmed hull has 0.1 % more wetted surface than at rest; its friction resistance rises by 0.7 % and its pressure resistance by 1.3 %, 0.9 % of the total. The waves and the stern flow hardly change. For a resistance prediction of a displacement hull, free sinkage and trim are worth the same computing time; for the flow at the stern alone, the even keel is enough.

The free surface in the resistance

A double-body computation (no free surface, even keel) of the same hull on the FINE size gives CT = 4.020·10⁻³ (−6.3 %). The free surface adds 0.187·10⁻³ at even keel, and the sinkage and trim another 0.036·10⁻³: together 0.223·10⁻³, 5.3 % of the total resistance. At Fn = 0.142 the wave resistance of a full hull is small, but not negligible against a 1 % measurement uncertainty. The double body was computed without the XGRID block, on the default hull mesher: XGRID 8 makes free-surface grids, and the transom of the double body is under water. On the FINE size the two meshers give the resistance within 0.2 % of each other, see How fine the grid needs to be.

This share is the wave resistance that a double-body computation of the same hull leaves out. The example Self-propulsion DB with and without an energy-saving duct (JBC) takes it into the towing force of its double-body self-propulsion computations: 1.90 N, CW = 0.220·10⁻³ on SHIPFLOW's wetted surface S.

How fine the grid needs to be

Grid Cells (one side) Memory Iterations CT·10³ Difference to the measurement Sinkage (% Lpp) Trim (°)
MEDIUM (the default) 4.2 million 30 GB 3650 4.208 −1.9 % −0.088 −0.106
FINE (the card) 7.1 million 47 GB 4000 4.243 −1.1 % −0.088 −0.106
VFINE 8.7 million 56 GB 3970 4.269 −0.5 % −0.088 −0.106
FINE, default mesher (no XGRID block) 6.4 million 41 GB 3830 4.251 −0.9 % −0.088 −0.105

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. The computations ran on two machines of different speed, so the times are not compared; on one machine the time per iteration grows with the number of cells, and the iteration counts in the table are alike.

The resistance rises with the grid, toward the measurement: MEDIUM is 0.8 % below FINE, and VFINE 0.6 % above it. All three give the same sinkage and trim, the same wave profile on the hull and the same wave cuts, and the nominal wake within 0.03 of the measurement on all three planes. FINE, the card, is the grid to use when the resources allow, and MEDIUM is a sound choice when memory is limited: with 65 % of the memory it gives the resistance within 1 % of FINE. VFINE brings the resistance 0.6 % closer for 1.2 times the memory.

The default mesher and XGRID 8 give, on the FINE size, the resistance within 0.2 % of each other, the same sinkage and trim and the same waves. They differ at the stern: the default mesher has fewer cells and gives a slightly deeper wake on the three planes (0.652, 0.628 and 0.567 against 0.633, 0.613 and 0.555; measured 0.653, 0.641 and 0.559).

Wave cuts on the FINE and VFINE grids against the measurement, and the number of grid cells per wavelength across the two cuts

The waves are the same on both grids. The two lower panels show the FINE grid on the free surface in its two directions. Along the hull (left, against x/Lpp), the spacing in x is set by the distribution of the hull grid in x and is the same at both cuts: 20 to 50 cells per transverse wavelength 2πFn² Lpp = 0.127 Lpp alongside the hull, fewer ahead of the bow and behind the stern. Away from the hull (right, against the distance from the centre plane), the cells start very thin at the hull, for the boundary layer, and grow outward; the three sections shown lie on top of each other. A wavelength spans about 40 cells at the near cut, 0.024 Lpp from the hull, but 9 at the far cut. The divergent waves cross this coarser region on their way out from the hull and lose some phase and height on it; behind the stern the cells in x grow too, and the waves fade there at both cuts. When the wave field away from the hull is what is wanted (wave cuts far from the hull, wave wash), refine the grid there; for the resistance, the attitude and the waves along the hull it is not needed.

References

  • Tokyo 2015 Workshop on CFD in Ship Hydrodynamics, JBC geometry and test cases 1.1a (resistance without ESD) and 1.3a (wave profile, wave cuts and stereo-PIV of the towed hull without ESD), NMRI.
  • Hirata, N.: JBC test data in NMRI, Tokyo 2015 Workshop on CFD in Ship Hydrodynamics.
  • Larsson, L.: Evaluation of Resistance, Sinkage, Trim and Wave Pattern Predictions for JBC, 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.