Consider the case of a ship in waves: a sea-keeping simulation. Test with regular wave propagation in simple 2-D conditions give us guidance on required space and time resolution. For the Naval Hydro Pack, I would like to have about 30 cells across wave height peak-to-trough, around 120 cells per wave length and 100 to 300 time-steps per wave encounter period. With second-order discretisation settings, both the VOF and level set solver in the Naval Hydro Pack reproduce a good potential theory wave to remarkable accuracy and can propagate it for over 100 wave lengths without significant deformation.
We shall say that the mesh and time-step guidance above is solver-dependent; better resolution gives better results, but only up to a point. Consider the following: a regular sinusoidal wave sin(x), approximated by a set of linear intervals between the points that are located exactly on the curve. How many points do are needed for the maximum error of the linear approximation to be smaller than 1%? Only 24! For 80 points, maximum error is 0.0791%, better than what I would expect from a CFD simulation.


Therefore, 80-100 points per period describe the sinusoidal curve with sufficient accuracy. Adding more points simply increases cost of simulation, without increasing accuracy in a meaningful way. While a better (finer) mesh brings more accuracy, decrease in time-step may not necessarily bring the same benefit.
What about radiated waves from the ship hull? Looking at wave development in a steady resistance simulation around a sailing hull, one can clearly see the hyperbolic nature of the problem. Waves originate from the hull and are developed by travelling sideways and downstream. If one considers the hyperbolic nature of the problem, it is clear that the best way to approach it is in transient mode.
The crucial point here is that the time-step in simulations depends on the physics of the problem: wave speed, encounter period, natural frequencies of the system and not on the mesh. This brings us to the issue of the Courant-Friedrichs-Levy (CFL) number Co.
Co = U L / dt
Here, U is the convective velocity or wave speed [m/s], L [m] is the linear dimension of the system and dt [s] is the time-step size. With increasing mesh refinement, constant Co number requires reduction in delta t proportional to increase in mesh resolution - which is unacceptable from physics considerations.
Code Stability
A good CFD code should be able to operate in steady-state mode, indicating infinite Co number. However, very few actually do so, mainly because of instability in pressure-velocity coupling, non-linearity of the system, added mass effects in hydro-structure coupling or simply because of bad discretisation.
A lot of effort has been put into the Naval Hydro Pack numerics to make sure the code is STABLE independent of the Co number. Note that I said “stable” and not “accurate”: accuracy is a direct function of delta t, whereas stability indicates that the code will not blow up at large time-step size.
One can differentiate two Co numbers. The first, Co_flow, relates to the flow and is a function of mesh size, such as boundary layer flow in high-aspect ratio cells next to the hull. The other relates to motion of the free surface, Co_fs, indicating how many linear cell lengths a free surface traverses in a single time-step. While the former relates to flow and mesh only, for steady resistance simulations the latter reduces to zero, indicating that the free surface no longer moves in surface-normal direction and that the free surface has reached its final shape.
With this effort, we can regularly run at flow Co_flow numbers of 1000-5000 (indicating mesh refinement next to the wall) and above, with Co_fs starting at 500-1000 and reducing to zero as the steady resistance simulation reaches its converged solution.
Having a Co-independent CFD solver for naval hydrodynamics is extremely beneficial: one can concentrate on physical time-scales rather than worry about solver stability. This was my focus when developing Naval Hydro Pack numerics.
Flow Physics
Ship CFD simulations naturally demands long transient run-times, where the time-scale is related to ship size in calm seas or a simulation in waves, where a number of wave encounter periods needs to be simulated. In steady resistance, ship hull generates waves that travel with the ship: their phase velocity is equal to ship speed v_s. Using the relationship between wave-number and wavelength, it follows that the wave period is T = (2 pi v_s)/g, where g is the gravity. This is the number determining the time-step size - and it is independent of mesh resolution. Other codes, namely Star-CCM+ use relationships such as dt = 0.0025 L_pp/v_s, or dt = T/(2.4 N_c), where N_c is the number of cells per wavelength or ship length and L_pp is the hull length.
For sea-keeping simulations, Naval Hydro Pack recommends 80-200 time-steps per encounter period; the question is how many periods are needed? In many simulations, only 5-10 periods are simulated: usually this is because of excessive run-time. To see the effect of this, consider the sea-keeping wave encounters 1-8 and 52-60, showing hull resistance (left) and pitch and trim (right). The first 8 wave encounters produce a very irregular response, while the last 8 show a consistent picture. The luxury of simulating 60 wave encounter periods is possible simply because of the ability to run at high Courant number and fast simulation time.
A 3 Hour Storm simulation is a special case, requiring about 2000 wave encounters to create good statistics: the capability is all about rapid simulation time.
Ability of the solver to consistently run rapid, accurate and robust simulations cannot be over-estimated. With such tools, engineering offices increase their CFD through-put by a significant margin, with direct impact on the quality of their work.
With the Naval Hydro Pack, simulation speed is paramount. In what follows, I will describe the methodology that makes it happen.
All the results in this blog are produces using the NavPak and Naval Hydro Pack by Wikki. Contact me for further details at https://www.wikki.co.uk , by direct message or by E-mail.
For more information on Wikki’s naval hydrodynamics CFD products, please see our web page
and







Very interesting post and blog!
Minor typo: the CFL formula should actually read Co = U dt / L