Examples Manual¶
SHIPFLOW is delivered with ready-made command files that cover many ship types and analysis
approaches. They are in the examples folder of the SHIPFLOW installation, for example
C:\FLOWTECH\SHIPFLOW<version>-x86_64\examples on Windows, and the hull geometry they read (IGES and offset
files) is in its geometry subfolder. Each example is one command file with the name given in the
table.
In-depth examples¶
For a growing number of examples there is a dedicated page that goes through the command file line by line: why each command is there, how the numbers in it were derived from the case at hand, which settings are the recommended ones for that type of application, and, where measurements are available, how the computed results compare with them. These pages are the starting point for setting up a computation of the same kind.
The pages go from simple to complex: resistance, self-propulsion, open water, cavitation. The names say
the set-up: hybrid is SHIPFLOW's combination of potential flow for the free surface, the wave
resistance and the sinkage and trim with RANS for the viscous flow on the double body
(PROGRAM(ALL)), VoF a RANS computation with the free surface by volume of fluid, DB a
RANS computation without a free surface (double body), and POW an open-water computation of
the propeller alone.
| Page | Application |
|---|---|
| Resistance with VoF, free to sink and trim (JBC) | The resistance, sinkage and trim of a full hull towed in calm water, with the free surface (VOF) and free sinkage and trim (FREE), compared with the towing-tank measurement; the wave profile on the hull and two wave cuts, and the nominal wake at the stern against stereo-PIV; how fine the grid needs to be for the waves away from the hull |
| Resistance curve with VoF at six speeds, with rudder (KCS) | The resistance curve of a container ship with its rudder, towed in calm water at six speeds with the free surface (VOF) and free sinkage and trim (FREE), compared with the towing-tank measurement; how long a free-surface computation has to run before the hull has settled in sinkage and trim |
| Resistance curve with the hybrid method at six speeds, with rudder (KCS) | The same resistance curve with the hybrid method (PROGRAM(ALL)): the free surface, the sinkage and the trim from the potential flow, the viscous resistance from RANS on the double body; minutes per speed instead of hours; when to treat the transom as dry (HULL(TRANS)); the resistance components of both methods compared; the nominal wake; which RANS grid, MEDIUM to VFINE, for which purpose |
| Self-propulsion hybrid with complete propulsive factors: resistance, POW and self-propulsion from one file (KCS) | The self-propulsion point of the KCS model with PPROP, resistance, open water and self-propulsion from one file (SPAUTO), compared with the towing-tank measurement; the same case with the lifting line (LLINE) |
| Self-propulsion hybrid, the self-propulsion point only: n, T, Q, P_D without resistance and POW runs (KCS) | The same self-propulsion point as one computation: the hull-gradient correction from its own first 50 towed iterations (NOMINAL AUTO); when the propulsive factors are not needed |
| Self-propulsion DB with and without an energy-saving duct (JBC) | The delivered-power saving of a duct ahead of the propeller from two self-propulsion computations with PPROP, without and with the duct, compared with the measured saving; the flow at the propeller against stereo-PIV, the change of the propeller loading and the mechanism of the saving; why the propeller model starts later (STARTAT) with an appendage close ahead of the propeller |
| POW in a cavitation tunnel at fixed n with the tunnel's hub and cap: panel method and lifting line (PPTC) | Open water as tested in a cavitation tunnel, at a constant rate of revolution (POW with FIXN), with the facility's own hub, cap and shaft given as a contour file (HUBFILE), compared with the measured thrust and torque; why the hub matters for a large hub at light loading |
| POW sheet cavitation against measured cavity areas (E779A) | Sheet cavitation over a range of cavitation numbers at three loadings, compared with the measured cavity areas; where the sheet model is reliable |
| POW tip-vortex and face cavitation inception bucket (PPTC) | The inception bucket of a cavitation-tunnel test from one open-water computation (POW with FIXN, the tunnel's hub, TIPVORTEX and FACECAV): the tip vortex on the heavy side, the face on the light side, compared with the measured inception at seven loadings; the sheet cavity of a published case as a by-product |
| Pressure pulses in a cavitation tunnel with an inclined shaft, wetted and cavitating (PPTC) | Pressure pulses on the tunnel ceiling from a propeller on a 12° shaft, wetted and cavitating, with the tunnel's shaft, hub and cap (HUBFILE) and the points given in a file (PULSES), compared with SVA's measured harmonics |
| Self-propulsion hybrid with cavitation, tip vortex and hull pressure pulses (KCS) | The propeller behind the hull at the ship's cavitation number, from the same one computation (HUBON, POST, CAVITATION, FULLSCALE, TIPVORTEX, PULSES="AUTO"): the sheet cavity through the wake peak, the tip-vortex inception margin and the pressure pulses on the hull above the propeller; the cavitating propeller in the self-propulsion balance as the second step |
Speed, size and water in the in-depth examples¶
The in-depth examples give the speed as a test report gives it, in knots or in metres per second, at the size of the geometry on the command file. Three set-ups occur:
| Geometry on the command file | Speed on VSHIP |
What is computed | Example |
|---|---|---|---|
Hull at full scale, OFFSET(LPP=230) |
VKNOT=24, SCALE=31.6 |
The full-scale speed, scaled with the hull and the propeller to the model of the test by Froude's law: LPP 7.2785 m, D 0.250 m, U 2.1964 m/s | KCS |
Hull at model scale, OFFSET(LPP=7) |
VM_S=1.179 |
The model at the speed of the test; nothing is scaled | JBC |
Propeller in open water or in a tunnel, PROPELLER(DPROP=0.250) |
VM_S=7.5083, the advance speed J·n·D at JV |
The propeller at the diameter given, at the advance speed of the test; nothing is scaled | PPTC, E779A |
VM_S and VKNOT are the speed of the geometry as it is given on the command file. SCALE, or
REFLEN together with OFFSET(LPP), scales the geometry and the speed to the computed size by Froude's
law, and the Reynolds number is that of the computed size. Without them nothing is scaled: a propeller
given with DPROP=0.250 is computed at 0.25 m.
Do not add SCALE or REFLEN when the geometry is already at the size of the test. An open-water
case has no hull length, and SHIPFLOW then takes the length of the geometry as 1 m.
VSHIP(VM_S=7.5083, REFLEN=0.25) is read as the speed of a 1 m long body scaled down to 0.25 m: the
propeller runs at half the speed and half the Reynolds number.
Check the size and the speed in the output of the computation. The propeller model writes the
diameter it builds the blade with and the speed to pprop_<ID>.log in the run directory, for example
PPROP: blade size: D = 0.25 m = PROPELLER|DPROP 0.25 / scale 1.0 and
PPROP: model ship speed 7.5083 m/s. An open-water computation also prints the scale of its box and the
Reynolds number of the propeller: POW: the box is in the case's units, one unit = 1 m ... and Re_D ....
Froude and Reynolds numbers. SHIPFLOW computes them on OFFSET(LPP), in open water on 1 m. Where a
test quotes them on another length, for example the waterline length, convert them before comparing; the
speed, the forces and the rate of revolution need no conversion. The speed can still be given as
VSHIP(FN=..., REFLEN=...), with the Reynolds number from the water, or as
VSHIP(FN=..., RN=..., REFLEN=...); each example page shows the equivalent.
Water. FLUID(FRESH, TEMPERATURE=...) at the temperature of the test gives the density, the
viscosity and the vapour pressure of fresh water at that temperature. To match the density and viscosity
of a report exactly, give them as well, for example
FLUID(FRESH, TEMPERATURE=22.6, DENS=997.59, VISC=9.470e-7): DENS and VISC replace the tabulated
values in the RANS computation. Keep
TEMPERATURE: the propeller model takes the viscosity of the blade friction and the vapour pressure from
it, and without it uses 15 °C. Without FRESH, FLUID is sea water.
Overview of the examples¶
The columns show what each example demonstrates:
- Resistance, Self-propulsion: the type of computation.
- Appendages: the case includes appendages, for example rudders, shaft brackets, a propeller duct, an energy saving device, or a keel and rudder modelled as lifting surfaces.
- Potential flow, RANS - DM, RANS - VOF: the flow model: potential flow (XPAN), RANS (XCHAP) with a double model, that is without a free surface, or RANS with a volume of fluid (VOF) free surface.
| File name | Ship type | Resistance | Self-propulsion | Appendages | Potential flow | RANS - DM | RANS - VOF | Notes |
|---|---|---|---|---|---|---|---|---|
athena_xchap_vof |
Fast monohull | ✓ | ✓ | |||||
athena_xchap_vof_selfpropulsion_free |
Fast monohull | ✓ | ✓ | ✓ | Free sinkage and trim | |||
athena_xpan |
Fast monohull | ✓ | ✓ | |||||
catamaran_xpan |
Catamaran | ✓ | ✓ | |||||
delft1_xchap_vof |
Sailing boat | ✓ | ✓ | |||||
delft1_xpan_lift |
Sailing boat | ✓ | ✓ | ✓ | Lifting surfaces | |||
delft28_xpan_heel10 |
Sailing boat | ✓ | ✓ | ✓ | ||||
dtc_xchap_vof_23kn_xgr8 |
Container carrier | ✓ | ✓ | |||||
e779a_pow_sheet_cavitation |
(Propeller in open water) | ✓ | Sheet cavitation at a prescribed cavitation number, compared with measured cavity areas (in-depth example) | |||||
pptc_tunnel_pressure_pulses |
(Propeller in a tunnel) | ✓ | Pressure pulses on the tunnel ceiling with an inclined shaft, wetted and cavitating, compared with the measured harmonics (in-depth example) | |||||
hamb_resistance_model |
Container carrier | ✓ | ✓ | ✓ | ✓ | |||
hamb_selfpropulsion_full__64GB * |
Container carrier | ✓ | ✓ | ✓ | ✓ | Full scale | ||
hamb_selfpropulsion_model_ittc78 |
Container carrier | ✓ | ✓ | ✓ | ✓ | ITTC78 extrapolation | ||
headbox_rudder_xchap |
(Local flow) | ✓ | ✓ | |||||
jbc_resistance_with_ESD__64GB * |
Bulk carrier | ✓ | ✓ | ✓ | ✓ | Energy saving device | ||
jbc_resistance_without_ESD__64GB * |
Bulk carrier | ✓ | ✓ | ✓ | ✓ | |||
jbc_selfpropulsion_with_ESD__64GB * |
Bulk carrier | ✓ | ✓ | ✓ | ✓ | Energy saving device | ||
jbc_selfpropulsion_without_ESD__64GB * |
Bulk carrier | ✓ | ✓ | ✓ | ✓ | |||
jbc_selfpropulsion_db_with_ESD__128GB † |
Bulk carrier | ✓ | ✓ | ✓ | Energy saving device, panel-method propeller (PPROP) with the hub, one computation (in-depth example) |
|||
jbc_selfpropulsion_db_without_ESD__128GB † |
Bulk carrier | ✓ | ✓ | Panel-method propeller (PPROP) with the hub, one computation, the reference for the energy saving device (in-depth example) |
||||
jbc_resistance_vof |
Bulk carrier | ✓ | ✓ | Free sinkage and trim, compared with the measured resistance, attitude, waves and stern flow (in-depth example) | ||||
jbc_xchap_vof |
Bulk carrier | ✓ | ✓ | |||||
kcs_resistance |
Container carrier | ✓ | ✓ | ✓ | ✓ | |||
kcs_resistance_vof |
Container carrier | ✓ | ✓ | ✓ | With the rudder, free sinkage and trim, at 24 knots; the other five speeds of the test by changing VKNOT (in-depth example) |
|||
kcs_resistance_hybrid |
Container carrier | ✓ | ✓ | ✓ | ✓ | Hybrid method, with the rudder, free sinkage and trim, at 24 knots; the other five speeds of the test by changing VKNOT, with HULL(TRANS) at 10 and 14 knots; the nominal wake (in-depth example) |
||
kcs_selfpropulsion__64GB * |
Container carrier | ✓ | ✓ | ✓ | ||||
kcs_selfpropulsion_hybrid_complete__128GB † |
Container carrier | ✓ | ✓ | ✓ | ✓ | Panel-method propeller (PPROP), SPAUTO (in-depth example) |
||
kcs_selfpropulsion_hybrid_point__128GB † |
Container carrier | ✓ | ✓ | ✓ | Panel-method propeller (PPROP), one computation (in-depth example) |
|||
kcs_selfpropulsion_hybrid_cavitation__128GB † |
Container carrier | ✓ | ✓ | ✓ | Panel-method propeller (PPROP), one computation, cavitation, tip vortex and pressure pulses at the ship's cavitation number (in-depth example) |
|||
kcs_selfpropulsion_hybrid_point_distributions__128GB † |
Container carrier | ✓ | ✓ | ✓ | Panel-method propeller (PPROP), one computation, the propeller given as the blade distributions of the PROPELLER command, no geometry file (in-depth example) |
|||
kcs_xchap_vof |
Container carrier | ✓ | ✓ | |||||
kvlcc2_resistance |
VLCC | ✓ | ✓ | ✓ | ||||
kvlcc2_xchap_vof |
VLCC | ✓ | ✓ | |||||
kvlcc2m_resistance |
VLCC | ✓ | ✓ | ✓ | ||||
kvlcc2m_xchap_drift06 |
VLCC | ✓ | ✓ | Drift | ||||
kvlcc2m_xchap_turn |
VLCC | ✓ | ✓ | Turning motion | ||||
osv_selfpropulsion_ducted |
OSV | ✓ | ✓ | ✓ | Ducted propeller | |||
pptc_pow_tunnel_hub |
(Propeller in open water) | ✓ | Open water in a cavitation tunnel at constant rate of revolution (FIXN) with a custom hub and cap (HUBFILE), compared with the measured curve (in-depth example) |
|||||
pptc_pow_tunnel_hub_lline |
(Propeller in open water) | ✓ | The same open water with the lifting line (LLINE) and the tunnel's hub and cap as a rig in the RANS computation (HUBFILE) (in-depth example) |
|||||
pptc_pow_tipvortex_bucket |
(Propeller in open water) | ✓ | Tip-vortex and face cavitation inception over the seven loadings of a cavitation-tunnel test, at constant rate of revolution (FIXN) with the tunnel's hub (HUBFILE), compared with the measured inception (in-depth example) |
|||||
ropax_selfpropulsion |
RoPax | ✓ | ✓ | ✓ | ✓ | Endplate, open shaft, adaptive grids | ||
rotbody_xchap |
(Local flow) | ✓ | ✓ | |||||
submarine_xchap |
Submarine | ✓ | ✓ | |||||
submarine_xpan |
Submarine | ✓ | ✓ | |||||
trimaran_xchap_step1_creategrid |
Trimaran | Creates the grid imported by step 2 | ||||||
trimaran_xchap_step2_run |
Trimaran | ✓ | ✓ | Imported grids | ||||
trimaran_xpan |
Trimaran | ✓ | ✓ | |||||
twinskeg_kcs_vof_xgr8_resistance |
Twin-skeg | ✓ | ✓ | Hull surface mesh by XGR8 | ||||
twinskeg_kcs_xgr8_resistance |
Twin-skeg | ✓ | ✓ | ✓ | Hull surface mesh by XGR8 | |||
twinskeg_kcs_xgr8_resistance_fromOffset |
Twin-skeg | ✓ | ✓ | ✓ | As above, hull read from the offset file off_tkcs |
* Requires at least 64 GB of RAM. † Requires at least 128 GB of RAM.
Other command files in the examples folder¶
The examples folder also contains command files that are not listed in the table above:
| File name | Content |
|---|---|
athena_xchap_vof_xgr8, delft1_xchap_vof_xgr8, dtc_xchap_vof_23kn_xgr8, jbc_xchap_vof_xgr8, kcs_xchap_vof_xgr8, kvlcc2_xchap_vof_xgr8 |
Variants of the VOF examples of the same name in which the hull surface mesh is generated by XGR8. |
athena_rails_xchap_xgr8_vof |
Athena with rails, VOF, hull surface mesh generated by XGR8. |
test1, test2, test3 |
Short test cases on a simple hull (geometry/off_test). test1 and test2 are used to check an installation. |
more_examples |
A folder with further command files and offset files, not described here. |