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

A Semi-implicit Treatment of Porous Media in Steady-State CFD

간접 관련 모빌리티 소재 · (3) 자동차 인테리어 소재 (4) 카시트 모듈

기본 정보

저자
  1. Andreas Domaingo — VIRTUAL VEHICLE Research Center, Inffeldgasse 21a, 8010 Graz, Austria|||VIRTUAL VEHICLE Research Center, Inffeldgasse 21a, 8010, Graz, Austria
  2. D. Langmayr — ANDRITZ HYDRO GmbH, Dr.-Karl-Widdmann-Strasse 5, 8160 Weiz, Austria ; KTM AG, Stallhofnerstrasse 3, 5230 Mattighofen, Austria|||ANDRITZ HYDRO GmbH, Dr.-Karl-Widdmann-Strasse 5, 8160, Weiz, Austria
  3. Bence Somogyi — KTM AG, Stallhofnerstrasse 3, 5230 Mattighofen, Austria
  4. Raimund Almbauer — Graz University of Technology, Inffeldgasse 25b, 8010 Graz, Austria|||Graz University of Technology, Inffeldgasse 25b, 8010, Graz, Austria
DOI
10.1007/s11242-016-0657-3
저널
Transport in Porous Media
발행년도
2016
발행기관
Springer Science+Business Media
피인용수
11
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s11242-016-0657-3
토픽
Heat and Mass Transfer in Porous Media
OpenAlex ID
W2292085449

평가 내용

관련도
간접 관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
(4) 카시트 모듈
R&D 측면
분석·모델링
확신도
0.70
근거 용어
porous media, CFD, Navier-Stokes, Darcy-Forchheimer, vehicle underhood compartment
판단 근거
본 논문은 다공성 매질(porous media)을 포함한 유체 흐름을 수치해석(CFD)으로 모델링하는 수치적 기법을 다룹니다. 이는 자동차 엔진룸(underhood) 내 공기 흐름이나 열교환기 성능 분석 등 모빌리티 부품의 열관리 및 공기역학 설계에 응용될 수 있는 연구입니다.
R&D 활용 포인트
자동차 인테리어 및 모빌리티 부품 설계 시, 엔진룸 내 냉각 효율이나 공기 흐름을 시뮬레이션하는 CFD 모델의 계산 속도와 정확도를 높이는 데 활용 가능합니다.
평가 입력
본문 41,942자 중 30,032자 발췌

초록

There are many situations in computational fluid dynamics which require the definition of source terms in the Navier-Stokes equations. These source terms not only allow to model the physics of interest but also have a strong impact on the reliability, stability, and convergence of the numerics involved. Therefore, sophisticated numerical approaches exist for the description of such source terms. In this paper, we focus on the source terms present in the Navier-Stokes or Euler equations due to porous media-in particular the Darcy-Forchheimer equation. We introduce a method for the numerical treatment of the source term which is independent of the spatial discretization and based on linearization. In this description, the source term is treated in a fully implicit way whereas the other flow variables can be computed in an implicit or explicit manner. This leads to a more robust description in comparison with a fully explicit approach. The method is well suited to be combined with coarse-grid-CFD on Cartesian grids, which makes it especially favorable for accelerated solution of coupled 1D-3D problems. To demonstrate the applicability and robustness of the proposed method, a proof-of-concept example in 1D, as well as more complex examples in 2D and 3D, is presented.

본문 41,942자

본문 펼치기
p ( ) DOI 10.1007/s11242-016-0657-3 ## A Semi-implicit Treatment of Porous Media in Steady-State CFD Andreas Domaingo <sup>1</sup> · Daniel Langmayr <sup>2</sup> <sup>_,_</sup> <sup>3</sup> · Bence Somogyi <sup>3</sup> · Raimund Almbauer <sup>4</sup> Received: 3 August 2015 / Accepted: 15 February 2016 / Published online: 26 February 2016 © The Author(s) 2016. This article is published with open access at Springerlink.com Abstract There are many situations in computational fluid dynamics which require the definition of source terms in the Navier–Stokes equations. These source terms not only allow to model the physics of interest but also have a strong impact on the reliability, stability, and convergence of the numerics involved. Therefore, sophisticated numerical approaches exist for the description of such source terms. In this paper, we focus on the source terms present in the Navier–Stokes or Euler equations due to porous media—in particular the Darcy– Forchheimer equation. We introduce a method for the numerical treatment of the source term which is independent of the spatial discretization and based on linearization. In this description, the source term is treated in a fully implicit way whereas the other flow variables can be computed in an implicit or explicit manner. This leads to a more robust description in comparison with a fully explicit approach. The method is well suited to be combined with coarse-grid-CFD on Cartesian grids, which makes it especially favorable for accelerated solution of coupled 1D–3D problems. To demonstrate the applicability and robustness of the proposed method, a proof-of-concept example in 1D, as well as more complex examples in 2D and 3D, is presented. Keywords Darcy–Forchheimer · Implicit source term · Coarse grid CFD B Andreas Domaingo andreas.domaingo@v2c2.at Daniel Langmayr daniel.langmayr@andritz.com Bence Somogyi bence.somogyi@ktm.at Raimund Almbauer raimund.almbauer@tugraz.at 1 VIRTUAL VEHICLE Research Center, Inffeldgasse 21a, 8010 Graz, Austria 2 ANDRITZ HYDRO GmbH, Dr.-Karl-Widdmann-Strasse 5, 8160 Weiz, Austria 3 Present Address: KTM AG, Stallhofnerstrasse 3, 5230 Mattighofen, Austria 4 Graz University of Technology, Inffeldgasse 25b, 8010 Graz, Austria g 1 Introduction Source terms are frequently encountered in computational fluid dynamics. They are necessary in situations, where processes affect the flow which are not resolved by the Navier–Stokes equations or the applied numerical grid. Examples of such processes are chemical reactions, turbulence, geometry simplifications in porous media, body force terms like buoyancy, etc. Such source terms not only affect the physics of the flow solution, but also have a large effect on the applied numerical scheme in terms of reliability, stability, and convergence behavior. One reason for an undesirable blow up due to source terms is that in the course of integration, the solution may come into regimes where the source terms exhibit large unrealistic values dominating the actual physics. Therefore, special care has to be taken with regard to source terms in order to guarantee solver robustness. Numerous different approaches have been proposed to diminish the disadvantageous effects of source terms. In Yu and Chang (1997), a conservative interpolation of source terms in space–time is presented. A robust solution for conservation laws with source terms by means of a wave-propagation algorithm is discussed in LeVeque (1998). A discretization of the source terms by taking the natural upwind direction into account is considered in Vázquez-Cendón (1999) for the shallow water equations. A technique for balancing flux gradients and source terms is investigated in Hubbard and Garcia-Navarrot (2000). Implicit integration schemes of different order are evaluated in Mulder (1985) for the one-dimensional Euler equation. Other methods concentrate on solution-limited time stepping (Lian et al. 2009, 2010). In the latter method, the CFL number is reduced locally, to ensure the change in each cell to be below a specified tolerance thereby enhancing code reliability. Usually, as an initial step, the choice of implicit or explicit treatment has to be made (Piscaglia et al. 2009). This can be done based on the Jacobian of the source term or on the basis of individual terms (Merci et al. 2000). Generally speaking, positive source Jacobian eigenvalues are better handled by explicit algorithms, whereas negative eigenvalues improve the convergence of implicit approaches. In this paper, we present an approach to efficiently model the influence of porous media resolved by source terms for steady-state CFD calculations. This is a common approach for investigations in which the porous medium cannot be fully resolved by the numerical grid (Hayes et al. 2008; Aslan et al. 2014; Hörmann et al. 2005). A well-known application is, e.g., the air flow in a vehicles underhood compartment or in HVAC ducts in the presence of heat exchangers (Janssen et al. 2015), where only the influence of the heat exchanger on the overall pressure loss of the system is of interest. In this case, the resistance, i.e., the local pressure loss, can be expressed by a suitable source term. Our emphasis is on methods, in which the solution is found by quasi-time relaxation to the equilibrium state. Such a method has been proposed by the authors in Langmayr et al. (2013) for a calibrated coarse grid method (CCGM). The main goal of this approach is to reproduce the average results of a CFD simulation on a very fine grid with an under-resolved solution of the Euler or Navier–Stokes equations. This is established via appropriate averaging and source terms. The relaxation is controlled by a global relaxation time step, which is small enough to ensure a suitably small CFL number in the entire computational domain even for an explicit treatment of convection and diffusion terms. Pressure is treated semi-implicitly with SIMPLE (Patankar 1980). Additionally, source terms arising from porous media are treated implicitly, leading to local time steps to ensure stability, i.e., for each cell in the computational grid an individual relaxation time step is applied. p y Therefore, the paper is organized as follows: First, we present the transport equations for the type of problem of interest in simplified form. Emphasis is put on the modeling of the source terms arising due to the presence of porous media and their influence on pressure– velocity coupling, while the details of discretization for convection and diffusion are not considered. The developed approach leads to a non-constant system matrix for the pressure equation. Therefore, we outline a procedure for the fast recalculation of this matrix in each iteration step in the next section. Finally, we provide a 1D proof-of-concept example, and more sophisticated 2D and 3D examples. 2 Theoretical Background In this section, we review the basic equations describing the problem to be solved, and we present the necessary steps to derive the model equations. 2.1 Governing Equations Our main goal is to describe subsonic air flow in the presence of porous media by means of coarse grid CFD. A typical example is the air flow through a vehicle’s underhood compartment, where the different heat exchangers are modeled as porous media. Such a flow is governed by the Navier–Stokes equations ∇· _ρ_ u = 0 (1) _∂ρ_ <u>u</u> + _(_ u - ∇ _)ρ_ u = −∇ _p_ + _μ_ ∇ <sup>2</sup> u + _S_ _,_ (2) _∂t_ where u and _p_, respectively, denote the independent flow-field variable velocity and pressure. The air density is given by _ρ_ and the viscosity by _μ_ . Additional body forces like the resistance of the porous media are given by the source term _S_ . It should be noted that this source terms account for geometric details which are not resolved by the numerical grid. In this approach, the flow within the porous medium is split into a free-stream part (with fully open geometry) and additional resistance forces (which account for flow area reduction and friction). Therefore, the source must be considered additionally to the convection and diffusion operators in this approach. In vehicle aerodynamics, the heat exchanger resistance is commonly modeled by a suitable Darcy–Forchheimer law (Whitaker 1996; Rohsenow et al. 1998; Dukhan et al. 2014; Janssen et al. 2015). In our case, we follow the formulation as it is used, e.g., in OpenFOAM (Hafsteinsson 2009), which is given by _Si_ _(ui_ _)_ = − - _μD_ + 2 <sup><u>1</u></sup> <sup>_ρ_</sup> <sup>|</sup> <sup>_ui_</sup> <sup>|</sup> <sup>_F_</sup> _ui_ _._ (3) Here, the Darcy constant _D_ accounts for viscous losses (and corresponds to the inverse permeability) and the Forchheimer constant _F_ for losses due to turbulent effects in the porous medium. Generally for porous media, the sign of the source term is always opposite to the sign of the local velocity, and the derivative w.r.t. velocity is always negative, which is a crucial condition for a robust solution (Patankar 1981). Thus, an implicit treatment of the porous medium is always preferable (Merci et al. 2000). g 2.2 Discretized Equations When developing our discretized model equations from the Navier–Stokes equations, our main goal is to obtain a steady-state solution for the momentum equation Eq. (2). In our approach, the system relaxes from some initial state toward equilibrium by applying simple forward Euler time stepping _<u>ui</u>_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> - _<u>ui</u>_ <sup>_(n)_</sup> = _Ci_ + _Di_ + _Pi_ + _Si_ _,_ (4) _Δt_ where _n_ denotes the iteration step for a relaxation parameter _Δt_ (fictitious time step). Furthermore, _Ci_, _Di_ and _Pi_ denote the discretized forms of convection, diffusion, and the pressure gradient, respectively. To account for mass conservation, Eq. (1), we apply the SIMPLE algorithm (Patankar 1980) to establish the velocity–pressure coupling. Basically, the update procedure for velocity is then given by _ui_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> = _ui_ <sup>_(n)_</sup> + _Δt_ - _Ci_ <sup>_(n)_</sup> + _Di_ <sup>_(n)_</sup> + _Pi_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> + _(_ 1 − _Ψ )Si_ <sup>_(n)_</sup> + _Ψ Si_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> <sup>�</sup> _,_ (5) where the superscripts _(n)_ and _(n_ + 1 _)_ denote, for which iteration step the discretization operators should be evaluated. Please note that the implicit treatment of the pressure via _Pi_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> is part of the SIMPLE strategy to ensure mass conservation, while the blending factor _Ψ_ makes the source term implicit. For the further treatment of the model equations, we make the following assumptions, which are well fulfilled by the Darcy–Forchheimer law Eq. (3): - The source term depends explicitly on the velocity, i.e., an analytical dependence of the source term on velocity is provided: _Si_ = _Si_ _(ui_ _)_ . - The source term is sufficiently smooth to be linearized. By virtue of these assumptions, the implicit contribution of the source term can be written in linearized form as _ui_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> - _ui_ <sup>_(n)_</sup> <sup>�</sup> _Si_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> ≈ _Si_ <sup>_(n)_</sup> + - <u>d</u> _Si_ d _ui_ - _(n)_ - _ui_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> - _ui_ <sup>_(n)_</sup> <sup>�</sup> _._ (6) := _Si_ <sup>_(n)_</sup> + _Si_ <sup>′</sup> _(n)_ <sup>�</sup> Furthermore, we consider only linear discretizations of the pressure gradient. This allows to split the implicit pressure contribution into a contribution from the previous iteration and a corrective contribution, such that _p_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> := _p_ <sup>_(n)_</sup> + _Δp_ <sup>_(n)_</sup> �⇒ _P_ - _p_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> <sup>�</sup> = _P_ - _p_ <sup>_(n)_</sup> <sup>�</sup> + _P_ - _Δp_ <sup>_(n)_</sup> <sup>�</sup> := _P_ <sup>_(n)_</sup> + _ΔP_ <sup>_(n)_</sup> _._ (7) By inserting the simplifications Eqs. (6) and (7) into the update rule Eq. (5) and introducing an intermediate velocity _ui_ <sup>∗, we obtain</sup> _i_ <sup>∗</sup> <sup>−</sup> <sup>_ui (n)_</sup> <sup>���</sup> _Ci_ <sup>_(n)_</sup> + _Di_ <sup>_(n)_</sup> + _Pi_ <sup>_(n)_</sup> + _Si_ <sup>_(n)_</sup> + _Ψ Si_ <sup>′</sup> _(n)_ <sup>�</sup> _ui_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> = _ui_ <sup>_(n)_</sup> + _Δt_ _ui_ <sup>∗</sup> _i_ _(n)_ <sup>�</sup> _i_ + _Δt_ _ΔPi_ <sup>_(n)_</sup> + _Ψ Si_ <sup>′</sup> _ui_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> - _ui_ <sup>∗</sup> �� _._ (8) p y To fix the value of the yet unknown intermediate velocity, we demand that it is equal to the term within curly braces in the above equation, yielding the final update rule _Δt_ _Δt_ <sup>∗</sup> := (9) _(n)_ _i_ <sup>∗</sup> <sup>=</sup> <sup>_ui (n)_</sup> <sup>+</sup> <sup>_Δt_</sup> <sup>∗</sup> <sup>�</sup> 1 − _ΔtΨ Si_ <sup>′</sup> _ui_ <sup>∗</sup> _Ci_ <sup>_(n)_</sup> + _Di_ <sup>_(n)_</sup> _i_ + _Pi_ <sup>_(n)_</sup> + _Si_ <sup>_(n)_</sup> <sup>�</sup> (10) _ui_ <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> = _ui_ <sup>∗</sup> <sup>+</sup> <sup>_Δt_</sup> <sup>∗</sup> <sup>_ΔPi (n)._</sup> (11) This update procedure corresponds to that of the SIMPLE algorithm with explicit source terms, except for the position-dependent time step _Δt_ <sup>∗</sup> . The obvious advantage of this approach is that the implicit treatment of the source terms neither increases the complexity nor decreases the speed of the SIMPLE algorithm, as no additional equation solving is required. 2.3 Pressure–Velocity Coupling To complete the procedure presented in the previous section, a suitable pressure–velocity coupling must be implemented to ensure mass conservation according to the continuity equation Eq. (1). In the discretized form, continuity is given by = 0 _,_ (12) - u <sup>∗</sup> + _Δt_ <sup>∗</sup> _ΔP_ <sup>_(n)_</sup> <sup>�</sup> _L_ - u <sup>_(n_</sup> <sup>+1</sup> <sup>_)_</sup> <sup>�</sup> = _L_ where the operator _L_ denotes the discretized divergence operator. By assuming that the divergence operator _L_ is linear, mass conservation can be written as _,_ (13) - u <sup>∗�</sup> _L_ - _Δt_ <sup>∗</sup> _ΔP_ <sup>_(n)_</sup> <sup>�</sup> = − _L_ where the r.h.s. can be calculated after the predictor step from the intermediate _u_ <sup>∗</sup> . By introduction of the influence function _F_ with - _Δt_ <sup>∗</sup> _ΔP_ <sup>_(n)_</sup> <sup>�</sup> - _Δp_ <sup>_(n)_</sup> <sup>��</sup> (14) = _L_ _Δt_ <sup>∗</sup> _P_ _F_ - _Δp_ <sup>_(n)_</sup> <sup>�</sup> := _L_ and the fact that the combined application of divergence and gradient operator can also be written as a matrix operation, the mass conservation takes the final form = _AΔp_ <sup>_(n)_</sup> = − _L_ _,_ (15) - u <sup>∗�</sup> _F_ - _Δp_ <sup>_(n)_</sup> <sup>�</sup> where _A_ is the pressure influence matrix. Contrary to the explicit case, this matrix is not constant for all iterations steps, but has to be updated in each step because of the derivative _Si_ <sup>′</sup> _(n)_ which is part of the time step _Δt_ ∗ in Eq. (12). For a Cartesian grid with a first-order pressure gradient, the pressure influence matrix has a predominantly diagonal structure with six (3D) and four (2D), respectively, occupied side diagonals (c.f. Fig. 1). Additional matrix elements occur locally next to these “geometry” elements due to the implicit treatment of the porous media. Our target is to place an arbitrary number of porous regions within the computational domain. Moreover, we want to keep the approach general, i.e., not only for Darcy–Forchheimer porosities Eq. (3), but for any law which describes the pressure drop in dependence of velocity sufficiently smooth and monotonic. To this end, we describe the system not directly by the influence matrix _A_, but we claim to know the different influence functions to describe geometry _(FG_ _)_ and porous _i_ _(n)_ which is part of the time step _Δt_ ∗ in Eq. (12). ⎡ ~~(a)~~ ⎢⎢⎢⎢⎢⎢⎢ ~~⎢~~ ⎢⎢⎢⎢⎣ ⎤ ⎥⎥⎥⎥⎥⎥⎥ ~~⎥~~ ⎥⎥⎥⎥⎦ ⎡ ~~(b)~~ ⎢⎢⎢⎢⎢⎢⎢ ~~⎢~~ ⎢⎢⎢⎢⎣ _i_ -th column <sup>⎤</sup> ⎥⎥⎥⎥⎥⎥⎥ ~~⎥~~ ⎥⎥⎥⎥⎦ g ~~(~~ _~~i−~~_ ~~th~~ ~~row)~~ 0 ... 0 ~~1~~ 0 ... 0 ⎤ ⎥⎥⎥⎥⎥⎥ ~~⎥~~ ⎥⎥⎥⎦ _~~·~~_ ⎡ ⎢⎢⎢⎢⎢⎢ ~~⎢~~ ⎢⎢⎢⎣ Fig. 1 a Typical structure of the pressure influence matrix for a 2D case. The _red dot_ indicates a cell, which contains an additional source term due to a porous medium. The original matrix is changed due to source terms in _x_ -direction ( _blue_ ), _y_ -direction ( _green_ ) and both of them ( _red_ ). b Projection of _i_ -th column of influence matrix by suitable test vector media _(FP,i_ _)_, where the latter can be derived from the pressure loss law. Due to this splitting, the total influence function reads = _FG_ _._ (16) _FP,i_ - _Δp_ <sup>_(n)_</sup> <sup>�</sup> + _F_ - _Δp_ <sup>_(n)_</sup> <sup>�</sup> - _Δp_ <sup>_(n)_</sup> <sup>�</sup> _i_ To determine the influence matrix automatically for an arbitrary number of influence functions, the following testing technique is applied: First, a series of pressure test vectors is defined by _Δ_ ˆ _pℓ_ := _δℓm,_ _ℓ, m_ = 1 _, . . ., M,_ (17) where _M_ is the number of unknown pressure values in general the number of cells in the numerical grid and the Kronecker delta _δℓm_ is defined by _δℓm_ = - 1 if _ℓ_ = _m_ (18) 0 else _._ Then, these test vectors are subsequently applied to the operator _F_ to give the columns of the influence matrix by virtue of Eq. (13), c.f. Fig. 1, as _F_ - _Δ_ ˆ _pℓ_ = _Aimδℓm_ = _Aiℓ._ (19) This method does not represent a new way of how velocity and pressure are coupled (this is still according to the SIMPLE algorithm). Many methods for this purpose have been proposed and intensively studied in the literature (Patankar 1980; Ferziger and Peri´c 2002; Raithby and Schneider 1979; Doormaal and Raithby 1984). The approach considered here is a formal framework, which can be applied to velocity–pressure coupling algorithms which perform a predictor step for the velocity equation and a corrector step for pressure equation to fulfill mass conservation: 1. Predictor step: _u_ <sup>_(n)_</sup> → _u_ <sup>∗</sup> with mass imbalance _Δm_ . 2. Corrector step: _AΔp_ = _Δm_ . The necessary influence matrix _A_ is not assembled directly, but all the details about the used discretization scheme are contained in the influence operator _F_ . In this way, an easy and straight forward determination of the influence matrix is possible for any combination of applied source terms. The price to pay is that the operator _F_ has to be evaluated _M_ times per iteration step. p y 2.4 Accelerated Pressure–Velocity Coupling To overcome the drawback mentioned in the last section, the fact that usually finite stencils are applied for the discretized evaluation of divergence _L_ and gradient _P_ can be exploited to reduce the number of required test vectors. To this end, the single columns of the pressure influence matrix will be denoted by a _j_ . The “structure” of the influence matrix can be described by the vectors a <sup>0</sup> _j_ <sup>with</sup> _m_ <sup>=</sup> <sup>_a_</sup> <sup>0</sup> _j,_ <sup>0</sup> _j,m_ <sup>:= 1 −</sup> ��� _,_ (20) (21) _A_ <sup>0</sup> = a <sup>0</sup> _j_ ��sgn - _a j,m_ where the sign function sgn is defined by sgn _(x)_ := ⎧ ⎨ ⎩ −1 if _x_ _<_ 0 0 if _x_ = 0 1 if _x_ _>_ 0 _,_ so that all non-empty matrix elements are marked by a 1, as shown in Fig. 2. As the structure of the matrix is constant during calculation, and only the values change, these vectors can be determined in a preliminary step. Then, it is possible to find sets of columns denoted by _Ki_ = _κi,l_, such that the corresponding stencils of each set are completely independent, which can be expressed by a _l_ <sup>0</sup> _l_ <sup>0</sup> 1 <sup>·</sup> <sup>a</sup> _l_ <sup>0</sup> 2 _l_ <sup>0</sup> 2 <sup>=</sup> <sup>_δl_</sup> 1 <sup>_,l_</sup> 2 ∀ _(l_ 1 _,_ _l_ 2 _)_ ∈ _Ki_ _._ (22) These sets can be chosen such that - <sup>�</sup> _i_ <sup>_(Ki_</sup> <sup>_)_</sup> <sup>= {1</sup> <sup>_, . . ., M_</sup> <sup>},</sup> - ∩ _(K j_ _, Kk)_ = ∅ for _j_ ̸ = _k_, i.e., the sets span the entire range of admissible columns without selecting any column twice. Once these sets have been defined, new pressure test vectors can be constructed by _Δpi_ <sup>∗</sup> <sup>:=</sup> _l_ _Δ_ ˆ _pκi,l_ _._ (23) Since the stencils in the selected columns _κi,l_ are completely independent, a unique mapping can be established to reconstruct the influence matrix columns a _κi,l_ from the testing operation _F(Δ_ ˆ _pi_ <sup>∗</sup> <sup>_)_</sup> <sup>.</sup> <sup>Namely,</sup> <sup>all</sup> <sup>rows,</sup> <sup>for</sup> <sup>which</sup> <sup>the</sup> <sup>matrix</sup> <sup>structure</sup> <sup>vector</sup> <sup>_a_</sup> <sup>0</sup> _j_ <sup>_,_</sup> <sup>_j_</sup> <sup>∈</sup> <sup>_Ki_</sup> <sup>are</sup> <sup>nonzero,</sup> belong to column _j_ of the influence matrix. The number of independent sets _K_ depends on the used stencil for the discretization of the pressure gradient. Therefore, a constant number of test vectors _Δpi_ <sup>∗</sup> <sup>are necessary to obtain</sup> the pressure influence matrix, regardless of the number of cells in the numerical grid. For our typical application example with coarse grids with 10 <sup>3</sup> to 10 <sup>4</sup> cells, the number of test vectors is reduced to less than 20. Due to this fact, a tremendous speed-up of the calculation is possible, keeping in mind that the influence matrix must be reconstructed in every iteration step. _i_ <sup>∗</sup> <sup>_)_</sup> <sup>.</sup> <sup>Namely,</sup> <sup>all</sup> <sup>rows,</sup> <sup>for</sup> <sup>which</sup> <sup>the</sup> <sup>matrix</sup> <sup>structure</sup> <sup>vector</sup> <sup>_a_</sup> <sup>0</sup> _j_ The number of independent sets _K_ depends on the used stencil for the discretization of the pressure gradient. Therefore, a constant number of test vectors _Δpi_ <sup>∗</sup> <sup>are necessary to obtain</sup> 3 Numerical Results In the following, we present two application examples of the developed model equations to proof the concept and applicability. g ⎤ ⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥ ~~⎥~~ <u>⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦</u> ⎡ ⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢ ~~⎢~~ <u>⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣</u> _i_ -th column _j_ -th column <sup>⎤</sup> ⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥ ~~⎥~~ <u>⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎦</u> _i_ -th column 0 ... 0 1 0 <u>.</u> ~~..~~ 0 1 0 ... 0 ⎤ ⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥⎥ ~~⎥~~ ⎥⎥⎥⎥⎥⎥⎥⎥⎦ ⎡ ⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢ ~~⎢~~ <u>⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎣</u> _<u>j</u>_ <u>-th</u> <u>column</u> _~~·~~_ ⎡ ⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢⎢ ~~⎢~~ ⎢⎢⎢⎢⎢⎢⎢⎢⎣ ( _i−_ th row) ( _j−_ th row) ~~=~~ Fig. 2 Pressure influence structure matrix _A_ <sup>0</sup> . The _i_ -th ( _green_, _ai_ <sup>0</sup> _i_ <sup>0) and</sup> <sup>_j_</sup> <sup>-th (</sup> <sup>_red_</sup> <sup>,</sup> <sup>_a_</sup> <sup>0</sup> _j_ <sup>0</sup> _j_ <sup>) column don’t have any</sup> nonzero elements in the same row, i.e., their stencils don’t overlap: _ai_ <sup>0</sup> _i_ <sup>0</sup> <sup>·</sup> <sup>_a_</sup> <sup>0</sup> _j_ <sup>0</sup> _j_ <sup>= 0</sup> 3.1 1D Flow Through a Pipe As a proof-of-concept calculation, the laminar flow through a pipe is considered. On both sides of the pipe, a fixed pressure of 0 Pa is prescribed, while zero gradient conditions for velocity are applied. To drive the flow, a constant body force is given in the front region of the pipe (150 ≤ x ≤ 250 mm) in terms of a dimensionless Cp-value. In the rear region (550 ≤ x ≤ 850 mm), a porous medium with Darcy–Forchheimer law is positioned (cf. Fig. 3; Table 1). According to the standard definition of the pressure coefficient _(C p)_, the pressure increase in the front region of the pipe is given by 4 2 0 _Δp_ = 2 <sup><u>1</u></sup> <sup>_ρU_</sup> <sup>2</sup> ∞ <sup>_C p_</sup> <sup>= 625</sup> <sup>_._</sup> <sup>93 Pa</sup> <sup>_._</sup> (24) 1000 500 0 0 100 200 300 400 500 600 700 800 900 1000 x [mm] Fig. 3 Geometry for proof-of-concept calculation including regions with constant ( _cyan_ ) and velocitydependent ( _red_, Darcy–Forchheimer) body forces. The analytical results are indicated for velocity ( _blue_ ) and pressure ( _green_ ), and the coarse grid resolution is indicated by _gray lines_ Table 1 Parameters for proof-of-concept calculation _C_ _p_ [1] _U_ ∞ (km/h) _ρ_ (kg/m <sup>3</sup> ) _μ_ (Pa s) _D_ (1/m <sup>2</sup> ) _F_ (1/m) 0.8 130 1.2 1 _._ 8 × 10 <sup>−5</sup> 3 × 10 <sup>7</sup> 150 p y By rewriting the source term for the Darcy–Forchheimer law, Eq. (3), in terms of the pressure drop over the porous region thickness _L_ = 0 _._ 3 m, the equilibrium flow velocity _u_ is given by _Δp_ = _L_ - _μD_ + 2 <sup><u>1</u></sup> <sup>_ρ_</sup> <sup>_Fu_</sup> _u_ ⇒ _u_ = 2 _._ 67 m _/_ s _._ (25) To demonstrate the effect of the implicit source term treatment independently of the CFL condition, the convection term is not considered for the present example, as the flow velocity is constant due to mass conservation, anyway. The iteration history for different relaxation time steps is given in Fig. 4 for the velocity and in Fig. 5 for the residual d _u/_ d _t_ . It can be observed that by application of the implicit source terms the correct solution can be obtained over a wide range of admissible relaxation time steps. A fully explicit scheme provides a correct solution only for small time steps, shows oscillatory behavior for medium size time steps, and does not converge at all for large time steps. For certain medium size time steps, a blending with factor _Ψs_ = 0 _._ 5 provides a faster convergence than the fully implicit treatment, but for large time steps the fully implicit treatment is superior. Consequently, in terms of robustness of the method, a fully implicit treatment with _Ψs_ = 1 is the method of choice, which will be applied for the further test cases. 3.2 2D Flow Through a Channel As a second example, the flow through a 2D channel partially blocked by a porous medium is considered. The problem dimensions as well as boundary conditions are shown in Fig. 6. It should be noted that a particular coarse grid is chosen for this demonstration example to investigate the application of the semi-implicit scheme in the framework of the CCGM (Langmayr et al. 2013). The porosity coefficients in longitudinal _x_ -direction are given by 3 2.5 2 1.5 1 0.5 0 ~~5~~ 4 3 2 1 0 0 10 20 30 40 50 Iteration [1] 0 10 20 30 40 50 Iteration [1] Fig. 4 Iteration history of velocity in simple channel for different relaxation time steps for explicit ( _blue_ ), mixed ( _green_ ) and implicit scheme ( _red_ ) g 10 <sup>5</sup> 10 <sup>0</sup> 10 <sup>−5</sup> 10 <sup>−10</sup> 10 <sup>−15</sup> <u>10</u> <sup>~~5~~</sup> 10 <sup>0</sup> 10 <sup>−5</sup> 10 <sup>−10</sup> 10 <sup>−15</sup> 0 10 20 30 40 50 Iteration [1] 0 10 20 30 40 50 Iteration [1] Fig. 5 Iteration history of residuals in simple channel for different time steps for explicit ( _blue_ ), mixed ( _green_ ) and implicit scheme ( _red_ ) Fig. 6 Geometry for 2D channel flow with Darcy–Forchheimer porous medium in red. The coarse grid resolution is indicated by _gray lines_ - Darcy coefficient _D_ = 3 × 10 <sup>7</sup> [1 _/_ m <sup>2</sup> ] - Forchheimer coefficient _F_ = 150 [1 _/_ m] In the present case, the porous medium should represent the strongly anisotropic character encountered, e.g., in micro-channel heat exchangers. It is common practice to model the Darcy–Forchheimer coefficients in the lateral direction, by considering an additional factor _f_ lat compared to the longitudinaldirection. Usually, this factor is in the range of 10 <sup>2</sup> –10 <sup>4</sup> (Hafsteinsson 2009). The first tests are performed for the weak anisotropic case with _f_ lat = 100. The pressure distribution and velocities for this case are shown in Fig. 7, with an average pressure at the inlet of _p_ ¯ _in_ = 89 Pa. Convergence tests for the explicit and implicit treatment of the source terms are conducted by performing calculations for different effective relaxation steps _Δt_ . The basic step size is given by _Δt_ 0 = 10 <sup>−4</sup> s and the further steps by a series with _Δti_ = _Δt_ 0 ∗ 2 <sup>_i_</sup> s. The explicit case shows a stable convergence behavior for _Δt_ 0 to _Δt_ 3. With an implicit treatment of the source terms, step sizes up to _Δt_ 6 are admissible. Detailed convergence curves are shown in Fig. 8, where the residuals for iteration step _n_ are defined as p y Fig. 7 Pressure distribution in channel with velocity at cell centers. The velocity vectors at the inlet on the _left side_ correspond to 10 m/s Velocity uy 0 500 1000 1500 2000 Iteration Velocity ux 0 500 1000 1500 2000 Iteration 10 <sup>0</sup> 10 <sup>−5</sup> 10 <sup>−10</sup> 10 <sup>−15</sup> Pressure p 0 500 1000 1500 2000 Iteration Fig. 8 Residuals for anisotropic porous medium with _f_ lat = 100 in dependency of effective relaxation step _Δti_ = 2 <sup>_i_</sup> _Δt_ 0. For the smallest considered time step _Δt_ 3 explicit (ex) as well as implicit (im) calculations were performed _R_ _p(n)_ := <sup>max</sup> ��� _p(n_ +1 _)_ - _p(n)_ ��� _p_ ¯ _in_ (26) _,_ _d_ = _x, z._ (27) ���� max ���� _u(dn_ +1 _)_ - _u_ <sup>_(_</sup> _d_ <sup>_n)_</sup> _d_ _Rud_ _(n)_ := _uin_ The residuals for pressure and longitudinal velocity component show a predominantly exponential decay rate as theoretically expected. For the vertical velocity component, additional kinks are visible due to the source terms during the first iteration phase. If the relaxation time step is small, so that also an explicit treatment is possible, the explicit and implicit scheme show the same convergence behavior in the initial iteration history, which was already observed for the 1D proof-of-concept calculation. However, the explicit scheme is not able to converge to the same precision as the implicit scheme. For example, the pressure residual displays saturation at about _R_ _p_ = 10 <sup>−10</sup> (c.f. Fig. 8). Considering the exponential decay _R_ = exp _(_ - _βi_ _n)_ with the decay rate _βi_ := _βΔti_, the ratio _rβ,i_ := _βi_ _/β_ 1 should correspond to _rβ,i_ ≡ _i_ in the case of constant system matrices. A comparison between the ideal case and the decay coefficients extracted from the residuals in Fig. 8 is shown in Fig. 9. Although in our case the system matrices are not constant due to the local time step, Eq. (9), a decay behavior as predicted is observed. For the special application example, even a better convergence than in theory is achieved. g 80 60 40 20 calculated <u>ideal</u> 0 0 10 20 30 40 50 60 70 80 i Fig. 9 Relative decay coefficient _rβ,i_ in dependency of the effective relative step size _i_ The execution wall times for the different cases are listed in Table 2. All calculations were performed for 2000 iterations on a laptop with Intel Core i7 CPU at 2.13 GHz. The used program code was in prototype state without any optimizations performed. The time difference between explicit and semi-implicit treatment of the source terms is about 2%. With the largest possible relaxation step with semi-implicit scheme, a speed-up of about three can be achieved compared to the largest admissible step size with an explicit scheme (not taking into account that convergence is reached much faster and less than 2000 iterations would be required). If only 750 iterations are considered, the gain in speed is more than five. Finally, the influence of the factor _f_ lat to model anisotropy is investigated. Figure 10 shows the relative vertical velocity component _wrel_ := _w/uin_ in the topmost and bottommost velocity cellwithin the porous region. In the idealcase, the verticalvelocity componentshould converge to 0, as the diameter of the micro channels goes to 0. For the considered case, the relative vertical velocity is about 3% for _f_ lat = 100 and less than 1% for _f_ lat = 1000 without the need to introduce additional baffles. For this degree of anisotropy, the calculation is stable for effective step sizes as large as _Δt_ 6. 3.3 3D Flow Through a Channel The final example treats the flow through a 3D channel partially blocked by a porous medium. The basic geometry is similar to the front region of the Pitz-Daily backward facing step (Pitz and Daily 1983). Additionally, a porous medium is placed in the upper half of the channel, c.f. Fig. 11. The boundary conditions and Darcy–Forchheimer coefficients are the same as for example 2. The factor for lateral forces was 1000 if not noted otherwise. Again, it should be noted that a particular coarse grid is chosen for this demonstration example to investigate the application of the semi-implicit scheme in the framework of the CCGM (Langmayr et al. 2013). A comparison of the pressure distribution and velocities in the channel calculated with OpenFOAM and the proposed method is shown in Fig. 12 for different cut planes. Line plots Table 2 Required calculation times for 2000 iterations for the different relaxation time steps Case (relaxation time step) _Δt_ 3 (ex) _Δt_ 3 (im) _Δt_ 4 _Δt_ 5 _Δt_ 6 Wall time (s) 95.2 97.2 64.0 51.6 34.5 p y 100 10−1 10−2 ~~<u>bottom</u>~~ <u>top</u> <u>10</u> ~~−3~~ 10−4 10−5 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> flat Fig. 10 Vertical velocity relative to inlet velocity within porous medium in dependency of anisotropy parameter _f_ lat Fig. 11 Geometry for 3D channel flow with Darcy–Forchheimer porous medium in _red_ . The coarse grid resolution is indicated by _gray lines_ . Length is given in millimeter of the in _x_ -direction at _y_ = 0 mm for different values of _z_ are shown in Fig. 13. There is a good match of the results between the inlet and the entry plane of the porous medium. In the first cell row of the porous medium, OpenFOAM predicts higher pressures than our method and in the last cell row lower pressures. In the region behind the porous medium, the results obtained OpenFOAM show a small pressure increase, which seems to be unphysical at this position. The same is not the case for the proposed method. 4 Conclusions In this paper, we presented a method for a semi-implicit modeling of porous media in the steady-state Navier–Stokes equations. This method corresponds to applying a suitable local time step in porous regions in the framework of time-explicit relaxation methods. Therefore, only the pressure equation has to be solved, which allows for a fast calculation. The applicability of this method was tested by three different cases: In the first case, the flow was driven by a body force and in the other ones by external boundary conditions. Since the semi-implicit treatment allows for a much larger relaxation time step, about ten times less iterations are necessary compared to the explicit treatment, to achieve the same residuals. This corresponds to a speedup of five in terms of wall time. Furthermore, an automatic procedure to identify the source terms was presented and applied to the test cases. This procedure allows to “test” the influence of the porous medium g Fig. 12 Comparison of pressure distribution calculated with OpenFOAM ( _left_ ) and presented method ( _right_ ) for cut planes at _y_ = 0 mm ( a ), _z_ = 10 mm ( b ) and _z_ = −10 mm ( c ). Velocity is indicated by _black arrows_ which correspond to 10 m/s at the inlet on the _left side_ . The position of the porous medium by the _white rectangle_ 60 50 40 30 ~~20~~ 10 0 -10 z = 20 mm z = 0 mm z = -20 mm 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 0.22 x [m] Fig. 13 Comparison of pressure in in plane _y_ = 0 at different heights _z_ between current approach ( _solid_ ) and OpenFOAM ( _dashed_ ) on the flow structure. The advantage is that in this way also porous media can be considered, for which no analytic characteristic curve is available—provided that the characteristics is sufficiently smooth and monotonic. This method to determine the pressure influence matrix runs with a constant number of test operations independently on the used grid size. Therefore, it has hardly any influence on the calculation time for usual calculation setups, where the free-stream volume is large compared to the volume occupied by the porous medium. p y Due to the observed properties, the proposed semi-implicit approach is a well-suited method for accelerating calibrated coarse grid methods (CCGM). As a consequence, the semi-implicit treatment of source terms arising in the presence of porous media is a promising tool for accelerated 1D–3D coupling in vehicle underhood flow calculation. Acknowledgments Open access funding provided by Graz University of Technology. The authors would like to acknowledge the financial support of the “COMET—Competence Centers for Excellent Technologies Programme” of the Austrian Federal Ministry for Transport, Innovation and Technology (bmvit), the Austrian Federal Ministry of Science, Research and Economy (bmwfw), the Austrian Research Promotion Agency (FFG), the Province of Styria and the Styrian Business Promotion Agency (SFG). We would furthermore like to express our thanks to our supporting industrial and scientific project partners, namely Audi-AG and Magna Powertrain Engineering Center Steyr GmbH & CoKG and to the Graz University of Technology. Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 Inter[national License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution,](http://creativecommons.org/licenses/by/4.0/) and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. References Aslan, A.R., Anbarci, K., Açikgöz, M.B., Icke, O., Aslan, O., Dinc, C.: Numerical Modelling and Prediction of the effect of cooling drag on the total vehicle drag. In: Proceedings of the Eighth International Conference on Computational Fluid Dynamics, Chengdu, China, ICCFD8-2014-0427 (2014) Dukhan, N., Ba˘gcı, Ö., Özdemir, M.: Experimental flow in various porous media and reconciliation of Forch heimer and Ergun relations. Exp. Therm. Fluid Sci. 57, 425–433 (2014) Ferziger, J.H., Peri´c, M.: Computational Methods for Fluid Dynamics, 3 rev. edn. Springer, Berlin (2002) Hafsteinsson, H.E.: Porous Media in OpenFOAM. Chalmers University of Technology, Gothenburg (2009) Hayes, A.M., Khan, J.A., Shaaban, A.H., Spearing, I.G.: The thermal modeling of a matrix heat exchanger using a porous medium and the thermal non-equilibrium model. Int. J. Therm. Sci. 47, 1306–1315 (2008) Hörmann, T., Lechner, B., Puntigam, W., Moshammer, T., Almbauer, R.A.: Numerical and experimental investigation of flow and temperature fields around automotive cooling systems. SAE Technical Paper 2005–01-2006 (2005) Hubbard, M.E., Garcia-Navarrot, P.: Flux difference splitting and the balancing of source terms and flux gradients. J. Comput. Phys. 165, 89–125 (2000) Janssen, C., Effenberger, M., Gneiting, R., Kleber, A., Larpent, S., Stauch, R.: Improving 1D simulations of thermal management systems with embedded 3D CFD. In: Proceedings of 15. Internationales Stuttgarter Symposium, pp. 711–724. Springer Fachmedien Wiesbaden (2015) Langmayr, D., Almbauer, R.A., Peller, N., Lichtenberger, A.: Calibrated coarse grid-finite volume method for the fast calculation of the underhood flow of a vehicle. J. Fluids Eng. 135 (10) 104502–104502-5 (2013) LeVeque, R.J.: Balancing Source terms and flux gradients in high-resolution Godunov methods: the quasi steady wave-propagation algorithm. J. Comput. Phys. 146, 346–365 (1998) Lian, C., Xia, G., Merkle, C.L.: Solution-limited time stepping to enhance reliability in CFD applications. J. Comput. Phys. 228, 4836–4857 (2009) Lian, C., Xia, G., Merkle, C.L.: Impact of source terms on reliability of CFD algorithms. Comput. Fluids 39, 1909–1922 (2010) Merci, B., Steelant, J., Vierendeels, J., Riemslagh, K., Dick, E.: Computational treatment of source terms in two-equation turbulence models. AIAA J. 38 (11), 2085–2093 (2000) Mulder, W.A.: Experiments with implicit upwind methods for the Euler equations. J. Comput. Phys. 59, 232–246 (1985) Patankar, S.H.: Numerical Heat Transfer and Fluid Flow. McGraw-Hill, Washington (1980) Patankar, S.H.: A calculation procedure for two-dimensional elliptic situations. Numer. Heat Transf. 4, 409– 425 (1981) Piscaglia, F., Montorfano, A., Onorati, A.: Development of a multi-dimensional parallel solver for full-scale DPF modeling in OpenFOAM. SAE Technical Paper 2009–01-1965 (2009) Pitz, R.W., Daily, J.W.: Combustion in a turbulent mixing layer formed at a rearward-facing step. AIAA J. 21 (11), 1565–1570 (1983) g Raithby, G.D., Schneider, G.E.: Numerical solution of problems in incompressible fluid flow: treatment of the velocity-pressure coupling. Numer. Heat Transf. 2, 417–440 (1979) Rohsenow, W.M., Hartnett, J.P., Cho, Y.I. (eds.): Handbook of heat transfer. McGraw-Hill, Boston (1998) Van Doormaal, J.P., Raithby, G.D.: Enhancements of the SIMPLE method for predicting incompressible fluid flows. Numer. Heat Transf. 7, 147–163 (1984) Vázquez-Cendón,M.E.:Improvedtreatmentofsourcetermsinupwindschemesfortheshallowwaterequations in channels with irregular geometry. J. Comput. Phys. 148, 497–526 (1999) Whitaker, S.: The Forchheimer equation: a theoretical development. Transp. Porous Med. 25, 27–61 (1996) Yu, S.T., Chang, S.C.: Treatments of stiff source terms in conservation laws by the method of space-time conservation element and solution element. AIAA 97–0435 (1997)

섹션 본문 54문단 · 25,154자

(제목 없음)

1There are many situations in computational fluid dynamics which require the definition of source terms in the Navier-Stokes equations. These source terms not only allow to model the physics of interest but also have a strong impact on the reliability, stability, and convergence of the numerics involved. Therefore, sophisticated numerical approaches exist for the description of such source terms. In this paper, we focus on the source terms present in the Navier-Stokes or Euler equations due to porous media-in particular the Darcy-Forchheimer equation. We introduce a method for the numerical treatment of the source term which is independent of the spatial discretization and based on linearization. In this description, the source term is treated in a fully implicit way whereas the other flow variables can be computed in an implicit or explicit manner. This leads to a more robust description in comparison with a fully explicit approach. The method is well suited to be combined with coarse-grid-CFD on Cartesian grids, which makes it especially favorable for accelerated solution of coupled 1D-3D problems. To demonstrate the applicability and robustness of the proposed method, a proof-of-concept example in 1D, as well as more complex examples in 2D and 3D, is presented.

Introduction

2Source terms are frequently encountered in computational fluid dynamics. They are necessary in situations, where processes affect the flow which are not resolved by the Navier-Stokes equations or the applied numerical grid. Examples of such processes are chemical reactions, turbulence, geometry simplifications in porous media, body force terms like buoyancy, etc. Such source terms not only affect the physics of the flow solution, but also have a large effect on the applied numerical scheme in terms of reliability, stability, and convergence behavior. One reason for an undesirable blow up due to source terms is that in the course of integration, the solution may come into regimes where the source terms exhibit large unrealistic values dominating the actual physics. Therefore, special care has to be taken with regard to source terms in order to guarantee solver robustness.

3Numerous different approaches have been proposed to diminish the disadvantageous effects of source terms. In Yu and Chang (1997), a conservative interpolation of source terms in space-time is presented. A robust solution for conservation laws with source terms by means of a wave-propagation algorithm is discussed in LeVeque (1998). A discretization of the source terms by taking the natural upwind direction into account is considered in Vázquez-Cendón (1999) for the shallow water equations. A technique for balancing flux gradients and source terms is investigated in Hubbard and Garcia-Navarrot (2000). Implicit integration schemes of different order are evaluated in Mulder (1985) for the one-dimensional Euler equation. Other methods concentrate on solution-limited time stepping (Lian et al. 2009(Lian et al. , 2010. In the latter method, the CFL number is reduced locally, to ensure the change in each cell to be below a specified tolerance thereby enhancing code reliability. Usually, as an initial step, the choice of implicit or explicit treatment has to be made (Piscaglia et al. 2009). This can be done based on the Jacobian of the source term or on the basis of individual terms (Merci et al. 2000). Generally speaking, positive source Jacobian eigenvalues are better handled by explicit algorithms, whereas negative eigenvalues improve the convergence of implicit approaches.

4In this paper, we present an approach to efficiently model the influence of porous media resolved by source terms for steady-state CFD calculations. This is a common approach for investigations in which the porous medium cannot be fully resolved by the numerical grid (Hayes et al. 2008;Aslan et al. 2014;Hörmann et al. 2005). A well-known application is, e.g., the air flow in a vehicles underhood compartment or in HVAC ducts in the presence of heat exchangers (Janssen et al. 2015), where only the influence of the heat exchanger on the overall pressure loss of the system is of interest. In this case, the resistance, i.e., the local pressure loss, can be expressed by a suitable source term.

5Our emphasis is on methods, in which the solution is found by quasi-time relaxation to the equilibrium state. Such a method has been proposed by the authors in Langmayr et al. (2013) for a calibrated coarse grid method (CCGM). The main goal of this approach is to reproduce the average results of a CFD simulation on a very fine grid with an under-resolved solution of the Euler or Navier-Stokes equations. This is established via appropriate averaging and source terms. The relaxation is controlled by a global relaxation time step, which is small enough to ensure a suitably small CFL number in the entire computational domain even for an explicit treatment of convection and diffusion terms. Pressure is treated semi-implicitly with SIMPLE (Patankar 1980). Additionally, source terms arising from porous media are treated implicitly, leading to local time steps to ensure stability, i.e., for each cell in the computational grid an individual relaxation time step is applied. Therefore, the paper is organized as follows: First, we present the transport equations for the type of problem of interest in simplified form. Emphasis is put on the modeling of the source terms arising due to the presence of porous media and their influence on pressurevelocity coupling, while the details of discretization for convection and diffusion are not considered. The developed approach leads to a non-constant system matrix for the pressure equation. Therefore, we outline a procedure for the fast recalculation of this matrix in each iteration step in the next section. Finally, we provide a 1D proof-of-concept example, and more sophisticated 2D and 3D examples.

Theoretical Background

6In this section, we review the basic equations describing the problem to be solved, and we present the necessary steps to derive the model equations.

Governing Equations

7Our main goal is to describe subsonic air flow in the presence of porous media by means of coarse grid CFD. A typical example is the air flow through a vehicle's underhood compartment, where the different heat exchangers are modeled as porous media. Such a flow is governed by the Navier-Stokes equations

8where u and p, respectively, denote the independent flow-field variable velocity and pressure. The air density is given by ρ and the viscosity by μ. Additional body forces like the resistance of the porous media are given by the source term S. It should be noted that this source terms account for geometric details which are not resolved by the numerical grid. In this approach, the flow within the porous medium is split into a free-stream part (with fully open geometry) and additional resistance forces (which account for flow area reduction and friction). Therefore, the source must be considered additionally to the convection and diffusion operators in this approach. In vehicle aerodynamics, the heat exchanger resistance is commonly modeled by a suitable Darcy-Forchheimer law (Whitaker 1996;Rohsenow et al. 1998;Dukhan et al. 2014;Janssen et al. 2015). In our case, we follow the formulation as it is used, e.g., in OpenFOAM (Hafsteinsson 2009), which is given by

9Here, the Darcy constant D accounts for viscous losses (and corresponds to the inverse permeability) and the Forchheimer constant F for losses due to turbulent effects in the porous medium. Generally for porous media, the sign of the source term is always opposite to the sign of the local velocity, and the derivative w.r.t. velocity is always negative, which is a crucial condition for a robust solution (Patankar 1981). Thus, an implicit treatment of the porous medium is always preferable (Merci et al. 2000).

Discretized Equations

10When developing our discretized model equations from the Navier-Stokes equations, our main goal is to obtain a steady-state solution for the momentum equation Eq. (2). In our approach, the system relaxes from some initial state toward equilibrium by applying simple forward Euler time stepping

11where n denotes the iteration step for a relaxation parameter Δt (fictitious time step). Furthermore, C i , D i and P i denote the discretized forms of convection, diffusion, and the pressure gradient, respectively. To account for mass conservation, Eq.

12(1), we apply the SIMPLE algorithm (Patankar 1980) to establish the velocity-pressure coupling. Basically, the update procedure for velocity is then given by

13where the superscripts (n) and (n + 1) denote, for which iteration step the discretization operators should be evaluated. Please note that the implicit treatment of the pressure via P i (n+1) is part of the SIMPLE strategy to ensure mass conservation, while the blending factor Ψ makes the source term implicit.

14For the further treatment of the model equations, we make the following assumptions, which are well fulfilled by the Darcy-Forchheimer law Eq. (3):

15-The source term depends explicitly on the velocity, i.e., an analytical dependence of the source term on velocity is provided:

16The source term is sufficiently smooth to be linearized.

17By virtue of these assumptions, the implicit contribution of the source term can be written in linearized form as

18Furthermore, we consider only linear discretizations of the pressure gradient. This allows to split the implicit pressure contribution into a contribution from the previous iteration and a corrective contribution, such that

19By inserting the simplifications Eqs. (6) and (7) into the update rule Eq. (5) and introducing an intermediate velocity u * i , we obtain

20To fix the value of the yet unknown intermediate velocity, we demand that it is equal to the term within curly braces in the above equation, yielding the final update rule

21This update procedure corresponds to that of the SIMPLE algorithm with explicit source terms, except for the position-dependent time step Δt * . The obvious advantage of this approach is that the implicit treatment of the source terms neither increases the complexity nor decreases the speed of the SIMPLE algorithm, as no additional equation solving is required.

Pressure-Velocity Coupling

22To complete the procedure presented in the previous section, a suitable pressure-velocity coupling must be implemented to ensure mass conservation according to the continuity equation Eq. (1). In the discretized form, continuity is given by

23where the operator L denotes the discretized divergence operator. By assuming that the divergence operator L is linear, mass conservation can be written as

24where the r.h.s. can be calculated after the predictor step from the intermediate u * . By introduction of the influence function F with

25and the fact that the combined application of divergence and gradient operator can also be written as a matrix operation, the mass conservation takes the final form

26where A is the pressure influence matrix. Contrary to the explicit case, this matrix is not constant for all iterations steps, but has to be updated in each step because of the derivative

27For a Cartesian grid with a first-order pressure gradient, the pressure influence matrix has a predominantly diagonal structure with six (3D) and four (2D), respectively, occupied side diagonals (c.f. Fig. 1). Additional matrix elements occur locally next to these "geometry" elements due to the implicit treatment of the porous media. Our target is to place an arbitrary number of porous regions within the computational domain. Moreover, we want to keep the approach general, i.e., not only for Darcy-Forchheimer porosities Eq. (3), but for any law which describes the pressure drop in dependence of velocity sufficiently smooth and monotonic. To this end, we describe the system not directly by the influence matrix A, but we claim to know the different influence functions to describe geometry (F G ) and porous 1 a Typical structure of the pressure influence matrix for a 2D case. The red dot indicates a cell, which contains an additional source term due to a porous medium. The original matrix is changed due to source terms in x-direction (blue), y-direction (green) and both of them (red). b Projection of i-th column of influence matrix by suitable test vector media (F P,i ), where the latter can be derived from the pressure loss law. Due to this splitting, the total influence function reads

28To determine the influence matrix automatically for an arbitrary number of influence functions, the following testing technique is applied: First, a series of pressure test vectors is defined by

29where M is the number of unknown pressure values in general the number of cells in the numerical grid and the Kronecker delta δ m is defined by

30Then, these test vectors are subsequently applied to the operator F to give the columns of the influence matrix by virtue of Eq. (13), c.f. Fig. 1, as

31This method does not represent a new way of how velocity and pressure are coupled (this is still according to the SIMPLE algorithm). Many methods for this purpose have been proposed and intensively studied in the literature (Patankar 1980;Ferziger and Perić 2002;Raithby and Schneider 1979;Doormaal and Raithby 1984). The approach considered here is a formal framework, which can be applied to velocity-pressure coupling algorithms which perform a predictor step for the velocity equation and a corrector step for pressure equation to fulfill mass conservation:

321. Predictor step: u (n) → u * with mass imbalance Δm. 2. Corrector step: AΔp = Δm.

33The necessary influence matrix A is not assembled directly, but all the details about the used discretization scheme are contained in the influence operator F .

34In this way, an easy and straight forward determination of the influence matrix is possible for any combination of applied source terms. The price to pay is that the operator F has to be evaluated M times per iteration step.

Accelerated Pressure-Velocity Coupling

35To overcome the drawback mentioned in the last section, the fact that usually finite stencils are applied for the discretized evaluation of divergence L and gradient P can be exploited to reduce the number of required test vectors.

36To this end, the single columns of the pressure influence matrix will be denoted by a j . The "structure" of the influence matrix can be described by the vectors a 0 j with

37where the sign function sgn is defined by

38so that all non-empty matrix elements are marked by a 1, as shown in Fig. 2. As the structure of the matrix is constant during calculation, and only the values change, these vectors can be determined in a preliminary step. Then, it is possible to find sets of columns denoted by K i = κ i,l , such that the corresponding stencils of each set are completely independent, which can be expressed by

39These sets can be chosen such that

40i.e., the sets span the entire range of admissible columns without selecting any column twice. Once these sets have been defined, new pressure test vectors can be constructed by

41Since the stencils in the selected columns κ i,l are completely independent, a unique mapping can be established to reconstruct the influence matrix columns a κ i,l from the testing operation F (Δp * i ). Namely, all rows, for which the matrix structure vector a 0 j , j ∈ K i are nonzero, belong to column j of the influence matrix.

42The number of independent sets K depends on the used stencil for the discretization of the pressure gradient. Therefore, a constant number of test vectors Δp * i are necessary to obtain the pressure influence matrix, regardless of the number of cells in the numerical grid. For our typical application example with coarse grids with 10 3 to 10 4 cells, the number of test vectors is reduced to less than 20. Due to this fact, a tremendous speed-up of the calculation is possible, keeping in mind that the influence matrix must be reconstructed in every iteration step.

43The i-th (green, a 0 i ) and j-th (red, a 0 j ) column don't have any nonzero elements in the same row, i.e., their stencils don't overlap: a 0 i · a 0 j = 0

1D Flow Through a Pipe

44As a proof-of-concept calculation, the laminar flow through a pipe is considered. On both sides of the pipe, a fixed pressure of 0 Pa is prescribed, while zero gradient conditions for velocity are applied. To drive the flow, a constant body force is given in the front region of the pipe (150 ≤ x ≤ 250 mm) in terms of a dimensionless Cp-value. In the rear region (550 ≤ x ≤ 850 mm), a porous medium with Darcy-Forchheimer law is positioned (cf. Fig. 3; Table 1). According to the standard definition of the pressure coefficient (C p ), the pressure increase in the front region of the pipe is given by By rewriting the source term for the Darcy-Forchheimer law, Eq. (3), in terms of the pressure drop over the porous region thickness L = 0.3 m, the equilibrium flow velocity u is given by

45To demonstrate the effect of the implicit source term treatment independently of the CFL condition, the convection term is not considered for the present example, as the flow velocity is constant due to mass conservation, anyway. The iteration history for different relaxation time steps is given in Fig. 4 for the velocity and in Fig. 5 for the residual du/dt. It can be observed that by application of the implicit source terms the correct solution can be obtained over a wide range of admissible relaxation time steps. A fully explicit scheme provides a correct solution only for small time steps, shows oscillatory behavior for medium size time steps, and does not converge at all for large time steps. For certain medium size time steps, a blending with factor Ψ s = 0.5 provides a faster convergence than the fully implicit treatment, but for large time steps the fully implicit treatment is superior.

46Consequently, in terms of robustness of the method, a fully implicit treatment with Ψ s = 1 is the method of choice, which will be applied for the further test cases.

2D Flow Through a Channel

47As a second example, the flow through a 2D channel partially blocked by a porous medium is considered. The problem dimensions as well as boundary conditions are shown in Fig. 6. It should be noted that a particular coarse grid is chosen for this demonstration example to investigate the application of the semi-implicit scheme in the framework of the CCGM (Langmayr et al. 2013). The porosity coefficients in longitudinal x-direction are given by In the present case, the porous medium should represent the strongly anisotropic character encountered, e.g., in micro-channel heat exchangers. It is common practice to model the Darcy-Forchheimer coefficients in the lateral direction, by considering an additional factor f lat compared to the longitudinal direction. Usually, this factor is in the range of 10 2 -10 4 (Hafsteinsson 2009). The first tests are performed for the weak anisotropic case with f lat = 100. The pressure distribution and velocities for this case are shown in Fig. 7, with an average pressure at the inlet ofp in = 89 Pa. Convergence tests for the explicit and implicit treatment of the source terms are conducted by performing calculations for different effective relaxation steps Δt. The basic step size is given by Δt 0 = 10 −4 s and the further steps by a series with Δt i = Δt 0 * 2 i s. The explicit case shows a stable convergence behavior for Δt 0 to Δt 3 . With an implicit treatment of the source terms, step sizes up to Δt 6 are admissible. Detailed convergence curves are shown in Fig. 8, where the residuals for iteration step n are defined as

48The residuals for pressure and longitudinal velocity component show a predominantly exponential decay rate as theoretically expected. For the vertical velocity component, additional kinks are visible due to the source terms during the first iteration phase. If the relaxation time step is small, so that also an explicit treatment is possible, the explicit and implicit scheme show the same convergence behavior in the initial iteration history, which was already observed for the 1D proof-of-concept calculation. However, the explicit scheme is not able to converge to the same precision as the implicit scheme. For example, the pressure residual displays saturation at about R p = 10 −10 (c.f. Fig. 8).

49Considering the exponential decay R = exp (−β i n) with the decay rate β i := βΔt i , the ratio r β,i := β i /β 1 should correspond to r β,i ≡ i in the case of constant system matrices. A comparison between the ideal case and the decay coefficients extracted from the residuals in Fig. 8 is shown in Fig. 9. Although in our case the system matrices are not constant due to the local time step, Eq. (9), a decay behavior as predicted is observed. For the special application example, even a better convergence than in theory is achieved. The execution wall times for the different cases are listed in Table 2. All calculations were performed for 2000 iterations on a laptop with Intel Core i7 CPU at 2.13 GHz. The used program code was in prototype state without any optimizations performed. The time difference between explicit and semi-implicit treatment of the source terms is about 2 %. With the largest possible relaxation step with semi-implicit scheme, a speed-up of about three can be achieved compared to the largest admissible step size with an explicit scheme (not taking into account that convergence is reached much faster and less than 2000 iterations would be required). If only 750 iterations are considered, the gain in speed is more than five.

50Finally, the influence of the factor f lat to model anisotropy is investigated. Figure 10 shows the relative vertical velocity component w rel := w/u in in the topmost and bottommost velocity cell within the porous region. In the ideal case, the vertical velocity component should converge to 0, as the diameter of the micro channels goes to 0. For the considered case, the relative vertical velocity is about 3 % for f lat = 100 and less than 1 % for f lat = 1000 without the need to introduce additional baffles. For this degree of anisotropy, the calculation is stable for effective step sizes as large as Δt 6 .

3D Flow Through a Channel

51The final example treats the flow through a 3D channel partially blocked by a porous medium. The basic geometry is similar to the front region of the Pitz-Daily backward facing step (Pitz and Daily 1983). Additionally, a porous medium is placed in the upper half of the channel, c.f. Fig. 11. The boundary conditions and Darcy-Forchheimer coefficients are the same as for example 2. The factor for lateral forces was 1000 if not noted otherwise. Again, it should be noted that a particular coarse grid is chosen for this demonstration example to investigate the application of the semi-implicit scheme in the framework of the CCGM (Langmayr et al. 2013).

52A comparison of the pressure distribution and velocities in the channel calculated with OpenFOAM and the proposed method is shown in Fig. 12 for different cut planes. Line plots Fig. 13. There is a good match of the results between the inlet and the entry plane of the porous medium. In the first cell row of the porous medium, OpenFOAM predicts higher pressures than our method and in the last cell row lower pressures. In the region behind the porous medium, the results obtained OpenFOAM show a small pressure increase, which seems to be unphysical at this position. The same is not the case for the proposed method.

Conclusions

53In this paper, we presented a method for a semi-implicit modeling of porous media in the steady-state Navier-Stokes equations. This method corresponds to applying a suitable local time step in porous regions in the framework of time-explicit relaxation methods. Therefore, only the pressure equation has to be solved, which allows for a fast calculation. The applicability of this method was tested by three different cases: In the first case, the flow was driven by a body force and in the other ones by external boundary conditions. Since the semi-implicit treatment allows for a much larger relaxation time step, about ten times less iterations are necessary compared to the explicit treatment, to achieve the same residuals. This corresponds to a speedup of five in terms of wall time. Furthermore, an automatic procedure to identify the source terms was presented and applied to the test cases. This procedure allows to "test" the influence of the porous medium on the flow structure. The advantage is that in this way also porous media can be considered, for which no analytic characteristic curve is available-provided that the characteristics is sufficiently smooth and monotonic. This method to determine the pressure influence matrix runs with a constant number of test operations independently on the used grid size. Therefore, it has hardly any influence on the calculation time for usual calculation setups, where the free-stream volume is large compared to the volume occupied by the porous medium.

54Due to the observed properties, the proposed semi-implicit approach is a well-suited method for accelerating calibrated coarse grid methods (CCGM). As a consequence, the semi-implicit treatment of source terms arising in the presence of porous media is a promising tool for accelerated 1D-3D coupling in vehicle underhood flow calculation.

참고문헌 25건

  1. Improving 1D simulations of thermal management systems with embedded 3D CFD Proceedings · Multidisciplinary Digital Publishing Institute · 2015 10.1007/978-3-658-08844-6_105
  2. Experimental flow in various porous media and reconciliation of Forchheimer and Ergun relations Experimental Thermal and Fluid Science · Elsevier BV · 2014 10.1016/j.expthermflusci.2014.06.011
  3. Balancing Source Terms and Flux Gradients in High-Resolution Godunov Methods: The Quasi-Steady Wave-Propagation Algorithm Journal of Computational Physics · Elsevier BV · 1998 10.1006/jcph.1998.6058
  4. NUMERICAL SOLUTION OF PROBLEMS IN INCOMPRESSIBLE FLUID FLOW: TREATMENT OF THE VELOCITY-PRESSURE COUPLING Numerical Heat Transfer · Taylor & Francis · 1979 10.1080/10407787908913423
  5. Solution-limited time stepping to enhance reliability in CFD applications Journal of Computational Physics · Elsevier BV · 2009 10.1016/j.jcp.2009.03.040
  6. A CALCULATION PROCEDURE FOR TWO-DIMENSIONAL ELLIPTIC SITUATIONS Numerical Heat Transfer · Taylor & Francis · 1981 10.1080/01495728108961801
  7. Computational Treatment of Source Terms in Two-Equation Turbulence Models AIAA Journal · American Institute of Aeronautics and Astronautics · 2000 10.2514/2.870
  8. Calibrated Coarse Grid-Finite Volume Method for the Fast Calculation of the Underhood Flow of a Vehicle Journal of Fluids Engineering · ASM International · 2013 10.1115/1.4024749
  9. Flux Difference Splitting and the Balancing of Source Terms and Flux Gradients Journal of Computational Physics · Elsevier BV · 2000 10.1006/jcph.2000.6603
  10. The thermal modeling of a matrix heat exchanger using a porous medium and the thermal non-equilibrium model International Journal of Thermal Sciences · Elsevier BV · 2008 10.1016/j.ijthermalsci.2007.11.005
  11. <i>Computational Methods for Fluid Dynamics</i> Physics Today · AIP Publishing · 1997 10.1063/1.881751
  12. Experiments with implicit upwind methods for the Euler equations Journal of Computational Physics · Elsevier BV · 1985 10.1016/0021-9991(85)90144-5
  13. ENHANCEMENTS OF THE SIMPLE METHOD FOR PREDICTING INCOMPRESSIBLE FLUID FLOWS Numerical Heat Transfer · Taylor & Francis · 1984 10.1080/01495728408961817
  14. Improved Treatment of Source Terms in Upwind Schemes for the Shallow Water Equations in Channels with Irregular Geometry Journal of Computational Physics · Elsevier BV · 1999 10.1006/jcph.1998.6127
  15. The Forchheimer equation: A theoretical development Transport in Porous Media · Springer Science+Business Media · 1996 10.1007/bf00141261
  16. Impact of source terms on reliability of CFD algorithms Computers & Fluids · Elsevier BV · 2010 10.1016/j.compfluid.2010.06.021
  17. Combustion in a turbulent mixing layer formed at a rearward-facing step AIAA Journal · American Institute of Aeronautics and Astronautics · 1983 10.2514/3.8290
  18. Numerical Heat Transfer and Fluid Flow 2018 10.1201/9781482234213
  19. Numerical and Experimental Investigation of Flow and Temperature Fields around Automotive Cooling Systems SAE technical papers on CD-ROM/SAE technical paper series · 2005 10.4271/2005-01-2006
  20. Development of a Multi-Dimensional Parallel Solver for Full-Scale DPF Modeling in OpenFOAM<sup>®</sup> SAE technical papers on CD-ROM/SAE technical paper series · 2009 10.4271/2009-01-1965
  21. Treatments of stiff source terms in conservation laws by the method of space-time conservation element/solution element 38th Aerospace Sciences Meeting and Exhibit · 1997 10.2514/6.1997-435
  22. Numerical Heat Transfer and Fluid Flow Nuclear Science and Engineering · Taylor & Francis · 1981 10.13182/nse81-a20112
  23. Handbook of heat transfer 1997
  24. Computational methods for fluid dynamics. 3. rev. ed. 2002
  25. Computational Methods for Fluid Dynamics 2002 10.1007/978-3-642-56026-2