On the Accuracy of the SBT Collision Algorithm in ...

2 downloads 0 Views 5MB Size Report
This paper reviews the accuracy of the Simplified Bernoulli Trial (SBT) algorithm and its variants, i.e., SBT-TAS (SBT on transient adaptive subcells) and ISBT ...
On the Accuracy of the SBT Collision Algorithm in Treating Flows at Nano Scale and Hypersonic Regime Ehsan Roohi 1, a) and Stefan Stefanov 2, b) 1

High Performance Computing (HPC) Laboratory, Department of Mechanical Engineering, Ferdowsi University of Mashhad, 91775-1111, Mashhad, Iran.

2

Institute of Mechanics, Bulgarian Academy of Science, Acad. G. Bontchev str., 1113, Sofia, Bulgaria a)

Corresponding author: [email protected] b) [email protected]

Abstract. This paper reviews the accuracy of the Simplified Bernoulli Trial (SBT) algorithm and its

variants, i.e., SBT-TAS (SBT on transient adaptive subcells) and ISBT (intelligence SBT) in the simulation of a wide spectrum of rarefied flow problems, including collision frequency ratio evaluation in the equilibrium condition, comparison of the Sonine-polynomial coefficients prediction in the Fourier flow with the theoretical prediction of the Chapman-Enskog expansion, accurate wall heat flux solution for the Fourier flow in the early slip regime, and hypersonic flows over cylinder and biconic geometries. We summarize advantages and requirements that utilization of the SBT collision families brings to a typical DSMC solver.

INTRODUCTION Direct simulation Monte Carlo (DSMC) is widely utilized for treating either low speed rarefied gas flows at the micro/nano scales or external hypersonic flows at high altitude conditions. Strong physical background and its ability to provide accurate simulation results are of the main advantages of the DSMC algorithm. The original DSMC method is defined as a numerical particle representation of the Boltzmann equation. However, Kac stochastic equation was also utilized to derive alternative intermolecular collision models in the DSMC algorithm [1]. The collision algorithm plays a major role in the DSMC computations and mimics the most sophisticated term of the Boltzmann or Kac stochastic model. The DSMC algorithms are categorized into two main classes concerning the treatment of collisions. The idea of the first family of DSMC’s collision schemes is based according to the principle of the maximum collision rate per time step. In this group, the “No Time Counter (NTC)” [2] scheme of Bird considers a maximum number of collision rate per time step. The scheme considers the number of randomly selected molecular pairs that should be tested for accepted collisions, while the other methods in this group such as “Time Counter (TC)” [3], “Null Collision (NC)” [4], and “Majorant Frequency Scheme (MFS)” [5] use a time-interval of 𝛿𝑡𝑖 for every accepted collision and a time-step of ∆𝑡 for the DSMC. The collision procedure is continued until ∑𝑖 𝛿𝑡𝑖 > ∆𝑡. Considering the fact that a smaller mean collision separation (MCS) of colliding pairs results in more realistic binary collisions, modifications have been proposed to the above-mentioned collision schemes. LeBeau et al. [6] introduced the virtual sub-cell (VSC) method which performs an O(N2) operation to sort

all N particles in a cell to find the nearest-neighbor to any simulator chosen for collision. Bird [7] proposed the transient adaptive sub-cell (TAS) scheme that divides DSMC cells into sub-cells, and collision partners are selected from the same or neighboring sub-cells. To reduce computational costs of VSC model to O(N), Bird [8] avoided the calculation of all intermolecular distances at the start of the collision procedure and restrict the burden to calculation of intermolecular distances between the randomly selected collision particle and the other particles. In response to the possibility of the repeated collisions in the first group, which could be avoided only by direct prevention of selecting the same pair, another type of collision schemes, proposed by Belotserkovskii and Yanitskiy [9] and Yanitskiy [1], were developed based on the Kac stochastic equation. Different from previous schemes, this group defines a collision probability function for each particle pair in accordance with the Kac stochastic equation and check all pair combinations for collision. Yanitskiy’s scheme then led to the introduction of the Bernoulli-Trials (BT) collision scheme. Recently, Stefanov introduced a modified variant of the BT scheme entitled as simplified Bernoulli Trials (SBT) [10]. Unlike the BT scheme, which has a quadratic dependency of the computational cost on the particle number in cells, the latter one (SBT) has a linear dependency and a higher computational efficiency. As an evolution of the SBT scheme to a method which can intelligently prefer collisions for closer pairs, Amiri et al. [11] and Goshayeshi et al. [12] combined SBT with TAS as well as some other auxiliary techniques. Then, Goshayeshi et al. introduced an intelligent variant of the SBT scheme (ISBT) which provides semiperception of distance for the collision scheme [13]. This semi-cognition reduces approximately 25-32% of the overall MCS in collision cells. Understanding the recent notes of Gallis et al. [14] in the preference of choosing a near neighbor partner rather than the nearest neighbor one, which consequently leads to the saving of the collision scheme from losing some of its probable collisions during the advection phase of particles, the ISBT scheme also follows the same strategy of near neighbor pair-selection. The aim of the current paper is to present results of evaluation of the SBT collision family and its variants, i.e., SBT on transient adaptive subcells (SBT-TAS) and intelligent SBT (ISBT) in the treatment of a wide spectrum of rarefied gas flows at micro/nano scales and hypersonic flow regimes [11-13, 15-17]. Accuracy and rigorousness of this collision family will be discussed in details.

SBT COLLISION FAMILIES The mathematical derivation and details of the derivation of the SBT, SBT-TAS and ISBT collision models have already been reported in Refs. [10-12] and are not repeated here for the sake of brevity. The SBT and ISBT algorithms are depicted in details in Figs. 1-2.

Particle sorting and indexing

first particle selection

second particle selection

• Use the standard index list of particles in a cell (i.e., array IC in Bird code)

• choosing first particle in sequense from list: i = 1, ... ,Nl-1

• choosing the other particle from with a probability of 1/k=1/(Nl−𝑖), i. e., 𝑗 = 𝑖 + 1 + 𝑖𝑛𝑡(𝑘 × 𝑅𝑛𝑓1 • checking the collision probability: 𝑊𝑖𝑗 =

if accepted

velocity update

𝑘𝐹𝑛𝑢𝑚 ∆𝑡𝜎𝑖𝑗 𝑔𝑖𝑗

> 𝑅𝑛𝑓2

𝑉𝑙

• change particle velocities if collision is accepted

FIGURE 1. SBT collision procedure per each cell [10]

particle sorting and indexing

first particle selection

second particle selection

• A hierarchical indexing of particles from 1 to Nl based on their distances to the cell corner. The corner is alternated per each iteration

• Sequential selection of the first particle: i=1, Nl

• choosing the other particle from 𝑗 = 𝑖 + 1 + 𝑖𝑛𝑡(𝑘 × 𝑅𝑛𝑓1

• checking the collision probability using the same random number if accepted

velocity update

used in selecting the second particle: 𝑊𝑖𝑗 =

𝑘𝐹𝑛𝑢𝑚 ∆𝑡𝜎𝑖𝑗 𝑔𝑖𝑗 𝑉𝑙

> 𝑅𝑛𝑓1

• change particle velocities if collision is accepted

FIGURE 2. ISBT collision procedure [13]

The collision probability in the SBT family model is derived from a simplified transition operator of the Kac stochastic model. Using this simplified operator, instead of experiencing all particles located in the index list after the first particle i, only one of those particles is randomly selected from the particles located in the list after the ith particle with the probability of 1/k=1/(Nl−𝑖), where Nl is the number of particles in the cell. This reduces the level of collision checking to (Nl -1). The collision probability is then multiplied by the factor k to maintain total probability in the operator constant. This procedure necessitates small time steps to keep the errors in the truncated parts of the simplified operator small, i.e., 𝑝𝑟𝑜𝑏{𝑊𝑖𝑗 ≥ 1} → 0 . The SBT procedure permits using a few particles per cell, while keeping the accuracy of the DSMC’s solution intact. In response to recent interests of reducing the MCS of colliding pairs, SBT was implemented on the transient adaptive subcells (SBT-TAS) [12] with supporting techniques: this includes time step control at the subcell level, simplified volume calculation for cut-cell boundaries, and weighted filters for surface properties. As a result, the computational time and accuracy of the SBT-TAS is comparable to the NN method. To decrease the MCS in complex shock-shock interaction problems, other measures can be used; this includes an intelligent variant of SBT, which favors selection of the closer particle to the first one selected [13]. In contrast to SBT, ISBT requires a hierarchical indexing of particles with respect to a random corner of the collision cell, then the selection of the second particle and computations of the collision probability is followed in the same way as the SBT method, but the collision probability is compared with the same random number already used for the selection of the second particle. This indicates that the collision probability is being compared to a smaller random number for closer pairs, and a larger random number for farther pairs (i.e., with a biased acceptance of selection of closer pairs occurring). The combination of ISBT and TAS reduces the MCS for complex problems. In following sections, sample results of the SBT collision family will be presented.

Collision Frequency Ratio from SBT-TAS and ISBT The equilibrium collision frequency ratio of argon gas in the cavity flow at 𝐾𝑛 = 0.005, Tw=300 K, simulated on a 25×25 grid using SBT-TAS technique, is shown in Fig. 1 [13]. VHS collision molecular model is used. Average time step during the simulation is: 2.6×10-12. In this state, the theoretical equilibrium collision rate per molecule (𝐶𝐹𝑡ℎ ) is given by [18]:

𝜋 𝐾𝐵 𝑇𝑟𝑒𝑓 𝑇 1−𝜔 𝐶𝐹𝑡ℎ = 4𝑛𝑑 2 √ ( ) 𝑚𝑠 𝑇𝑟𝑒𝑓

(1)

, where 𝑛, 𝑑, 𝐾𝐵 , 𝑇𝑟𝑒𝑓 , 𝑚𝑠 , and are number density, gas molecular diameter, Boltzmann constant, reference temperature, molecular mass, and viscosity-temperature exponent, respectively. 𝐶𝐹𝑛𝑢𝑚 represents the numerical value of this theoretical equilibrium collision rate that is calculated by the division of the number of collisions in each cell (𝑁𝑐𝑜𝑙𝑙 ) on the execution time (𝑇𝑖𝑚𝑒) and half of the mean particle numbers per cell (0.5 Np ): 𝑁𝑐𝑜𝑙𝑙 𝐶𝐹𝑛𝑢𝑚 = (2) 0.5 𝑁𝑝 𝑇𝑖𝑚𝑒 𝐶𝐹𝑟𝑎𝑡𝑖𝑜 is the ratio of the 𝐶𝐹𝑛𝑢𝑚 to its theoretical value—given by Eq. (1)—it must have a magnitude close to unity. Using SBT-TAS and setting 2 particles per subcell, i.e., PPSC=2, 16×16 subcells were employed in each cell in average. As Fig. 3-a shows, mean deviation of the equilibrium collision frequency ratio of one is in the order of 10−4 and its maximum is about 0.2%. This proves that number of collisions in SBT-TAS scheme is accurate and coincides with the theory even using small number of particles per subcells (collision cells).

1.002

NN ISBT SBT

1.002 1.0015 1.001 1.0005 1 0.9995 0.999 0.9985 0.998

CFratio

CF RATIO Ratio

1

0.998

0.2

0.4

0.6

0.8

X/L

a)

b)

FIGURE 3. SBT-TAS results for CFratio (b) CFratio along the horizontal center line. (Reprinted with permission from B. Goshayeshi, E. Roohi, and S. Stefanov, Phys. Fluids 27, 107104 (2015). Copyright 2015 American Institute of Physics) 𝑀𝐶𝑆

TABLE 1 Comparison of the 𝑆𝑂𝐹 = ( ) value in the lid-driven cavity flow between NN, ISBT and SBT collision 𝜆 schemes. (Reprinted with permission from B. Goshayeshi, E. Roohi, and S. Stefanov, Phys. Fluids 27, 107104 (2015). Copyright 2015 American Institute of Physics) Collision Division size in 𝑆𝑂𝐹 value 𝑆𝑂𝐹 normalized by the Average 𝑆𝑂𝐹 normalized by scheme DS2V code corresponding NN value the corresponding SBT value NN ISBT SBT

100-100 100-100 100-100

0.0477 0.1740 0.2621

1 3.66 5.49

0.182 0.666 1

The collision frequency of the ISBT scheme in an equilibrium state, for the argon flow in the cavity test case with Ulid= 0 m/s, Kn=0.01 and with surface and fluid temperatures have the same value of 273 K is evaluated using DS2V code with ISBT implemented [13]. VHS collision model of argon is utilized and an average time step of 4×10-12 is utilized in the solver. Fig. 3-b states that the deviation of the 𝐶𝐹𝑟𝑎𝑡𝑖𝑜 from the unity in the ISBT collision scheme, similar to the SBT scheme, is bounded with acceptable limit of 0.002. As the simulated cavity has diffuse reflecting walls, the eventual correlations cannot propagate at long distances. The dimensionless number, 𝑆𝑂𝐹, which is the mean collision separation distance (𝑀𝐶𝑆) divided by the local mean free path (λ), is selected as a parameter for measuring the quality of collisions.

Table 1 states that the ISBT, compared with the SBT collision scheme, reduced the 𝑆𝑂𝐹 value quite considerably.

Fourier Flow: Comparison with Theory The convergence behavior and accuracy of the DSMC technique Fourier problems for near-continuum conditions was investigated for the NTC scheme [19-20].

a) Comparison of coefficients of Soninepolynomial obtained from the Chapman-Enskog expansion with DSMC solution

c)

Dependency of NTC and SBT solutions for the wall heat flux on the cell size (Nc) and PPC.

b)

d)

Comparison of DSMC and theoretical values for conductivity ratio

Dependency of NTC and SBT solutions for the conductivity ratio on the cell size

FIGURE 4. Comparison of SBT and NTC solution methods for Fourier flow.

A similar evaluation was made for the SBT method. The hard-sphere argon gas was simulated at the reference pressure and temperature: P init=Pref= 266.644×10−5 Pa and Tinit=Tref=273.15 K, and Kn=0.0237. The time step for the SBT results reported in frames of Fig. 4 was set for each case as follows: (a): 3.5×10 -9 s, (b): 7×10-9 s, (c): 0.625×10-9 s, (d): 7×10-9 s. All NTC solutions reported in these figures are extracted from Refs. [19-20]. Fig. 4-a shows that the Sonine-polynomial coefficients ak/a1 for k=2,3 obtained from the DSMC away from walls agree with the theoretical value for NTC and SBT with a few particles per cell. Fig. 4-b compares the heat conductivity ratio (theoretical to DSMC) from NTC and SBT solutions and

show that both numerical solutions agree with each other. Fig. 4-c compares dependency of the SBT and NTC solutions for the wall heat flux on the number of particles per cell (PPC) and cell size. Both solutions agree with each other, however, SBT used a smaller time step compared to the NTC solution by around one order of magnitude. Fig. 4-d compares the dependency of NTC and SBT solutions for the conductivity ratio on the cell size, for both of the investigated PPC’s, SBT and NTC solutions for the conductivity ratio approach to unity as cell size reduces. But on coarser grid with larger number of particles, i.e. PPC=30, NTC works slightly better because of the random choice of pairs, once we use SBT we cut some possible pairs which could contribute to the solution.

Hypersonic Flow over Cylinder and Biconic Geometry Hypersonic flows over the cylinder and biconic geometry are famous test cases in rarefied gas dynamics considered by various researchers to evaluate their DSMC solvers and algorithms. Temp, K 3797.86

3347.5

2897.14

6500 6049.64 5599.29 5148.93 4698.57 4248.21 3797.86 3347.5 2897.14 2446.79 1996.43 1546.07 1095.71 645.357 195

2446.79 4248.21 1996.43 4698.57 195

5148.93

1546.07

1546.07

6049.64

1996.43

NN ISBT-TAS SBT-TAS

(a) 150

100

150

50

100

50

NN (A1)

NN (A1) SBT-TAS (B1)

30000

ISBT-TAS (C2)

2

6

ISBT-TAS (C3) 20000

4

15000

150

2

ISBT-TAS (C2)

Pressure (N/m )

2

Shear stress (N/m )

ISBT-TAS (C1)

ISBT-TAS (C1)

Heat flux (w/m )

SBT-TAS (B2)

SBT-TAS (B2)

25000

200

SBT-TAS (B1)

150

8

ISBT-TAS (C3) 100

100

Velocity slip (m/s)

35000

50 10000

50 2

5000

150

100

Angle (degree)

(b)

50

0

0 150

100

50

Angle (degree)

(c)

FIGURE 5. a) Comparison of the temperature contour from NN, ISBT-TAS, and SBT-TAS b-c) Comparison of surface properties (heat flux, shear stress, pressure, slip velocity) in the cylinder flow problem (Reprinted with permission from B. Goshayeshi, E. Roohi, and S. Stefanov, Phys. Fluids 27, 107104 (2015). Copyright 2015 American Institute of Physics)

Goshayeshi et al. [12, 13] evaluated the performance of the SBT, SBT-TAS and ISBT techniques in treating rarefied hypersonic flows. For the hypersonic cylinder case, Mach 10 (2634.1 m/s) flow of argon at T=200 K passing over a 12 inch circular cylinder with a fully diffusive surface at T s=500 K and a nominal free-stream Knudsen number of 0.01 is considered. The average time step of the DSMC solver for this test case is 6.41×10-7. Fig. 5-a shows a comparison of temperature contour around the cylinder from NN, ISBTTAS, and SBT-TAS techniques. All SBT solutions match NN solution; however, ISBT matches the NN solution in the wake region much better. Figs. 5-b-c compares surface properties (heat flux, shear stress,

pressure, slip velocity) over the cylinder. For all investigated properties, there is an excellent agreement between the SBT family results and those of NN. Hypersonic nitrogen flow of Mach 15.6 passing over a 25°-55° degree biconic geometry is a quite complex test case for numerical schemes as it consists of a laminar recirculation zone, laminar expanding zone, high-speed low-density region, and low-speed high-density region. DSMC simulation of this case is performed using VHS collision model in the DS2V code. The average time step of the DSMC solver for this test case is 3.9×10-8. A comparison of the heat flux and pressure distribution over the biconic geometry, from SBT-TAS, ISBT-TAS, NN and experimental data is shown in Fig. 6. Fig. 7 shows contour of temperature and SOF from ISBT-TAS and NN over the biconic surface. All numerical solutions show almost a suitable match between ISBT-TAS and NN. (a)

NN (A1) CUBRC 48-Inch Shock Tunnel SBT-TAS (B1) ISBT-TAS (C1) ISBT-TAS (C2)

1200

1000

2

2

Pressure (N/m )

150000

Heat flux (w/m )

(b)

NN (A1) CUBRC 48-Inch Shock Tunnel SBT-TAS (B1) ISBT-TAS (C1) ISBT-TAS (C2)

100000

50000

800

600

400

200

0

0.05

0.1

0.05

0.15

0.1

0.15

X (m)

X (m)

FIGURE 6. Comparison of heat flux and pressure distribution around the biconic geometry from different DSMC models, (Reprinted with permission from B. Goshayeshi, E. Roohi, and S. Stefanov, Phys. Fluids 27, 107104 (2015). Copyright 2015 American Institute of Physics 0.22

Temperature, K

0.2

2000 1800 1600 1400 1200 1000 800 600 400 200

0.16

Y (m)

0.14 0.12 0.1 0.08

SOF

0.2

0.6 0.55 0.5 0.45 0.4 0.35 0.3 0.25 0.2

0.18 0.16 0.14

Y (m)

0.18

0.22

0.12 0.1 0.08 0.06

0.06

0.04

0.04

NN ISBT-TAS

0.02

0

0

0

0.05

0.1

0.15

NN ISBT-TAS

0.02 0

0.05

0.1

0.15

X ( m)

X ( m)

(a)

(b) SOF= MCS/

FIGURE 7. a) Comparison of ISBT-TAS and NN collision schemes in treating hypersonic external flow over biconic, a) temperature contours, b) contours of SOF (Reprinted with permission from B. Goshayeshi, E. Roohi, and S. Stefanov, Phys. Fluids 27, 107104 (2015). Copyright 2015 American Institute of Physics)

CONCLUDING REMARKS The current paper provides a review of the previous works demonstrating the performance of the SBT collision families. The early Kac-based models, such as the original BT model, suffered from high computational costs, while the SBT collision families have comparable computational costs to the standard models based on the Boltzmann equation such as NTC and NN schemes. A wide spectrum of rarefied flow test cases, ranging from simple equilibrium collision frequency to complicated shock-shock interactions, was simulated using the SBT collision family models and it was shown that SBT collision families could provide accurate solutions using small particles per cell. The benefit of the SBT collision model will be more clearly pronounced in complex 3D simulations, where a large number of particles is required if one relies on the standard schemes. A hybrid NTC-SBT scheme could be also utilized for these complex 3D cases.

ACKNOWLEDGEMENTS Stefan Stefanov would like to acknowledge the financial support provided by the EU network program H2020 under grant MIGRATE No. 643095.

REFERENCES 1.

2.

3. 4. 5.

6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20.

V. Yanitskiy, “Operator approach to Direct Simulation Monte Carlo theory in rarefied gas dynamics,” Proceedings of the 17th International Symposium on Rarefied Gas Dynamics, edited by A. Beylich (VCH, Weinheim 1990), pp. 770-777. G. A. Bird, “The Perception of Numerical Methods in Rarefied Gas Dynamics”, Proceedings of the 16th International Symposiums on Rarefied Gas Dynamics, edited by E. P. Muntz, D. Weaver and D. Campbell (AIAA, Washington, DC, 1989), pp. 211-226. G. A. Bird, “Shock Wave Structure in a Rigid Sphere Gas”, Proceedings of the 4th International Symposiums on Rarefied Gas Dynamics, edited by J. H. de Leeuw (Academic Press, New York, 1965) pp. 216-222. K. Koura, Physics of Fluids 29(11), 3509-3511 (1986). M. S. Ivanov, S. V. Rogasinskii, “Theoretical analysis of traditional and modern schemes of the DSMC method”, Proceedings of the 17th International Symposiums on Rarefied Gas Dynamics, edited by A. Beylich (VCH, Weinheim, 1990) 629-642. G. J. LeBeau, K. A. Boyles, F. E. Lumpkin, “Virtual sub-cells for the direct simulation Monte Carlo method”, Proceeding of the 41st Aerospace Sciences Meeting and Exhibit (Reno, Nevada, 2003), AIAA 2003-1031. G. A. Bird, “Visual DSMC Program for Two-Dimensional and Axially Symmetric Flows, The DS2V Program User’s Guide, Ver. 2.1, G.A.B. Consulting Pty Ltd, Sydney, Australia (2003). G. A. Bird, “The DS2V/3V program suite for DSMC calculations”, Proceedings of the 24th International Symposium, in Rarefied Gas Dynamics 762 (American Institute of Physics, Melville, NY, 2005) pp. 541–546. O. M. Belotserkovskii, V. E. Yanitskiy, USSR Computational Mathematics and Mathematical Physics 15, 101114 (1975). S. Stefanov, SIAM Journal on Scientific Computing 33, 677-702 (2011). A. Amiri, E. Roohi, H. Nami, H. Niazmand and S. Stefanov, Computers & Fluids 102, 266-276 (2014). B. Goshayeshi, E. Roohi and S. Stefanov, Journal of Computational Physics 303, 28-44 (2015). B. Goshayeshi, E. Roohi and S. Stefanov, Physics of Fluid 27(10), 107104 (2015). M. A. Gallis, J. R. Torczynski and D.J. Rader and G.A. Bird, Journal of Computational Physics 228(12), 45324548 (2009). A. Amiri, E. Roohi, H. Niazmand and S. Stefanov, Journal of Heat Transfer 135, 101008 (2013). A. Shoja-Sani, E. Roohi, M. Kahrom and S. Stefanov, European journal of mechanics. B, Fluids 48, 59-74 (2014). A. Saadati and E. Roohi, Aerospace Science and Technology 46, 236-255 (2015). G. A. Bird, Molecular Gas Dynamics and the Direct Simulation of Gas Flows, (Clarendon Press, Oxford, 1994). M. A. Gallis, J. R. Torczynski and D.J. Rader, Phys. Rev. E 69, 042201 (2004). D. J. Rader, M. A. Gallis, J. R. Torczynski and W. Wagner, Physics of Fluids 18(7), 077102 (2006).

Suggest Documents