원시데이터 수집 시스템
선정목록으로

Extending the isoAdvector Geometric VOF Method to Flows in Porous Media

간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (6) PEM(고분자전해질막)(7) MEA(막전극접합체)

기본 정보

저자
  1. Konstantinos Missios — IMFUFA, Department of Science and Environment, Roskilde University, Roskilde, Denmark
  2. Niels G. Jacobsen — Vattenfall, Copenhagen, Denmark
  3. Kasper Moeller — IMFUFA, Department of Science and Environment, Roskilde University, Roskilde, Denmark
  4. Johan Roenby — IMFUFA, Department of Science and Environment, Roskilde University, Roskilde, Denmark
DOI
10.51560/ofj.v3.72
저널
OpenFOAM® Journal
발행년도
2023
발행기관
–
피인용수
4
라이선스
cc-by-sa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.51560/ofj.v3.72
토픽
Heat and Mass Transfer in Porous Media
OpenAlex ID
W4377121576

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
porous media, interfacial flow, VOF method, Navier-Stokes equations, porosity
판단 근거
본 논문은 다공성 매질(porous media) 내에서의 계면 유동을 시뮬레이션하는 수치 해석 방법론(VOF)을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 핵심 부품인 중공사막(hollow fiber membrane)이나 가스확산층(GDL) 내의 가스/수분 이동을 모델링하는 데 응용될 수 있는 기술입니다.
R&D 활용 포인트
연료전지용 중공사막(5) 또는 가스확산층(7) 내부의 수분 및 가스 투과 거동을 CFD(전산유체역학)로 예측하고 설계하는 시뮬레이션 모델링 기술로 활용 가능합니다.
평가 입력
본문 38,375자 중 30,032자 발췌

초록

We consider the interfacial flow in and around porous structures in coastal and marine engineering.* During recent years, interfacial flow through porous media has been repeatedly simulated with Computational Fluid Dynamics (CFD) based on algebraic Volume Of Fluid (VOF) methods [1] [2]. Here, we present an implementation of a porous medium interfacial flow solver based on the geometric VOF method, isoAdvector [3] [4]. In our implementation, the porous medium is treated without resolving the actual pore geometry. Rather, the porous media, pores, and rigid structure are considered a continuum and the effects of porosity on the fluid flow are modelled through source terms in the Navier-Stokes equations, including Darcy-Forchheimer forces, added mass force and accounting for the part of mesh cells that are occupied by the solid material comprising the skeleton of the porous medium. The governing equations are adopted from the formulation by Jensen et al. [1]. For the interface advection using isoAdvector, we also account for the reduced cell volume available for fluid flow and for the increase in the interface front velocity caused by a cell being partially filled with solid material. The solver is implemented in the open source CFD library OpenFOAM®. It is validated using two case setups: 1) A pure passive advection test case to compare the isolated advection algorithm against a known analytical solution and 2) a porous dam break case by Liu et al. [5] where both numerical and experimental results are available for comparison. We find good agreement with numerical and experimental results. For both cases the interface sharpness, shape conservation as well as volume conservation and boundedness are demonstrated to be very good. The solver is released as open source for the benefit of the coastal and marine CFD community (code repository https://github.com/InterFlowers/porousInterIsoFoam) and as of OpenFOAM-v2112 the new functionality is integrated in the official interIsoFoam solver. * This article is an updated version of the conference paper Missios et al. 2022 [6] presented at the Marine2021 conference.

본문 38,375자

본문 펼치기
# Open FOAM R _Journal_ Volume 3 [Full Papers], Pages 66–74 ISSN: 2753-8168 Extending the isoAdvector Geometric VOF Method to Flows in Porous Media Konstantinos Missios <sup>1</sup> <sup>_,∗_</sup>, Niels Jacobsen <sup>2</sup>, Kasper L. Moeller <sup>1</sup>, and Johan Roenby <sup>1</sup> 1IMFUFA, Dep. Science & Environment, Roskilde University, Universitetsvej 1, 4000 Roskilde, DK 2Vattenfall Vindkraft A/S, Orestads Blvd. 108, 2300 Copenhagen, DK _Email_ _address_ : `missios.konstantinos@gmail.com` DOI: [https://doi.org/10.51560/ofj.v3.72](https://doi.org/https://doi.org/10.51560/ofj.v3.72) Results with version(s): OpenFOAM <sup>®</sup> v2012 Repository: [https://github.com/InterFlowers/porousInterIsoFoam](https://github.com/InterFlowers/porousInterIsoFoam) Abstract. We consider the interfacial flow in and around porous structures in coastal and marine engineering. _⋆_ During recent years, interfacial flow through porous media has been repeatedly simulated with Computational Fluid Dynamics (CFD) based on algebraic Volume Of Fluid (VOF) methods [1,2]. Here, we present an implementation of a porous medium interfacial flow solver based on the geometric VOF method, isoAdvector [3,4]. In our implementation, the porous medium is treated without resolving the actual pore geometry. Rather, the porous media, pores, and rigid structure are considered a continuum and the effects of porosity on the fluid flow are modelled through source terms in the Navier-Stokes equations, including Darcy-Forchheimer forces, added mass force and accounting for the part of mesh cells that are occupied by the solid material comprising the skeleton of the porous medium. The governing equations are adopted from the formulation by Jensen _et_ _al._ [1]. For the interface advection using isoAdvector, we also account for the reduced cell volume available for fluid flow and for the increase in the interface front velocity caused by a cell being partially filled with solid material. The solver is implemented in the open source CFD library OpenFOAM®. It is validated using two case setups: 1) A pure passive advection test case to compare the isolated advection algorithm against a known analytical solution and 2) a porous dam break case by Liu _et_ _al._ [5] where both numerical and experimental results are available for comparison. We find good agreement with numerical and experimental results. For both cases the interface sharpness, shape conservation as well as volume conservation and boundedness are demonstrated to be very good. The solver is released as open source for the benefit of the coastal and marine CFD community (code repository https://github.com/InterFlowers/porousInterIsoFoam) and as of OpenFOAM-v2112 the new functionality is integrated in the official interIsoFoam solver. _⋆_ This article is an updated version of the conference paper Missios et al. 2022 [6] presented at the Marine2021 conference. 1. Introduction Interfacial flow through porous media appears in numerous engineering problems. For instance coastal and marine as well as environmental applications such as waste management facilities. In this work we focus on coastal and marine applications; typical examples from this field are breakwaters, seawalls and other perforated marine structures such as aquaculture cages [7–9]. Given the complexity of these flows, analytical flow solutions are intractable. The predictive capabilities of experimental model tests, on the other hand, are limited by scaling effects. Numerical simulation provides an alternative engineering tool from which important flow features can be extracted such as pressure, velocity distribution and surface elevation. Fully resolving the flow in the complex fluid domain inside the porous structure is often too computationally expensive. A more convenient modeling strategy is to treat the porous medium in the volume averaged spirit of the Finite Volume Method (FVM). The first systematic study within an FVM framework was carried out by van Gent [10], who utilized the Volume Averaged Reynolds Averaged Navier Stokes (VARANS) and added explicit source terms to the equations to account for the resistance forces exerted on the fluid by the porous material. Those explicit forces were based on the Darcy-Forchheimer _∗_ Corresponding author Received: 30 November 2021, Accepted: 12 January 2023, Published: 20 May 2023 ©2023 The Authors. This work is an open access article under the CC BY-SA 4.0 license 66 Extending the isoAdvector Geometric VOF Method to Flows in Porous Media 67 equations. Later Liu _et_ _al._ [5] conducted experiments in order to validate van Gent’s work. More recently, Higuera _et_ _al._ [2] applied van Gent’s approach in their implementation, denoted IHFOAM, of an intrinsic VARANS set of equations along with a two-equation turbulence closure model to take into account the turbulent stresses. For interface advection they used a Multidimensional Universal Limiter with Explicit Solution (MULES) scheme, a description of which is available from Deshpande _et_ _al._ [11]. Similarly, Jensen _et_ _al._ [1] implemented the porous flow equations in the waves2Foam package [12] also using MULES for interface advection. Their implementation contained a corrected interface advection taking properly into account the reduced cell volume available for fluid flow when it is partially filled with porous material. Turbulence was not modelled and all turbulent effects were assumed incorporated in the body force in the momentum equation. An extensive validation of this implementation was carried out by Jacobsen _et_ _al._ [13]. A recent study performed by Feichtner _et_ _al._ explores the use of the VARANS approach for simulations of wave interaction with thin perforated structures [14]. In contrast to the previous studies that used algebraic VOF for the interface advection part, in this paper we employ a geometric VOF method called isoAdvector. The algorithm performs very well in terms of advection accuracy, interface sharpness, volume conservation, and boundedness [3]. The method is well-documented and tested in multiple areas of application [15–18]. Especially the sharp interface attributes of isoAdvector is a desirable feature when simulating waves interacting with porous structures in coastal and marine engineering. Our newly developed solver, porousInterIsoFoam, is essentially an extension of the existing interfacial flow solver, interIsoFoam, in OpenFOAM enabling it to model flows in and around porous structures. In the remaining manuscript we briefly describe the theoretical background for the implemented solver. We then present two validation cases using porousInterIsoFoam for 1) pure passive advection of a disc through a porous region and 2) reproducing the porous dam break experiment conducted by Liu _et_ _al._ [5]. In both cases we compare against porousInterFoam, an extension of the interfacial flow solver interFoam that can model flows in porous media. The porousInterFoam solver is a refactored version of the porousWaveFoam solver (part of the waves2Foam package). To ensure fair comparison, the porousInterFoam and porousInterIsoFoam solver only differ in the interface advection where the former uses MULES and the latter uses isoAdvector. For implementation details, please see the accompanying code repository (https://github.com/InterFlowers/porousInterIsoFoam). 2. The governing equations In this section we present the porous interfacial flow equations implemented in our new porousInterIsoFoam solver. 2.1. The VARANS equations. For the treatment of the momentum equation, we follow the derivation of Jensen _et_ _al._ [1]. By applying a superficial volume average <sup>1</sup> to the Reynolds Averaged Navier-Stokes (RANS) equations, the VARANS equations are derived. In these equations, the effect of the porous region on the flow is included based on the Darcy-Forchheimer equation via the linear and non-linear resistance forces and an added mass force proportional to the fluid acceleration. The resistance coefficients are determined according to van Gent [10] and can also account for turbulent effects inside the porous region. The volume averaged continuity equation is given as _∇· ⟨_ <u>u</u> _~~⟩~~_ = 0 _,_ (1) where u is the velocity field, the overbar represents ensemble averaging and the angle brackets represent the superficial volume average. The volume-averaged, Reynolds averaged momentum equation can be formulated as - + <sup><u>1</u></sup> _n_ <sup>_∇·_</sup> - _<u>ρ</u>_ _~~<u>⟨</u>~~_ <u>u</u> _~~<u>⟩⟨</u>~~_ <u>u</u> _~~<u>⟩</u>~~_ _n_ - = _−∇_ _~~⟨~~_ _<u>pf ⟩</u>_ + g _·_ x _∇ρ_ + <sup><u>1</u></sup> _n_ <sup>_∇·_</sup> (1 + _Cm_ ) <sup>_<u>∂</u>_</sup> _∂t_ - _<u>ρ</u>_ _~~<u>⟨</u>~~_ <u>u</u> _~~<u>⟩</u>~~_ _n_ + F _,_ (2) - _µ_ - _∇⟨_ <u>u</u> _~~⟩~~_ + ( _∇⟨_ <u>u</u> _~~⟩~~_ ) <sup>_T_</sup> <sup>��</sup> Here the added mass coefficient, _Cm_ is modelled as _Cm_ = 0 _._ 34(1 _−_ _n_ ) _/n_, where _n_ is the effective porosity field. This is given by _n_ = _Vf_ _/V_, where _Vf_ is the void volume within a cell and _V_ is the total volume of the cell. _ρ_ is the fluid density, _~~⟨~~_ _<u>pf ⟩</u>_ is the intrinsic volume averaged pressure, g and x are the gravity and position vector, and _µ_ is the dynamic viscosity. The last term, F contains the combined resistance force term exerted by the pore skeleton on the fluid. It is modeled as F = _ρ_ _~~⟨~~_ <u>u</u> _~~⟩~~_ ( _a_ + _b |_ _~~⟨~~_ <u>u</u> _~~⟩~~_ _|_ ) _,_ (3) where _a_ and _b_ are the resistance coefficients determined by van Gent [10]. 1A rigorous description of the averaging process can be found in Whitaker _et_ _al._ [19] 68 K. Missios, N. Jacobsen, K.L. Moeller, and J. Roenby In the present study we carry out laminar simulations and therefore we do not consider a turbulence closure. Furthermore, the surface tension term is disregarded since the capillary effects are assumed negligible in the cases of interest. This remains a valid approximation for many marine and coastal applications which is the focus of the present implementation. The reader is referred to Jensen _et_ _al._ [1] where a more exhaustive account of the governing equations is given. 2.2. Interface advection in porous media. The evolution of the fluid interface can be described by a cell volume integrated form of the continuity equation, _<u>d</u>_ _dt_ _V_ _ρ_ ( x _, t_ ) _dV_ + _∂V_ _ρ_ ( x _, t_ ) u ( x _, t_ ) _· d_ S = 0 _,_ (4) where _d_ S is the differential area vector pointing out of the cell volume _V_ while _∂V_ is the surface enclosing volume _V_ . When employing a VOF method we define the volume fraction of phase-1 fluid within cell _Ci_ as _αi_ ( _t_ ) = <sup><u>1</u></sup> _Vi_ _Ci_ _H_ ( x _, t_ ) _dV,_ (5) where _Vi_ is the volume of cell _i_ and _H_ is a three-dimensional Heaviside function equal to one inside the phase-1 region and zero elsewhere. The outcome of this definition is a volume fraction field taking the value _αi_ = 0 in cells filled with phase-2, _αi_ = 1 in cells filled with phase-1, and _αi_ _∈_ (0 _,_ 1) when an interface is present in the cell. By time integrating the discretized form of Eqn. (4) over the interval [ _t, t_ + ∆ _t_ ] one can arrive at _αi_ ( _t_ + ∆ _t_ ) = _αi_ ( _t_ ) _−_ <sup><u>1</u></sup> _Vi_ - _t_ +∆ _t_ _f_ _∈Fi_ _t_ _f_ _H_ ( x _, τ_ ) u ( x _, τ_ ) _· d_ S _dτ,_ (6) where _Fi_ the set of faces of cell _i_ . The double integral on the RHS of Eqn. (6) is the outward advected phase-1 fluid from cell _i_ through its face _f_ during the time interval [ _t, t_ + ∆ _t_ ]. In practice, isoAdvector evaluates this integral, assuming a temporally constant advecting face flux, _ϕf_ ( _t_ ), on face _f_, yielding the following approximation, - _t_ +∆ _t_ _t_ _f_ _H_ ( x _, τ_ ) u ( x _, τ_ ) _· d_ S _dτ_ _≈_ <sup>_<u>ϕf</u>_</sup> <sup><u>(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> _Sf_ - _t_ +∆ _t_ _t_ _Af_ ( _τ_ ) _dτ,_ (7) where _Sf_ is the face area and _Af_ ( _τ_ ) is the submerged area of face _f_ at time _τ_ . To calculate this area, it is important to know how the interface moves inside a cell during the interval [ _t, t_ + ∆ _t_ ] and hence how it sweeps the face of interest, _f_ . The interface inside a cell is represented by an approximately planar polygonal face with a well-defined center x <sup>_I_</sup> _i_ <sup>and a unit normal vector</sup> <sup>n</sup> <sup>_I_</sup> _i_ <sup>.</sup> <sup>The interface advection</sup> velocity U <sup>_I_</sup> _i_ <sup>is</sup> <sup>approximated</sup> <sup>by</sup> <sup>interpolating</sup> <sup>the</sup> <sup>cell</sup> <sup>centred</sup> <sup>velocity</sup> <sup>field</sup> <sup>to</sup> <sup>x</sup> <sup>_I_</sup> _i_ <sup>.</sup> <sup>The</sup> <sup>aforementioned</sup> setup results in a unique description of how the interface travels within a cell and how it sweeps a given face _f_ . Based on that model _Af_ ( _τ_ ) is given as a second-degree polynomial in time that can be further integrated as per Eqn. (7). For the sake of clarity, further details of the isoAdvector method are left aside. The reader is referred to Roenby _et_ _al._ [3] and Scheufler and Roenby [4] where the isoAdvector algorithm is described in detail. In order to extend isoAdvector to flows in porous media we must make a number of modifications to the existing algorithm. First, the available void volume within cell _i_ is only a fraction _ni_ of the total cell volume. As a result, the volume fraction definition in Eqn. (5) should be altered to <sup>_I_</sup> _i_ <sup>and a unit normal vector</sup> <sup>n</sup> <sup>_I_</sup> _i_ <sup>_I_</sup> _i_ <sup>is</sup> <sup>approximated</sup> <sup>by</sup> <sup>interpolating</sup> <sup>the</sup> <sup>cell</sup> <sup>centred</sup> <sup>velocity</sup> <sup>field</sup> <sup>to</sup> <sup>x</sup> <sup>_I_</sup> _i_ <u>1</u> _αi_ ( _t_ ) = _niVi_ _Ci_ _H_ ( x _, t_ ) _dV._ (8) In this way the volume fraction field retains the property to be in the range 0 to 1 with _αi_ = 1 to refer to a cell with its void volume filled with phase-1 fluid and _αi_ = 0 to a cell with its void volume filled with phase-2 fluid. Subsequently the above volume fraction modification directly affects Eqn. (6), which in order to accommodate the presence of a porous medium becomes <u>1</u> _αi_ ( _t_ + ∆ _t_ ) = _αi_ ( _t_ ) _−_ _niVi_ - _t_ +∆ _t_ _f_ _∈Fi_ _t_ _f_ _H_ ( x _, τ_ ) u ( x _, τ_ ) _· d_ S _dτ._ (9) The isoAdvector algorithm evaluates the second term on the RHS of Eqn. (9) based on geometric operations. Those operations require an estimate for the advection velocity vector U <sup>_I_</sup> _i_ <sup>at</sup> <sup>interface</sup> <sup>centre</sup> x <sup>_I_</sup> _i_ <sup>.</sup> <sup>As</sup> <sup>mentioned,</sup> <sup>we</sup> <sup>interpolate</sup> <sup>the</sup> <sup>cell</sup> <sup>centred</sup> <sup>velocity</sup> <sup>field</sup> <sup>to</sup> <sup>x</sup> <sup>_I_</sup> _i_ <sup>to</sup> <sup>approximate</sup> <sup>U</sup> <sup>_I_</sup> _i_ <sup>.</sup> <sup>However,</sup> when a porous medium is present, the advection velocity must be adjusted accordingly. This is because <sup>_I_</sup> _i_ <sup>.</sup> <sup>As</sup> <sup>mentioned,</sup> <sup>we</sup> <sup>interpolate</sup> <sup>the</sup> <sup>cell</sup> <sup>centred</sup> <sup>velocity</sup> <sup>field</sup> <sup>to</sup> <sup>x</sup> <sup>_I_</sup> _i_ <sup>_I_</sup> _i_ <sup>to</sup> <sup>approximate</sup> <sup>U</sup> <sup>_I_</sup> _i_ Extending the isoAdvector Geometric VOF Method to Flows in Porous Media 69 the interface in a cell is a Lagrangian surface and thus it will be advected with the superficial velocity, while the cell centred velocity vectors are an intrinsic representation of the velocity field. As a result, the interpolated velocity at the interface center x <sup>_I_</sup> _i_ <sup>must</sup> <sup>be</sup> <sup>divided</sup> <sup>by</sup> <sup>the</sup> <sup>porosity</sup> <sup>value</sup> <sup>of</sup> <sup>the</sup> <sup>cell.</sup> Therefore the adjusted interface advection velocity in cell _i_ will be U <sup>_I_</sup> _i_ <sup>_′_</sup> <sup>=</sup> <sup>U</sup> _i_ <sup>_I_</sup> <sup>_/ni_</sup> <sup>.</sup> <sup>_I_</sup> _i_ <sup>_′_</sup> <sup>=</sup> <sup>U</sup> _i_ <sup>_I_</sup> _i_ <sup>_I_</sup> <sup>_/ni_</sup> <sup>.</sup> Figure 1. Sketch of the set up for the disc in constant flow through porous region case. The disc is shown in grey with a dashed outline, while the porous region located in the middle of the figure is depicted in a grey-white pattern. _U_ refers to the constant velocity vector, _L_ is the total length of the domain, _H_ is the total height of the domain, and _Lp_ is the length of the porous region in the horizontal direction. 3. Benchmark cases Here we present validation of the porousInterIsoFoam solver in two different cases. Initially, a pure passive advection case is simulated, and afterwards, we reproduce the experimental results of Liu _et al._ [5]. These simulations aim to evaluate/illustrate some critical aspects of this new solver, such as interface sharpness, shape preservation, boundedness, and volume conservation. 3.1. Passive Advection of a Disc Through a Porous Region. In this section, the passive advection of a disc through a uniform porous region is simulated. The term _passive_ implies that the flow field is prescribed and unaltered by the presence of the disc throughout the simulation. As a result, this case will allow us to have a closer look at the interface advection algorithm isolated from the complex porous flow phenomena. As depicted in Fig. 1 the computational set-up consists of a rectangular domain of length _L_ = 5[m] and height _H_ = 3[m]. The domain is discretised by a uniform mesh with cell size ∆ _x_ = ∆ _y_ = 0 _._ 05[m]. The rectangular domain contains an inner porous region of length _Lp_ = 2[m] with porosity _n_ = 0 _._ 5. The circular blob with center ( _x_ 0 _, y_ 0) = (0 _._ 5 _,_ 0 _._ 5) [m] and radius _R_ = 0 _._ 25[m] is advected diagonally with a velocity U = (1 _,_ 0 _._ 5)[m s <sup>_−_</sup> <sup>1</sup> ] outside the porous region. Inside the porous region, fluid incompressibility dictates a velocity U <sup>_′_</sup> = U _/n_, hence a doubling of the interface velocity with the chosen porosity. The result is that the circular blob is stretched as it passes the left boundary into the porous region. The blob regains its circular shape as it leaves the porous region through its right boundary. If we call the left and right limits of the porous domain _xL_ and _xR_, respectively, then the analytical trajectories for the particles comprising the circular blob can be written U _t,_ _t < tL_ = _|xL −_ _x_ (0) _|/Ux_ U ( _tL_ + ( _t −_ _tL_ ) _/n_ ) _,_ _tL_ _≤_ _t ≤_ _tR_ = _tL_ + _|xL −_ _xR|/Ux_ U ( _tL_ + ( _tR −_ _tL_ ) _/n_ + ( _t −_ _tR_ )) _,_ _tR_ _< t_ x ( _t_ ) = x (0) +    _._ (10) We stop the simulation at _t_ = 2 _._ 5[s], leaving the disc time to enter, pass through, and exit the porous region. Lastly, the time step selection is adjustable in order to keep the maximum Courant number, `maxCo`, at 0 _._ 25. The Courant number of a cell _i_ with porosity _ni_ is defined as <u>∆</u> _<u>t</u>_ _Coi_ = 2 _niVi_ _f_ _∈Fi_ _|ϕf_ _|._ (11) which is identical to the existing definition in OpenFOAM when _ni_ = 1. The porous modification retains the interpretation of the Courant number as the fraction of the total fluid volume in the cell ( _niVi_ ) that 70 K. Missios, N. Jacobsen, K.L. Moeller, and J. Roenby is fluxed out of the cell during the time step, ∆ _t_ . We note that this porous Courant number definition poses a more strict limitation on the time step size than the non-porous version. In the simulation we also restrict the maximum _interfacial_ Courant number, `maxAlphaCo`, to 0.25. In accordance with the existing `maxAlphaCo` implementation in OpenFOAM, the maximum is taken over all cells with 0 _._ 01 _< α <_ 0 _._ 99. (a) Initial (b) Entry, _t_ = 1[ _s_ ] (c) Inside, _t_ = 1 _._ 5[ _s_ ] (d) Exit, _t_ = 2[ _s_ ] (e) End, _t_ = 2 _._ 5[ _s_ ] Figure 2. Disc in uniform flow at various phases (Initial, during the entry, inside, during the exit and outside of the porous region). Comparison of the shape preservation and interface sharpness for the two solvers. porousInterIsoFoam results are shown in the top row of panels in grey-scale ( _α_ = 0 _._ 5 contour is illustrated in black while _α_ = 0 _._ 01 and _α_ = 0 _._ 99 contours are shown in grey) whereas porousInterFoam results are shown in the bottom row of panels in red-scale ( _α_ = 0 _._ 5 contour is illustrated in red while _α_ = 0 _._ 01 and _α_ = 0 _._ 99 contours are shown in light red). In green is illustrated the analytical solution from Eqn. (10). Finally, the limits of the porous region are shown as yellow vertical lines. The different stages of the disc during the simulation are illustrated in Fig. 2. As the disc enters the porous region, it elongates in the advection direction, and its advection velocity doubles. When exiting the porous region, the elongated elliptic blob transforms back to its original shape. The interface sharpness is illustrated with the _α_ = 0 _._ 01 and _α_ = 0 _._ 99 contours. Those contours should be as close as possible to each other with the given mesh resolution. In the porousInterIsoFoam case the contours are observed to be three cells apart during the whole course of the simulation. For porousInterFoam the interface width is approximately 5 cells. The green closed curve in each panel on the figure shows the theoretical interface shape from Eqn. (10). porousInterIsoFoam recovers an almost circular interface shape upon its exit from the porous region whereas porousInterFoam returns a distorted shape. In Fig. 3a a plot of the volume conservation error is shown. For both solvers the error is observed to be around machine precision with porousInterFoam exhibiting a lower error compared to porousInterIsoFoam. In Fig. 3b the upper bounding error is depicted for both solvers. Here the porousInterIsoFoam error is around machine precision, whereas the porousInterFoam maximum _α_ value settles around 10 <sup>_−_</sup> <sup>7</sup> _below_ 1. This is due to the smear of the volume fraction field that subsequently leads to a maximum value below one. In Fig. 3c we show the lower bounding error, which stays below machine precision during the whole simulation for both solvers. 3.2. Porous Dam Break. In the second benchmark case we reproduce an experiment of a porous dam break conducted by Liu _et_ _al._ [5]. This particular experiment has been a reference point for many past developments in the field (e.g. [1], [2] and [20]). Here we evaluate the solver behaviour as a whole including the combined interface advection and porous momentum equation. Fig. 4 illustrates the simulation set up. On the left there is a column of water that is released at _t_ = 0[s]. Then water flows through the uniform porous block placed in the middle of the domain, until at some point the system finds equilibrium. The full description of the experimental setup can be found in Liu _et_ _al._ [5]. The domain is discretised by a uniform mesh with cell size of ∆ _x_ = ∆ _y_ _≈_ 0 _._ 006[m]. This simulation is carried out with a maximum interfacial Courant number of 0 _._ 5. The water surface profiles for different time instances are illustrated in Fig. 5. It is clear that porousInterIsoFoam predicts the water elevation accurately in most of the simulation. There is a deviation in the initial phase, this is presumably due to modelling of the water gate; in the simulation the whole water Extending the isoAdvector Geometric VOF Method to Flows in Porous Media 71 10 14 10 15 10 16 porousInterFoam porousInterIsoFoam <u>0.0</u> <u>0.5</u> <u>1.0</u> <u>1.5</u> <u>2.0</u> <u>2.5</u> t [s] 10 18 10 32 10 46 10 60 10 74 10 88 10 102 10 116 <u>porousInterFoam</u> <u>porousInterIsoFoam</u> <u>0.0</u> <u>0.5</u> <u>1.0</u> <u>1.5</u> <u>2.0</u> <u>2.5</u> t [s] 10 9 10 7 porousInterIsoFoam 10 13 10 14 porousInterFoam 10 15 <u>0.0</u> <u>0.5</u> <u>1.0</u> <u>1.5</u> <u>2.0</u> <u>2.5</u> t [s] (b) Upper bounding (c) Lower bounding (a) Volume conservation Figure 3. Comparison of volume conservation error as well as upper and lower bounding of the volume fraction for the two solvers. The two vertical dashed lines mark the time interval where the disc is in contact with the porous region. The vertical dash-doted lines mark the time interval where the disc is fully inside the porous region. Figure 4. Sketch of the set-up for the porous dam break case. The free surface of the initial water distribution is shown in a dashed line, while the porous region located in the middle of the figure is depicted with a grey-white pattern. _L_ = 0 _._ 892[ _m_ ] is the total length of the domain, _Hc_ = 0 _._ 24[ _m_ ] and _Lc_ = 0 _._ 28[ _m_ ] is the height and width of the initial water column, and _Lp_ = 0 _._ 29[ _m_ ] is the length of the porous region in the horizontal direction. Lastly, the height of the short column is _h_ 0 = 0 _._ 022[ _m_ ]. column is released instantly while in reality it is a finite process that takes around 0 _._ 1[s], as also noted by Liu _et_ _al._ [5] (similar observations have been made in a different case study by Fekken _et_ _al._ [21]). Fig. 6 illustrates the interface sharpness capabilities of isoAdvector compared to MULES. For the case of isoAdvector the _α_ = 0 _._ 01 and _α_ = 0 _._ 99 contours are shown to be separated by three cells which is the best a VOF representation can do. On the other hand, porousInterFoam results in a smeared interface that expands over more cells, while at the same time producing numerical vapor. Both the numerical vapor issue and the smeared interface of MULES has been reported in earlier investigations [22,23]. In Fig. 7a we show the evolution in the volume conservation error over the course of the simulation (i.e. 4[s]). Here it is observed that both solvers exhibit excellent volume conservation and retain the error below 10 <sup>_−_</sup> <sup>13</sup> . Fig. 7b shows that the upper bounding error is kept below 10 <sup>_−_</sup> <sup>9</sup> for both solvers. As for the lower bounding error Fig. 7c shows that both solvers retain the error below machine precision. 72 K. Missios, N. Jacobsen, K.L. Moeller, and J. Roenby Liu et al. (1999) porousInterFoam porousInterIsoFoam 0.2 0.1 0.0 0.2 0.1 0.0 0.2 0.1 <u>t = 0.4 s</u> <u>t = 0.6 s</u> <u>t = 0.8 s</u> <u>t = 1.0 s</u> <u>t = 1.2 s</u> <u>t = 1.4 s</u> <u>t = 1.6 s</u> 0.0 0.0 0.2 0.4 0.6 0.8 <u>t = 1.8 s</u> 0.0 0.2 0.4 0.6 0.8 Horizontal position x [m] <u>t = 2.0 s</u> 0.0 0.2 0.4 0.6 0.8 Figure 5. Comparison of free surface elevation profiles at 9 different time instances. The experimental data, shown in green dots, are measurements presented in Liu _et al._ [5] while the numerical values, produced by porousInterFoam, are shown in red line (interFoambased solver using MULES advection scheme). The free surface values acquired by our new implementation are shown in black dashed line. The grey rectangle in the middle of the domain marks the porous region. Figure 6. Comparison of the interface sharpness for the two solvers. Porous dam break at _t_ = 1 [s] . The porousInteIsoFoam results are shown in black palette, _α_ = 0 _._ 5 contour is illustrated in black while _α_ = 0 _._ 01 and _α_ = 0 _._ 99 contours are shown in grey. Results acquired with porousInterFoam are represented by the red palette, _α_ = 0 _._ 5 contour is illustrated in red (this line is overlapped by the black _α_ = 0 _._ 5 contour) while _α_ = 0 _._ 01 and _α_ = 0 _._ 99 contours are shown in light red. The porous region is shown in light grey. The rectangle in dashed outline highlights the area where porousInterFoam produces numerical vapor. Extending the isoAdvector Geometric VOF Method to Flows in Porous Media 73 10 13 10 14 porousInterFoam porousInterIsoFoam <u>0</u> <u>1</u> <u>2</u> <u>3</u> <u>4</u> t [s] porousInterFoam porousInterIsoFoam <u>0</u> <u>1</u> <u>2</u> <u>3</u> <u>4</u> t [s] ~~porousInterFoam~~ <u>porousInterIsoFoam</u> <u>0</u> <u>1</u> <u>2</u> <u>3</u> <u>4</u> t [s] 10 9 10 10 10 11 10 6 10 14 10 22 10 30 10 38 10 46 10 54 10 62 10 70 (a) Volume conservation (b) Upper bounding (c) Lower bounding Figure 7. Comparison of errors in volume conservation and in upper and lower bounding for the two solvers. 4. Conclusion An extension of the interfacial solver interIsoFoam has been derived and implemented. The extended solver, porousInterIsoFoam, is capable of simulating two-phase flows inside and around porous regions. The momentum equation implementation is based on the analysis of Jensen _et_ _al._ [1], while the geometric VOF method, isoAdvector, is extended to account for a porous medium occupying part of the volume of computational cells. Using isoAdvector for interface advection gives rise to improved shape preservation while retaining excellent volume conservation and boundedness. The solver was validated with a pure advection test case demonstrating the superior shape preservation compared to a similar solver using MULES for interface advection. The porousInterIsoFoam solver was also benchmarked with numerical and experimental data in a porous dam break case where it accurately matched the interface shape measurements while also conserving fluid mass to a high precision with a sharp and well-bounded volume fraction field. The porousInterIsoFoam solver is released as an open source tool capable of facilitating coastal and marine studies of interfacial flows involving porous regions (code repository https://github.com/InterFlowers/porousInterIsoFoam). As of OpenFOAM-v2112 the porousInterIsoFoam capabilites have been merged into the official interIsoFoam solver (the reader is referred to the v2112 release notes for further details on usage). Acknowledgements The authors are grateful for partial funding for the presented work from Deltares and from Independent Research Fund Denmark through a DFF Sapere Aude Research Leader grant (grant number 9063-00018B). Author Contributions: Conceptualisation, K.M, N.J. and J.R.; methodology, K.M., N.J. and J.R.; software, K.M, N.J. and J.R; validation, K.M. and J.R.; investigation, K.M and J.R.; writing—original draft preparation, K.M. and J.R.; writing—review and editing, K.M., N.J., K.L.M. and J.R.; supervision, J.R.; funding acquisition, J.R. All authors have read and agreed to the published version of the manuscript. References [1] B. Jensen, N. G. Jacobsen, and E. D. Christensen, “Investigations on the porous media equations and resistance coefficients for coastal structures,” _Coastal_ _Engineering_, vol. 84, pp. 56–72, 2014, publisher: Elsevier B.V. [Online]. Available: [http://dx.doi.org/10.1016/j.coastaleng.2013.11.004](http://dx.doi.org/10.1016/j.coastaleng.2013.11.004) [2] P. Higuera, J. L. Lara, and I. J. Losada, “Three-dimensional interaction of waves and porous coastal structures using OpenFOAM®. Part I: Formulation and validation,” _Coastal_ _Engineering_, vol. 83, pp. 243–258, 2014, publisher: Elsevier B.V. [Online]. Available: [http://dx.doi.org/10.1016/j.coastaleng.2013.08.010](http://dx.doi.org/10.1016/j.coastaleng.2013.08.010) [3] J. Roenby, H. Bredmose, and H. Jasak, “A computational method for sharp interface advection,” _Royal_ _Society_ _Open_ _Science_, vol. 3, no. 11, 2016. [Online]. Available: [https://doi.org/10.1098/rsos.160405](https://doi.org/10.1098/rsos.160405) [4] H. Scheufler and J. Roenby, “Accurate and efficient surface reconstruction from volume fraction data on general meshes,” _Journal_ _of_ _Computational_ _Physics_, vol. 383, pp. 1–23, Apr. 2019. [Online]. Available: [https://doi.org/10.1016/j.jcp.2019.01.009](https://doi.org/10.1016/j.jcp.2019.01.009) [5] P. L.-F. Liu, P. Lin, K.-A. Chang, and T. Sakakiyama, “Numerical Modeling of Wave Interaction with Porous Structures,” _Journal_ _of_ _Waterway,_ _Port,_ _Coastal,_ _and_ _Ocean_ _Engineering_, vol. 125, no. 6, pp. 322–330, Nov. 1999. [Online]. Available: [https://doi.org/10.1061/(ASCE)0733-950X(1999)125:6(322)](https://doi.org/10.1061/%0x28ASCE%0x290733-950X%0x281999%0x29125:6%0x28322%0x29) [6] K. Missios, N. Jacobsen, J. Roenby, and K. Moeller, “Using the isoAdvector geometric VoF method for interfacial flows through porous media,” _The_ _9th_ _Conference_ _on_ _Computational_ _Methods_ _in_ _Marine_ _Engineering_ _(Marine_ _2021)_, vol. 1, no. 1, Jan. 2022. [Online]. Available: [https://doi.org/10.2218/marine2021.6811](https://doi.org/10.2218/marine2021.6811) 74 K. Missios, N. Jacobsen, K.L. Moeller, and J. Roenby [7] P. Lin and S. A. Karunarathna, “Numerical Study of Solitary Wave Interaction with Porous Breakwaters,” _Journal_ _of_ _Waterway,_ _Port,_ _Coastal,_ _and_ _Ocean_ _Engineering_, vol. 133, no. 5, pp. 352–363, Sep. 2007. [Online]. Available: [https://doi.org/10.1061/(ASCE)0733-950X(2007)133:5(352)](https://doi.org/10.1061/%0x28ASCE%0x290733-950X%0x282007%0x29133:5%0x28352%0x29) [8] A. Koraim, E. Heikal, and A. Abo Zaid, “Hydrodynamic characteristics of porous seawall protected by submerged breakwater,” _Applied_ _Ocean_ _Research_, vol. 46, pp. 1–14, Jun. 2014. [Online]. Available: [https://doi.org/10.1016/j.apor.2014.01.003](https://doi.org/10.1016/j.apor.2014.01.003) [9] H. Chen and E. D. Christensen, “Investigations on the porous resistance coefficients for fishing net structures,” _Journal_ _of_ _Fluids_ _and_ _Structures_, vol. 65, pp. 76–107, Aug. 2016. [Online]. Available: [https://doi.org/10.1016/j.jfluidstructs.2016.05.005](https://doi.org/10.1016/j.jfluidstructs.2016.05.005) [10] M. R. A. v. van Gent, “Wave interaction with permeable coastal structures,” Ph.D. dissertation, Delft University, 1995. [Online]. Available: [http://resolver.tudelft.nl/uuid:7bbff8e4-215d-4bfc-a3af-51cdecb754bd](http://resolver.tudelft.nl/uuid:7bbff8e4-215d-4bfc-a3af-51cdecb754bd) [11] S. S. Deshpande, L. Anumolu, and M. F. Trujillo, “Evaluating the performance of the two-phase flow solver interFoam,” _Computational_ _Science_ _&_ _Discovery_, vol. 5, no. 1, p. 014016, Nov. 2012. [Online]. Available: [https://dx.doi.org/10.1088/1749-4699/5/1/014016](https://dx.doi.org/10.1088/1749-4699/5/1/014016) [12] N. G. Jacobsen, D. R. Fuhrman, and J. Fredsøe, “A wave generation toolbox for the open-source CFD library: OpenFoam®,” _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_, vol. 70, no. 9, pp. 1073–1088, Nov. 2012. [Online]. Available: [https://doi.org/10.1002/fld.2726](https://doi.org/10.1002/fld.2726) [13] N. G. Jacobsen, M. R. van Gent, and G. Wolters, “Numerical analysis of the interaction of irregular waves with two dimensional permeable coastal structures,” _Coastal_ _Engineering_, vol. 102, pp. 13–29, Aug. 2015. [Online]. Available: [https://doi.org/10.1016/j.coastaleng.2015.05.004](https://doi.org/10.1016/j.coastaleng.2015.05.004) [14] A. Feichtner, E. Mackay, G. Tabor, P. R. Thies, L. Johanning, and D. Ning, “Using a porous-media approach for CFD modelling of wave interaction with thin perforated structures,” _Journal_ _of_ _Ocean_ _Engineering_ _and_ _Marine_ _Energy_, vol. 7, no. 1, pp. 1–23, Feb. 2021. [Online]. Available: [http://link.springer.com/10.1007/s40722-020-00183-7](http://link.springer.com/10.1007/s40722-020-00183-7) [15] V. Vukcevic, R. Keser, H. Jasak, M. Battistoni, H. Im, and J. Roenby, “Development of a CFD Solver for Primary Diesel Jet Atomization in FOAM-Extend,” Sep. 2019, pp. 2019–24–0128. [Online]. Available: [https://doi.org/10.4271/2019-24-0128](https://doi.org/10.4271/2019-24-0128) [16] E. Laurila, J. Roenby, V. Maakala, P. Peltonen, H. Kahila, and V. Vuorinen, “Analysis of viscous fluid flow in a pressure-swirl atomizer using large-eddy simulation,” _International_ _Journal_ _of_ _Multiphase_ _Flow_, vol. 113, pp. 371–388, Apr. 2019. [Online]. Available: [https://doi.org/10.1016/j.ijmultiphaseflow.2018.10.008](https://doi.org/10.1016/j.ijmultiphaseflow.2018.10.008) [17] K. V. Meredith, X. Zhou, and Y. Wang, “Towards Resolving the Atomization Process of an Idealized Fire Sprinkler with VOF Modeling,” no. September, pp. 6–8, 2017. [Online]. Available: [http://dx.doi.org/10.4995/ILASS2017.2017.5014](http://dx.doi.org/10.4995/ILASS2017.2017.5014) [18] T. Mukha, S. K. Almeland, and R. E. Bensow, “Large-Eddy Simulation of a Classical Hydraulic Jump: Influence of Modelling Parameters on the Predictive Accuracy,” _Fluids_, vol. 7, no. 3, p. 101, Mar. 2022. [Online]. Available: [https://doi.org/10.3390/fluids7030101](https://doi.org/10.3390/fluids7030101) [19] S. Whitaker, “The Forchheimer equation: A theoretical development,” _Transport_ _in_ _Porous_ _Media_, vol. 25, no. 1, pp. 27–61, Oct. 1996. [Online]. Available: [https://dx.doi.org/10.1007/BF00141261](https://dx.doi.org/10.1007/BF00141261) [20] X. Sun, M. Sun, K. Takabatake, C. C. Pain, and M. Sakai, “Numerical Simulation of Free Surface Fluid Flows Through Porous Media by Using the Explicit MPS Method,” _Transport_ _in_ _Porous_ _Media_, vol. 127, no. 1, pp. 7–33, Mar. 2019. [Online]. Available: [https://dx.doi.org/10.1007/s11242-018-1178-z](https://dx.doi.org/10.1007/s11242-018-1178-z) [21] G. Fekken, A. Veldman, and B. Buchner, “Simulation Of Green Water Loading Using The Navier-Stokes Equations,” Jun. 2001. [Online]. Available: [https://research.rug.nl/en/publications/be0032c1-a67c-46c9-bc28-2a0182397181](https://research.rug.nl/en/publications/be0032c1-a67c-46c9-bc28-2a0182397181) [22] J. Li, Y. You, K. Chen, and X. Zhang, “Numerical computations of resonant sloshing using the modified isoAdvector method and the buoyancy-modified turbulence closure model,” _Applied_ _Ocean_ _Research_, vol. 93, p. 101829, Dec. 2019. [Online]. Available: [https://doi.org/10.1016/j.apor.2019.05.014](https://doi.org/10.1016/j.apor.2019.05.014) [23] I. Gatin, V. Vukˇcevi´c, H. Jasak, J. Seo, and S. H. Rhee, “CFD verification and validation of green sea loads,” _Ocean_ _Engineering_, vol. 148, pp. 500–515, Jan. 2018. [Online]. Available: [https://doi.org/10.1016/j.oceaneng.2017.10.026](https://doi.org/10.1016/j.oceaneng.2017.10.026)

섹션 본문 39문단 · 23,013자

(제목 없음)

1We consider the interfacial flow in and around porous structures in coastal and marine engineering.⋆During recent years, interfacial flow through porous media has been repeatedly simulated with Computational Fluid Dynamics (CFD) based on algebraic Volume Of Fluid (VOF) methods[1,2].Here, we present an implementation of a porous medium interfacial flow solver based on the geometric VOF method, isoAdvector[3,4].In our implementation, the porous medium is treated without resolving the actual pore geometry.Rather, the porous media, pores, and rigid structure are considered a continuum and the effects of porosity on the fluid flow are modelled through source terms in the Navier-Stokes equations, including Darcy-Forchheimer forces, added mass force and accounting for the part of mesh cells that are occupied by the solid material comprising the skeleton of the porous medium.The governing equations are adopted from the formulation by Jensen et al.[1].For the interface advection using isoAdvector, we also account for the reduced cell volume available for fluid flow and for the increase in the interface front velocity caused by a cell being partially filled with solid material.The solver is implemented in the open source CFD library OpenFOAM®.It is validated using two case setups: 1) A pure passive advection test case to compare the isolated advection algorithm against a known analytical solution and 2) a porous dam break case by Liu et al.[5]where both numerical and experimental results are available for comparison.We find good agreement with numerical and experimental results.For both cases the interface sharpness, shape conservation as well as volume conservation and boundedness are demonstrated to be very good.The solver is released as open source for the benefit of the coastal and marine CFD community (code repository https://github.com/InterFlowers/porousInterIsoFoam)and as of OpenFOAM-v2112 the new functionality is integrated in the official interIsoFoam solver.

Introduction

2Interfacial flow through porous media appears in numerous engineering problems.For instance coastal and marine as well as environmental applications such as waste management facilities.In this work we focus on coastal and marine applications; typical examples from this field are breakwaters, seawalls and other perforated marine structures such as aquaculture cages [7][8][9].Given the complexity of these flows, analytical flow solutions are intractable.The predictive capabilities of experimental model tests, on the other hand, are limited by scaling effects.Numerical simulation provides an alternative engineering tool from which important flow features can be extracted such as pressure, velocity distribution and surface elevation.

3Fully resolving the flow in the complex fluid domain inside the porous structure is often too computationally expensive.A more convenient modeling strategy is to treat the porous medium in the volume averaged spirit of the Finite Volume Method (FVM).The first systematic study within an FVM framework was carried out by van Gent [10], who utilized the Volume Averaged Reynolds Averaged Navier Stokes (VARANS) and added explicit source terms to the equations to account for the resistance forces exerted on the fluid by the porous material.Those explicit forces were based on the Darcy-Forchheimer equations.Later Liu et al. [5] conducted experiments in order to validate van Gent's work.More recently, Higuera et al. [2] applied van Gent's approach in their implementation, denoted IHFOAM, of an intrinsic VARANS set of equations along with a two-equation turbulence closure model to take into account the turbulent stresses.For interface advection they used a Multidimensional Universal Limiter with Explicit Solution (MULES) scheme, a description of which is available from Deshpande et al. [11].Similarly, Jensen et al. [1] implemented the porous flow equations in the waves2Foam package [12] also using MULES for interface advection.Their implementation contained a corrected interface advection taking properly into account the reduced cell volume available for fluid flow when it is partially filled with porous material.Turbulence was not modelled and all turbulent effects were assumed incorporated in the body force in the momentum equation.An extensive validation of this implementation was carried out by Jacobsen et al. [13].A recent study performed by Feichtner et al. explores the use of the VARANS approach for simulations of wave interaction with thin perforated structures [14].

4In contrast to the previous studies that used algebraic VOF for the interface advection part, in this paper we employ a geometric VOF method called isoAdvector.The algorithm performs very well in terms of advection accuracy, interface sharpness, volume conservation, and boundedness [3].The method is well-documented and tested in multiple areas of application [15][16][17][18].Especially the sharp interface attributes of isoAdvector is a desirable feature when simulating waves interacting with porous structures in coastal and marine engineering.Our newly developed solver, porousInterIsoFoam, is essentially an extension of the existing interfacial flow solver, interIsoFoam, in OpenFOAM enabling it to model flows in and around porous structures.

5In the remaining manuscript we briefly describe the theoretical background for the implemented solver.We then present two validation cases using porousInterIsoFoam for 1) pure passive advection of a disc through a porous region and 2) reproducing the porous dam break experiment conducted by Liu et al. [5].In both cases we compare against porousInterFoam, an extension of the interfacial flow solver interFoam that can model flows in porous media.The porousInterFoam solver is a refactored version of the porousWaveFoam solver (part of the waves2Foam package).To ensure fair comparison, the porous-InterFoam and porousInterIsoFoam solver only differ in the interface advection where the former uses MULES and the latter uses isoAdvector.For implementation details, please see the accompanying code repository (https://github.com/InterFlowers/porousInterIsoFoam).

The governing equations

6In this section we present the porous interfacial flow equations implemented in our new porousInter-IsoFoam solver.

72.1.The VARANS equations.For the treatment of the momentum equation, we follow the derivation of Jensen et al. [1].By applying a superficial volume average1 to the Reynolds Averaged Navier-Stokes (RANS) equations, the VARANS equations are derived.In these equations, the effect of the porous region on the flow is included based on the Darcy-Forchheimer equation via the linear and non-linear resistance forces and an added mass force proportional to the fluid acceleration.The resistance coefficients are determined according to van Gent [10] and can also account for turbulent effects inside the porous region.

8The volume averaged continuity equation is given as

9where u is the velocity field, the overbar represents ensemble averaging and the angle brackets represent the superficial volume average.The volume-averaged, Reynolds averaged momentum equation can be formulated as

10Here the added mass coefficient, C m is modelled as C m = 0.34(1 − n)/n, where n is the effective porosity field.This is given by n = V f /V , where V f is the void volume within a cell and V is the total volume of the cell.ρ is the fluid density, ⟨pf ⟩ is the intrinsic volume averaged pressure, g and x are the gravity and position vector, and µ is the dynamic viscosity.The last term, F contains the combined resistance force term exerted by the pore skeleton on the fluid.It is modeled as

11where a and b are the resistance coefficients determined by van Gent [10].

12In the present study we carry out laminar simulations and therefore we do not consider a turbulence closure.Furthermore, the surface tension term is disregarded since the capillary effects are assumed negligible in the cases of interest.This remains a valid approximation for many marine and coastal applications which is the focus of the present implementation.The reader is referred to Jensen et al. [1] where a more exhaustive account of the governing equations is given.

2.2.

13Interface advection in porous media.The evolution of the fluid interface can be described by a cell volume integrated form of the continuity equation,

14where dS is the differential area vector pointing out of the cell volume V while ∂V is the surface enclosing volume V .When employing a VOF method we define the volume fraction of phase-1 fluid within cell C i as

15where V i is the volume of cell i and H is a three-dimensional Heaviside function equal to one inside the phase-1 region and zero elsewhere.The outcome of this definition is a volume fraction field taking the value α i = 0 in cells filled with phase-2, α i = 1 in cells filled with phase-1, and α i ∈ (0, 1) when an interface is present in the cell.By time integrating the discretized form of Eqn. ( 4) over the interval [t, t + ∆t] one can arrive at

16where F i the set of faces of cell i.The double integral on the RHS of Eqn. ( 6) is the outward advected phase-1 fluid from cell i through its face f during the time interval [t, t + ∆t].In practice, isoAdvector evaluates this integral, assuming a temporally constant advecting face flux, ϕ f (t), on face f , yielding the following approximation,

17where S f is the face area and A f (τ ) is the submerged area of face f at time τ .To calculate this area, it is important to know how the interface moves inside a cell during the interval [t, t + ∆t] and hence how it sweeps the face of interest, f .The interface inside a cell is represented by an approximately planar polygonal face with a well-defined center x I i and a unit normal vector n I i .The interface advection velocity U I i is approximated by interpolating the cell centred velocity field to x I i .The aforementioned setup results in a unique description of how the interface travels within a cell and how it sweeps a given face f .Based on that model A f (τ ) is given as a second-degree polynomial in time that can be further integrated as per Eqn.(7).For the sake of clarity, further details of the isoAdvector method are left aside.The reader is referred to Roenby et al. [3] and Scheufler and Roenby [4] where the isoAdvector algorithm is described in detail.

18In order to extend isoAdvector to flows in porous media we must make a number of modifications to the existing algorithm.First, the available void volume within cell i is only a fraction n i of the total cell volume.As a result, the volume fraction definition in Eqn. ( 5) should be altered to

19In this way the volume fraction field retains the property to be in the range 0 to 1 with α i = 1 to refer to a cell with its void volume filled with phase-1 fluid and α i = 0 to a cell with its void volume filled with phase-2 fluid.Subsequently the above volume fraction modification directly affects Eqn.(6), which in order to accommodate the presence of a porous medium becomes

20The isoAdvector algorithm evaluates the second term on the RHS of Eqn. ( 9) based on geometric operations.Those operations require an estimate for the advection velocity vector U I i at interface centre x I i .As mentioned, we interpolate the cell centred velocity field to x I i to approximate U I i .However, when a porous medium is present, the advection velocity must be adjusted accordingly.This is because the interface in a cell is a Lagrangian surface and thus it will be advected with the superficial velocity, while the cell centred velocity vectors are an intrinsic representation of the velocity field.As a result, the interpolated velocity at the interface center x I i must be divided by the porosity value of the cell.Therefore the adjusted interface advection velocity in cell i will be U I′ i = U I i /n i .

21Figure 1.Sketch of the set up for the disc in constant flow through porous region case.

22The disc is shown in grey with a dashed outline, while the porous region located in the middle of the figure is depicted in a grey-white pattern.U refers to the constant velocity vector, L is the total length of the domain, H is the total height of the domain, and L p is the length of the porous region in the horizontal direction.

Benchmark cases

23Here we present validation of the porousInterIsoFoam solver in two different cases.Initially, a pure passive advection case is simulated, and afterwards, we reproduce the experimental results of Liu et al. [5].These simulations aim to evaluate/illustrate some critical aspects of this new solver, such as interface sharpness, shape preservation, boundedness, and volume conservation.

243.1.Passive Advection of a Disc Through a Porous Region.In this section, the passive advection of a disc through a uniform porous region is simulated.The term passive implies that the flow field is prescribed and unaltered by the presence of the disc throughout the simulation.As a result, this case will allow us to have a closer look at the interface advection algorithm isolated from the complex porous flow phenomena.As depicted in Fig. 1 with porosity n = 0.5.The circular blob with center (x 0 , y 0 ) = (0.5, 0.5) [m] and radius R = 0.25[m] is advected diagonally with a velocity U = (1, 0.5)[m s −1 ] outside the porous region.Inside the porous region, fluid incompressibility dictates a velocity U ′ = U/n, hence a doubling of the interface velocity with the chosen porosity.The result is that the circular blob is stretched as it passes the left boundary into the porous region.The blob regains its circular shape as it leaves the porous region through its right boundary.If we call the left and right limits of the porous domain x L and x R , respectively, then the analytical trajectories for the particles comprising the circular blob can be written

25We stop the simulation at t = 2.5[s], leaving the disc time to enter, pass through, and exit the porous region.Lastly, the time step selection is adjustable in order to keep the maximum Courant number, maxCo, at 0.25.The Courant number of a cell i with porosity n i is defined as

26which is identical to the existing definition in OpenFOAM when n i = 1.The porous modification retains the interpretation of the Courant number as the fraction of the total fluid volume in the cell (n i V i ) that is fluxed out of the cell during the time step, ∆t.We note that this porous Courant number definition poses a more strict limitation on the time step size than the non-porous version.In the simulation we also restrict the maximum interfacial Courant number, maxAlphaCo, to 0.25.In accordance with the existing maxAlphaCo implementation in OpenFOAM, the maximum is taken over all cells with 0.01 < α < 0.99.The different stages of the disc during the simulation are illustrated in Fig. 2. As the disc enters the porous region, it elongates in the advection direction, and its advection velocity doubles.When exiting the porous region, the elongated elliptic blob transforms back to its original shape.The interface sharpness is illustrated with the α = 0.01 and α = 0.99 contours.Those contours should be as close as possible to each other with the given mesh resolution.In the porousInterIsoFoam case the contours are observed to be three cells apart during the whole course of the simulation.For porousInterFoam the interface width is approximately 5 cells.The green closed curve in each panel on the figure shows the theoretical interface shape from Eqn. (10).porousInterIsoFoam recovers an almost circular interface shape upon its exit from the porous region whereas porousInterFoam returns a distorted shape.

27In Fig. 3a a plot of the volume conservation error is shown.For both solvers the error is observed to be around machine precision with porousInterFoam exhibiting a lower error compared to porousInterIso-Foam.In Fig. 3b the upper bounding error is depicted for both solvers.Here the porousInterIsoFoam error is around machine precision, whereas the porousInterFoam maximum α value settles around 10 −7 below 1.This is due to the smear of the volume fraction field that subsequently leads to a maximum value below one.In Fig. 3c we show the lower bounding error, which stays below machine precision during the whole simulation for both solvers.

Porous Dam Break.

28In the second benchmark case we reproduce an experiment of a porous dam break conducted by Liu et al. [5].This particular experiment has been a reference point for many past developments in the field (e.g.[1], [2] and [20]).Here we evaluate the solver behaviour as a whole including the combined interface advection and porous momentum equation.Fig. 4 illustrates the simulation set up.On the left there is a column of water that is released at t = 0[s].Then water flows through the uniform porous block placed in the middle of the domain, until at some point the system finds equilibrium.The full description of the experimental setup can be found in Liu et al. [5].The domain is discretised by a uniform mesh with cell size of ∆x = ∆y ≈ 0.006[m].This simulation is carried out with a maximum interfacial Courant number of 0.5.

29The water surface profiles for different time instances are illustrated in Fig. 5.It is clear that porous-InterIsoFoam predicts the water elevation accurately in most of the simulation.There is a deviation in the initial phase, this is presumably due to modelling of the water gate; in the simulation the whole water column is released instantly while in reality it is a finite process that takes around 0.1[s], as also noted by Liu et al. [5] (similar observations have been made in a different case study by Fekken et al. [21]).Fig. 6 illustrates the interface sharpness capabilities of isoAdvector compared to MULES.For the case of isoAdvector the α = 0.01 and α = 0.99 contours are shown to be separated by three cells which is the best a VOF representation can do.On the other hand, porousInterFoam results in a smeared interface that expands over more cells, while at the same time producing numerical vapor.Both the numerical vapor issue and the smeared interface of MULES has been reported in earlier investigations [22,23].

30In Fig. 7a we show the evolution in the volume conservation error over the course of the simulation (i.e.4[s]).Here it is observed that both solvers exhibit excellent volume conservation and retain the error below 10 −13 .Fig. 7b shows that the upper bounding error is kept below 10 −9 for both solvers.As for the lower bounding error Fig. 7c shows that both solvers retain the error below machine precision.

Conclusion

31An extension of the interfacial solver interIsoFoam has been derived and implemented.The extended solver, porousInterIsoFoam, is capable of simulating two-phase flows inside and around porous regions.The momentum equation implementation is based on the analysis of Jensen et al. [1], while the geometric VOF method, isoAdvector, is extended to account for a porous medium occupying part of the volume of computational cells.Using isoAdvector for interface advection gives rise to improved shape preservation while retaining excellent volume conservation and boundedness.The solver was validated with a pure advection test case demonstrating the superior shape preservation compared to a similar solver using MULES for interface advection.The porousInterIsoFoam solver was also benchmarked with numerical and experimental data in a porous dam break case where it accurately matched the interface shape measurements while also conserving fluid mass to a high precision with a sharp and well-bounded volume fraction field.The porousInterIsoFoam solver is released as an open source tool capable of facilitating coastal and marine studies of interfacial flows involving porous regions (code repository https://github.com/InterFlowers/porousInterIsoFoam).As of OpenFOAM-v2112 the porousInter-IsoFoam capabilites have been merged into the official interIsoFoam solver (the reader is referred to the v2112 release notes for further details on usage).

32the computational set-up consists of a rectangular domain of length L = 5[m] and height H = 3[m].The domain is discretised by a uniform mesh with cell size ∆x = ∆y = 0.05[m].The rectangular domain contains an inner porous region of length L p = 2[m]

33Initial (b) Entry, t = 1[s] (c) Inside, t = 1.5[s](d) Exit, t = 2[s](e) End, t = 2.5[s]

Figure 2 .

34Figure 2. Disc in uniform flow at various phases (Initial, during the entry, inside, during the exit and outside of the porous region).Comparison of the shape preservation and interface sharpness for the two solvers.porousInterIsoFoam results are shown in the top row of panels in grey-scale (α = 0.5 contour is illustrated in black while α = 0.01 and α = 0.99 contours are shown in grey) whereas porousInterFoam results are shown in the bottom row of panels in red-scale (α = 0.5 contour is illustrated in red while α = 0.01 and α = 0.99 contours are shown in light red).In green is illustrated the analytical solution from Eqn. (10).Finally, the limits of the porous region are shown as yellow vertical lines.

Figure 3 .

35Figure 3.Comparison of volume conservation error as well as upper and lower bounding of the volume fraction for the two solvers.The two vertical dashed lines mark the time interval where the disc is in contact with the porous region.The vertical dash-doted lines mark the time interval where the disc is fully inside the porous region.

Figure 4 .

36Figure 4. Sketch of the set-up for the porous dam break case.The free surface of the initial water distribution is shown in a dashed line, while the porous region located in the middle of the figure is depicted with a grey-white pattern.L = 0.892[m] is the total length of the domain, H c = 0.24[m] and L c = 0.28[m] is the height and width of the initial water column, and L p = 0.29[m] is the length of the porous region in the horizontal direction.Lastly, the height of the short column is h 0 = 0.022[m].

Figure 5 .

37Figure 5.Comparison of free surface elevation profiles at 9 different time instances.The experimental data, shown in green dots, are measurements presented in Liu et al. [5] while the numerical values, produced by porousInterFoam, are shown in red line (interFoambased solver using MULES advection scheme).The free surface values acquired by our new implementation are shown in black dashed line.The grey rectangle in the middle of the domain marks the porous region.

Figure 6 .

38Figure 6.Comparison of the interface sharpness for the two solvers.Porous dam break at t = 1 [s] .The porousInteIsoFoam results are shown in black palette, α = 0.5 contour is illustrated in black while α = 0.01 and α = 0.99 contours are shown in grey.Results acquired with porousInterFoam are represented by the red palette, α = 0.5 contour is illustrated in red (this line is overlapped by the black α = 0.5 contour) while α = 0.01 and α = 0.99 contours are shown in light red.The porous region is shown in light grey.The rectangle in dashed outline highlights the area where porousInterFoam produces numerical vapor.

Figure 7 .

39Figure 7.Comparison of errors in volume conservation and in upper and lower bounding for the two solvers.

참고문헌 24건

  1. Numerical analysis of the interaction of irregular waves with two dimensional permeable coastal structures Coastal Engineering · Elsevier BV · 2015 10.1016/j.coastaleng.2015.05.004
  2. A wave generation toolbox for the open‐source CFD library: OpenFoam® International Journal for Numerical Methods in Fluids · Wiley · 2011 10.1002/fld.2726
  3. Evaluating the performance of the two-phase flow solver interFoam Computational Science & Discovery · IOP Publishing · 2012 10.1088/1749-4699/5/1/014016
  4. Numerical Study of Solitary Wave Interaction with Porous Breakwaters Journal of Waterway Port Coastal and Ocean Engineering · American Society of Civil Engineers · 2007 10.1061/(asce)0733-950x(2007)133:5(352)
  5. Numerical Modeling of Wave Interaction with Porous Structures Journal of Waterway Port Coastal and Ocean Engineering · American Society of Civil Engineers · 1999 10.1061/(asce)0733-950x(1999)125:6(322)
  6. Investigations on the porous media equations and resistance coefficients for coastal structures Coastal Engineering · Elsevier BV · 2013 10.1016/j.coastaleng.2013.11.004
  7. The Forchheimer equation: A theoretical development Transport in Porous Media · Springer Science+Business Media · 1996 10.1007/bf00141261
  8. Three-dimensional interaction of waves and porous coastal structures using OpenFOAM®. Part I: Formulation and validation Coastal Engineering · Elsevier BV · 2013 10.1016/j.coastaleng.2013.08.010
  9. Hydrodynamic characteristics of porous seawall protected by submerged breakwater Applied Ocean Research · Elsevier BV · 2014 10.1016/j.apor.2014.01.003
  10. Wave interaction with permeable coastal structures International Journal of Rock Mechanics and Mining Sciences & Geomechanics Abstracts · Elsevier BV · 1996 10.1016/0148-9062(96)81968-1
  11. Simulation of Green Water Loading Using the Navier-Stokes Equations 1999
  12. Investigations on the porous resistance coefficients for fishing net structures Journal of Fluids and Structures · Elsevier BV · 2016 10.1016/j.jfluidstructs.2016.05.005
  13. Towards Resolving the Atomization Process of an Idealized Fire Sprinkler with VOF Modeling 2017 10.4995/ilass2017.2017.5014
  14. CFD verification and validation of green sea loads Ocean Engineering · Elsevier BV · 2017 10.1016/j.oceaneng.2017.10.026
  15. Accurate and efficient surface reconstruction from volume fraction data on general meshes Journal of Computational Physics · Elsevier BV · 2019 10.1016/j.jcp.2019.01.009
  16. Analysis of viscous fluid flow in a pressure-swirl atomizer using large-eddy simulation International Journal of Multiphase Flow · Elsevier BV · 2018 10.1016/j.ijmultiphaseflow.2018.10.008
  17. Numerical Simulation of Free Surface Fluid Flows Through Porous Media by Using the Explicit MPS Method Transport in Porous Media · Springer Science+Business Media · 2018 10.1007/s11242-018-1178-z
  18. Development of a CFD Solver for Primary Diesel Jet Atomization in FOAM-Extend SAE technical papers on CD-ROM/SAE technical paper series · 2019 10.4271/2019-24-0128
  19. Numerical computations of resonant sloshing using the modified isoAdvector method and the buoyancy-modified turbulence closure model Applied Ocean Research · Elsevier BV · 2019 10.1016/j.apor.2019.05.014
  20. A computational method for sharp interface advection Royal Society Open Science · Royal Society · 2016 10.1098/rsos.160405
  21. Using a porous-media approach for CFD modelling of wave interaction with thin perforated structures Journal of Ocean Engineering and Marine Energy · Springer Science+Business Media · 2020 10.1007/s40722-020-00183-7
  22. Wave interaction with permeable coastal structures Oceanographic literature review · Elsevier BV · 1996 10.1016/0967-0653(96)86872-4
  23. Large-Eddy Simulation of a Classical Hydraulic Jump: Influence of Modelling Parameters on the Predictive Accuracy Fluids · Multidisciplinary Digital Publishing Institute · 2022 10.3390/fluids7030101
  24. Using the isoAdvector geometric VoF method for interfacial flows through porous media 2022 10.2218/marine2021.6811