Professional Documents
Culture Documents
2020PhysicsofFluids Bnfree
2020PhysicsofFluids Bnfree
net/publication/340471846
CITATIONS READS
29 1,982
3 authors:
Sang V. Pham
Hanoi University of Science and Technology
32 PUBLICATIONS 600 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Next Generation Brine Desalination and Management for Efficiency, Reliability, and Sustainability View project
Vietnam National Foundation for Science and Technology Development (NAFOSTED) under Grant No. 107.03-2016.11 View project
All content following this page was uploaded by Sang V. Pham on 16 May 2020.
solver is developed using the Immersed Boundary OpenFOAM, FOAM-extend [12], an Immersed
Method (IBM) to model incompressible multiphase and Boundary Method was implemented, however, the library
turbulent flow over a solid obstacle. The solver combines has not been used popularly, making its reliability and
the Pressure Implicit Split Operator (PISO) algorithm performance remained questionable.
with the 𝑘 − 𝜔 Shear Stress Transport ( 𝑘 − 𝜔 𝑆𝑆𝑇 ) In this work, we put efforts for continuing to develop
model for the velocity-pressure coupling in Navier- a solver, namely IBMFoam, which combines advantages
Stokes equations and resolving turbulent flow near the of OpenFOAM platform and immersed boundary method.
obstacle’s surface. To strengthen the performance of the IBMFoam is equipped with an Adaptive Mesh
solver, an Adaptive Mesh Refinement – AMR scheme is Refinement (AMR) scheme for improving the accuracy
developed for efficient mesh using of IBM. The problem of the IBM via refining mesh cells in the supporting area
of penetration of multiphase flow through immersed of an immersed boundary [13,14]. IBMFoam is able to
boundary is considered and resolve with a method of solve turbulent flow via an IBM-based scheme for
modifying the forcing term at solid cells. The solver has turbulent variables. The solver is validated via well-
been validated via benchmark problems and applied in documented cases and used for modeling complicated
simulating complicated fluid flow problems. problems. This novel solver fills the gap in the
OpenFOAM platform, handles the fluid-structure
INTRODUCTION interaction problems such as ship hydrodynamics and
PLEASE CITE THIS ARTICLE AS DOI:10.1063/1.5145051
In Computational Fluid Dynamics (CFD), the maneuvering, ocean and coastal engineering,
utilization of body-fitted (BF) mesh is the most common development of multiphase flow under the presence of
approach in modeling various problems in creating obstacles, dynamic properties of transport vehicles, etc.
prospective designs and testing new technological In the following parts, we begin with a mathematical
solutions [1,2]. Generating BF mesh for complex model and numerical method for turbulent fluid flow.
geometry domains are challenging, especially in moving An adaptive mesh refinement is then presented and
objects problem due to time-consuming and huge following by the implementation of flow solver in
computational resources requirement [3]. Immersed OpenFOAM environment. Validations for the solver are
Boundary Method (IBM) is an alternative numerical provided with a discussion on the problem of liquid
procedure that enables to efficiently handle motions of phase penetrating across an impermeable boundary, and
complex geometry while maintaining high accuracy. IBM method to resolve the problem.
was first proposed by Peskin to simulate the blood flow
in the mitral valve and the heart at two-dimensional (2D) NUMERICAL METHOD
flow and a low Reynolds number [4]. In his method, the Governing equations
desired velocity is imposed over the surface of objects by Considering the Navier-Stokes equations for the
using a body force field. IBM has been subsequently incompressible, unsteady, viscous fluid flow:
developed by many researchers, Fadlun et al. [5], 𝜕𝐔
𝜌 + 𝜌𝐔 ⋅ 𝛁𝐔 = −𝛁𝑃 + 𝜇𝛁2 𝐔 + 𝜌𝐟 𝐢𝐛 (1)
Constant et al. [6], and Uhlmann [7] introduced a direct 𝜕𝑡
formulation of the force term. 𝛁⋅𝐔=0 (2)
In our previous work, Pham [8], Do et al. [9,10], we where 𝜌, 𝜇, 𝐔, 𝑡, 𝑃, 𝐟 𝐢𝐛 denote the density, dynamic
developed an IBM solver in OpenFOAM open-source viscosity, velocity of fluid, time, pressure, and volume
framework [11]. The solver makes use of the direct force field, respectively.
forcing approach and has shown its robustness in dealing Motion of objects in fluid-flow force is governed by
with the laminar flow around solid obstacles and the Newton’s equations:
interaction of multi-objects. However, the lack of an 𝑑𝐔𝐩
(𝜌𝑝 − 𝜌𝑓 )𝑉𝑝 = (𝜌𝑝 − 𝜌𝑓 )𝑉𝑝 𝐠 − 𝐅 (3)
appropriate turbulent model limits its use to small 𝑑𝑡
Reynolds number flows only. In this work, this limitation 𝑑𝛚𝐩
𝐼𝑝 =𝜏 (4)
will be addressed as a 𝑘 − 𝜔 Shear Stress Transport (𝑘 − 𝑑𝑡
𝜔𝑆𝑆𝑇) turbulent model, enabling the solver to cope with where𝑉𝑝 , 𝐼𝑝 , 𝛚𝐩 , 𝜌𝑝 , 𝜏are the volume, moment of inertial,
high Reynolds number flows. angular velocity, density and torque vector of object; f
OpenFOAM is a brilliant and well known CFD open
is the fluid density; 𝐠 is the vector of gravitational
source with numerous advantages, such as no license cost,
acceleration; 𝐅 is hydrodynamic force.
flexible code customization, fully MPI parallelization,
Turbulent model
*
Corresponding author: sang.phamvan@hust.edu.vn
We make use of the most popular approach for To compute turbulent viscosity, we choose a two-
turbulent flow problems - RANS model. The key idea of equation turbulence model 𝑘 − 𝜔 𝑆𝑆𝑇 which is the most
this model is decomposing the flow variables into time- popular application in industry. This turbulence model is
mean value component ( 𝐔, 𝑝) and fluctuating employed by Menter [16]. It combines the advantages of
components (𝐔 ′ , 𝑝′ ): the 𝑘 − 𝜀 turbulence model for the free-stream flow and
the standard 𝑘 − 𝜔 turbulence model by Wilcox [17] for
𝐔 = 𝐔 + 𝐔 ′ ; 𝑃 = 𝑝 + 𝑝′ (5)
the boundary layer flow. The 𝑘 − 𝜔 𝑆𝑆𝑇 model
The fluctuating quantities are assumed to be zero employed in OpenFOAM v5.0 [11] is based on a blend of
This is the author’s peer reviewed, accepted manuscript. However, the online version of record will be different from this version once it has been copyedited and typeset.
The IBM developed in this work, firstly reported in Figure 1. Quadtree discretization and its corresponding tree
[5,6], has the surface of a solid object represented by a representation where the original hexahedral mesh cell (parent
set of Lagrangian points. Mutual interactions between cell) is subdivided into four smaller hexahedral cells (children
the object and fluid flow are modeled via a forcing field cells).
𝐟 𝐢𝐛 added into the momentum equation (12). The force
field is calculated to reproduce the desired velocity Adaptive Mesh Refinement
value on the object surface. OpenFOAM provided a robust adaptive meshing tool
After solving for the intermediate velocity field, the that works perfectly with 3D simulations but does not
forcing term 𝐅 𝐢𝐛 on the object surface is calculated from support 2D problems. Thus, we modified the original tool
the predicted velocity (𝐔 𝐥𝐠 ) and desired velocity (𝐔 𝐝 ) at based on the AMR technique described in [20] to obtain
the object surface: a new dynamic refinement mesh library for simulating
two-dimensional planar and axisymmetric geometries.
𝐔𝐝 − 𝐔𝐥𝐠 The library can locally refine mesh at the regions of
𝐅 𝐢𝐛 = (25)
𝛥𝑡 interest, e.g., liquid-air interface and surface of the
immersed objects. The technique splits an original
The 𝐅 𝐢𝐛 is then transferred back to the Eulerian mesh
hexahedral mesh element (parent cell) into four and eight
via a transferring function to obtain forcing term 𝐟 𝐢𝐛 [7].
smaller hexahedral elements (children cells) in 2D and 3D,
The forcing term 𝐟 𝐢𝐛 then is added to the RHS of Eq.
PLEASE CITE THIS ARTICLE AS DOI:10.1063/1.5145051
Mesh M1 M2 M3
y min
p 15.8 7.88 0.788
Total cells 9600 32500 14400
PLEASE CITE THIS ARTICLE AS DOI:10.1063/1.5145051
their definitions are shown in Eq. (31) [28], the deviation on drag force coefficient is higher, this
might due to the coarser used in this study (32500 cells in
𝐅𝐷 𝐅𝐿 𝑓𝑠 𝐷
𝐶𝐷 = 2 𝐷 ; 𝐶𝐿 = 2 𝐷 ; 𝑆𝑡 = (31) comparison to 96785 cells [26] and 11.3 million cells
0.5𝜌𝐔𝑖𝑛 0.5𝜌𝐔𝑖𝑛 𝐔𝑖𝑛
[27]).
in which, 𝐅D , 𝐅L and 𝑓𝑠 are the drag force, lift force, and Fig. 9-11 show the comparisons between the contours
vortex-shedding frequency, respectively. of velocity, vorticity and 𝐶𝑝 at 𝑅𝑒 = 63100. The results
are good agreement with the published results [26]. It,
Mesh M1 M2 therefore, demonstrates that the combination of the IBM
𝒚+ 88.64 44.32 approach and the present numerical algorithm can well
Number of Lagrangian points capture important global flow features in the critical flow
64 128 regime.
representing cylinder
Total cells 20000 32500
Table 2: Meshes size and corresponding 𝑦 + and number of
Lagrangian points used for the validation of flows around a
fixed smooth circular cylinder.
deal with the velocity field with a large gradient at the The last convective term in the Eq. (33) is referred to
surface of an immersed object. The results are compared as the compressive term, with the compressive velocity
with the experimental data. defined as 𝐔𝐫 = 𝐔𝐥 – 𝐔𝐠 . This term is active only in the
The simulation model is depicted in Fig. 12 with free surface region (where γ is neither one nor zero) and
parameters that are similar to those introduced by Ubbink intends to “compress” the interface to achieve a higher
[29]. The domain has the size of [0.584 × 0.584]𝑚. interface resolution, thus avoiding the need to employ a
The dynamic viscosity and density of water are special scheme for sharp interfaces.
10−3 𝑘𝑔/𝑚𝑠 and 1000 𝑘𝑔/𝑚3 , respectively, while
those of air are 1.8 × 10−5 𝑘𝑔/𝑚𝑠 and 1 𝑘𝑔/𝑚3 . The The penetration of water phase on the immersed
gravity acceleration 𝑔 = −9.81 𝑚/𝑠 2 . No-slip boundary boundary
condition is applied to all boundaries except the top
surface which is assumed to be an open boundary. The Immersed boundary method with direct forcing can
initial mesh resolution is 25 × 25 and the free surface work well with single-phase flow and wall boundary
and the obstacle surface are refined up to the fourth level [6,7,8], however, when dealing with two-phase flow, the
depending on liquid motion during the simulation. non-zero density gradient at immersed boundary causing
the inaccurate velocity boundary condition. Zhang [30]
used a volume of solid (VOS) function which takes values
of either zero or one for cells within the fluid or the solid solid volume, with non-zero velocity in the solid volume.
region, respectively. The forcing term was specified with: With the additional forcing term, the liquid phase is
stopped effectively from passing through the
𝐔𝐬 − 𝐔𝐧
𝐟 𝐢𝐛 = 𝜂( − 𝒓𝒉𝒔) (34) impermeable surface.
Δ𝑡
The η field takes the value of 0 for fluid and 1 for solid.
𝐔𝐬 is the desired velocity of at the body surface, 𝐔𝐧 is the
calculated velocity, and 𝒓𝒉𝒔 includes the viscosity
This is the author’s peer reviewed, accepted manuscript. However, the online version of record will be different from this version once it has been copyedited and typeset.
applied a smooth function form to the forcing term 𝑓𝑖𝑏 collapsing water column obstructed by the obstacle
at cell centers inside the obstacle: bounces up from the upper left corner of the obstacle,
forming a tongue-shaped flow and heading to the opposite
𝐔𝐝 − 𝐔𝐢𝐧
𝐟 𝐢𝐛 = 𝛾( ) (35) wall. After the tongue reaches the right wall at 𝑡 = 0.4𝑠,
∆𝑡 water starts to fall under the effect of gravity and
The smooth function, 𝛾 , is zero at the immersed compresses the tapped air beneath it. The air bubble
boundary and increases gradually to 1 into the obstacle. eventually bursts through the water sheet while the water
𝐔𝐢𝐧 is a current velocity at the cell center. The forcing continues its downward motion due to gravity, creating a
term 𝐟 𝐢𝐛 in [6,7,8,9,10] is only active near the surface of mixing region of water and air. The phenomena observed
the object so that our solver computes supplementary in the current study are in excellent agreement with that
force for inner cells of the obstacle. produced by Ubbink [29]. Using AMR in the current
solver help to reduce a significant number of cells
(~30000 cells) in comparison with Zhang et al.’s model
(100000 cells) [30]. With fewer mesh cells, the solver is
still able to capture the clearer peak of the tongue-shaped
wave [29,30].
is the same as those in [35]. The diameter of object is 𝐷 = cylinder at different dimensionless time step illustrated
2𝑚. The domain size is [40 × 24]𝑚, filled with water in Fig. 17, are well-matched with the results reported in
of 20𝑚 in depth as shown in Fig. 15. The dynamic [35].
viscosity and density of water are 10−3 𝑘𝑔/𝑚𝑠
and1000 𝑘𝑔/𝑚3 , respectively, while those of air are
1.8 × 10− 5 𝑘𝑔/𝑚𝑠 and 1 𝑘𝑔/𝑚3 . The gravity
acceleration 𝑔 = 1.0 𝑚/𝑠 2 .
A uniform mesh with 𝛥𝑥 = 𝛥𝑦 = 0.8𝑚 (cell level
0) is initially used for the entire domain, while cells in
the vicinity of the free surface and the cylinder surface
are refined to the fourth level (𝛥𝑥 = 𝛥𝑦 = 0.05𝑚).
The cylinder has radius 𝑅 = 1𝑚. Its center is initially
located at 𝑑 = 1.25𝑚 above the free surface and is
given a constant velocity 𝑉 = 0.39𝑚/𝑠 for the exiting
problem. For easier to compare our results with previous
studies, the dimensionless time 𝑇 = 𝑉𝑡/𝑑 is used in our
analysis.
PLEASE CITE THIS ARTICLE AS DOI:10.1063/1.5145051
Figure 16. The free surface profile of the water exit (E1),
(E2) of a circular cylinder in comparison with previous
study [36].
With AMR
Without
AMR
M1 M2 M3
Solver in OpenFOAM,” J. Sci. Technol., vol. Computational Physics, vol. 105, no. 2. pp.
135, no. 2354–1083, pp. 023–027, 2019. 354–366, 1993.
[10] V. Q. Do, B. V. Nguyen, P. Nguyen, and V. [26] H. Ye and D. Wan, “Benchmark computations
Pham, “An Immersed Boundary Method for flows around a stationary cylinder with
OpenFOAM Solver for Structure – Two-phase high Reynolds numbers by RANS-overset grid
Flow Interaction,” J. Sci. Technol., vol. 138, approach,” Appl. Ocean Res., vol. 65, pp. 315–
no. 2345–1083, pp. 028–032, 2019. 326, 2017.
[11] C. J. Greenshields, “The OpenFOAM User [27] K. Lee and K. S. Yang, “Large Eddy
Guide,” no. July. p. 235, 2017. simulation of turbulent flow past a circular
[12] H. Jasak, “Immersed Boundary Surface cylinder in the subcritical and critical regimes,”
Method in foam-extend,” 2018. J. Mech. Sci. Technol., vol. 31, no. 4, pp.
[13] S. J. Plimpton et al., “Direct simulation Monte 1729–1737, 2017.
Carlo on petaflop supercomputers and [28] J. J. De Wilde and R. H. M. Huijsmans,
beyond,” Phys. Fluids, vol. 31, no. 8, 2019. “Experiments for high Reynolds numbers VIV
[14] H. Z. Yuan, C. Shu, Y. Wang, and S. Shu, “A on risers,” Proc. Int. Offshore Polar Eng.
simple mass-conserved level set method for Conf., vol. 3, pp. 400–405, 2001.
PLEASE CITE THIS ARTICLE AS DOI:10.1063/1.5145051
simulation of multiphase flows,” Phys. Fluids, [29] O. Ubbink, “Numerical prediction of two fluid
vol. 30, no. 4, 2018. systems with sharp interfaces,” 1997.
[15] F. Moukalled, L. Mangani, and M. Darwish, [30] C. Zhang, W. Zhang, N. Lin, Y. Tang, and C.
The Finite Volume Method in Computational Zhao, “A two-phase flow model coupling with
Fluid Dynamics - An Advanced Introduction volume of fluid and immersed boundary
with OpenFOAM and Matlab, vol. 113. 2016. methods for free surface and moving structure
[16] F. R. Menter, “Two-equation eddy-viscosity problems,” Ocean Eng., vol. 74, pp. 107–124,
turbulence models for engineering 2013.
applications,” AIAA J., vol. 32, no. 8, pp. [31] A. M. Roma, C. S. Peskin, and M. J. Berger,
1598–1605, 1994. “An Adaptive Version of the Immersed
[17] W. D.C., Turbulent modeling for CFD. 1994. Boundary Method,” vol. 534, pp. 509–534,
[18] J. Bredberg, “On the Wall Boundary Condition 1999.
for Turbulence Models,” 2000. [32] H. Abdulmouti, “2D numerical simulation of
[19] M. Li and H. Nilsson, “A Thorough surface flowvelocity and internal flow structure
Description Of How Wall Functions Are generated by bubbles,” Multiph. Sci. Technol.,
Implemented In OpenFOAM,” 2016. vol. 28, no. 2, pp. 153–171, 2016.
[20] A. Baniabedalruhman, “Dynamic Meshing [33] H. Abdulmouti, “Numerical simulation and
Around Fluid-Fluid Interfaces With fundamental characteristics of surface flow
Applications To Droplet Tracking in generated by bubbly flows,” Int. J. Fluid Mech.
Contraction Geometries,” 2015. Res., vol. 45, no. 3, pp. 263–282, 2018.
[21] T. Mukha and M. Liefvendahl, “Large-Eddy [34] H. Abdulmouti, “Numerical simulation of
Simulation of a Turbulent Channel Flow,” Box bubble convection in two-phase stratified
337, SE-751 05 Uppsala, Sweden Technical, liquids,” Multiph. Sci. Technol., vol. 31, no. 1,
2015. pp. 1–17, 2019.
[22] D. W. Dodge and A. B. Metzner, “Turbulent [35] P. Lin, “A fixed-grid model for simulation of a
flow of non‐newtonian systems,” AIChE J., moving body in free surface flows,” Comput.
vol. 5, no. 2, pp. 189–204, 1959. Fluids, vol. 36, no. 3, pp. 549–561, 2007.
[23] R. D. Moser, J. Kim, and N. N. Mansour, [36] M. Greenhow, “Water-entry and -exit of a
“Direct numerical simulation of turbulent horizontal circular cylinder,” Appl. Ocean Res.,
channel flow up to Reτ=590,” Phys. Fluids, vol. 10, no. 4, pp. 191–198, 1988.
vol. 11, no. 4, pp. 943–945, 1999.
View publication stats