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

QBMMlib: A library of quadrature-based moment methods

간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (7) MEA(막전극접합체)(18) VENT(방수통기 부품)

기본 정보

저자
  1. Spencer H. Bryngelson
  2. Tim Colonius
  3. Rodney O. Fox
DOI
10.1016/j.softx.2020.100615
저널
SoftwareX
발행년도
2020
발행기관
Elsevier BV
피인용수
9
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.softx.2020.100615
토픽
Electrostatics and Colloid Interactions
OpenAlex ID
W3048926741

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(7) MEA(막전극접합체), (18) VENT(방수통기 부품)
R&D 측면
분석·모델링
확신도
0.60
근거 용어
population balance equation, bubble dynamics, fluid dynamics, dispersion, quadrature-based moment methods
판단 근거
이 논문은 입자나 기포의 분포를 모델링하는 수치 해석 라이브러리(QBMMlib)에 관한 연구입니다. 직접적인 소재 연구는 아니나, 수소연료전지(PEMFC)의 중공사막 내 기포/액적 거동이나 다공성 막(VENT)을 통과하는 유체 흐름을 시뮬레이션하는 물리 모델링 기법에 응용될 수 있습니다.
R&D 활용 포인트
수소연료전지용 중공사막(5) 내의 수분 제어 및 액적 거동 시뮬레이션, 또는 방수통기 부품(18)의 다공성 구조 내 유체 흐름 분석을 위한 수치 해석 모델링 도구로 활용 가능합니다.
평가 입력
본문 32,015자

초록

초록이 없습니다.

본문 32,015자

본문 펼치기
## QBMMlib: A library of quadrature-based moment methods Spencer H. Bryngelson <sup>a</sup>, Tim Colonius <sup>a</sup>, Rodney O. Fox <sup>b,c</sup> _aDivision_ _of_ _Engineering_ _and_ _Applied_ _Science,_ _California_ _Institute_ _of_ _Technology,_ _Pasadena,_ _CA_ _91125,_ _USA_ _bDepartment_ _of_ _Chemical_ _and_ _Biological_ _Engineering,_ _Iowa_ _State_ _University,_ _Ames,_ _IA_ _50011,_ _USA_ _cCenter_ _for_ _Multiphase_ _Flow_ _Research_ _and_ _Education,_ _Iowa_ _State_ _University,_ _Ames,_ _IA_ _50011,_ _USA_ Abstract QBMMlib is an open source Mathematica package of quadrature-based moment methods and their algorithms. Such methods are commonly used to solve fully-coupled disperse flow and combustion problems, though formulating and closing the corresponding governing equations can be complex. QBMMlib aims to make analyzing these techniques simple and more accessible. Its routines use symbolic manipulation to formulate the moment transport equations for a population balance equation and a prescribed dynamical system. However, the resulting moment transport equations are unclosed. QBMMlib trades the moments for a set of quadrature points and weights via an inversion algorithm, of which several are available. Quadratures then closes the moment transport equations. Embedded code snippets show how to use QBMMlib, with the algorithm initialization and solution spanning just 13 total lines of code. Examples are shown and analyzed for linear harmonic oscillator and bubble dynamics problems. _Keywords:_ population balance equation, quadrature based moment methods, method of moments Version v1.0 Link to code [github.com/sbryngelson/QBMMlib](https://github.com/sbryngelson/QBMMlib) License GPL 3 Versioning git Language Wolfram Language / Mathematica Requirements Mathematica v8.0+ <u>Support</u> <u>email</u> <u>[spencer@caltech.edu](mailto:spencer@caltech.edu)</u> Table 1: Code metadata 1. Motivation and significance QBMMlib is an open-source library and solves population balance equations (PBEs) using quadrature-based moment methods (QBMMs). PBEs model the evolution of a number density function (NDF) [1–5]. Such models are useful, for example, in fluid dynamics simulations involving dispersions, wherein the NDF evolution can represent growth, shrinkage, coalescence, breakup, and relative motion [6–14], Example engineering applications of this are combustion (e.g. soot dynamics in flames) [15–18] and aerosols (e.g. sprays) [19–21]. PBEs can be solved by the method of classes [22, 23] or the method of moments (MOM) [24, 25]. QBMMlib employs the MOM because it can more naturally handle problems with multiple internal coordinates (e.g. velocities). Figure 1 shows a typical QBMM-based solution procedure. The MOM represents the NDF via a set of statistical moments and the transport equations for them follow from _Email_ _address:_ `spencer@caltech.edu` (Spencer H. Bryngelson) the PBE. Inverting the moments to a set of weights and abscissas provides a basis for approximating the unclosed transport equations via quadrature (QMOM) [26]. Variations on QMOM are plentiful. One can change the inversion procedure: Wheeler’s algorithm can solve single internal coordinate problems [27] and algorithms exist for enforcing distribution shape (extended-QMOM (EQMOM) [28], anisotropic-Gaussian [29, 30]) and hy perbolicity (hyperbolic-QMOM (HyQMOM) [31]). The quadrature weights and abscissas can also evolve directly (direct-QMOM (DQMOM) [32–34]). One complication is that multiple internal coordinate problems do not admit a unique choice in moment set [35]. However, conditioning one direction on the others provides a particularly robust moment inversion technique (conditional-QMOM (CQMOM) [36] and -HyQMOM (CHyQMOM) [37]). For these reasons, QBMMlib uses Wheeler’s algorithm (or its adaptive counterpart) or HyQMOM for one-dimensional moment inversion and CQMOM and CHyQMOM handle multi-dimensional problems. There is one other actively developed open source QBMM solver: OpenQBMM [38, 39]. It is a library for OpenFOAM [40] and implements CQMOM and (3-node) CHyQMOM. MFiX [32, 41] and Fluidity [42] use DQMOM, though modern conditional methods (e.g. CQMOM and CHyQMOM) generally outperform it [7]. Note that these are fully-coupled flow solvers. QBMMlib instead decouples these problems and solves the moment transport equations directly for an input dynamical system. This makes it preferable for prototyping and testing on novel physical problems. In pursuit of this, QBMMlib places emphasis _Preprint_ _submitted_ _to_ _SoftwareX_ _August_ _13,_ _2020_ Coupled flow Dispersion ( <sup>�</sup> _ξ_ _,_ _w_ �)1 ( <sup>�</sup> _ξ_ _,_ _w_ �)2 ( <sup>�</sup> _ξ_ _,_ _w_ �)4 _f_ ( _ξ_ ) _ξ_ 1 _ξ_ 2 Moment-based representation ( `MomentIndex` ) ( `MomentInvert` ) Inversion Projection ( `Project` ) ( <sup>�</sup> _ξ_ _,_ _w_ �)3 _ξ_ 1 _ξ_ 2 Nodes and weights ( `OutAbscissa` ) Figure 1: Schematic illustration of the QMOM solution method for flowing dispersions. QBMMlib routines are in parentheses. on expressive programming, simple interfaces, and symbolic computation where possible. As a result, it can solve PBE-based problems with just a few lines of code. Section 2 describes QBMMlib’s implementation of the PBE and QBMMs. Section 3 verifies its methods and demonstrates its capabilities for three example problems. Section 4 discusses the utility and novelty of QBMMlib, which concludes the paper. 2. Software description QBMMlib is a collection of Mathematica functions for solving PBEs via QBMMs. Table 2 describes the publicfacing routines. These routines are also documented and accessible in Mathematica via In[1]:= `Get["QBMMlib"];` ``` ?QBMMlib`* ``` Figure 1 illustrates their places in the model and its solution procedure. `TransportTerms` computes the moment transport equations for the moment set of `MomentIndex` . `MomentInvert` inverts these moments to weights and abscissas that close the moment set via quadrature ( `ComputeRHS` ) and project it onto a realizable moment space ( `Project` ). The next sections describe the details of these routines. _2.1._ _Population_ _balance_ _equations_ ( `TransportTerms` ) QBMMlib can solve one- and two-dimensional populations balance equations. A third direction can be added if its NDF is stationary. The two-dimensional case is detailed here without loss of generality. For illustration, consider _x_ ¨ = _g_ ( _x,_ _x_ ˙ ) _,_ (1) where the dots indicate partial time derivatives, _g_ is a function, and _ξ_ = _{x,_ _x_ ˙ _}_ are the internal coordinates. The number density function _f_ describes the state and statistics of this system in the _ξ_ -space. A population balance equation (PBE) governs _f_ as _<u>∂f∂t</u>_ <sup>+</sup> _∂x_ <sup>_<u>∂</u>_</sup> (2) _∂_ <sup>_<u>∂</u>_</sup> _x_ ˙ <sup>(</sup> <sup>_f_</sup> <sup>¨</sup> <sup>_x_</sup> <sup>) = 0</sup> <sup>_,_</sup> _<u>∂f</u>_ _∂x_ <sup>_<u>∂</u>_</sup> <sup>(</sup> <sup>_f_</sup> <sup>˙</sup> <sup>_x_</sup> <sup>) +</sup> _∂_ <sup>_<u>∂</u>_</sup> where the zero right-hand-side indicates conservation of _f_, though sinks and sources can model aggregation and breakup [35]. Quadrature-based methods to solving (2) represent _f_ by a set of raw moments _⃗_ _M_ as _f_ ( _M_ _⃗_ ). The moment indices _⃗_ _k_ = _{l, m}_ = _{_ (0 _,_ 0) _, . . . }_ associated the carried moment set _⃗_ _M_ = _{Ml,m}_ depend upon the moment inversion procedure and the number of quadrature points (details follow in section 2.2). The raw moments are _N_ _ξ_ _j_ =1 _ξj_ <sup>_pj_</sup> <sup>d</sup> <sup>_ξj_</sup> (3) _Mp_ 1 _,...,pN_ _ξ_ _≡_ Ω _f_ ( _ξ_ ) where _pj_ (for _j_ = 1 _, . . ., N_ _ξ_ ) are the moment indices, _N_ _ξ_ is the number of internal coordinates ( _N_ _ξ_ = 2 in (1)), and Ω 2 `TransportTerms` Input: Governing equation ( `eqn`, e.g. (1)) and its variables Output: Coefficients ( `coefs` ) and exponents ( `exps` ) of moment transport equations `MomentIndex` Input: Number of nodes ( `n`, _N_ - _ξ_ <sup>),</sup> <sup>inversion</sup> <sup>method</sup> <sup>(</sup> <sup>`method`</sup> <sup>)</sup> Output: Moment set indices ( `momidx`, _⃗_ _k_ ) Options: Number of permutations (default: `1` ) `MomentInvert` Input: Moment set ( `moments`, _⃗_ _M_ ) and its indices Output: Optimal set of abscissas ( `xi`, _ξ_ <sup>�</sup> ) and weights ( `w`, _w_ �) Options: Method, Permutation (default: `12` ( _ξ_ 1 _|ξ_ 2), _N_ _ξ_ _>_ 1 only) `ComputeRHS` Input: Abscissas, weights, moment set indices, transport coefficients Output: Right-hand-side of moment transport equation ( `rhs`, _⃗_ _F_ ) Options: Third coordinate direction abscissas ( _N_ _ξ_ = 2 only) `Project` Input: Abscissas, weights, moment set indices Output: Projected moment set ( `momentsP`, _⃗_ _M_ ) `OutAbscissa` Input: Abscissas <u>Output:</u> <u>Threaded</u> <u>abscissas</u> Table 2: Example public-facing routines. Parenthetical variables correspond to the code snippets and notation of section 2. is the domain of _f_ . These moments evolve as _<u>∂⃗</u>_ _<u>M</u>_ = _⃗_ _F_ ( _M_ _⃗_ ) _,_ (4) _∂t_ where, for (1), _Fl,m_ = _lMl−_ 1 _,m_ +1 + _m_ Ω _x x_ ¨ <sup>_l_</sup> _x_ ˙ <sup>_m−_</sup> <sup>1</sup> _f_ d _ξ_ _._ (5) This forcing follows from the PBE via integration-by-parts [43]. For the prescribed dynamics _x_ ¨ (as in (1)), the integral term of (5) is equivalent to a sum of moments. For example, if _x_ ¨ = _x_ + _x,_ ˙ _2.2._ _Moment_ _inversion_ _and_ _quadrature_ _weights_ ( `MomentIndex` _,_ `MomentInvert` ) `MomentInvert` inverts the set of raw moments _⃗_ _M_ into a set of quadrature weights _w_ - and abscissas (nodes) _ξ_ <sup>�</sup> : _M_ _→{_ _w_ - _,_ _ξ_ <sup>�</sup> _}_ (7) Many algorithms can perform this procedure, each with its own relative merits, as discussed in section 1. Common approaches for one-dimensional moment sets ( _N_ _ξ_ = 1) are QMOM [24, 26] and hyperbolic QMOM (HyQMOM) [31]. For higher-dimensional moment sets ( _N_ _ξ_ _>_ 1) conditioned moment methods are cheaper and more stable than performing QMOM on each coordinate direction individually [36]. Such conditioned methods perform 1D moment inversion in one coordinate direction, then condition the next directions on the previous ones [36]. Examples of these are conditional-QMOM (CQMOM) and conditional-HyQMOM (CHyQMOM) [31, 37]. The order that this conditioning is done is called the permutation. For 2D problems their are two permutations, _ξ_ 1 _|ξ_ 2 (coordinate direction _ξ_ 2 conditioned on _ξ_ 1) and the reverse, _ξ_ 2 _|ξ_ 1. The indices that makeup a so-called optimal set _⃗_ _M_ depend on the moment inversion method and the number of quadrature nodes used in each internal coordinate direction _Nξ_ �. Here, “optimal” constrains the number of moments (and their order) required to yield a full-rank and square coefficient matrix [44]. Optimal moment sets are more stable and smaller (and so cheaper) than nonoptimal ones. For _N_ _ξ_ = 1 single-coordinate problems the optimal moment indices are _⃗_ _M_ = _{M_ 0 _, M_ 1 _, . . ., M_ 2 _N_ - _ξ_ <sup>_−_</sup> <sup>1</sup> <sup>_}_</sup> for QMOM and _⃗_ _M_ = _{M_ 0 _, M_ 1 _, . . ., M_ 2 _N_ - _ξ_ <sup>_−_</sup> <sup>2</sup> <sup>_}_</sup> <sup>for</sup> <sup>HyQ-</sup> MOM. Table 3 shows the optimal moment sets QBMMlib uses for _N_ _ξ_ = 2 two-dimensional problems [31, 36]. `MomentIndex` computes these moment indices given the inversion algorithm ( `method` ) and number of quadrature points ( `n` ) in each internal coordinate direction ( _Nξ_ �). The then Ω _xx_ ¨ <sup>_l_</sup> _x_ ˙ <sup>_m−_</sup> <sup>1</sup> _f_ d _ξ_ = _Ml_ +1 _,m−_ 1 + _Ml,m,_ so _Fl,m_ = _lMl−_ 1 _,m_ +1 + _m_ ( _Ml_ +1 _,m−_ 1 + _Ml,m_ ) _._ (6) The routine `TransportTerms` manipulates the PBE (as in 6) to determine the coefficients and moment indices that constitute _F_ . The code snippet below demonstrates this functionality for the dynamics of 1. In[2]:= `eqn` `=` `x[t]+x'[t]` `==` `x''[t];` ``` {coefs,exps} = TransportTerms[eqn,x[t],t] ``` Out[2]= _{{_ `c[2],c[2],c[1]` _}_ `,` _{{_ `1+c[1],-1+c[2]` _}_ `,` _{_ `c[1],c[2]` _}_ `,` _{_ `-1+c[1],1+c[2]` _}}}_ Here, the unassigned coefficients `c[1]` and `c[2]` correspond to the moment indices _l_ and _m_ of 5. 3 Table 3: Example optimal _N_ _ξ_ = 2 moment sets for permutations as labeled. (a) CQMOM [—– _ξ_ 1 _|ξ_ 2 - - _ξ_ 2 _|ξ_ 1] (b) CHyQMOM _M_ 0 _,_ 0 _M_ 0 _,_ 1 _M_ <u>0</u> _<u>,</u>_ <u>2</u> _M_ <u>0</u> _<u>,</u>_ <u>3</u> _M_ 1 _,_ 0 _M_ <u>1</u> _<u>,</u>_ <u>1</u> _M_ <u>1</u> _<u>,</u>_ <u>2</u> _M_ <u>1</u> _<u>,</u>_ <u>3</u> _M_ 2 _,_ 0 _M_ 2 _,_ 1 _M_ <u>3</u> _<u>,</u>_ <u>0</u> _M_ <u>3</u> _<u>,</u>_ <u>1</u> _M_ 0 _,_ 0 _M_ 0 _,_ 1 _M_ 0 _,_ 2 _M_ <u>0</u> _<u>,</u>_ <u>3</u> _M_ <u>0</u> _<u>,</u>_ <u>4</u> _M_ <u>0</u> _<u>,</u>_ <u>5</u> _M_ 1 _,_ 0 _M_ 1 _,_ 1 _M_ 1 _,_ 2 _M_ 1 _,_ 3 _M_ 1 _,_ 4 _M_ 1 _,_ 5 _M_ 2 _,_ 0 _M_ <u>2</u> _<u>,</u>_ <u>1</u> _M_ <u>2</u> _<u>,</u>_ <u>2</u> _M_ <u>2</u> _<u>,</u>_ <u>3</u> _M_ <u>2</u> _<u>,</u>_ <u>4</u> _M_ <u>2</u> _<u>,</u>_ <u>5</u> _M_ 3 _,_ 0 _M_ 3 _,_ 1 _M_ 3 _,_ 2 _M_ 4 _,_ 0 _M_ 4 _,_ 1 _M_ 4 _,_ 2 _M_ <u>5</u> _<u>,</u>_ <u>0</u> _M_ <u>5</u> _<u>,</u>_ <u>1</u> _M_ <u>5</u> _<u>,</u>_ <u>2</u> code snippet below computes the moment set corresponding to _Nξ_ �1 = _Nξ_ �2 = 2 via CHyQMOM. In[3]:= `method` `=` `"CHYQMOM";` ``` n = {2,2}; momidx = MomentIndex[n,method] ``` Out[3]= _{{_ `0,0` _}_ `,` _{_ `1,0` _}_ `,` _{_ `0,1` _}_ `,` _{_ `2,0` _}_ `,` _{_ `1,1` _}_ `,` _{_ `0,2` _}}_ `MomentInvert` then inverts the moment set _⃗_ _M_ to a set of weights and abscissas (as in (7)). In the following Mathematica code snippet, the moment set _⃗_ _M_ ( `moments` ) is initialized via a two-dimensional Gaussian distribution ( `BinormalDistribution` ), though in principle _⃗_ _M_ can be any realizable moment set. The `method` inversion algorithm then converts it to quadrature weights ( `w` ) and abscissas ( `xi` ). In[4]:= `mu1` `=` `mu2` `=` `1;` `sig1` `=` `sig2` `=` `0.3;` ``` rho = 0.5; f = BinormalDistribution[{mu1,mu2}, {sig1,sig2},rho]; GenMoment[ i_ ] := Moment[f, i ]; moments = Map[GenMoment,momidx]; {w,xi} = MomentInvert[moments,momidx, Method->method]; ``` Figure 2 shows the abscissas for different moment inversion algorithms. Their locations in the internal coordinate space _ξ_ are different, though their weights are such that each quadrature reproduces the exact (up to) second-order moments. We verify that QBMMlib has this property to the carried precision. We discuss the QBMMlib quadrature routines used for this next. _2.3._ _Moment_ _system_ _closure_ _via_ _quadrature_ ( `ComputeRHS` ) Quadrature approximates the raw moments defined in (3) and required by (5) as _M_ 0 _,_ 0 _M_ 0 _,_ 1 _M_ 0 _,_ 2 _M_ 1 _,_ 0 _M_ 1 _,_ 1 _M_ 2 _,_ 0 _M_ 0 _,_ 0 _M_ 0 _,_ 1 _M_ 0 _,_ 2 _M_ 0 _,_ 3 _M_ 0 _,_ 4 _M_ 1 _,_ 0 _M_ 1 _,_ 1 _M_ 2 _,_ 0 _M_ 3 _,_ 0 _M_ 4 _,_ 0 0 1 2 2 1 0 0 1 2 _ξ_ 1 _f_ ( _ξ_ 1 _, ξ_ 2) <u>2</u> _<u>×</u>_ <u>2</u> <u>Abscissas</u> _<u>ξ</u>_ <sup>ˆ</sup> <u>CHyQMOM</u> <u>(</u> _ξ_ 1 _|ξ_ 2) CQMOM ( _ξ_ 1 _|ξ_ 2) CQMOM ( _ξ_ 2 _|ξ_ 1) _N_ _ξ_ _j_ =1 _ξj_ _N_ _i_ =1 _w_ - _j,i_ _ξ_ <sup>�</sup> _j,i_ <sup>_pj_</sup> <sup>_→_</sup> <sup>_Mp_</sup> 1 <sup>_,...,p_</sup> _N_ _ξ_ (8) Figure 2: Abscissas _ξ_ <sup>�</sup> corresponding to the number density function example _f_ of section 2.2. Different moment inversion algorithms and permutations are shown for _N_ - _ξ_ 1 <sup>=</sup> <sup>_N_</sup> - _ξ_ 2 <sup>= 2</sup> <sup>as</sup> <sup>labeled.</sup> where _ξ_ <sup>�</sup> _j,i_ (for _i_ = 1 _, . . ., Nξ_ - _j_ ) are the abscissa for internal coordinate direction _ξj_ (for _j_ = 1 _, . . ., N_ _ξ_ ). These quadrature approximations build _⃗_ _F_ of (5) ( `F` ) via the QBMM function `ComputeRHS` . `ComputeRHS` approximates (via quadrature) and sums the required moments ( `exps` ) and their coefficients ( `coefs` ) for each moment index ( `momidx` ). The code snippet below shows this implementation in QBMMlib. In[5]:= `F` `=` `ComputeRHS[w,xi,momidx,` ``` {coefs,exps}]; ``` _2.4._ _Realizable_ _time_ _integration_ ( `Project` ) Stable and realizable time integration of (4) requires recasting the moment set _⃗_ _M_ from its weights and abscissas [13]. QBMMlib function `Project` performs this projection. A time integrator (e.g. Euler’s method) then computes the next iteration of the moment set ( `moments` ). The code snippet below shows an example QBMMlib projection and Euler time step (with time step size `dt` ). In[6]:= `momentsP` `=` `Project[w,xi,momidx];` ``` moments = momentsP + dt F; ``` 4 _M_ 10 _M_ 01 MC _∝_ _N_ <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2</sup> 1 0 1 0 1 0 1 0 1 0 Monte Carlo QBMMlib CHyQMOM CQMOM 0 2 4 6 8 _t_ 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> Figure 3: Evolution of the first- and second-order moments in time _t_ for the linear harmonic oscillator example problem. Monte Carlo simulation serves as the truth and the symbols show QBMMlib solutions using _N_ - _ξ_ 1 <sup>=</sup> <sup>_N_</sup> - _ξ_ 2 <sup>= 2</sup> <sup>CHyQMOM</sup> <sup>and</sup> <sup>CQMOM.</sup> QBMMlib also includes an adaptive strong-stability-preserving (SSP) third-order-accurate Runge–Kutta (RK) time inte grator, `RK23` [45]. The difference between the SSP–RK3 solution an embedded second-order-accurate SSP-RK solution provides a first-order approximation of the time step error. The time step size adjustment is then proportional to this error. The illustrative examples of the next section use this adaptive time stepping procedure. 3. Illustrative examples _3.1._ _Linear_ _harmonic_ _oscillator_ The example case of section 2, including 6, is a linear harmonic oscillator. This moment system is linear and thus closed, so it can also verify the solution methods of QBMMlib via comparison to Monte Carlo simulations. Figure 3 shows the evolution of CQMOM and CHyQMOM moment sets and compares them to Monte Carlo surrogate truth solutions. The behavior of the first-order moments ( _M_ 10 and _M_ 01) match the positions and velocities expected of a linear oscillator. Further, the QBMMlib solutions match the moments of the Monte Carlo simulations to plotting accuracy. The _L_ 2 norm _∥·∥_ 2 of the error quantifies this matching as 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> _N_ MC Figure 4: Nominal differences _∥ε_ MC _∥_ 2 between the first-order moments of Monte Carlo simulation ensembles (of size _N_ MC) and the vergenceapproximationspower lawof CHyQMOM _∥ε_ MC _∥_ 2 _∝_ 1 _/_ (vi <sup>_√_</sup> <u>a</u> _N_ <u>QBMC</u> MMlib).is also shown.The expected con where superscripts (MC) and (QMOM) are correspond to Monte Carlo and QBMMlib simulations, respectively. Figure 4 shows _∥ε_ MC _∥_ 2 for varying Monte Carlo ensemble size _N_ MC and QBMMlib method CHyQMOM, though the Monte Carlo moment errors dominate the QBMM ones and so CQMOM has the same results. Indeed, the error converges at the expected rate. _3.2._ _Bubble_ _cavitation_ The dynamics of a cavitating gas bubble dispersion serves as a two-internal-coordinate nonlinear example problem. The Rayleigh–Plesset equation models the bubble dynamics [46]: where _R_ is the bubble radius, Re is the Reynolds number (dimensionless ratio of inertial to viscous effects), and _Cp_ is the dimensionless pressure ratio between the suspending fluid and bubbles. Thus, _R_ and _R_ <sup>˙</sup> are the two internal coordinates ( _ξ_ ). For our purposes it suffices to ignore surface tension effects (following (10)) and use _Cp_ = 1 _/_ 0 _._ 3 to represent a relatively large pressure ratio. This formulation is non-dimensionalized by the (monodisperse) equilibrium bubble radius and suspending fluid density and pressure. The initial NDF is a log-normal distribution in the _R_ -coordinate (shape parameters _µR_ = 1 _, σR_ = 0 _._ 2) and a normal distribution in the _R_ <sup>˙</sup> coordinate ( _µR_ ˙ = 0, _σR_ ˙ = 0 _._ 1). The NDF is initially uncorrelated. Figure 5 shows the moment dynamics for two bubble dispersions problems: (a) viscous Re = 10 and (b) inviscid Re _→∞_ . Here, Re = 10 is the Reynolds number that corresponds to 1 µm bubbles in water and Re _→∞_ represents ignoring viscous effects. Invoking Re _→∞_ is not appropriate for most cavitation problems of physical relevance, though it provides a useful reference. In both cases the mean bubble radius _M_ 10 oscillates and damps. This damping is more significant in (a) than (b) due to viscous _RR_ <sup>¨</sup> + <sup><u>3</u></sup> Re <sup><u>3</u></sup> _R_ ˙ <sup>2</sup> + <sup><u>4</u></sup> 2 Re _<u>R</u>_ ˙ _R_ <sup>=</sup> _R_ <sup><u>13</u></sup> <sup>_−_</sup> <sup>_Cp,_</sup> (10) _<u>ij</u>_ <sup>(QBMM)</sup> ( _t_ ) (9) _ε_ MC( _t_ ) _≡_ _Mij_ <sup>(MC)</sup> _<u>ij</u>_ <sup>(MC)</sup> ( _t_ ) _−_ _Mij_ <sup>(QBMM)</sup> max _t Mij_ <sup>(QBMM)</sup> ( _t_ ) 5 1 0 _._ 5 2 0 Monte Carlo | QBMMlib: CHyQMOM CQMOM 1 0 _._ 5 2 0 _−_ 2 1 0 _._ 5 0 2 1 0 1 0 _−_ 1 0 5 10 _t_ (a) Re = 10 _−_ 2 1 0 _._ 5 0 6 4 2 0 1 0 _−_ 1 0 5 10 _t_ (b) Re _→∞_ Figure 5: Evolution of the first- and second-order moments for (a) viscous and (b) inviscid bubble dynamics as labeled. Exact moments are approximated by a (sufficiently well converged) _N_ MC = 5000 Monte Carlo simulation. The symbols show QBMMlib solutions for _N_ - _ξ_ 1 <sup>=</sup> <sup>_N_</sup> - _ξ_ 2 <sup>= 2</sup> CHyQMOM and CQMOM, as labeled. effects, as expected. In the Re = 10 case, this is sufficient for the QBMMlib-predicted moments to match the Monte Carlo results. However, for Re _→∞_, the evolving moment set is unable to faithfully represent the bubble oscillations, particularly at long times. Indeed, a mismatch between the Monte Carlo and QBMMlib results is clear for _M_ 02 and _M_ 11. These differences are qualitatively similar for both the CQMOM and CHyQMOM algorithms. This is because closing the moment system requires extrapolating out of the represented moment space, which is of similar fidelity for both algorithms. 4. Impact and conclusions This paper introduced QBMMlib, a library for solving PBEs using quadrature-based moment methods. It is a Wolfram Language package, which is useful for automating the procedure of using QBMMs for simulating phenomena like bubble and particle dynamics. This includes constructing a moment set for a given QBMM, determining the righthand-side functions corresponding to a governing equation automatically, and inverting the moment set for quadrature points to close the system. These routines leverage Mathematica’s symbolic algebra features and include modern QMOM and conditional-QMOM methods. Having these features available in a unified framework is helpful, particularly when it is unclear what QBMM will be appropriate (or stable) for the model dynamics. Our searches suggest that QBMMlib is the only library, open source or otherwise, that provides such capabilities. Given this, QBMMlib should help researchers prototyping QBMMs for their physical problems (or developing new QBMMs entirely). Indeed, the authors used QBMMlib to guide the implementation of CHyQMOM for phase-averaged bubble cavitation into MFC, the first flow solver with this capability [47, 48]. Conflict of Interest We wish to confirm that there are no known conflicts of interest associated with this publication and there has been no significant financial support for this work that could have influenced its outcome. Acknowledgements The authors appreciate the insights of Professor Alberto Passalacqua when developing this library. The US Office of Naval Research supported this work under grant numbers N0014-17-1-2676 and N0014-18-1-2625. References [1] D. Ramkrishna, Population Balances, Academic Press, New York, USA, 2000. [2] S. Chapman, T. G. Cowling, D. Burnett, The mathematical theory of non-uniform gases: An account of the kinetic theory of viscosity, thermal conduction and diffusion in gases, Cambridge University Press, 1990. [3] M. Vanni, Approximate population balance equations for aggre gation breakage processes, J. Colloid Interface Sci. 221 (2000) 143–160. 6 [4] M. Smoluchowski, Uber <sup>¨</sup> brownsche molekularbewegung unter einwirkung ¨außerer kr¨afte und deren zusammenhang mit der verallgemeinerten diffusionsgleichung, Annalen der Physik 353 (1916) 1103–1112. [5] J. Solsvik, H. A. Jakobsen, The foundation of the population balance equation: A review, J. Disp. Sci. Tech. 36 (2015) 510– 520. [6] A. Buffo, M. Vanni, D. Marchisio, Multidimensional population balance model for the simulation of turbulent gas–liquid systems in stirred tank reactors, Chem. Eng. Sci. 70 (2012) 31–44. [7] A. Buffo, M. Vanni, D. L. Marchisio, R. O. Fox, Multivariate quadrature-based moments methods for turbulent polydisperse gas–liquid systems, Int. J. Multiph. Flow 50 (2013) 41–57. [8] Y. Liao, D. Lucas, E. Krepper, Application of new closure models for bubble coalescence and breakup to steamâĂŞwater vertical pipe flow, Nucl. Eng. Des. 279 (2014) 126 - 136. [9] D. Li, Z. Gao, A. Buffo, W. Podgorska, D. L. Marchisio, Droplet breakage and coalescence in liquid–liquid dispersions: Comparison of different kernels with EQMOM and QMOM, AIChE J. 63 (2017) 2293–2311. [10] Z. Gao, D. Li, A. Buffo, W. Podg´orska, D. L. Marchisio, Simu lation of droplet breakage in turbulent liquid–liquid dispersions with CFD-PBM: Comparison of breakage kernels, Chem. Eng. Sci. 142 (2016) 277–288. [11] R. O. Fox, A quadrature-based third-order moment method for dilute gas–particle flows, J. Comp. Phys. 227 (2008) 6313–6350. [12] O. Desjardins, R. O. Fox, P. Villedieu, A quadrature-based moment method for dilute fluid-particle flows, J. Comp. Phys. 227 (2008) 2514–2539. [13] T. T. Nguyen, F. Laurent, R. O. Fox, M. Massot, Solution of population balance equations in applications with fine particles: Mathematical modeling and numerical schemes, J. Comp. Phys. 325 (2016) 129–156. [14] B. Kong, R. O. Fox, A solution algorithm for fluid–particle flows across all flow regimes, J. Comp. Phys. 344 (2017) 575–594. [15] A. Kazakov, M. Frenklach, Dynamic modeling of soot particle coagulation and aggregation: Implementation with the method of moments and application to high-pressure laminar premixed flames, Combust. Flame 114 (1998) 484–501. [16] M. Balthasar, M. Kraft, A stochastic approach to calculate the particle size distribution function of soot particles in laminar premixed flames, Combust. Flame 133 (2003) 289–298. [17] J. Pedel, J. N. Thornock, S. T. Smith, P. J. Smith, Large eddy simulation of polydisperse particles in turbulent coaxial jets using the direct quadrature method of moments, Int. J. Multiph. Flow 63 (2014) 23–38. [18] M. E. Mueller, G. Blanquart, H. Pitsch, A joint volume-surface model of soot aggregation with the method of moments, Proc. Combust. Inst. 32 I (2009) 785–792. [19] A. Sibra, J. Dupays, A. Murrone, F. Laurent, M. Massot, Simula tion of reactive polydisperse sprays strongly coupled to unsteady flows in solid rocket motors: Efficient strategy using Eulerian multi-fluid methods, J. Comp. Phys. 339 (2017) 210–246. [20] F. Laurent, M. Massot, Multi-fluid modelling of laminar poly disperse spray flames: Origin, assumptions and comparison of sectional and sampling methods, Combust. Theor. Model. 5 (2001) 537–572. [21] M. Hussain, J. Kumar, E. Tsotsas, A new framework for pop ulation balance modeling of spray fluidized bed agglomeration, Particuology 19 (2015) 141–154. [22] K. Ando, T. Colonius, C. E. Brennen, Numerical simulation of shock propagation in a polydisperse bubbly liquid, Int. J. Multiph. Flow 37 (2011) 596–608. [23] S. H. Bryngelson, K. Schmidmayer, T. Colonius, A quantitative comparison of phase-averaged models for bubbly, cavitating flows, Int. J. Multiph. Flow 115 (2019) 137–143. [24] H. M. Hulburt, S. Katz, Some problems in particle technology: A statistical mechanical formulation, Chem. Eng. Sci. 19 (1964) 555–574. [25] J. E. Moyal, Stochastic processes and statistical physics, J. Roy. Stat. Soc. B 11 (1949). [26] R. McGraw, Description of aerosol dynamics by the quadrature method of moments, Aerosol Sci. Technol. 27 (1997) 255–265. [27] J. C. Wheeler, Modified moments and Gaussian quadratures, Rocky Mt. J. Math. 4 (1974) 287–296. [28] C. Yuan, F. Laurent, R. O. Fox, An extended quadrature method of moments for population balance equations, J. Aerosol Science 51 (2012) 1–23. [29] R. G. Patel, O. Desjardins, B. Kong, J. Capecelatro, R. O. Fox, Verification of Eulerian–Eulerian and Eulerian–Lagrangian simulations for turbulent fluidâĂŞparticle flows, AIChE J. 63 (2017) 5396–5412. [30] B. Kong, R. O. Fox, H. Feng, J. Capecelatro, R. Patel, O. Des jardins, Euler–Euler anisotropic Gaussian mesoscale simulation of homogeneous cluster-induced gas–particle turbulence, AIChE J. 63 (2017) 2630–2643. [31] R. O. Fox, F. Laurent, A. Vi´e, Conditional hyperbolic quadrature method of moments for kinetic equations, J. Comput. Phys. 365 (2018) 269–293. [32] D. L. Marchisio, R. O. Fox, Solution of population balance equations using the direct quadrature method of moments, J. Aerosol Sci. 36 (2005) 43–73. [33] R. O. Fox, Computational models for turbulent reacting flows, Cambridge University Press, 2003. [34] R. O. Fox, Bivariate direct quadrature method of moments for coagulation and sintering of particle populations, J. Aerosol Science 37 (2006) 1562–1580. [35] D. L. Marchisio, R. O. Fox, Computational models for polydis perse particulate and multiphase systems, Cambridge University Press, 2013. [36] C. Yuan, R. O. Fox, Conditional quadrature method of moments for kinetic equations, J. Comput. Phys. 230 (2011) 8216âĂŞ8246. [37] R. G. Patel, O. Desjardins, R. O. Fox, Three-dimensional conditional hyperbolic quadrature method of moments, J. Comp. Phys. X 1 (2019) 100006. [38] A. Passalacqua, F. Laurent, E. Madadi-kandjani, J. C. Heylmun, R. O. Fox, An open-source quadrature-based population balance solver for OpenFOAM, Chem. Eng. Sci. 176 (2018) 306–318. [39] A. Passalacqua, J. Heylmun, M. Icardi, E. Madadi, P. Bachant, X. Hu, OpenQBMM 5.0.1 for OpenFOAM 7, Zenodo, 2019. [40] H. G. Weller, G. Tabor, H. Jasak, C. Fureby, A tensorial approach to computational continuum mechanics using objectoriented techniques, Comput. Phys. 12 (1998) 620–631. [41] R. Fan, D. L. Marchisio, R. O. Fox, Application of the direct quadrature method of moments to polydisperse gas–solid fluidized beds, Powder Tech. 139 (2004) 7–20. [42] D. R. Davies, C. R. Wilson, S. C. Kramer, Fluidity: A fully unstructured anisotropic adaptive mesh computational modeling framework for geodynamics, Geochem. Geophys. Geosys. 12 (2011). [43] S. H. Bryngelson, A. Charalampopoulos, T. P. Sapsis, T. Colo nius, A Gaussian moment method and its augmentation via LSTM recurrent neural networks for the statistics of cavitating bubble populations, Int. J. Multiph. Flow 127 (2020) 103262. [44] R. O. Fox, Optimal moment sets for multivariate direct quadra ture method of moments, Industrial and Engineering Chemistry Research 48 (2009) 9686–9696. [45] S. Gottlieb, D. Ketcheson, C.-W. Shu, Strong stability pre serving Runge–Kutta and multistep time discretizations, World Scientific, 2011. [46] C. E. Brennen, Cavitation and bubble dynamics, Oxford Uni versity Press, 1995. [47] D. Z. Zhang, A. Prosperetti, Ensemble phase-averaged equations for bubbly flows, Phys. Fluids 6 (1994). [48] S. H. Bryngelson, K. Schmidmayer, V. Coralic, J. C. Meng, K. Maeda, T. Colonius, MFC: An open-source high-order multicomponent, multi-phase, and multi-scale compressible flow solver, Comp. Phys. Comm. (2020) 107396. 7

섹션 본문

섹션 본문이 없습니다.

참고문헌 38건

  1. Approximate Population Balance Equations for Aggregation–Breakage Processes Journal of Colloid and Interface Science · Elsevier BV · 2000 10.1006/jcis.1999.6571
  2. Über Brownsche Molekularbewegung unter Einwirkung äußerer Kräfte und deren Zusammenhang mit der verallgemeinerten Diffusionsgleichung Annalen der Physik · Wiley · 1916 10.1002/andp.19163532408
  3. The Foundation of the Population Balance Equation: A Review Journal of Dispersion Science and Technology · Taylor & Francis · 2014 10.1080/01932691.2014.909318
  4. Multidimensional population balance model for the simulation of turbulent gas–liquid systems in stirred tank reactors Chemical Engineering Science · Elsevier BV · 2011 10.1016/j.ces.2011.04.042
  5. Multivariate Quadrature-Based Moments Methods for turbulent polydisperse gas–liquid systems International Journal of Multiphase Flow · Elsevier BV · 2012 10.1016/j.ijmultiphaseflow.2012.09.005
  6. Application of new closure models for bubble coalescence and breakup to steam–water vertical pipe flow Nuclear Engineering and Design · Elsevier BV · 2014 10.1016/j.nucengdes.2014.02.015
  7. Droplet breakage and coalescence in liquid–liquid dispersions: Comparison of different kernels with EQMOM and QMOM AIChE Journal · Wiley · 2016 10.1002/aic.15557
  8. Simulation of droplet breakage in turbulent liquid–liquid dispersions with CFD-PBM: Comparison of breakage kernels Chemical Engineering Science · Elsevier BV · 2015 10.1016/j.ces.2015.11.040
  9. A quadrature-based third-order moment method for dilute gas-particle flows Journal of Computational Physics · Elsevier BV · 2008 10.1016/j.jcp.2008.03.014
  10. A quadrature-based moment method for dilute fluid-particle flows Journal of Computational Physics · Elsevier BV · 2007 10.1016/j.jcp.2007.10.026
  11. Solution of population balance equations in applications with fine particles: Mathematical modeling and numerical schemes Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.08.017
  12. A solution algorithm for fluid–particle flows across all flow regimes Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.05.013
  13. Dynamic Modeling of Soot Particle Coagulation and Aggregation: Implementation With the Method of Moments and Application to High-Pressure Laminar Premixed Flames Combustion and Flame · Elsevier BV · 1998 10.1016/s0010-2180(97)00322-2
  14. A stochastic approach to calculate the particle size distribution function of soot particles in laminar premixed flames Combustion and Flame · Elsevier BV · 2003 10.1016/s0010-2180(03)00003-8
  15. Large eddy simulation of polydisperse particles in turbulent coaxial jets using the direct quadrature method of moments International Journal of Multiphase Flow · Elsevier BV · 2014 10.1016/j.ijmultiphaseflow.2014.03.002
  16. A joint volume-surface model of soot aggregation with the method of moments Proceedings of the Combustion Institute · Elsevier BV · 2008 10.1016/j.proci.2008.06.207
  17. Simulation of reactive polydisperse sprays strongly coupled to unsteady flows in solid rocket motors: Efficient strategy using Eulerian Multi-Fluid methods Journal of Computational Physics · Elsevier BV · 2017 10.1016/j.jcp.2017.02.003
  18. Multi-fluid modelling of laminar polydisperse spray flames: origin, assumptions and comparison of sectional and sampling methods Combustion Theory and Modelling · Taylor & Francis · 2001 10.1088/1364-7830/5/4/303
  19. A new framework for population balance modeling of spray fluidized bed agglomeration Particuology · Elsevier BV · 2014 10.1016/j.partic.2014.06.005
  20. Numerical simulation of shock propagation in a polydisperse bubbly liquid International Journal of Multiphase Flow · Elsevier BV · 2011 10.1016/j.ijmultiphaseflow.2011.03.007
  21. A quantitative comparison of phase-averaged models for bubbly, cavitating flows International Journal of Multiphase Flow · Elsevier BV · 2019 10.1016/j.ijmultiphaseflow.2019.03.028
  22. Some problems in particle technology Chemical Engineering Science · Elsevier BV · 1964 10.1016/0009-2509(64)85047-8
  23. Stochastic Processes and Statistical Physics Journal of the Royal Statistical Society Series B (Statistical Methodology) · Oxford University Press · 1949 10.1111/j.2517-6161.1949.tb00030.x
  24. Description of Aerosol Dynamics by the Quadrature Method of Moments Aerosol Science and Technology · Taylor & Francis · 1997 10.1080/02786829708965471
  25. Modified moments and Gaussian quadratures Rocky Mountain Journal of Mathematics · Rocky Mountain Mathematics Consortium · 1974 10.1216/rmj-1974-4-2-287
  26. An extended quadrature method of moments for population balance equations Journal of Aerosol Science · Elsevier BV · 2012 10.1016/j.jaerosci.2012.04.003
  27. Verification of Eulerian–Eulerian and Eulerian–Lagrangian simulations for turbulent fluid–particle flows AIChE Journal · Wiley · 2017 10.1002/aic.15949
  28. Euler–euler anisotropic gaussian mesoscale simulation of homogeneous cluster‐induced gas–particle turbulence AIChE Journal · Wiley · 2017 10.1002/aic.15686
  29. Conditional hyperbolic quadrature method of moments for kinetic equations Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.03.025
  30. Solution of population balance equations using the direct quadrature method of moments Journal of Aerosol Science · Elsevier BV · 2004 10.1016/j.jaerosci.2004.07.009
  31. Bivariate direct quadrature method of moments for coagulation and sintering of particle populations Journal of Aerosol Science · Elsevier BV · 2006 10.1016/j.jaerosci.2006.03.005
  32. Conditional quadrature method of moments for kinetic equations Journal of Computational Physics · Elsevier BV · 2011 10.1016/j.jcp.2011.07.020
  33. An open-source quadrature-based population balance solver for OpenFOAM Chemical Engineering Science · Elsevier BV · 2017 10.1016/j.ces.2017.10.043
  34. A tensorial approach to computational continuum mechanics using object-oriented techniques Computers in Physics · American Institute of Physics · 1998 10.1063/1.168744
  35. Application of the direct quadrature method of moments to polydisperse gas–solid fluidized beds Powder Technology · Elsevier BV · 2003 10.1016/j.powtec.2003.10.005
  36. Fluidity: A fully unstructured anisotropic adaptive mesh computational modeling framework for geodynamics Geochemistry Geophysics Geosystems · Wiley · 2011 10.1029/2011gc003551
  37. A Gaussian moment method and its augmentation via LSTM recurrent neural networks for the statistics of cavitating bubble populations International Journal of Multiphase Flow · Elsevier BV · 2020 10.1016/j.ijmultiphaseflow.2020.103262
  38. Optimal Moment Sets for Multivariate Direct Quadrature Method of Moments Industrial & Engineering Chemistry Research · American Chemical Society · 2008 10.1021/ie801316d