Professional Documents
Culture Documents
https://doi.org/10.1007/s00703-019-00689-2
ORIGINAL PAPER
Abstract
In this study, Monin–Obukhov similarity theory is used to specify the profiles of velocity, turbulent kinetic energy (k), and
eddy dissipation rate ( 𝜖 ) in atmospheric boundary layer (ABL) flow. The OpenFOAM standard solver buoyantSimpleFoam
is modified to simulate neutrally stratified ABL. The solver is able to obtain equilibrium ABL. For gas dispersion simulation,
buoyantNonReactingFoam is developed to take into account fluid properties change due to temperature, buoyancy effect,
and variable turbulent Schmidt number. The solver is validated for dense gas dispersion in wind tunnel test and field test of
liquefied natural gas vapour dispersion in neutrally stratified ABL.
13
Vol.:(0123456789)
V. Tran et al.
boundary conditions, turbulence model with associated con- where 𝜌 is the fluid density; C𝜇 = 0.09 , 𝜎k = 1 , 𝜎𝜖 = 1.3 ,
stants, and numerical schemes was shown to achieve HHTSL C1𝜖 = 1.44 , and C2𝜖 = 1.92 are model constants as proposed
(Jonathon and Christian 2012; Parente et al. 2011; Yan et al. in original paper (Launder and Spalding 1974). The value of
2016). These authors adopted proprietary CFD software for C3𝜖 is calculated using the following:
their simulation. Applying these implementations in open- |v|
source CFD code also require extensive modifications of the C3𝜖 = tanh|| ||, (4)
source code to successfully simulate equilibrium ABL. Open- |u|
FOAM was previously used for atmospheric buoyant (Flores where v and u are vertical and horizontal velocities
et al. 2013) and dense gas dispersions (Mack and Spruijt 2013; accordingly.
Fiates et al. 2016; Fiates and Vianna 2016). However, the vali- Gk is production of turbulence kinetic energy due to the
dation of these solvers in simulation of equilibrium ABL was mean velocity gradients. Gb is the buoyancy source term:
not reported. Therefore, the atmospheric turbulence might not
𝜇t 𝜇
be correctly solved throughout the computational domain. Gb = − (g ⋅ 𝛁𝜌) = −Cg t (g ⋅ 𝛁𝜌), (5)
In this study, MOST is used to model the profiles of veloc-
𝜌Prt 𝜌
ity, turbulent kinetic energy (k), and eddy dissipation rate where Cg = 1∕Prt is used as a model constant to take into
( 𝜖 ) of ABL according to an approach proposed by Richards account the user-defined value of turbulent Prandtl number
and Hoxey (1993). These profiles are used as the boundary Prt . g is gravitational vector.
conditions at the inlet of ABL flow simulation. OpenFOAM Energy, heat, and transport properties are determined by
application buoyantSimpleFoam is modified to simulate a set of thermophysical models (The OpenFOAM Founda-
neutrally stratified ABL turbulence. For gas dispersion simula- tion 2017) in OpenFOAM. This set defines mixture type,
tion, buoyantNonReactingPimpleFoam is developed transport and thermodynamic properties models, choice of
to take into account the buoyancy effect and variable turbulent energy equation variable, and equation of states.
Schmidt number. The solver is validated for dense gas disper- The fluid in a simulation is defined as a mixture of fixed
sion cases from wind tunnel and field tests of LNG vapour compositions. Enthalpy is chosen as energy equation varia-
dispersion in neutrally stratified ABL. ble. Transport and thermodynamic properties are determined
using models based on the density 𝜌 , which are calculated
2 Methodology from pressure and temperature fields. Polynomial functions
of order N are used to relate transport property 𝜇 , the specific
2.1 Models heat cp , and density 𝜌 with temperature field T:
N−1
The k − 𝜖 model is used for turbulence modelling. It is based ∑
𝜇= a𝜇i T i
on expression of turbulent dynamic viscosity 𝜇t by the follow- i
ing: Jones and Launder (1972): N−1
∑
k2 cp = acp i T i , (6)
𝜇t = 𝜌C𝜇 . (1) i
𝜖 N−1
∑
Two additional transport equations for turbulence kinetic 𝜌= a𝜌i T i
energy k and turbulence dissipation rate 𝜖 are required. To i
13
CFD simulation of dense gas dispersion in neutral atmospheric boundary layer with OpenFOAM
flow variables are only varying in the vertical direction and of velocity and turbulence properties are identical to Eq. (7).
their vertical fluxes are assumed constant. The inlet boundary However, they suggested to change the von-Karman constant
conditions proposed by Richards and Hoxey (1993) based on 𝜅 according to model constants as follows:
MOST are widely used in CFD study of atmospheric flow. � √
The velocity, turbulent production rate, k and dissipation rate 𝜅 = (C𝜖2 − C𝜖1 )𝜎𝜖 C𝜇 . (11)
𝜖 profiles in vertical direction z are written as follows:
u∗ z + z0 Using the standard k − 𝜖 model constants, we obtain
u(z) = ln 𝜅k−𝜖 = 0.433.
𝜅 z0
u2
k = √∗ 2.2.2 Wall boundary conditions
, (7)
C𝜇
u3∗ In CFD, the below approximation is used to calculate wall
𝜖(z) =
𝜅(z + z0 )
, shear stress:
𝜕u (u − uw )
𝜏w = 𝜈t |w ≈ 𝜈t P , (12)
𝜕n yP
where z0 is aerodynamic roughness length, u∗ is friction
velocity, and C𝜇 is k − 𝜖 model constant. where yP is distance to wall of the wall adjacent cell. Sub-
These profiles are implemented in OpenFOAM as atm- scripts w and P denote field value evaluated at wall and wall
BoundaryLayer class and its subclasses. Required param- adjacent point, respectively.
eters are flow and vertical direction, reference velocity, refer- However, this approximation is inaccurate when wall
ence height, and aerodynamic roughness length. The friction velocity gradient is significantly larger than velocity differ-
velocity is calculated as follows: ence between the adjacent cell and the wall. This is the case
for most ABL flows. Turbulent kinematic viscosity 𝜈t wall
𝜅 ∗ uref
u∗ = . (8) function is used to calculate the wall shear stress 𝜏w from
ln((zref + z0 )∕z0 )
the wall velocity difference. To take into account the aero-
Parente et al. (2011) presented an elaborate procedure to dynamic roughness length z0 , the calculation of turbulent
ensure the consistency for arbitrary inlet profile of turbulent kinematic viscosity at wall adjacent cell is as follows:
kinetic energy k. Instead of altering model constants as Yang 𝜅u∗ yP
et al. (2009), the effect of non-constant k on momentum and 𝜈t = ( ),
yP +z0 (13)
𝜖 equation can be characterised by deriving an equation for ln z0
C𝜇:
where friction velocity u∗ can be calculated from a simple
u4∗ relation derived by Launder and Spalding (1974), assuming
C𝜇 (z) = . (9) that generation and dissipation of energy are in balance:
k(z)2
Source terms are added to k and 𝜖 transport equations to u∗ = C𝜇1∕4 k1∕2 . (14)
ensure equilibrium condition:
� � 𝜖 wall function is used to calculate value of 𝜖 at wall adjacent
𝜌u 𝜅 𝜕
Sk = ∗ (z + z0 )
𝜕k cell 𝜖P as follows:
𝜎k 𝜕z 𝜕z
� √ � (10) C𝜇0.75 k1.5
4 (C𝜖2 − C𝜖1 ) C𝜇
S𝜖 =
𝜌u∗
−
1
. 𝜖P = . (15)
(z + z0 )2 𝜅2 𝜎𝜖 𝜅yP + z0
13
V. Tran et al.
The top and side of the computational domain are exter- 3: Solving momentum equation
nal boundaries representing the far fields of flow. If a con- 4: Solving energy equation for enthalpy and correcting thermal properties
stant pressure is applied in these boundaries, this may alter 5: Solving pressure correction equation for prgh and calculating pressure field
the inlet wind profile in case the prescribed pressure is not 6: Correcting turbulent properties
normal velocity to zero and all others variables are set equal
to the inner values, or symmetry condition can be used at
the top and side boundaries to reserve the wind profile and
Algorithm 2 buoyantNonReactingFoam solver algorithm
eliminate the effect of changing the inlet profiles. 1: Initializing variables such as: time variables, mesh, solution control, fields and continuity
velocity at the top boundary resulted in a decay of velocity 2: while t < tend do
respect to the wall shear stress. A driving shear stress, zero 4: Solving continuity equation for density
flux of turbulent kinetic energy, and a flux of dissipation rate 5: while PIMPLE outer correctors do
𝜇t d𝜖 𝜌u4 (17)
10: Solving pressure correction equation for prgh and calculating pressure field
= − ∗.
𝜎𝜖 dz 𝜎𝜖 z 11: Solving continuity equation for density
13
CFD simulation of dense gas dispersion in neutral atmospheric boundary layer with OpenFOAM
Burro9, which is continuous LNG spills under neutral Table 3 Turbulence models’ setting for neutral ABL simulation
ABL.
Turbulence model standard k − 𝜖
modified k − 𝜖 Eq. (10)
Wall functions nutkWallFunction for 𝜈t
3 Neutral ABL simulation
epsilonWallFunction for 𝜖
kqRWallFunction for k
3.1 Domain and mesh
13
V. Tran et al.
Fig. 1 Comparing velocity,
turbulent kinetic energy, and
turbulent dissipation rate pro-
files at the outlet boundary from
simulation of neutral ABL using
standard k − 𝜖 (kEps), modified
k − 𝜖 (kEpsMod) turbulence
model, and MOST inlet profiles
(MOST)
Table 4 Turbulent Schmidt number Sct in Hamburg tests prior to the dense gas release. The solver which includes
Case 1 Case 2 Case 3
buoyancy effects bouyantSimpleFoam is used to
account for density stratification in dense gas flow. The
Sct 1 0.7 0.3 atmospheric inlet profiles are specified by MOST with
Label (Figs. 4, FOAM_ORIG FOAM_Sc07 FOAM_Sc03 parameters in Table 5. Standard k − 𝜖 with modifica-
10) tions is used to study the ability to simulate the ABL
with each model. Second, the transient simulation is per-
formed using steady simulation solutions as initial fields.
Table 5 Hamburg flat, unobstructed test case parameters (Nielsen and A modified version of rhoReactingBouyantFoam
Ott 1996) is studied to model multi-species flow where mixture
Unit DA0120 DAT223 considered is air and dense gas SF6 . The wind tunnel tests
were conducted in isothermal condition, and therefore,
Substance SF6 SF6 constant thermal and transport properties are used for
Density kg/m 3 6.27 6.27 both gases.
z0 m 0.0001 0.0001 In simulations of DA0120 and DAT223 tests, the dis-
Wind speed m/s 0.54 0.74 cretization schemes and linear solver setting are identical
Reference height m 0.00718 0.01367 to the simulation of neutral ABL (Sect. 3).
Ambient temperature °C 20 20
Source diameter m 0.07 0.07
Spill rate kg/s 0.0001743 0.000872
13
CFD simulation of dense gas dispersion in neutral atmospheric boundary layer with OpenFOAM
Fig. 3 DA0120(up) and
DAT223(below) ground-level
contours of SF6 mass fraction
Fig. 4 Peak concentration for DA0120 test Fig. 5 Peak concentration for DAT223 test
13
V. Tran et al.
Sct by reading this parameter from user input. The value dispersion FLACS in Table 6. FLACS results are extracted
of Sct = 0.3 is shown to yield a perfect match with the from Hansen et al. (2010). The performance of current
experimental data. However, there is a slightly acceptable OpenFOAM code is considerably better than FLACS. In
over-predicted species concentration at a point near the fact, FLACS is based on the porosity distributed resist-
source release. ance (PDR) approach. Therefore, this modelling of the
Results from the DAT223 simulation are presented in boundary layer close to solid surfaces might contribute
Fig. 5. Satisfactory over-predicted peak concentration is to the outperformance of the OpenFOAM model in the
similar to DA0120 case. comparison. In conclusion, even though larger tests were
validated in FLACS, the proposed model in OpenFOAM
4.2.2 Point‑wise concentration is a promising tool for further investigation of atmospheric
dense gas dispersion.
Figure 6 presents gas concentration at the downwind dis-
tance X = 1.84 of the DA0120 test. The simulation can
reproduce the averaged gas concentration. The first inci-
dence time of gas concentration is earlier than observed in 5 LNG vapour dispersion in field tests
experiments. However, the time for reaching averaged maxi-
mum concentration is well predicted. 5.1 Numerical setting
4.2.3 Statistical model evaluation The steady simulation uses the atmospheric inlet speci-
fied by MOST. Standard k − 𝜖 with modifications is used
Statistical performance measures (SPMs) are means to to study the ability to simulate the ABL with each model.
compare prediction parameters and the measured ones for All required meteorological parameters are tabulated in
model evaluation. The SPM chosen should reflect the bias Table 7, where uref and Tref are air velocity and temperature
of these predictions. In the context of LNG vapour disper- at the height of 2 m respectively.
sion model evaluation, Ivings et al. (2013) proposed five The transient simulation is divided into two steps. The
SPMs including mean relative bias (MRB), mean relative first step is during the spill duration, i.e., from the time of
square error (MRSE), the fraction of predictions within the zero to when the spill ends. The second step is after the spill
factor of two of measurements (FAC2), geometric mean stops to the end time of simulation. The gas inlet is treated
bias (MG), and geometric variance (VG). Definition and as a ground boundary in this later step.
acceptability criteria for each SPMs are presented in tabu- The gas inlet condition is usually obtained from separate
lar form as Table 6 where Cm and Cp are the measured and source term modelling. There is not much information about
simulated concentration, respectively, and A denotes the the vaporization of LNG from the experimental data. There-
mean operation of variable A. fore, uncertainty arises at the setting of this condition. Mass
Statistical performance of OpenFOAM results is flux of LNG or the LNG vaporization rate is used to derive
compared with the specialised commercial code for gas source term of LNG spilling. Luketa-Hanlin et al. (2007)
13
CFD simulation of dense gas dispersion in neutral atmospheric boundary layer with OpenFOAM
reviewed a number of experiments conducted to estimate the Table 8 Burro test computational domain and mesh parameters
LNG vaporization rate of the spill on water, and the range Mesh 1 Mesh 2 Mesh 3
of this value varied between approximately 0.029–0.195
kg/m2/s. In the case of Burro test, the simulated vaporiza- Domain region [(−150, 0, 50), (850, 300, 50)]
tion rate is assumed to be m��LNG = 0.167 kg/m2/s. Density Refined region [(−100, 0, 5) , (400, 100, 5)]
of LNG vapour is similar to that of CH4 at boiling point Mesh size (m) 10 5 2
𝜌LNG = 1.76 kg/m3 (Luketa-Hanlin et al. 2007). The spill Mesh refined size (m) 5 2 1
diameter is derived from the vaporization rate, reported spill
mass mspill , and duration tspill:
√
4mspill
Dspill = . (18)
𝜋m��LNG tspill
13
V. Tran et al.
Two values of Sct = 1 and Sct = 0.3 are used for studying
the sensitivity of the proposed model in predicting the maxi- 57 m array and 140 m array. Further downwind, at 400 m
mum gas concentration. Results are compared in Fig. 10. array and 800 m array, there is no significant difference
Sct = 0.3 , which was used previously in wind tunnel between the two values.
dense gas dispersion which is shown to be appropriate for
accurate prediction of maximum gas concentration at the
13
CFD simulation of dense gas dispersion in neutral atmospheric boundary layer with OpenFOAM
5.2.5 Isosurface contour
13
V. Tran et al.
Table 10 Statistical performance measures of Burro tests full-scale field measurements. The gas peak concentration is
MRB RMSE FAC2 MG VG
used as validation parameters. Adiabatic wall assumes zero
heat flux from ground to the gas cloud, whereas the fixed
FLACS 0.16 0.12 0.94 1.18 1.14 temperature model assumes isothermal ground where the
(Hansen
ground temperate remains unchanged when in contact with
et al. 2010)
the cold gas cloud. The real heat flux to the gas cloud would
FOAM 0.44 0.23 1 0.63 1.28
Burro9 be in between these two cases. The other model assuming
a fixed flux of heat to the gas cloud is also included. Of the
three ground heat transfer models, adiabatic wall gives the
cannot capture the fluctuation, while FDS yields fluctuating closest prediction of gas peak concentration. The model is
gas concentration over the time period. This is an advantage shown to accurately predict vertical buoyancy, while the
of LES over RANS turbulence model. The over-prediction of cloud spreading downwind is under-predicted. SPMs from
FDS may be due to that a constant coefficient Smagorinsky the simulation results are compared with the LES code FDS
model was adopted in the simulation. However, the dynamic and specialised dispersion code FLACS, showing that the
Smagorinsky model was shown to improve the gas disper- solver is more accurate in predicting gas concentration in
sion prediction (Ferreira Jr and Vianna 2016). This indicates neutrally stratified ABL. Further investigation is required
that it would be a promising approach to use LES to enhance to validate the OpenFOAM solver in ABL with thermal
the performance of the developed solver. stratification.
13
CFD simulation of dense gas dispersion in neutral atmospheric boundary layer with OpenFOAM
Launder BE, Spalding DB (1974) The numerical computation of turbu- Richards PJ, Hoxey RP (1993) Appropriate boundary conditions for
lent flows. Comput Methods Appl Mech Eng 3(2):269–289. https computational wind engineering models using the k-epsilon
://doi.org/10.1016/0045-7825(74)90029-2 turbulence model. J Wind Eng Ind Aerodyn 46–47(Supplement
Luketa-Hanlin A, Koopman RP, Ermak DL (2007) On the applica- C):145–153. https://doi.org/10.1016/0167-6105(93)90124-7
tion of computational fluid dynamics codes for liquefied natu- Richards PJ, Norris SE (2011) Appropriate boundary conditions for
ral gas dispersion. J Hazard Mater 140(3):504–517. https://doi. computational wind engineering models revisited. J Wind Eng
org/10.1016/j.jhazmat.2006.10.023 Ind Aerodyn 99(4):257–266. https: //doi.org/10.1016/j.jweia
Mack A, Spruijt MPN (2013) Validation of OpenFoam for heavy gas .2010.12.008
dispersion applications. J Hazard Mater 262:504–516. https://doi. The OpenFOAM Foundation (2017) OpenFOAM v5 User guide.
org/10.1016/j.jhazmat.2013.08.065 Retrieved 11 Nov 2018. https://cfd.direct/openfoam/user-guide
McGrattan K, Hostikka S, McDermott R, Floyd J, Weinschenk C, -v5/
Overholt K (2013) Fire dynamics simulator, user’s guide, vol Yan BW, Li QS, He YC, Chan PW (2016) RANS simulation of neu-
1019. NIST special publication, p 20 tral atmospheric boundary layer flows over complex terrain by
Mouilleau Y, Champassith A (2009) CFD simulations of atmos- proper imposition of boundary conditions and modification on
pheric gas dispersion using the fire dynamics simulator (FDS). J the k-epsilon model. Environ Fluid Mech 16(1):1–23. https://doi.
Loss Prev Process Ind 22(3):316–323. https://doi.org/10.1016/j. org/10.1007/s10652-015-9408-1
jlp.2008.11.009 Yang Y, Gu M, Chen S, Jin X (2009) New inflow boundary condi-
Nielsen M, Ott S (1996) A collection of data from dense gas experi- tions for modelling the neutral equilibrium atmospheric boundary
ments. Technical report, Risø National Laboratory, Roskilde layer in computational wind engineering. J Wind Eng Ind Aerodyn
Parente A, Gorlé C, van Beeck J, Benocci C (2011) Improved k-epsilon 97(2):88–95. https://doi.org/10.1016/j.jweia.2008.12.001
model and wall function formulation for the RANS simulation of
ABL flows. J Wind Eng Ind Aerodyn 99(4):267–278. https://doi. Publisher’s Note Springer Nature remains neutral with regard to
org/10.1016/j.jweia.2010.12.017 jurisdictional claims in published maps and institutional affiliations.
Pontiggia M, Derudi M, Busini V, Rota R (2009) Hazardous gas disper-
sion: a CFD model accounting for atmospheric stability classes. J
Hazard Mater 171(1–3):739–747. https://doi.org/10.1016/j.jhazm
at.2009.06.064
13