APP下载

Development of naoe-FOAM-SJTU solver based on OpenFOAM for marine hydrodynamics *

2019-04-03JianhuaWangWeiwenZhaoDechengWan

水动力学研究与进展 B辑 2019年1期

Jian-hua Wang, Wei-wen Zhao, De-cheng Wan

Collaborative Innovation Center for Advanced Ship and Deep-Sea Exploration, School of Naval Architecture,Ocean and Civil Engineering, State Key Laboratory of Ocean Engineering, Shanghai Jiao Tong University,Shanghai 200240, China

Abstract: A CFD solver naoe-FOAM-SJTU (The abbreviation naoe stands for naval architecture and ocean engineering) is developed based on the open source platform OpenFOAM with the purpose of simulating various marine hydrodynamic problems. In the present paper, self-developed modules, i.e., wave generation and absorption, 6 degrees of freedom motion, mooring system, dynamic overset grid, fluid-structure interaction, unsteady actuator line model, implemented on the open source platform OpenFOAM are introduced to illustrate the development of the marine hydrodynamics CFD solver. Furthermore, extensive simulations of marine hydrodynamic problems using the developed modules are conducted and validated by available experimental data. It has been proved that the CFD solver naoe-FOAM-SJTU is suitable and reliable in predicting the complex viscous flow around ship and offshore structures.Efficiency and accuracy need to be focused in the future development of the present CFD solver.

Key words: Marine hydrodynamics, fluid-structure interaction, overset grid, naoe-FOAM-SJTU solver, OpenFOAM

Introduction

OpenFOAM[1]is the leading free, open source software for computational fluid dynamics and other computational science and engineering. Jasak[2]demonstrates the main features of the open source library with a very deep insight into the design of the code structure, where the object orientation and basic classes in OpenFOAM are introduced. OpenFOAM has implemented the basic modules, such as mesh motion handling, linear system and solver support,discretization schemes and physical models in library form. Based on the above modules, many top-level solvers are utilized to deal with fluid dynamic problems in many research fields. So far, OpenFOAM has been successfully applied to the numerical studies of heat transfer[3-4], coastal engineering[5], porous media[6], turbulence modelling[7], compressible flows[8], free surface flows[9], ocean engineering[10],etc.. With the advantage of the flexibility of solver customization, OpenFOAM has been chosen as the priority toolbox by the researchers in the field of computational fluid dynamics (CFD).

Over the past two decades, OpenFOAM has been extended to a large number of functional modules,such as dynamic mesh handling[11], pre and post processing utilities, etc.. Despite the abundant libraries of OpenFOAM, there are still a lot of work need to be done in order to meet the requirement of specific engineering problems. For the marine engineering,such as violent free surface waves, complex motions with ship hull-propeller-rudder interaction, large amplitude platform motions with mooring lines,vortex-induced vibration (VIV) of marine risers,floating offshore wind turbine in ocean waves and so on, there is a lack of available solvers to handle such complex situations in the OpenFOAM released versions. Therefore, it is very essential to develop specialized modules in OpenFOAM to investigate the hydrodynamic performance of marine engineering problems. In the present paper, emphasis is put on the development of the naoe-FOAM-SJTU solver for complex flows in marine hydrodynamics. The recent progress of naoe-FOAM-SJTU solver is overviewed based specifically on the developed hydrodynamic CFD modules with various marine engineering applications. The naoe-FOAM-SJTU solver, which is developed by the Computational Marine Hydrodynamics Lab (CMHL) in Shanghai Jiao Tong University(SJTU), can be used as an alternative tool to estimate the hydrodynamic performance of ship and offshore structures. It can also be utilized to obtain a better understanding of the complex physics in marine engineering.

The main content of this paper comes from the keynote lecture “Progress of naoe-FOAM-SJTU solver for marine hydrodynamics” presented at the 13th OpenFOAM Workshop (OFW13, the workshop website can be found in the last page). The annual Open- FOAM Workshop is the most important and influential forum for researchers and users from universities, institutes as well as industries to promote collaborative activities and share latest progresses on OpenFOAM in many areas. It is an attractive community event opening to scientists, scholars,engineers, students, users and contributors, regardless of their background and avocations. In 2006, the 1st OpenFOAM Workshop (OFW1) was held in Zagreb,Croatia. Since then it was held every year successively in Zagreb, Milan, Montréal, Gothenburg, Pennsylvania,Darmstadt, Jeju, Zagreb, Ann Arbor, Guimarães and Exeter, respectively. The 13th OpenFOAM Workshop was held in Shanghai, China, on June 24-29, 2018,and hosted and organized by Shanghai Jiao Tong University, and co-organized by Journal of Hydrodynamics, Shanghai Key Laboratory of Ship Engineering, and State Key Laboratory of Navigation and Safety Technology. Prof. Decheng Wan was conference chair of the 13th OpenFOAM Workshop.

It is the first time that the OpenFOAM Workshop is held in China. There are more than 300 participants from over 25 countries to attend the OFW13 and making it the largest number of attendees in its history.Over 260 papers were received in OFW13 and 133 papers were accepted after the peer-review, in which 106 papers were chosen for presentations in parallel sessions during the 4 days’ workshop. Five keynote lectures were given by Prof. Hrvoje Jasak (the original Co-Author of OpenFOAM) from the university of Zagreb, Prof. Gavin Tabor from the university of Exeter, Prof. Francois Guibault from Ecole Polytechnique de Montreal, Prof. Xinhai Xu from National Innovation Institute of Defense Technology and Dr. Jian-hua Wang from SJTU, respectively. 15 training sessions led by experienced code developers were held for all the attendees. Poster presentations contributed by the participants were exhibited in the venue during the workshop. 44 parallel sessions were organised and the presentations were classified into different research fields related to OpenFOAM,namely, naval hydrodynamics, coastal/offshore engineering, aerodynamics, civil engineering, fluid-structure interaction, general CFD, phase change, multiphase flows, heat transfer, reacting flows, turbulence modelling, sprays and injection, porous media,optimization and control, turbomachinery, complex materials. A session of pre/post-processing, meshing and user environments was also arranged during the workshop. Mini-symposiums on specified themes were held at the last day of OFW13 and topics on numerical tank for ship and offshore structures,Paraview features, floating offshore wind turbines were discussed in-depth by participants related to the corresponding research areas. The 13th OpenFOAM Workshop held in Shanghai, China is very successful and it gives an opportunity for researchers in the field of computational fluid dynamics from all over the world to exchange ideas and follow-up the recent progresses related to OpenFOAM.

1. OpenFOAM features for marine hydrodynamics

OpenFOAM is more likely a framework than a CFD package. It provides quantities of features which can be used to construct solvers for specific industrial problems. This section introduces several existing features in OpenFOAM that are incorporated into the naoe-FOAM-SJTU solver.

1.1 Flow modelling

In the field of naval architecture and marine engineering, fluid is treated as incompressible flow. If the free surface effect is insignificant, such as propeller open water test and performance of marine risers, the flow can be modelled as single-phase flow.However, if the free surface effect is not neglectable,such as the prediction for strong wave-structure interaction, ship wave-making resistance, then the interface must be considered in the simulation.OpenFOAM has already provided physical models for these two types of fluid flow.

For single-phase flow, the governing equations are the continuity and unsteady Reynolds-averaged Navier-Stokes (URANS)/detached-eddy simulation(DES) equations. These equations in an arbitrary Lagrangian-Eulerian (ALE) form can be written as:

where U, Ugare the velocity of flow field and mesh cells, respectively, p is the pressure and ρ is the fluid density,is the effective Reynolds stress tensor with νeff= ν +νtthe effective kinematic viscosity of fluid, in which ν,tν are kinematic and eddy viscosity, respectively.

While for flow that involves free surface,OpenFOAM utilizes an algebraic volume of fluid(VOF) method to capture the interface. The governing equations for incompressible, immiscible two-phase flow hence becomes:

wheredp is the dynamic pressure of flow field obtained by subtracting the hydrostatic part ρg⋅ x from total pressure, g is gravitational acceleration vector,denotes the effective dynamic viscosity of fluid,is the source term for surface tension, with σ the surface tension coefficient, κ the mean curvature of the interface and α the volume fraction. In OpenFOAM, VOF method with bounded compression technique[12]is applied to capture free surface and the transport equation is expressed as

where α is volume of fraction, 0 and 1 represent that the cell is filled with air and water respectively and 0 < α<1 stands for the interface between two-phase fluid. Uris the velocity field used to compress the interface and it only takes effect on the free surface due to the term (1 - α α) .

Currently, the naoe-FOAM-SJTU solver supports k -ω SST and k -ω SST DES/DDES model. The eddy viscosity in these models are calculated by

in which k, ω are turbulence kinetic energy (TKE)and specific turbulence dissipation rate, respectively,is model coefficient,2F is the blending function,Ω is the vorticity.

For URANS, the k and ω are solved by the following transport equations[13]:

Fig. 1 Flowchart of the PIMPLE algorithm

The k- ω SST DES/DDES modifies the length scale to become lDESand lDDES, respectively, defined as:

in which CDESis the calibrated DES constant, Δ is the grid scale, fdis a delayed function which ensures that DES works in RANS manner inside boundary layer to avoid grid-induced separation(GIS).

Fig. 2 (Color online) Main framework of naoe-FOAM-SJTU solver

1.2 Numerical schemes

For incompressible flow, there is no explicit coupling between velocity and pressure. The naoe-FOAM-SJTU solver employs a segregated method named PIMPLE to decouple velocity and pressure.PIMPLE is a combination of the SIMPLE and PISO[14]algorithm which provided by OpenFOAM. Figure 1 depicts the flowchart of the PIMPLE algorithm. When advancing to a new time step, the solver first update mesh, then solve momentum equations to get an intermediate velocity which is used to construct the pressure Poisson equation later. After that, the solver enters PISO loop, solves for pressure and performs non-orthogonal correction several times. Then the velocity and flux are corrected and the solver enters the next SIMPLE iteration. For flow with free surface,an extra VOF transport equation should be solved before URANS/DES equations. The procedure is also depicted in the flowchart.

The naoe-FOAM-SJTU solver also utilizes discretization schemes from OpenFOAM. The most commonly used schemes are introduced below. For temporal terms, a second order backward scheme is used. This scheme uses the values of previous two time steps for discretization. As for convection terms,care should be taken for URANS and DES. URANS can use limitedLinear for both momentum equations and turbulence transport equations. While DES can use LUST for momentum equations and limitedLinear for turbulence transport equations. In addition to the built-in discretization schemes, OpenFOAM also provide a large number of solvers for the linear system of equations.

2. Main modules of naoe-FOAM-SJTU

Based on the supported features in OpenFOAM mentioned above, the development for marine hydrodynamics CFD solver is mainly through the implementation of specific modules. Figure 2 demonstrates the main framework of the present CFD solver naoe-FOAM-SJTU. As mentioned in introduction part,the CFD solver is developed based on open source platform OpenFOAM and the built-in modules, such as finite volume method (FVM), discretization schemes, solver for linear system equations. Further implementation of marine hydrodynamic modules in the solver is shown in the right column of Fig. 2,where the blue marked modules are already developed and modules in red are the ongoing work at present.

Fig. 3 (Color online) Freak wave generation using flap type wavemaker and comparison with experimental measurement[19]

2.1 Wave generation and absorption

Fig. 4 Code structure of wave generation module based on boundary conditions

For a marine hydrodynamic problem, wave environment is the most typical situation for offshore floating structures. Therefore, ocean wave generation is the first job to be done for the development of a marine hydrodynamic CFD solver. So far, there have already been several modules developed based on OpenFOAM, such as waves2foam[9], olaFlow[5,15].Two wave generation approaches[16-18]are implemented in naoe-FOAM-SJTU, one is the modelling of a piston or flap type wavemaker, another one is the velocity-inlet boundary conditions. For a piston or flap type wavemaker, the main implementation is to give the prescribed wave profile to the movement of the wave boundary incorporated with the moving mesh technique[11]in OpenFOAM. This procedure is usually used to generate regular waves, solitary waves,freak waves just like a the wavemaker in an actual wave basin. Figure 3 presents the numerical prediction of a freak wave generated by the flap type wave maker using naoe-FOAM-SJTU and the simulated results are validated by the available experiments[19].

The inlet boundary condition type wavemaker imposes both the velocity of water particles and the position of free surface at the incident wave boundary.Figure 4 illustrates the code structure of wave generation module in naoe-FOAM-SJTU solver.

It can be seen from Fig. 5 that the present inlet BC type wave maker can generate both regular and irregular waves according to corresponding wave theories. Regular waves varying from the airy wave to the fifth-order Stokes waves as well as shallow water waves can be generated. For irregular waves, a wave spectrum based correction approach[20]is implemented in the present wave generation module. The most frequently used spectrum, such as PM, JONSWAP,one/two parameter ITTC, are implemented to the present solver to extend the ability of generating ocean waves. In addition, the directional irregular waves are also implemented by multiplying the directional spreading function with wave spectrum.The detailed implementation is shown in the Ref. [17]and 3-D focusing wave and multidirectional nonlinear waves are validated by comparing present predictions with available experimental results.

Fig. 5 (Color online) Instantaneous free surface of multidirectional focusing wave[17]

Apart from the wave generation module, a wave absorption module based on sponge layer is implemented in the present CFD solver. The sponge layer is developed by Cao et al.[21]and worked effectively in previous studies. The methodology adopts a source term fs(x) and is added in the momentum equation.The term is denoted as:

wheresα denotes the damping coefficient and xsrepresents the start position of wave damping zone andsL stands for the length of the damping zone.

2.2 6DOF motion

After implementing the wave generation and absorption module, a six-degrees-of-freedom (6DOF)motion module is required in order to estimate the motion response for ship and offshore structures in sea environment. Basically, there are two approaches to describe the motion of a rigid floating body, i.e.,quaternion and Euler angle. In our present solver, the 6DOF motion module is developed based on the Euler angle description, where two coordinate systems, i.e.,earth-fixed coordinate system and ship-fixed coordinate system, are employed to calculate the rigid body motions. The 6DOF motion equations are presented as:

where the left side terms are the accelerations of body motions. The calculation procedure for a rigid floating body is shown in Fig. 6. During the 6DOF computation, the forces and moments are first computed in the earth-fixed coordinate system. Then the predicted values are transformed into ship-fixed coordinate system for the calculation of accelerations. After that,the accelerations are integrated to obtain the ship velocities, which are then transformed back to earth-fixed coordinate system to get the ship displacement by integrating the velocities.

Fig. 6 Procedure of 6DOF motion module in naoe-FOAM-SJTU

The 6DOF motion module discussed above is developed to compute the motion response of ship and offshore platforms[22-23]. When considering the complex motions of free running ship or floating offshore wind turbines, where the ship hull-propeller-rudder interaction and turbine-platform interaction should be taken into account, the motion module then needs to be updated to meet the requirement of multi-level motions.

In our present solver, full 6DOF motion module with a hierarchy of bodies is implemented[24]. For a free running ship, the rotating propeller or turning rudder are the children level motion based on the ship hull motion. Similarly, the rotating turbine is the sub-level of the platform motion. Figure 7 illustrates the motion level of ship and offshore platforms. The strategies to compute the movements of propeller,rudder, turbine and other appendages depend on the problem to solve. For example, for a self-propulsion simulation, the rotation of propeller is updated by a PI controller. While for a turning circle maneuver, the movement of rudder is executed by the turning controller. The full 6DOF motion module with a hierarchy of bodies can be used to simulate various complex conditions in marine engineering incorporating with the dynamic overset grid method (see in Section 2.4).

Fig. 7 Full 6DOF motion with a hierarchy of bodies

Fig. 8 (Color online) Framework of mooring system module

2.3 Mooring system

Mooring systems are widely used in marine engineering to keep the stability of floating bodies in ocean waves. In the present solver, a mooring system module is developed based on OpenFOAM and several types of mooring lines are implemented. The framework of the mooring system module in the naoe-FOAM-SJTU solver is shown in Fig. 8. The spring model in the present implementation involves three types, i.e., a linear spring with constant factor k following Hooke’s law, a discontinuous spring with different k in several segments and a compressible spring, which can provide restoring force when the length is smaller than the initial. As for the quasistatic approach, a pricewise extrapolating method(PEM)[25]is adopted to discretize the mooring line into a number of segments, where the equations of static equilibrium for each segment is solved. In addition, the PEM approach can consider the different structural properties for mooring lines consist of different components. Both the static and quasi-static method ignore the effect of mooring line movement.Thus, a dynamic module including 3-D lumped mass method (LMM) and finite element method (FEM) is also implemented, in which the development of finite element method is ongoing. The restoring force of mooring lines computed by LMM and FEM approach is obtained by solving the dynamic equations of motion, where the inertial force related with mooring line motion can be considered. The present mooring system module has been applied to predict mooring forces of various floating structures in wave environments[23,26-28].

2.4 Overset grid

As mentioned in Section 2.2, complex motions of multi-systems are the main features of marine structures. Large amplitude body motions are occurred when the floating body encounters violent sea states.Traditional mesh motion handling strategy, such as deforming mesh, cannot maintain the grid quality and even diverged when conducting such large or complex motion simulations. Thus, it is very essential to develop the overset grid module to extend the ability of present CFD solver for directly simulating the complex motions in marine engineering.

A typical demonstration of overset grids used in ship hull-propeller-rudder system is depicted in Fig. 9.Generally, overset grids include multi-blocks of overlapping structured or unstructured grids, and each block can move independently without any constraints.The connectivity of overlapping cells is obtained by interpolation of neighbour cell. As shown in Fig. 10,fringe cells will get the fluid data through interpolation of donor cells. Detailed information of the overset grid method can be found in pervious publications using naoe-FOAM-SJTU[24,29-31].

Fig. 9 (Color online) Overset grid demonstration for ship hullpropeller-rudder system

The implementation of the overset grid module in the naoe-FOAM-SJTU solver is accomplished by Shen et al.[24]. Suggar++[32]program is utilized to calculate the overset grid connectivity information(DCI) at run time. DCI manipulation in OpenFOAM is achieved by encapsulating the functions to an overset library liboverset.so. Two public member functions, i.e. updateFvMatrix and updateFvField, are used to modify the sparse matrix solvers and MULES solver by excluding the non-active cells. The parallel coupling strategy between flow and DCI calculations is using the lagged mode[24,33]. Another feature of the present overset grid module is the association with 6DOF motion with a hierarchy of moving components(see in Section 2.2).

2.5 Fluid-structure interaction

With the depth of oil and gas exploitation increases, the aspect ratio of marine riser increases apparently and the flexibility of the marine riser becomes non-negligible. VIV of the flexible riser is one of the main sources of failure damage that has been investigated extensively during the past decades in marine engineering. For a long flexible riser, the three-dimensional simulations will cost a mass of computational resources. In order to predict the VIV response of the flexible riser more effective, the strip theory method proposed by Willden and Graham[34-35]is adopted in our present CFD solver. The methodology has been validated by Yamamoto et al.[36],Meneghini et al.[37].

A fluid-structure interaction (FSI) module based on the strip method and OpenFOAM are implemented in the present CFD solver naoe-FOAM-SJTU. The FSI module is design for predicting VIV response of the flexible riser in marine engineering. Figures 10, 11 show the layout of the strip theory and the framework of the FSI module respectively. In the fluid field module, the three-dimensional flow field is simplified into several two-dimensional strips distributed equidistantly along the span of the riser. The hydrodynamic forces in both crossflow and inline directions are computed from each fluid strip using the built-in RANS approach in OpenFOAM. Then, the hydrodynamic forces will be transformed into uniformly distributed load acting on the riser. The structural vibration of the riser is calculated through the finite element method (FEM) with the Euler-Bernoulli bending beam model in both directions. After that, the nodal displacements will be transferred to the dynamic mesh and update it for computation in the next time step.

Fig. 10 (Color online) Schematic diagram of the strip method

The present strip method is very appropriate for solving FSI problems with supramaximal computational domain. It owns high computational efficiency and the accuracy is reliable compared with the semiempirical formula method. The reliability of the module has been verified by Duanmu et al.[38], in which the benchmark case has been analysed detailly compared with experimental results. Furthermore,extensive simulations[10,38-40]on VIV are conducted for a flexible riser experiencing uniform, shear and stepped respectively.

2.6 Unsteady actuator line model

The actuator line model (ALM) is a simplified way to implement the aerodynamic prediction of wind turbine, which is developed by Sørensen and Shen[41].In the ALM, the real blades surfaces are replaced with virtual actuator lines (shown in Fig. 12), thus the blade geometry layer can be neglected. The wind turbine blades are simplified into actuator lines withstanding body forces, which are divided into a series of discrete actuator points. The body forces acting on these actuator points can be calculated using a local velocity and two-dimensional airfoil data. The calculated body force is smeared by using a Gaussian function to avoid singular behavior in numerical calculations. Then the smeared body forces are introduced into the moment equations as a source term to reproduce the turbulent wake flow of wind turbine.

Fig. 11 Framework of fluid-structure interaction module

Fig. 12 Demonstration of unsteady actuator line model for floating offshore wind turbines

When the ALM is applied to model the unsteady aerodynamics of floating offshore wind turbines(FOWTs), some modifications should be made to consider the influence of floating platform motions.This is accomplished by introducing an additional velocity vector induced by the platform motion into the calculation of local velocity at blade section.Figure 12 illustrates the actuator line model applied in the floating offshore wind turbine. The unsteady actuator line model[42](UALM) are developed for the aerodynamic predictions of the FOWT. By combining the UALM and naoe-FOAM-SJTU solver, a coupled CFD analysis tool is established for aero-hydrodynamic simulation of the FOWTs under wind-wave conditions (shown in Fig. 13). The unsteady aerodynamics are predicted by the UALM, and the naoe-FOAM-SJTU solver is employed to obtain the hydrodynamic loads, mooring forces and the platform motions.

To achieve the coupling between the wind turbine aerodynamics and floating platform hydrodynamics, there are data exchange between the UALM module and naoe-FOAM-SJTU solver. To reflect the influence of wind turbine on the hydrodynamics of floating platform, body forces calculated from the UALM module are introduced into the 6DOF motion equations. And the platform position and velocities at each time step obtained from naoe-FOAM-SJTU solver are delivered to the calculation of wind turbine body force.

3. Applications

Main modules in naoe-FOAM-SJTU solver for marine hydrodynamics have been introduced in the previous section. Based on the CFD solver associated with featured modules, extensive applications have been carried out in marine hydrodynamic problems including ship hydrodynamics, offshore platform in ocean engineering, marine risers, floating offshore wind turbines, and so on. This section mainly focuses on the engineering applications using the present CFD solver. Discussions and analysis for the flow field regarding to typical cases are involved in each part.

Fig. 13 Coupling between unsteady actuator line model and naoe-FOAM-SJTU

3.1 Ship hydrodynamics

So far, various applications to ship hydrodynamics have been done using the self-developed CFD solver naoe-FOAM-SJTU. Ship resistance in calm water is the most fundamental study in ship hydrodynamics and several benchmark computations have been carried out to validate the present CFD solver.6DoF motion module is used to predict the trim and sinkage when conducting simulations of ship advancing in calm water. Zha et al.[43]performed numerical predictions of ship resistance with emphasis on viscous wave-making resistance for 6 ship hulls using the present naoe-FOAM-SJTU. Later on, they computed the resistance of high-speed catamaran in calm water[44], where different ship speeds were considered.The numerical results agreed very well with the measurement data of model test. Wave making and vortex field were well simulated and further analysis of the hydrodynamic performance was discussed.Wang et al.[45]further investigated the hydrodynamic performance for a ship with different drift angles.More recently, the CFD solver is applied to simulate breaking wave phenomena of high-speed surface ships[46]. The grid and turbulence model effect on the breaking bow waves were analysed. Figure 14 demonstrates the axial vorticity distributions at three cross sections and the breaking bow wave profile can be easily noticed.

Seakeeping is another key performance of ship hydrodynamics. Based on the developed wave generation and absorption module, various wave conditions can be generated. Incorporating with the 6DOF motion module, ship motions in waves can be estimated by the developed CFD solver. Shen et al.[22]conducted the numerical simulations of ship motion in head waves using RANS approach. Different wave steepness was considered in the simulations and the predicted wave added resistance was validated by the available experimental data. High non-linear phenomena with green water were observed in the computations as shown in Fig. 15. Ye et al.[47]carried out the prediction of wave-added resistance and vertical ship motions for the S-175 ship model. Four wave lengths were simulated to investigate the ship behaviour in different wave conditions. Recently, Liu et al.[48]used naoe-FOAM-SJTU solver to predict more violent conditions for ship motion in waves. The computations were carried out for the benchmark ship model DTC, which is free to heave, pitch and roll, in oblique waves. Dynamic overset grid was adopted to handle with the large ship motions. The mean drift forces and moments on the ship hull can be predicted well even for violent cases with strong wave slamming and large ship motions.

Ship resistance and seakeeping predictions are always done for the bare hull ships. Regarding to free running ship, the complex ship hull-propeller-rudder interaction should be modelled. Based on the developed overset grid module associated with full 6DOF motion with a hierarchy of bodies, applications to free running ship simulations were conducted using naoe-FOAM-SJTU solver. Shen et al.[24]carried out the computations of self-propulsion and zigzag maneuver of KCS ship in calm water, and the predicted self-propulsion parameters as well as maneuvering parameters were compared with the available experimental results. Wang et al.[49]performed the selfpropulsion simulation for a twin-screw fully appended ship model and extends to the turning circle maneuver simulations (shown in Fig. 16). The predicted self-propulsion model point matched fairly well with the experimental results and turning parameters were also well predicted with error lower than 10%. Wang et al.[29]further extended the solver to simulate ship maneuvering in waves and the applications for various maneuvers in wave environment using naoe-FOAMSJTU solver were reviewed in Wang et al.[50].Therefore, the applications for ship maneuvering in waves are not overviewed herein.

Fig. 14 (Color online) Simulation results of breaking bow waves for a high-speed surface ship[46]

Apart from the investigations of ship resistance,seakeeping, propulsion and maneuvering, naoe-FOAM-SJTU solver has also been applied to estimate the performance of energy save device[51], cavitation,contra-rotating propellers[52], multi-ship interactions,and so on. With the upgrade of the present solver,more and more complex problems in the field of ship hydrodynamics can be numerically studied.

3.2 Offshore platforms

The solver has also been applied to various engineering problems for offshore platforms both fixed and floating. For fixed structures, wave run-up is a very important factor for the safe deck design. Cao and Wan[16,18]carried out benchmark simulations of wave run-up on single cylinder and four cylinders using the current solver. Regular waves with different wave periods and wave heights are studied and wave run-up heights around the cylinders are recorded with virtual wave probes and compared with experimental data. They concluded that naoe-FOAM-SJTU is capable of dealing with wave run-up problems with good accuracy. With the help of 6DOF module,naoe-FOAM-SJTU can predict motions of floating platform in waves. Liu and Wan[53]performed numerical investigations of the motion response of a triple-hulled offshore observation platform with different incident waves. Time histories of motions and loads under different wave conditions are compared and analysed. With the help of mooring system module, coupled analysis of floating platform and mooring lines can be performed. Wang and Wan[54]carried out coupled analysis of a floating pie and its mooring system in regular waves. The multicomponent mooring lines are modelled by dynamic analysis lumped mass method (LMM). Motion response were compared with that obtained by the static analysis method. The results showed that dynamic analysis is necessary for coupling analysis between floating platform and mooring system.

Fig. 15 (Color online) Numerical results of ship motion responses ((a), (b)), added wave resistance (c) and instantaneous free surface (d)[22]

Fig. 16 (Color online) Numerical simulations of turning circle maneuver in calm water[49]

Fig. 17 (Color online) Time histories of heave and roll motions with different filling ratios[58]

Fig. 18 (Color online) Wave elevation and velocity contour of FLNG hull section under head waves ((a), (b)), 20%filling ratio (c) and 40% filling ratio (d)

Fig. 19 (Color online) Instantaneous non-dimensional spanwise vorticity contours at different reduced velocities at half draft(z/L = -0 .5) plane[27]

Zhuang and Wan[55]studied the motion response of a single-mooring FPSO by utilizing overset grid and mooring system module. The natural periods of both overset and non-overset method for heave decay test were in good agreement with experiment. Motions and mooring forces are further analysed. Wang and Wan[56]also studied the motion characteristics of a single-point moored FPSO under different mooring conditions. Xia and Wan[57]studied the wave evolution and hydrodynamic characteristics of a floating platform in shallow water with submerged terrain near island. The response amplitude operators (RAOs) of the platform in regular waves were in good agreement with experimental data. Further wave evolution and breaking process over the submerged terrain were depicted and analysed. The naoe-FOAM-SJTU solver can also perform coupled analysis of motion response of an FPSO with sloshing LNG tanks in waves.Zhuang and Wan[58]performed such simulations in which the external wave flow and internal tank sloshing are solved simultaneously. Figure 17 shows the comparison of ship motion between non-filling condition and low-filling condition. The partially filled tanks significantly reduce the roll motion in beam waves. Figure 18 is another case of motion response for an FLNG with 10 tanks in waves. It is shown that the present solver can be applied to predict very complex situations for offshore platforms.

Vortex-induced motions (VIM) is another critical issue for floating offshore platforms with large aspect ratio columns. VIM always occurs with high Reynolds flow and involves massively separated flow. To predict VIM by CFD, the turbulent fluctuation and eddy structures should be resolved properly. The DES can predict massively separated flow at relatively low cost and is adopted by naoe-FOAM-SJTU to predict VIM. Moreover, the complex motion of platform can be handled with the 6DOF module in combination with dynamic overset grid technique. Overall, the solver can be applied to various kinds of floating structures.

Zhao et al.[27]simulated the VIM of a pairedcolumn semi-submersible by using the naoe-FOAMSJTU solver. The “lock-in” phenomena were captured.Synchronization vortex shedding patterns between upstream columns are observed in the “lock-in” range,as shown in Fig. 19. The transverse motion response and zero crossing period are in good agreement with experiment. Li et al.[59]conducted simulations on VIM of a deep-draft semi-submersible with the current solver. The corner effects of column section shape were discussed. Figure 20 shows the motion trajectories of the platform in horizontal plane.Distinctive motion patterns are observed which indicates the “lock-in” will start earlier with larger column rounded ratios.

Xie et al.[60]used naoe-FOAM-SJTU to simulated the VIM of a single-point moored buoyancy can.The fairlead of the mooring line is in the bottom of the buoyancy can, which results in the barely torque to resist the yaw. To avoid the mesh distortion of large rotation, dynamic overset grid technique is used. The motion trajectory of the buoyancy can shapes a typical“8”. The yaw frequency is equal to the transverse motion frequency, which implies the two motions share the same external excitation.

Fig. 20 (Color online) Motion trajectories in the XY plane for the semi-submersibles with different column rounded ratios[59]

3.3 Marine risers

Fig. 21 (Color online) Crossflow non-dimensional spatio-temporal displacements and the deformation envelope lines of the riser

The present CFD solver naoe-FOAM-SJTU associated with FSI module has been applied to investigate the performance of marine risers under various conditions. Numerical investigations of a flexible riser in stepped flow is carried out using the developed FSI module. The simulation follows the setup of the experiments performed by Chaplin et al.[61]. Figure 21 shows the crossflow non-dimensional spatio-temporal displacements along the flexible riser and the corresponding deformation envelope lines. The red to blue colormap represents the positive and negative vibration amplitude. It can be observed that the maximum vibration amplitude occurs at z/ L= 0.25,0.75, while the stationary point appears at the mid-span riser. Combining with the deformation envelope line, the vibration of the riser is mainly in the 2nddeformation shape.

Figure 22 shows the crossflow vibration modal weight and the power spectral density (PSD) of each modal weight using the modal decomposition method followed Chaplin et al.[62]. From these figures, it can be known that the 2ndmode is the dominant crossflow vibration mode and the corresponding dominant vibration frequency is around 0.9 Hz for the structural node at the mid-span cylinder. Effects of the 1stand 3rdvibration modes are too small to be considered compared with the 2ndvibration mode, so that the multi-mode vibration phenomenon will not happen under this condition.

Fig. 22 Crossflow vibration modal weights and PSD at the mid-span riser

In actual oil and gas exploitation, effects of winds, waves and currents will contribute to the periodical oscillation of the offshore platforms, which then leads to the oscillation of the connected riser and the generation of relative oscillatory flow between the riser and the water. Fu et al.[40]employed the developed FSI module with support excitation method to generate the relative oscillatory flow, simulations results were in good agreement with the experimental results and VIV features especially in oscillatory flow had been analysed in detail. Numerical simulations on VIV of a flexible riser exposed to oscillatory flow was conducted adopting the FSI module based on experiments of Fu et al.[63]. Figure 23 showed the nondimensional crossflow time-dependent displacement at the mid-span cylinder. The specific intermittent VIV developing process of “building up-lock in-dying out”[63]was observed.

Fig. 23 Non-dimensional crossflow time-dependent displacement at the mid-span riser in an oscillating period[40]

The vibration trajectories at z/ L= 0.25, 0.50 and 0.75 of the riser are shown in Fig. 24. The trajectory presents a typical butterfly shape in al structural nodes.Two sides of the butterfly shape are generated when the riser go through the “lock-in” region where the crossflow an inline vibration amplitude get its maximum value at the same time. The central part is generated in the “building-up” and “dying-out” regions where the VIV response in both directions becomes weak with the vibration amplitude decreasing apparently. This butterfly trajectory is also one of the specific phenomena occurred when the riser experiencing oscillatory flow.

In order to promote the oil and gas production,the application of multi-risers becomes more common at present. Compared to the isolated riser condition,the interaction between multi-risers makes the VIV response becoming more complicated. VIV features of two risers have more influencing factors, including the structural parameters of two risers, the flow conditions,the spacing distance and the arrangement. The developed FSI module in naoe-FOAM-SJTU can also manipulate multi-riser simulations. Numerical analysis on VIV of two flexible risers with different arrangements has been carried out. The spacing distance between the centre of two risers is set to be 4D, while the angle between the centre line of two risers and the incoming flow varies among 0°, 30°, 60°and 90° respectively, as shown in Fig. 25.

Figure 26 shows the wake vortex at different sections of two risers experiencing stepped flow in the tandem arrangement. The development of the wake vortex at the mid-span of two risers is presented in Fig.27. It can be found that the vortex of the upstream riser will reattach to the surface of the downstream riser, causing the vortex of the downstream riser to be different from that of the isolated riser. Due to the vortex interaction between two risers, VIV features of two risers are quite different from that of the isolated riser. Meanwhile, different arrangements may cause changes in the vibration mode of the riser.

Fig. 24 Vibration trajectories at z/ L= 0.25, 0.50 and 0.75 of the riser in an oscillating period[40]

3.4 Floating offshore wind turbines

With the rapid development of wind power industry, the floating offshore wind turbines (FOWT)have been paid enough attention. And several floating wind farms have been planned for huge amount offshore wind energy in recent years. There are complex interactions between the aerodynamics of wind turbine and the hydrodynamics of floating platform, which makes the predictions for the coupled aero-hydrodynamic performance of FOWT are quite challengeable.

Fig. 25 Layout of two risers in different arrangements

Fig. 26 (Color online) Wake vortexes at different sections of two risers

Fig. 27 (Color online) Development of wake vortexes at the midspan of two risers

Fig. 28 (Color online) Wake interaction between two spar-type FOWTs using UALM[64]

By using the coupled CFD analysis tool composed of UALM and naoe-FOAM-SJTU, aero-hydrodynamic simulations for the FOWT under combined wind and wave conditions can be achieved. Many works have been done to investigate the performance of FOWT system in operating ocean environment. To validate the capacity of UALM, the wind turbine aerodynamics restricting the motions of floating platform were firstly carried out. Li et al.[42]studied the wake flow of a semi-submersible FOWT system experiencing prescribed periodic surge and pitch motions. The platform motions were found to have significant effects on the aerodynamic performance of the FOWT. Then coupled aero-hydrodynamic simulations for a FOWT under shear wind and regular wave conditions were carried out[65]. Aerodynamic loads including the rotor power and thrust, motions responses of floating platform and mooring tensions were all obtained from the simulation results. The wake field velocity was obtained, and the vortex structures were also illustra- ted to study the complex wake characteristics of the FOWT. Moreover, the wake interactions between two floating offshore wind turbines were investigated by using this coupled analysis tool[64]. Figure 28 presents the wake interaction between two turbines through the visualizations of vortical structures.

Fig. 29 (Color online) Coupled simulations for OC4 semi-submersible platform system

To obtain more detailed flow field information,the marine hydrodynamic solver naoe-FOAM-SJTU associated with dynamic overset grid technique was employed to investigate the coupled performance of the FOWT system, where the actual rotating blades are considered. Cheng et al.[31,66-68]performed coupled aero-hydrodynamic simulations for the NREL 5-MW baseline offshore wind turbine mounted on the semi-submersible platform (shown in Fig. 29). The time series of the unsteady torque and thrust were obtained, together with the detailed wake field characteristics, and the pressure coefficient distribution in different cross-section were also available to clarity the detailed flow filed information (shown in Fig. 30).The simulation results showed that the pitch motion had more significant effects on the aerodynamic forces and moments of the rotor than the surge motion does. And the pitch response of floating platform was found to have bad influence on the aerodynamic performance. Besides, the influence of tower effects on the aerodynamic performance of FOWT was also studied.

Fig. 30 (Color online) Distribution of the wake flow on a longitudinal section across turbine centre[68]

4. Conclusions

In this paper, the development of CFD solver naoe-FOAM-SJTU based on the open source package OpenFOAM is introduced in detail. The basic features in OpenFOAM for marine hydrodynamics are illustrated at first. The implementation of main modules in naoe-FOAM-SJTU including wave generation and absorption, 6DOF motion with a hierarchy of bodies,mooring system, dynamic overset grid, fluid-structure interaction and unsteady actuator line model are presented. Extensive applications in marine hydrodynamic problems are discussed focusing on ship hydrodynamics, offshore platforms, marine risers and floating offshore wind turbines. It is concluded that with the development of specified modules in OpenFOAM, the present naoe-FOAM-SJTU solver can deal with many of the marine hydrodynamic problems.

Future work will focus on two parts, one is the improvement of existing modules and another one is the extension of the present solver by involving more modules for marine hydrodynamics. Emphasis is put on the efficiency and accuracy of the present modules to improve reliability of the CFD solver. More modules, including coupling strategy between potential flow and viscous flow, ship optimization design,are considered to extend the ability of naoe-FOAMSJTU for marine hydrodynamics.

Acknowledgements

This work was supported by the Chang Jiang Scholars Program (Grant No. T2014099), the Shanghai Excellent Academic Leaders Program(Grant No. 17XD1402300), the Program for Professor of Special Appointment (Eastern Scholar) at Shanghai Institutions of Higher Learning (Grant No. 2013022)the Innovative Special Project of Numerical Tank of Ministry of Industry and Information Technology of China (Grant No. 2016-23/09) and Lloyd’s Register Foundation for doctoral student, to which the authors are most grateful.