Pouyan Jahangiri

All publications
  • Cite

    Citation

    Jahangiri, P., Nejat, A., Samadi, J., and Aboutalebi, A., A high-order Monte Carlo algorithm for the direct simulation of Boltzmann equation, Journal of Computational Physics, Vol. 231 (2012), pp. 4578-4596. https://doi.org/10.1016/j.jcp.2012.02.029

    BibTeX

    @article{jahangiri2012,
      author  = {Jahangiri, Pouyan and Nejat, Amir and Samadi, Jila and Aboutalebi, Ali},
      title   = {A high-order Monte Carlo algorithm for the direct simulation of Boltzmann equation},
      journal = {Journal of Computational Physics},
      volume  = {231},
      pages   = {4578--4596},
      year    = {2012},
      doi     = {10.1016/j.jcp.2012.02.029}
    }

Journal of Computational Physics 2012

A high-order Monte Carlo algorithm for the direct simulation of Boltzmann equation

Pouyan Jahangiri, Amir Nejat, Jila Samadi, Ali Aboutalebi

Adapted from the published paper Original publication Vol. 231, pp. 4578-4596 DOI 10.1016/j.jcp.2012.02.029

Overview

When a gas is thin enough that a molecule travels far between one collision and the next, as it does high in the atmosphere, in vacuum equipment or in a gas centrifuge, the equations of ordinary fluid flow no longer hold. The gas is then simulated particle by particle. The direct simulation Monte Carlo method (DSMC) moves some tens of thousands of model particles, and in every small step of time lets a share of them collide at random, as Boltzmann’s equation asks.

This paper proposes a variant of it, H-DSMC, built on more terms of a series in the time step: within one step a particle may carry the outcome not of one collision but of two, three or more, each kind with its own probability. Carried out exactly, the series sorts the particles of a step into groups by the collisions they carry, and gives the probability of each group for any order in closed form. They add up to one, and the method is as accurate as its order, which is checked here on a gas whose relaxation is known exactly, and on particles that run in the browser.

One number runs through all of it: the collision fraction ζ=μΔt/Kn\zeta = \mu\Delta t/\dn{Kn}, the time step measured in mean collision times. It is how many collisions, on average, a particle has in one step. The classic method needs it below one, and a method of order mm below 2/(m+1)2/(m+1). At ζ=0.3\zeta = 0.3, in each step about a quarter of the particles collide, and one in seven of those collides more than once. The higher orders are a way of counting those repeated collisions.

A model of the paper's first test. A wide, shallow metal drum with a glass lid, cut open at the side. Inside it float small beads of two kinds, as in a museum model of a gas. The larger amber beads crowd against the outer wall, and the smaller pale blue ones are spread through the whole drum.
A model of the first test: a spinning drum of two gases, the heavier one flung to the wall

Abstract

A high-order algorithm of the direct simulation Monte Carlo (DSMC) method, H-DSMC, has been developed to simulate rarefied flow regimes. The mmth order Taylor series expansion has been employed to obtain a more generalized form of the time discretization for the collision part of Boltzmann equation. In the purposed algorithm, the higher order collision terms are introduced as well as higher order terms in the time step of the probabilistic coefficients. The time derivatives of the bilinear collision term sort the particles of a time step into groups by the number of collisions they carry, and give the probabilistic coefficients of any order in closed form. They add up to one for every order, they are the Taylor polynomials of the weights of Wild’s exact sum, and they are nonnegative while the time step is no longer than 2/(m+1)2/(m+1) mean collision times. On Maxwell molecules one step of the mmth order algorithm is accurate to the mmth order in the time step.

Keywords Boltzmann equation; Direct simulation Monte Carlo (DSMC) method; Rarefied flow regimes; Higher order collision terms.

Received 10 May 2011 Revised 27 January 2012 Accepted 23 February 2012 Available online 1 April 2012

Nomenclature 35 symbols
ff
probability distribution function
vv
pre-collision velocity
v′v'
post-collision velocity
Kn\dn{Kn}
Knudsen number
QQ
collision integral operator describing the binary collision between particles
PP
bilinear operator describing the binary collision effects
fjf_j
group of the particles of a time step that carry the outcome of j collisions, Eq. (15); f₀ = fⁿ
mm
order of the method
aj(m)a^{(m)}_j
probability of sampling a particle from the group f_j in the mth order method, Eq. (22)
ckjc_{kj}
share of the group f_j in the kth time derivative of f, Eqs. (19) and (21)
S(k,j)S(k,j)
Stirling number of the second kind: the ways to split k things into j groups
NN
number of model particles in a cell
NckN_{c_k}
number of collisions of the kth round of a time step, Eq. (29)
AA
stress anisotropy: the temperature along one axis less the mean of those across it
ν\nu
rate at which a quantity relaxes, in units of the collision rate μ/Kn
τb\tau_b
mean time between the collisions of a particle of a beam
λb\lambda_b
mean free path of a beam
Ω\Omega
unit solid angle about the vector |v − v∗|
σ\sigma
nonnegative function describing the collision cross-section
μ\mu
collision frequency, held over a time step at its upper bound, with dummy collisions
tt
time
Δt\Delta t
time step
τc\tau_c
mean collision time, Kn/μ
ζ\zeta
collision fraction, μΔt/Kn: the time step in mean collision times, or the mean number of collisions a particle has in one step
θ\theta
scattering angle
bb
impact parameter
f^\hat f
dimensionless probability distribution function
r^\hat r
dimensionless position vector
v^\hat v
dimensionless velocity vector
t^\hat t
dimensionless time
σ^\hat\sigma
dimensionless collision cross-section
n0n_0
average number density
vˉ\bar v
average velocity
LL
scale length
λ\lambda
mean free path

1. Introduction

In the rarefied gas flow regimes, in cases that the mean free path of gas molecules is considerable in comparison to the characteristic length of the control volume, the Navier-Stokes equations fail to simulate the correct physics of the flow. However, simulation of the Boltzmann equation using the direct simulation Monte Carlo (DSMC) method1, 2 provides reasonable results in such flow regimes. In the last two decades, the DSMC method has been employed by many researchers1, 2, 3, 4, 5, 6, 7, 8, 9 to simulate rarefied gas flows.

A rarefied binary gas mixture flow inside a high speed rotating cylinder has been computed by Bird1 using the DSMC method in the flow regimes with Knudsen number greater than 0.1. A Couette-Taylor gas flow has been simulated by Riechelmann and Nanbu3 using the DSMC method. The predicted torque acting on the outer stationary cylinder in their simulation is in good agreement with the experimental data in both vortex-free and vortical flow regimes.

The simulation of re-circulating flows using the DSMC method is very expensive because of the special nature of this method. However, Pareschi et al.4, 5, 6 have circumvented this problem by proposing a modification on the DSMC method, called Time Relaxed Monte Carlo (TRMC) method. Pareschi et al.6 have used Wild7 sum expansion to obtain nonnegative functions for describing the time evolution of gas molecules distribution function approximately. Pareschi et al.5, 6 have also simulated a two dimensional rarefied gas flow around an obstacle using the TRMC method. Their simulation shows improvement in both accuracy of the results and the CPU time comparing with those obtained by the DSMC method.

Recently Ganjaei and Nourazar8 have simulated a rarefied binary gas mixture flow inside a high speed rotating cylinder using both the DSMC method and the TRMC scheme. The improvement of the results obtained by Ganjaei and Nourazar8 is pronounced comparing with the results of Bird1. Moreover by comparing between two mentioned methods used by Ganjaei and Nourazar8, the TRMC scheme results were in better agreement with the results of the analytical solution9. Most recently, a new algorithm based on the direct simulation Monte Carlo method has been developed by Ganjaei and Nourazar10, 11 to simulate the Boltzmann equation. The new algorithm called MDSMC has been acquired by applying a modification on the collision term of the Boltzmann equation. Their results using the MDSMC method are in better agreement with the experimental data12 than those simulated by the DSMC method.

Wang et al.13 have investigated a new method based on the direct simulation Monte Carlo method. Their new scheme which is called Relaxation Time Simulation Method (RTSM) is based on the internal energy exchange (for the perfect gas flow at near continuum regions) in the relaxation time simulation of the BGK equation. The so-called RTSM method computes acceptable results in near continuum flow regimes with less CPU time compared to the DSMC method. Wang et al.13 concluded that there is a possibility of developing a hybrid method.

Wang and Li14 have developed Generalized Enskog Monte Carlo (GEMC) algorithm for simulation of dense gases by considering high density effects on collision rates. Attractive and repulsive molecular interactions for Lennard-Jones fluids have been used to predict heat transfer and non-ideal gas flow at large Knudsen numbers. The results of the GEMC algorithm are more accurate than those obtained by the DSMC method in the case of dense gases. Also, Wang and Li14 showed that the results obtained by the GEMC algorithm for simulation of low density gases in micro and nano devices are in reasonable agreement with the results of the DSMC method and the experimental data.

1.1. Purpose of the present work

In this study, we are interested in developing a new algorithm that makes the collision step of the DSMC method more accurate in time. The idea of the DSMC method is to divide the Boltzmann equation into the pure convection and the pure collision equations, and to discretize the time dependent terms in the collision equation by the first order Euler algorithm. In the present study, we intend to make the collision step accurate to a higher order in the time step via a more accurate probabilistic interpretation employing the mmth order Taylor series expansion instead of the first order one.

2. Mathematical formulation

2.1. The Boltzmann equation

The governing equation of rarefied flow regimes is Boltzmann equation which is the temporal evolution of particles velocities distribution function. The Boltzmann equation is defined as2:

∂f∂t+v⋅∇rf=1Kn∫R3 ⁣∫S2σ(∣v−v∗∣,Ω) (f(v′)f(v∗′)−f(v)f(v∗)) dΩ dv∗=1Kn Q(f,f)\begin{aligned} \frac{\partial f}{\partial t}+v\cdot\nabla_r f &= \frac{1}{\dn{Kn}}\int_{R^3}\!\int_{S^2}\sigma(|v-v_*|,\Omega)\,\bigl(f(v')f(v'_*)-f(v)f(v_*)\bigr)\,d\Omega\,dv_*\\[0.9em] &= \frac{1}{\dn{Kn}}\,Q(f,f) \end{aligned}
(1)

where f(v′)f(v') and f(v∗′)f(v'_*) are the post-collision nonnegative distribution functions of the particles moving with the velocities v′v' and v∗′v'_* respectively, f(v)f(v) and f(v∗)f(v_*) are the pre-collision nonnegative distribution functions of the particles moving with velocities vv and v∗v_* respectively and Q(f,f)Q(f,f) is a parameter which describes the collision integral (binary collision between particles). The variable hard sphere (VHS) model is defined based on having a definite but energy dependent (variable) particle diameter and the isotropic (hard sphere) scattering law. The impact parameter in the VHS model bb is given by b=dcos⁡(θ/2)b = d\cos(\theta/2); where θ\theta is the deflection angle. The total collision cross-section can be obtained as follows:

σT=2π∫b db=πd2\sigma_T = 2\pi\int b\,db = \pi d^2
(2)

In the collision part of the Boltzmann equation, we have a kernel which is a non-negative function and it characterizes the details of the binary interactions. In the case of the inverse kkth power forces between particles, the kernel has the form of:

σ(∣v−v∗∣,Ω)=bα(θ) ∣v−v∗∣α\sigma(|v-v_*|,\Omega) = b_\alpha(\theta)\,|v-v_*|^{\alpha}
(3)

where θ\theta is the deflection angle (the angle between ∣v−v∗∣|v-v_*| and ∣v−v∗∣ Ω|v-v_*|\,\Omega), bα(θ)b_\alpha(\theta) is a positive constant in the VHS model and the exponent α\alpha is equal to 1. The value of bα(θ)b_\alpha(\theta) is equal to the total collision cross-section in the VHS model which is σT=πd2\sigma_T = \pi d^2. Then the kernel σ(∣v−v∗∣,Ω)\sigma(|v-v_*|,\Omega) in the collision part of the Boltzmann equation can be substitute by a simple model (the VHS model):

σ(∣v−v∗∣,Ω)=σT ∣v−v∗∣=πd2 ∣v−v∗∣\sigma(|v-v_*|,\Omega) = \sigma_T\,|v-v_*| = \pi d^2\,|v-v_*|

where dd is the energy dependent and Ω\Omega is a unit solid angle about the vector ∣v−v∗∣|v-v_*| and σ(∣v−v∗∣,Ω)\sigma(|v-v_*|,\Omega) is a nonnegative function while σ(∣v−v∗∣,Ω) dΩ\sigma(|v-v_*|,\Omega)\,d\Omega is the differential cross-section of collision specified by the impact parameters. Finally the Boltzmann equation could be rewritten for the VHS collision model as:

∂f∂t+v⋅∇rf=1Kn∫R3 ⁣∫S2σT ∣v−v∗∣ (f(v′)f(v∗′)−f(v)f(v∗)) dΩ dv∗=1Kn Q(f,f)\begin{aligned} \frac{\partial f}{\partial t}+v\cdot\nabla_r f &= \frac{1}{\dn{Kn}}\int_{R^3}\!\int_{S^2}\sigma_T\,|v-v_*|\,\bigl(f(v')f(v'_*)-f(v)f(v_*)\bigr)\,d\Omega\,dv_*\\[0.9em] &= \frac{1}{\dn{Kn}}\,Q(f,f) \end{aligned}
(4)

The Boltzmann equation that we presented in Eq. (4) is non-dimensional Boltzmann equation. The non-dimensional parameters are the followings:

f=n0vˉ3 f^,r=L r^,v=vˉ v^,t=Lvˉ t^,g=2 vˉ g^,σ=πd2 σ^f=\frac{n_0}{\bar v^{3}}\,\hat f,\quad r=L\,\hat r,\quad v=\bar v\,\hat v,\quad t=\frac{L}{\bar v}\,\hat t,\quad g=\sqrt2\,\bar v\,\hat g,\quad \sigma=\pi d^2\,\hat\sigma

where n0n_0 is the average number density, vˉ\bar v is the average velocity, LL is the scale length of the system and gg is the relative velocity vector. The Knudsen number is defined as Kn=λ/L=1/(2 πd2n0L)\dn{Kn} = \lambda/L = 1/(\sqrt2\,\pi d^2 n_0 L) where λ=1/(2 πd2n0)\lambda = 1/(\sqrt2\,\pi d^2 n_0) is the mean free path of the particles in the system which can be calculated from the kinetic theory of gases. We can derive Eq. (4) by replacing the non-dimensional parameters in the dimensional Boltzmann equation.

2.2. The DSMC algorithm

The DSMC method separates convection and collision effects by introducing a time step smaller than the mean collision time of particles. For flow simulation, this algorithm takes a number of model particles (molecules or atoms) into account on behalf of real particles. Every model particle is a representative of a large number of real particles. The model particles occupy the computational domain based on a Maxwellian distribution. The computational cells are generated only for tracing the particles and statistical calculations. During a small time step, model particles change their locations, interact with boundaries, experience collision with each other and finally are sampled to accumulate and compute macroscopic properties.

The velocities of the particles, which have not arrived boundaries or experienced any inter particle collisions yet, remain constant. Colliding particles with boundaries may conform to specular reflection (model particles are reflected with mirror symmetry) or to diffuse reflection (model particles are reflected randomly). Pursuing the movement and interactions with boundaries, some particles may experience the inter particle collision which causes changes in the particle velocities. After computing the collision step and particle post-collision velocities, macroscopic properties (such as density, temperature, or pressure) are accumulated over the computational cells. For eliminating inconsistent results with the physics of flow, the length of each cell must be taken equal to one third of the mean free path of particles and the time step must be considered less than the mean collision time of particles1.

We can interpret the general idea of the DSMC method as splitting the Boltzmann equation4, 5, 6 into two separate equations; an equation of convection and a collision equation. The convection equation is4, 5, 6:

∂f∂t+v⋅∇rf=0\frac{\partial f}{\partial t}+v\cdot\nabla_r f=0
(5)

And the equation of collision is4, 5, 6:

∂f∂t=1Kn Q(f,f)=1Kn∫−∞+∞ ⁣ ⁣∫04πσT ∣v−v∗∣ (f(v′)f(v∗′)−f(v)f(v∗)) dΩ dv∗=1Kn[ ∫−∞+∞ ⁣ ⁣∫04πσT ∣v−v∗∣ f(v′)f(v∗′) dΩ dv∗−f(v)∫−∞+∞ ⁣ ⁣∫04πσT ∣v−v∗∣ f(v∗) dΩ dv∗]=1Kn [P(f,f)−μf]\begin{aligned} \frac{\partial f}{\partial t} &= \frac{1}{\dn{Kn}}\,Q(f,f) = \frac{1}{\dn{Kn}}\int_{-\infty}^{+\infty}\!\!\int_{0}^{4\pi}\sigma_T\,|v-v_*|\,\bigl(f(v')f(v'_*)-f(v)f(v_*)\bigr)\,d\Omega\,dv_*\\[0.9em] &= \frac{1}{\dn{Kn}}\biggl[\,\int_{-\infty}^{+\infty}\!\!\int_{0}^{4\pi}\sigma_T\,|v-v_*|\,f(v')f(v'_*)\,d\Omega\,dv_*\\[0.9em] &\qquad\quad -f(v)\int_{-\infty}^{+\infty}\!\!\int_{0}^{4\pi}\sigma_T\,|v-v_*|\,f(v_*)\,d\Omega\,dv_*\biggr]\\[0.9em] &= \frac{1}{\dn{Kn}}\,[P(f,f)-\mu f] \end{aligned}
(6)

where P(f,f)=∫−∞+∞ ⁣ ⁣∫04πσT ∣v−v∗∣ f(v′)f(v∗′) dΩ dv∗P(f,f)=\int_{-\infty}^{+\infty}\!\!\int_{0}^{4\pi}\sigma_T\,|v-v_*|\,f(v')f(v'_*)\,d\Omega\,dv_* is the bilinear operator describing the collision effect of the molecules, and μ=∫−∞+∞ ⁣ ⁣∫04πσT ∣v−v∗∣ f(v∗) dΩ dv∗\mu=\int_{-\infty}^{+\infty}\!\!\int_{0}^{4\pi}\sigma_T\,|v-v_*|\,f(v_*)\,d\Omega\,dv_* is the mean collision frequency.

One group of quantities runs through everything that follows, and we call it the collision fraction ζ\zeta:

ζ=μΔtKn=Δtτc,τc=Knμ\zeta = \frac{\mu\Delta t}{\dn{Kn}} = \frac{\Delta t}{\tau_c},\qquad \tau_c = \frac{\dn{Kn}}{\mu}

Here τc\tau_c is the mean collision time, the mean time between two collisions of one particle in the units of Eq. (6), so ζ\zeta is the time step counted in mean collision times. Put another way, it is the mean number of collisions a particle has in one time step. If the collisions of a particle come at random at the mean rate, that number follows a Poisson distribution of mean ζ\zeta: a particle comes through a step without colliding with probability e−ζe^{-\zeta}, collides once with probability ζe−ζ\zeta e^{-\zeta}, twice with probability ζ2e−ζ/2!\zeta^2 e^{-\zeta}/2!, and so on. For a small ζ\zeta nearly every particle that collides at all collides once, and ζ\zeta is close to the share of particles that collide. As ζ\zeta grows, collisions twice or more within one step become common: at ζ=0.3\zeta = 0.3 they are one in seven of the particles that collide, and at ζ=1\zeta = 1 they are four in ten.

The Knudsen number stands in the denominator. At a given time step a denser gas, with a smaller Kn\dn{Kn}, has more collisions in each step and so a larger ζ\zeta. To keep ζ\zeta small towards the continuum, the time step has to shrink with the Knudsen number, which is why the direct simulation grows expensive there. In terms of ζ\zeta, the condition that the time step be shorter than the mean collision time reads ζ<1\zeta < 1.

The first order time discretization of Eq. (6) can be written as:

fn+1−fnΔt=1Kn [P(fn,fn)−μfn],fn+1=(1−ζ) fn+ζ P(fn,fn)μ\begin{aligned} \frac{f^{n+1}-f^n}{\Delta t} &= \frac{1}{\dn{Kn}}\,[P(f^n,f^n)-\mu f^n],\\[0.9em] f^{n+1} &= (1-\zeta)\,f^n+\zeta\,\frac{P(f^n,f^n)}{\mu} \end{aligned}
(7)

The probabilistic interpretation of Eq. (7) is the procedure of sampling in the DSMC method. In order to sample a particle in the next time step (a particle sampled from fn+1f^{n+1}), it is possible to sample a particle which did not experience inter particle collision in the current time step (a particle sampled from fnf^n) with probability of (1−ζ)(1-\zeta); or a particle which experienced inter particle collision in the current time step (particle sampled from P(fn,fn)/μP(f^n,f^n)/\mu) with probability of ζ\zeta. The share left as it was, 1−ζ1-\zeta, is the first two terms of the series of e−ζe^{-\zeta}, the probability of coming through the step without a collision; the high-order algorithms of Section 2.3 carry this series further. Note that when the time step is considered less than the mean collision time, the value of ζ\zeta will be computed less than unity and (1−ζ)(1-\zeta) will be positive. On the other hand, the time step greater than the mean collision time, gives a value larger than unity for ζ\zeta and (1−ζ)(1-\zeta) will be negative resulting in failure of the probabilistic interpretation. The negative value of the coefficient (1−ζ)(1-\zeta) leads to inconsistent results with the physics of flow as well.

2.3. The high-order DSMC, the H-DSMC, algorithm

In the high-order DSMC algorithm, the mmth order Taylor series expansion is employed to compute fn+1f^{n+1}:

fn+1=fn+Δt ∂f∂t∣n+(Δt)22! ∂2f∂t2∣n+(Δt)33! ∂3f∂t3∣n+⋯+(Δt)mm! ∂mf∂tm∣nf^{n+1}=f^n+\Delta t\,\left.\frac{\partial f}{\partial t}\right|^n+\frac{(\Delta t)^2}{2!}\,\left.\frac{\partial^{2} f}{\partial t^{2}}\right|^n+\frac{(\Delta t)^3}{3!}\,\left.\frac{\partial^{3} f}{\partial t^{3}}\right|^n+\cdots+\frac{(\Delta t)^m}{m!}\,\left.\frac{\partial^{m} f}{\partial t^{m}}\right|^n
(8)

The second order time derivative of the function ff, ∂2f/∂t2\partial^2 f/\partial t^2 in Eq. (8) is calculated as10:

∂2f∂t2∣n=∂∂t(∂f∂t)∣n=∂∂t(1Kn [P(fn,fn)−μfn])=1Kn ∂P(fn,fn)∂t−μKn ∂f∂t∣n=1Kn ∂P(fn,fn)∂t−μKn(1Kn [P(fn,fn)−μfn])=1Kn ∂P(fn,fn)∂t−μKn2 P(fn,fn)+μ2Kn2 fn\begin{aligned} \left.\frac{\partial^{2} f}{\partial t^{2}}\right|^n &= \frac{\partial}{\partial t}\left.\left(\frac{\partial f}{\partial t}\right)\right|^n=\frac{\partial}{\partial t}\left(\frac{1}{\dn{Kn}}\,[P(f^n,f^n)-\mu f^n]\right)\\[0.9em] &= \frac{1}{\dn{Kn}}\,\frac{\partial P(f^n,f^n)}{\partial t}-\frac{\mu}{\dn{Kn}}\,\left.\frac{\partial f}{\partial t}\right|^n\\[0.9em] &= \frac{1}{\dn{Kn}}\,\frac{\partial P(f^n,f^n)}{\partial t}-\frac{\mu}{\dn{Kn}}\left(\frac{1}{\dn{Kn}}\,[P(f^n,f^n)-\mu f^n]\right)\\[0.9em] &= \frac{1}{\dn{Kn}}\,\frac{\partial P(f^n,f^n)}{\partial t}-\frac{\mu}{\dn{Kn}^2}\,P(f^n,f^n)+\frac{\mu^2}{\dn{Kn}^2}\,f^n \end{aligned}
(9)

and the third order time derivative of the function ff, ∂3f/∂t3\partial^3 f/\partial t^3 in Eq. (8) can be expressed similarly as:

∂3f∂t3∣n=∂∂t(∂2f∂t2)∣n=∂∂t(1Kn ∂P(fn,fn)∂t−μKn2 P(fn,fn)+μ2Kn2 fn)=1Kn ∂2P(fn,fn)∂t2−μKn2 ∂P(fn,fn)∂t+μ2Kn2 ∂fn∂t=1Kn ∂2P(fn,fn)∂t2−μKn2 ∂P(fn,fn)∂t+μ2Kn2(1Kn [P(fn,fn)−μfn])=1Kn ∂2P(fn,fn)∂t2−μKn2 ∂P(fn,fn)∂t+μ2Kn3 P(fn,fn)−μ3Kn3 fn\begin{aligned} \left.\frac{\partial^{3} f}{\partial t^{3}}\right|^n &= \frac{\partial}{\partial t}\left.\left(\frac{\partial^2 f}{\partial t^2}\right)\right|^n=\frac{\partial}{\partial t}\left(\frac{1}{\dn{Kn}}\,\frac{\partial P(f^n,f^n)}{\partial t}-\frac{\mu}{\dn{Kn}^2}\,P(f^n,f^n)+\frac{\mu^2}{\dn{Kn}^2}\,f^n\right)\\[0.9em] &= \frac{1}{\dn{Kn}}\,\frac{\partial^{2} P(f^n,f^n)}{\partial t^{2}}-\frac{\mu}{\dn{Kn}^2}\,\frac{\partial P(f^n,f^n)}{\partial t}+\frac{\mu^2}{\dn{Kn}^2}\,\frac{\partial f^n}{\partial t}\\[0.9em] &= \frac{1}{\dn{Kn}}\,\frac{\partial^{2} P(f^n,f^n)}{\partial t^{2}}-\frac{\mu}{\dn{Kn}^2}\,\frac{\partial P(f^n,f^n)}{\partial t}+\frac{\mu^2}{\dn{Kn}^2}\left(\frac{1}{\dn{Kn}}\,[P(f^n,f^n)-\mu f^n]\right)\\[0.9em] &= \frac{1}{\dn{Kn}}\,\frac{\partial^{2} P(f^n,f^n)}{\partial t^{2}}-\frac{\mu}{\dn{Kn}^2}\,\frac{\partial P(f^n,f^n)}{\partial t}+\frac{\mu^2}{\dn{Kn}^3}\,P(f^n,f^n)-\frac{\mu^3}{\dn{Kn}^3}\,f^n \end{aligned}
(10)

Continuing the above procedure for the mmth order time derivative of the function ff, ∂mf/∂tm\partial^m f/\partial t^m in Eq. (8) leads to:

∂mf∂tm∣n=∂∂t(∂m−1f∂tm−1)∣n=(−μKn)mfn+∑j=0m−1[μm−1−jKnm−j (−1)m−1−j ∂ jP(fn,fn)∂t j]\left.\frac{\partial^{m} f}{\partial t^{m}}\right|^n=\frac{\partial}{\partial t}\left.\left(\frac{\partial^{m-1} f}{\partial t^{m-1}}\right)\right|^n=\left(\frac{-\mu}{\dn{Kn}}\right)^{m}f^n+\sum_{j=0}^{m-1}\left[\frac{\mu^{m-1-j}}{\dn{Kn}^{m-j}}\,(-1)^{m-1-j}\,\frac{\partial^{\,j}P(f^n,f^n)}{\partial t^{\,j}}\right]
(11)

Substituting Eq. (11) into Eq. (8) for all terms of ∂ jf/∂t j\partial^{\,j} f/\partial t^{\,j}, we have:

fn+1=fn+Δt(1Kn [P(fn,fn)−μfn])+(Δt)22!(1Kn ∂P(fn,fn)∂t−μKn2 P(fn,fn)+μ2Kn2 fn)+(Δt)33!(1Kn ∂2P(fn,fn)∂t2−μKn2 ∂P(fn,fn)∂t+μ2Kn3 P(fn,fn)−μ3Kn3 fn)+⋯+(Δt)mm!((−μKn)mfn+∑j=0m−1[μm−1−jKnm−j (−1)m−1−j ∂ jP(fn,fn)∂t j])\begin{aligned} f^{n+1} = f^n &+\Delta t\left(\frac{1}{\dn{Kn}}\,[P(f^n,f^n)-\mu f^n]\right)\\[0.9em] &+\frac{(\Delta t)^2}{2!}\left(\frac{1}{\dn{Kn}}\,\frac{\partial P(f^n,f^n)}{\partial t}-\frac{\mu}{\dn{Kn}^2}\,P(f^n,f^n)+\frac{\mu^2}{\dn{Kn}^2}\,f^n\right)\\[0.9em] &+\frac{(\Delta t)^3}{3!}\biggl(\frac{1}{\dn{Kn}}\,\frac{\partial^{2} P(f^n,f^n)}{\partial t^{2}}-\frac{\mu}{\dn{Kn}^2}\,\frac{\partial P(f^n,f^n)}{\partial t}\\[0.9em] &\qquad\qquad\quad +\frac{\mu^2}{\dn{Kn}^3}\,P(f^n,f^n)-\frac{\mu^3}{\dn{Kn}^3}\,f^n\biggr)+\cdots\\[0.9em] &+\frac{(\Delta t)^m}{m!}\left(\left(\frac{-\mu}{\dn{Kn}}\right)^{m}f^n+\sum_{j=0}^{m-1}\left[\frac{\mu^{m-1-j}}{\dn{Kn}^{m-j}}\,(-1)^{m-1-j}\,\frac{\partial^{\,j}P(f^n,f^n)}{\partial t^{\,j}}\right]\right) \end{aligned}
(12)

Everything now turns on the time derivatives of the collision term P(fn,fn)P(f^n,f^n), and two of its properties carry the rest. It is bilinear and symmetric: P(g,h)P(g,h) is linear in each of its two arguments, and P(g,h)=P(h,g)P(g,h)=P(h,g), since swapping the two partners of a collision only relabels it (the direction Ω\Omega turns into −Ω-\Omega, which leaves σT ∣v−v∗∣\sigma_T\,|v-v_*| as it is). And μ\mu is held constant over the step: it is the upper bound of the collision frequency that the pseudo code of Section 2.8 sets, and PP counts the dummy collisions that the bound brings with it, the pairs whose test turns them down and whose velocities do not change. With both, P(g,h)/μP(g,h)/\mu is itself a probability density whenever gg and hh are: the velocity of a particle drawn from gg after it has met a partner drawn from hh. In particular f1n=P(fn,fn)/μf^n_1 = P(f^n,f^n)/\mu is the distribution of the particles that have collided once in the step, and Eq. (6) reads ∂f/∂t=(μ/Kn) (f1n−fn)\partial f/\partial t = (\mu/\dn{Kn})\,(f^n_1-f^n).

2.4. The time derivative of the collision term

Both arguments of P(fn,fn)P(f^n,f^n) change in time, so its derivative has two terms, one for each partner of the collision:

∂P(fn,fn)∂t=∫−∞+∞ ⁣ ⁣∫04πσT ∣v−v∗∣(∂f(v′)∂t f(v∗′)+f(v′) ∂f(v∗′)∂t) dΩ dv∗=P ⁣(∂f∂t,fn)+P ⁣(fn,∂f∂t)=2 P ⁣(∂f∂t,fn)\begin{aligned} \frac{\partial P(f^n,f^n)}{\partial t} &= \int_{-\infty}^{+\infty}\!\!\int_{0}^{4\pi}\sigma_T\,|v-v_*|\left(\frac{\partial f(v')}{\partial t}\,f(v'_*)+f(v')\,\frac{\partial f(v'_*)}{\partial t}\right)\,d\Omega\,dv_*\\[0.9em] &= P\!\left(\frac{\partial f}{\partial t},f^n\right)+P\!\left(f^n,\frac{\partial f}{\partial t}\right)\\[0.9em] &= 2\,P\!\left(\frac{\partial f}{\partial t},f^n\right) \end{aligned}
(13)

The two terms are equal because PP is symmetric. Into the last line goes the time derivative of ff from Eq. (6), ∂f/∂t=(μ/Kn) (f1n−fn)\partial f/\partial t = (\mu/\dn{Kn})\,(f^n_1-f^n), and since PP is linear in its first argument:

∂P(fn,fn)∂t=2 P ⁣(μKn (f1n−fn), fn)=2μKn{P(f1n,fn)−P(fn,fn)}\frac{\partial P(f^n,f^n)}{\partial t} = 2\,P\!\left(\frac{\mu}{\dn{Kn}}\,(f^n_1-f^n),\,f^n\right) = \frac{2\mu}{\dn{Kn}}\left\{P(f^n_{1},f^n)-P(f^n,f^n)\right\}
(14)

Each factor has a meaning. The 2 counts the two particles of a collision, either of which may have collided before. The factor μ/Kn=1/τc\mu/\dn{Kn} = 1/\tau_c is the rate at which particles collide, so over one time step P(fn,fn)P(f^n,f^n) changes by a part of the size of ζ\zeta, as ff does. And P(f1n,fn)P(f^n_{1},f^n) is the outcome of collisions in which one partner has already collided in the step: the particles that come out of it carry two collisions.

2.5. The groups of collided particles

Differentiating Eq. (14) once more brings in P(f1n,f1n)P(f^n_1,f^n_1), the collision of two particles that have each collided once, besides P(f2n,fn)P(f^n_2,f^n): the second derivative of a bilinear term has a part in which both of its arguments have changed. So the particles that a step produces fall into groups by the number of collisions they carry, and a group is fed by every way of sharing its collisions between the two partners. At time step nn, and writing fjf_j for fjnf^n_j from here on, the groups are

f0=fn,fj+1=1(j+1) μ∑l=0jP(fl,fj−l),j=0,1,2,…f_0 = f^n,\qquad f_{j+1} = \frac{1}{(j+1)\,\mu}\sum_{l=0}^{j}P(f_l,f_{j-l}),\qquad j = 0,1,2,\ldots
(15)

so that f1=P(f0,f0)/μf_1 = P(f_0,f_0)/\mu, f2=P(f1,f0)/μf_2 = P(f_1,f_0)/\mu and f3=[2P(f2,f0)+P(f1,f1)]/3μf_3 = [2P(f_2,f_0)+P(f_1,f_1)]/3\mu. Each fjf_j is a probability density, a mean of the densities P(fl,fj−1−l)/μP(f_l,f_{j-1-l})/\mu, and a particle of it carries the outcome of jj collisions: its own, and those that its partners, and their partners, had before it met them. It is sampled as Eq. (15) reads: draw ll from 0,1,…,j−10,1,\ldots,j-1, each as likely, and let a particle of flf_l collide with one of fj−1−lf_{j-1-l}. Fig. 1 draws the histories this allows for the group fmf_m, the one that a method of order mm brings in, for an mm to choose. They are the trees of Wild’s sum7.

f4=P(f3,f0)+P(f2,f1)2μf_{4} = \frac{P(f_{3},f_{0})+P(f_{2},f_{1})}{2\mu}

  • 1/2
  • 1/3
  • 1/6

Your order: m = 4 drag the number

Collisions a particle of f₄ carries
4
Particles of fⁿ that they join
5
Shapes of history in f₄
3
Fig. 1 The histories a particle of the group fmf_m of Eq. (15) can have had within one step, each with its share of the group, for an order mm to choose. A tree reads from the top down: a grey dot is a particle as the step found it, each joint is a collision, coloured by the group its outcome belongs to, and the joint at the bottom is the particle sampled. A history of jj collisions joins j+1j+1 particles of fnf^n.

The time derivative of every group follows one rule:

∂fj∂t=(j+1) μKn (fj+1−fj)\frac{\partial f_j}{\partial t} = (j+1)\,\frac{\mu}{\dn{Kn}}\,(f_{j+1}-f_j)
(16)

For j=0j = 0 it is Eq. (6), and for j=1j = 1 it is Eq. (14) divided by μ\mu. For j=2j = 2 it takes one more step of the same kind: both arguments of P(f1,f0)P(f_1,f_0) change, at the rates that Eq. (16) gives for j=1j = 1 and j=0j = 0:

∂f2∂t=1μ[P ⁣(∂f1∂t,f0)+P ⁣(f1,∂f0∂t)]=1Kn[2P(f2,f0)−2P(f1,f0)+P(f1,f1)−P(f1,f0)]=1Kn[(2P(f2,f0)+P(f1,f1))−3P(f1,f0)]=3 μKn (f3−f2)\begin{aligned} \frac{\partial f_2}{\partial t} &= \frac{1}{\mu}\left[P\!\left(\frac{\partial f_1}{\partial t},f_0\right)+P\!\left(f_1,\frac{\partial f_0}{\partial t}\right)\right]\\[0.9em] &= \frac{1}{\dn{Kn}}\Bigl[2P(f_2,f_0)-2P(f_1,f_0)+P(f_1,f_1)-P(f_1,f_0)\Bigr]\\[0.9em] &= \frac{1}{\dn{Kn}}\Bigl[\bigl(2P(f_2,f_0)+P(f_1,f_1)\bigr)-3P(f_1,f_0)\Bigr]\\[0.9em] &= 3\,\frac{\mu}{\dn{Kn}}\,(f_3-f_2) \end{aligned}
(17)

The last line is Eq. (15) twice over: 2P(f2,f0)+P(f1,f1)=3μf32P(f_2,f_0)+P(f_1,f_1) = 3\mu f_3 and P(f1,f0)=μf2P(f_1,f_0) = \mu f_2. For any jj the rule follows by induction. If it holds for the groups f0f_0 to fj−1f_{j-1}, differentiate Eq. (15) for fjf_j; by symmetry the two terms of each PP add up to twice the first, and

∂fj∂t=2jμ∑l=0j−1P ⁣(∂fl∂t,fj−1−l)=2j Kn[ ∑l=1jl P(fl,fj−l)−∑l=0j−1(l+1) P(fl,fj−1−l)]=1Kn[ ∑l=0jP(fl,fj−l)−j+1j∑l=0j−1P(fl,fj−1−l)]=(j+1) μKn (fj+1−fj)\begin{aligned} \frac{\partial f_j}{\partial t} &= \frac{2}{j\mu}\sum_{l=0}^{j-1}P\!\left(\frac{\partial f_l}{\partial t},f_{j-1-l}\right)\\[0.9em] &= \frac{2}{j\,\dn{Kn}}\left[\,\sum_{l=1}^{j}l\,P(f_l,f_{j-l})-\sum_{l=0}^{j-1}(l+1)\,P(f_l,f_{j-1-l})\right]\\[0.9em] &= \frac{1}{\dn{Kn}}\left[\,\sum_{l=0}^{j}P(f_l,f_{j-l})-\frac{j+1}{j}\sum_{l=0}^{j-1}P(f_l,f_{j-1-l})\right]\\[0.9em] &= (j+1)\,\frac{\mu}{\dn{Kn}}\,(f_{j+1}-f_j) \end{aligned}
(18)

From the second line to the third, each sum is folded on itself. In the first, the terms ll and j−lj-l are the same collision and their weights add up to jj, so the sum is j/2j/2 times the plain sum; in the second, the weights l+1l+1 and j−lj-l of the same collision add up to j+1j+1. The last line is Eq. (15) for fj+1f_{j+1} and for fjf_j.

Eq. (16) has a plain reading, which Fig. 2 draws. A particle of fjf_j carries the outcome of j+1j+1 particles of fnf^n, the grey dots of its tree in Fig. 1. Each of them meets a new partner at the rate μ/Kn\mu/\dn{Kn}, and when one does, the tree gains a collision and a particle: the particle moves up to fj+1f_{j+1}. So fjf_j loses particles at the rate (j+1) μ/Kn(j+1)\,\mu/\dn{Kn} and gains them from fj−1f_{j-1} at the rate j μ/Knj\,\mu/\dn{Kn}. The rate grows with the group because a longer history holds more particles that can collide.

  1. f0f_0 no collision, 1 particle
  2. μ/Kn\mu/\dn{Kn} f1f_1 1 collision, 2 particles
  3. 2 μ/Kn2\,\mu/\dn{Kn} ⋯
  4. j μ/Knj\,\mu/\dn{Kn} fjf_j jj collisions, j+1j+1 particles
  5. (j+1) μ/Kn(j+1)\,\mu/\dn{Kn} ⋯
Fig. 2 The ladder of Eq. (16). Every group passes its particles on to the next at a rate that grows with the group: a particle of fjf_j carries the outcome of j+1j+1 particles, any one of which may meet a new partner.

2.6. The mth order H-DSMC method

As Eq. (16) gives the derivative of every group in groups, so does every derivative of ff. Applying it kk times to f=f0f = f_0:

∂kf∂tk∣n=(μKn)k∑j=0kckj fj,c00=1,ck+1,j=j ck,j−1−(j+1) ckj\left.\frac{\partial^k f}{\partial t^k}\right|^n = \left(\frac{\mu}{\dn{Kn}}\right)^{k}\sum_{j=0}^{k}c_{kj}\,f_j,\qquad c_{00} = 1,\quad c_{k+1,j} = j\,c_{k,j-1}-(j+1)\,c_{kj}
(19)

The recursion says that the share of fjf_j in the next derivative comes in from fj−1f_{j-1}, at jj times its share there, and goes out at j+1j+1 times its own. The first three derivatives are

∂f∂t∣n=μKn (f1−f0)∂2f∂t2∣n=(μKn)2(2f2−3f1+f0)∂3f∂t3∣n=(μKn)3(6f3−12f2+7f1−f0)\begin{aligned} \left.\frac{\partial f}{\partial t}\right|^n &= \frac{\mu}{\dn{Kn}}\,(f_1-f_0)\\[0.9em] \left.\frac{\partial^{2} f}{\partial t^{2}}\right|^n &= \left(\frac{\mu}{\dn{Kn}}\right)^{2}(2f_2-3f_1+f_0)\\[0.9em] \left.\frac{\partial^{3} f}{\partial t^{3}}\right|^n &= \left(\frac{\mu}{\dn{Kn}}\right)^{3}(6f_3-12f_2+7f_1-f_0) \end{aligned}
(20)

and the coefficients have a closed form,

ckj=(−1)k∑i=0j(−1)i(ji)(i+1)k=(−1)k−j j! S(k+1, j+1)c_{kj} = (-1)^k\sum_{i=0}^{j}(-1)^i\binom{j}{i}(i+1)^k = (-1)^{k-j}\,j!\,S(k+1,\,j+1)
(21)

where S(k+1, j+1)S(k+1,\,j+1) is a Stirling number of the second kind, the number of ways to split k+1k+1 things into j+1j+1 groups. To check it, put it into the recursion of Eq. (19): with j(j−1i)=(j−i)(ji)j\binom{j-1}{i} = (j-i)\binom{j}{i}, the right side becomes (−1)k∑i(−1)i(ji)(i+1)k [(j−i)−(j+1)](-1)^k\sum_i(-1)^i\binom{j}{i}(i+1)^k\,[(j-i)-(j+1)], which is the closed form of ck+1,jc_{k+1,j}. It is zero for j>kj>k: the kkth derivative reaches no further than fkf_k.

Putting Eq. (19) into Eq. (8), each (Δt)k(\Delta t)^k meets (μ/Kn)k(\mu/\dn{Kn})^k, and the time step stands only in the collision fraction ζ\zeta:

fn+1=∑j=0maj(m)(ζ) fj,aj(m)(ζ)=∑k=jmckj ζkk!f^{n+1} = \sum_{j=0}^{m}a^{(m)}_j(\zeta)\,f_j,\qquad a^{(m)}_j(\zeta) = \sum_{k=j}^{m}c_{kj}\,\frac{\zeta^k}{k!}
(22)

The coefficients aj(m)a^{(m)}_j are the probabilities of sampling a particle of fn+1f^{n+1} from each group. Four properties make them so, and say what the order buys.

They add up to one, for every order and every ζ\zeta:

∑j=0maj(m)(ζ)=∑k=0mζkk!∑j=0kckj=1\sum_{j=0}^{m}a^{(m)}_j(\zeta) = \sum_{k=0}^{m}\frac{\zeta^k}{k!}\sum_{j=0}^{k}c_{kj} = 1
(23)

because ∑jckj=0\sum_j c_{kj} = 0 for every k≥1k\ge1: in Eq. (16) what one group loses the next one gains, so no derivative changes the number of particles, and only c00=1c_{00} = 1 is left. This is what a probabilistic reading needs, and it holds term by term in ζ\zeta.

The share left untouched, a0(m)a^{(m)}_0, is the first m+1m+1 terms of e−ζe^{-\zeta} (ck0=(−1)kc_{k0} = (-1)^k), the probability that a particle has no collision in the step. The last share is am(m)=ζma^{(m)}_m = \zeta^m (cmm=m!c_{mm} = m!): the particles of mm collisions come in at the mmth power of the step, as the probability of mm collisions does.

As the order grows, the shares tend to

aj(m)(ζ)  ⟶  ∑i=0j(−1)i(ji) e−(i+1)ζ=e−ζ(1−e−ζ)j,∑j=0∞e−ζ(1−e−ζ)j=1\begin{gathered} a^{(m)}_j(\zeta)\;\longrightarrow\;\sum_{i=0}^{j}(-1)^i\binom{j}{i}\,e^{-(i+1)\zeta} = e^{-\zeta}\left(1-e^{-\zeta}\right)^{j},\\[0.9em] \sum_{j=0}^{\infty}e^{-\zeta}\left(1-e^{-\zeta}\right)^{j} = 1 \end{gathered}
(24)

which is Eq. (21) summed over kk: each (i+1)kζk/k!(i+1)^k\zeta^k/k! sums to an exponential. These weights are positive for every ζ\zeta, and with them Eq. (22) is the exact solution of the collision equation (6) over the step: Wild’s sum7, on which the time relaxed Monte Carlo methods of Pareschi and Russo6 are built. The mmth order method keeps the Taylor polynomial of order mm of each weight. They are not the Poisson numbers of collisions of Section 2.2, because a group counts the collisions of a particle’s partners too: a particle that collides once, with a partner that has already collided, carries two collisions and belongs to f2f_2. At ζ=0.3\zeta = 0.3 the weights of f0f_0 to f3f_3 are 74.1%, 19.2%, 5.0% and 1.3%, where the Poisson numbers of a particle’s own collisions are 74.1%, 22.2%, 3.3% and 0.3%.

A truncated weight can turn negative. The share of fm−1f_{m-1} is the first to:

am−1(m)(ζ)=ζ m−1(1−m+12 ζ),so the shares are probabilities forζ≤2m+1\begin{gathered} a^{(m)}_{m-1}(\zeta) = \zeta^{\,m-1}\left(1-\frac{m+1}{2}\,\zeta\right),\\[0.9em] \text{so the shares are probabilities for}\quad \zeta\le\frac{2}{m+1} \end{gathered}
(25)

The other shares stay positive up to that step, which is checked for every order up to m=8m = 8. The longest step is one mean collision time for the DSMC method (m=1m = 1), two thirds of one for the second order, a half for the third and two fifths for the fourth: the higher the order, the shorter the step it can take. Fig. 3 draws the shares of any order up to the fifth against ζ\zeta, with the exact weights under them.

−0.200.20.40.60.8100.20.40.60.811.2collision fraction, ζprobability
  • f₀, not collided
  • f₁, one collision
  • f₂, two
  • f₃, three
  • f₄, four
  • the method of order m
  • the exact weights, Eq. (24)
  • the longest step, Eq. (25)

Your own method and collision fraction: m = 4 ζ = 0.3 drag a number

f₀, not collided
74.1%
f₁, one collision
19.1%
f₂, two
5.3%
f₃, three
0.7%
f₄, four
0.8%
Sum
100.0%
As probabilities (needs ζ ≤ 0.40)
all positive
Fig. 3 The sampling probabilities of Eq. (22) for an order mm and a collision fraction ζ\zeta to choose, with the exact weights of Eq. (24) dotted under them and the longest step of Eq. (25) dashed. Table 1 writes the same probabilities out as polynomials in ζ\zeta.

2.7. The second, third and fourth order methods

For m=2m = 2, with f1=P(fn,fn)/μf_1 = P(f^n,f^n)/\mu and f2=P(f1,fn)/μf_2 = P(f_1,f^n)/\mu:

fn+1=(1−ζ+ζ22)fn+(ζ−32 ζ2)P(fn,fn)μ+ζ2 P(f1,fn)μf^{n+1} = \left(1-\zeta+\frac{\zeta^2}{2}\right)f^n+\left(\zeta-\frac{3}{2}\,\zeta^2\right)\frac{P(f^n,f^n)}{\mu}+\zeta^2\,\frac{P(f_1,f^n)}{\mu}
(26)

For m=3m = 3 the group f3f_3 joins, made of two kinds of collision:

fn+1=(1−ζ+ζ22−ζ36)fn+(ζ−32 ζ2+76 ζ3)P(fn,fn)μ+(ζ2−2ζ3)P(f1,fn)μ+ζ3 2P(f2,fn)+P(f1,f1)3μ\begin{aligned} f^{n+1} = {}&\left(1-\zeta+\frac{\zeta^2}{2}-\frac{\zeta^3}{6}\right)f^n+\left(\zeta-\frac{3}{2}\,\zeta^2+\frac{7}{6}\,\zeta^3\right)\frac{P(f^n,f^n)}{\mu}\\[0.9em] &+\left(\zeta^2-2\zeta^3\right)\frac{P(f_1,f^n)}{\mu}+\zeta^3\,\frac{2P(f_2,f^n)+P(f_1,f_1)}{3\mu} \end{aligned}
(27)

and for m=4m = 4:

fn+1=(1−ζ+ζ22−ζ36+ζ424)fn+(ζ−32 ζ2+76 ζ3−58 ζ4)P(fn,fn)μ+(ζ2−2ζ3+2512 ζ4)P(f1,fn)μ+(ζ3−52 ζ4)2P(f2,fn)+P(f1,f1)3μ+ζ4 P(f3,fn)+P(f2,f1)2μ\begin{aligned} f^{n+1} = {}&\left(1-\zeta+\frac{\zeta^2}{2}-\frac{\zeta^3}{6}+\frac{\zeta^4}{24}\right)f^n\\[0.9em] &+\left(\zeta-\frac{3}{2}\,\zeta^2+\frac{7}{6}\,\zeta^3-\frac{5}{8}\,\zeta^4\right)\frac{P(f^n,f^n)}{\mu}\\[0.9em] &+\left(\zeta^2-2\zeta^3+\frac{25}{12}\,\zeta^4\right)\frac{P(f_1,f^n)}{\mu}\\[0.9em] &+\left(\zeta^3-\frac{5}{2}\,\zeta^4\right)\frac{2P(f_2,f^n)+P(f_1,f_1)}{3\mu}+\zeta^4\,\frac{P(f_3,f^n)+P(f_2,f_1)}{2\mu} \end{aligned}
(28)

Table 1 writes the probabilities out for an order to choose, up to the fifth. To first order in ζ\zeta every one of them is Eq. (7). The higher orders correct it by terms in ζ2\zeta^2 and above, which is the size of the error of Eq. (7) over one step.

Table 1 The groups of particles a particle of fn+1f^{n+1} is sampled from, and their probabilities, Eq. (22), for an order mm to choose. Each group is made as Eq. (15) and Fig. 1 show.
Sampling a particle from Probability
4th order H-DSMC
f0f_0 1−ζ+12ζ2−16ζ3+124ζ41-\zeta+\tfrac{1}{2}\zeta^{2}-\tfrac{1}{6}\zeta^{3}+\tfrac{1}{24}\zeta^{4}
f1f_1 ζ−32ζ2+76ζ3−58ζ4\zeta-\tfrac{3}{2}\zeta^{2}+\tfrac{7}{6}\zeta^{3}-\tfrac{5}{8}\zeta^{4}
f2f_2 ζ2−2ζ3+2512ζ4\zeta^{2}-2\zeta^{3}+\tfrac{25}{12}\zeta^{4}
f3f_3 ζ3−52ζ4\zeta^{3}-\tfrac{5}{2}\zeta^{4}
f4f_4 ζ4\zeta^{4}
Their sum 11
All positive for ζ≤25\zeta\le \tfrac{2}{5}

Your order: m = 4 drag the number

2.8. Sampling procedure and pseudo codes

The probabilistic reading of Eq. (22) is the sampling procedure of the method. A particle of fn+1f^{n+1} is taken from the group fjf_j with probability aj(m)(ζ)a^{(m)}_j(\zeta), and a particle of fjf_j, for j≥1j\ge1, is made as Eq. (15) says: draw ll from 0,1,…,j−10,1,\ldots,j-1, each as likely, and let a particle of flf_l collide with one of fj−1−lf_{j-1-l}.

In a cell of NN particles this is done with counts. The collisions are made in rounds, k=1k = 1 to mm, and round kk makes the group fkf_k: each of its NckN_{c_k} collisions takes a particle of group ll and one of group k−1−lk-1-l out of their groups, with ll drawn as above, and puts both particles that come out of it into group kk. A pair that the acceptance test turns down is a dummy collision: its particles keep their velocities, but they join group kk all the same, since PP counts dummy collisions.

The counts must leave every group with Nak(m)N a^{(m)}_k particles at the end of the step. A collision of round ll takes, on average, 2/l2/l particles of any one group below it, so, working down from the last round,

Ncm=N2 am(m),Nck=12(Nak(m)+∑l=k+1m2l Ncl),k=m−1,…,1N_{c_m} = \frac{N}{2}\,a^{(m)}_m,\qquad N_{c_k} = \frac{1}{2}\left(N a^{(m)}_k+\sum_{l=k+1}^{m}\frac{2}{l}\,N_{c_l}\right),\quad k = m-1,\ldots,1
(29)

rounded to whole numbers. Group 0 is then left with Na0(m)N a^{(m)}_0 particles, since the shares add up to one, and a particle that no round has taken keeps its velocity. For the second order, Nc2=Nζ2/2N_{c_2} = N\zeta^2/2 and Nc1=N(ζ−ζ2)/2N_{c_1} = N(\zeta-\zeta^2)/2. The pseudo code of the second order H-DSMC method is the following:

  • Set constants and initial conditions.
  • Set the appropriate time step.
  • Distribute the initial location of the particles according to the uniform distribution.
  • for nt=1n_t = 1 to ntotn_{tot}

    • Compute an upper bound, σˉ\bar\sigma.
    • Set μ=4πσˉ\mu = 4\pi\bar\sigma.
    • Set ζ=μΔt/Kn\zeta = \mu\Delta t/\dn{Kn}.
    • Compute

      Nc1=Iround ⁣(N2 (ζ−ζ2))N_{c_1} = \mathrm{Iround}\!\left(\frac{N}{2}\,(\zeta-\zeta^2)\right)
    • Select Nc1N_{c_1} dummy collision pairs (i,j)(i,j) uniformly among all possible pairs.
    • Compute the relative cross section σij\sigma_{ij}.
    • Generate uniform random numbers (α1\alpha_1).
    • If α1<σij/σˉ\alpha_1 < \sigma_{ij}/\bar\sigma

      • Perform the collision between ii and jj, and compute the post-collision velocities vi∗v_i^* and vj∗v_j^*.
    • Mark the 2Nc12N_{c_1} selected particles as group 1, those that have collided once, whether the test held for their pair or not.
    • Set

      Nc2=Iround ⁣(N2 ζ2)N_{c_2} = \mathrm{Iround}\!\left(\frac{N}{2}\,\zeta^2\right)
    • Select Nc2N_{c_2} particles among those that have not been selected and Nc2N_{c_2} particles of group 1, and pair them.
    • Compute the relative cross section σij\sigma_{ij}.
    • Generate uniform random numbers (α2\alpha_2).
    • If α2<σij/σˉ\alpha_2 < \sigma_{ij}/\bar\sigma

      • Perform the collision between ii and jj, and compute the post-collision velocities vi∗v_i^* and vj∗v_j^*.
    • Set vin+1=vinv_i^{n+1} = v_i^n for all the N−2Nc1−Nc2N - 2N_{c_1} - N_{c_2} particles that have not been selected.
  • End for

The algorithm of the DSMC method, the second order H-DSMC method and the mmth order H-DSMC method are presented in Figs. 4 to 6.

  1. Start
  2. Calculate the number of the particles and the model particles. Distribute initial location of the particles according to the uniform distribution.
  3. Allocate a value to the velocity of each particle according to the mean probable velocity, i.e. define {vn, n=1…N}\{v_n,\ n = 1 \ldots N\}.
  4. Until the solution is steady

    1. Calculate xnew=xold+v Δtx_{new} = x_{old} + v\,\Delta t.
    2. Perform boundary conditions.
    3. For each cell

      1. Define the local Kn\dn{Kn} number and calculate the effective diameter of the molecules.
      2. Calculate the maximum collision cross-section (define an upper bound σˉ\bar\sigma), and ζ=μΔt/Kn\zeta = \mu\Delta t/\dn{Kn}.
      3. Calculate the numbers of collisions (NcN_c ).
      4. Select NcN_c dummy collision pairs uniformly among all possible pairs.
      5. For each pair (i,j)(i,j)

        1. Generate a uniform random number α\alpha.
        2. If α<σij/σˉ\alpha < \sigma_{ij}/\bar\sigma Perform the collision between two selected particles (particle velocities update).
    4. Calculate macroscopic properties.
  5. Stop

Fig. 4 The flowchart of the DSMC method.

2.9. What the order buys: a check on Maxwell molecules

The order of the method can be checked where the collision equation is solved exactly. For Maxwell molecules, whose collision rate does not depend on their relative speed, σT ∣v−v∗∣\sigma_T\,|v-v_*| is a constant, μ\mu is exact and there are no dummy collisions; take their scattering as isotropic, as in the VHS model. A collision then keeps the velocity of the centre of mass of the pair and turns their relative velocity to a direction drawn at random. Measure the stress anisotropy of a distribution gg at rest as a whole by A(g)=Tx−(Ty+Tz)/2A(g) = T_x-(T_y+T_z)/2, its temperature along one axis less the mean of those across it, a temperature here being the mean square of a component of the velocity. As the relative velocity forgets its direction, a collision passes on only the anisotropy of the velocity of the centre of mass, a quarter of that of each partner:

A ⁣(P(g,h)μ)=A(g)+A(h)4A\!\left(\frac{P(g,h)}{\mu}\right) = \frac{A(g)+A(h)}{4}
(30)

By Eq. (6) the anisotropy then relaxes as dA/dt=(μ/Kn)(A/2−A)=−(μ/2Kn) AdA/dt = (\mu/\dn{Kn})(A/2-A) = -(\mu/2\dn{Kn})\,A, and over one step the collision equation leaves e−ζ/2e^{-\zeta/2} of it. Eq. (30) with Eq. (15) gives the anisotropy of each group, A(fj+1)=12(j+1)∑l=0jA(fl)A(f_{j+1}) = \frac{1}{2(j+1)}\sum_{l=0}^{j}A(f_l), which is solved by

A(fj)=(2jj) A(fn)4 jA(f_j) = \binom{2j}{j}\,\frac{A(f^n)}{4^{\,j}}
(31)

as putting it in shows. One step of the mmth order method therefore leaves

A(fn+1)A(fn)=∑j=0maj(m)(ζ)(2jj) 4−j=∑k=0m1k!(−ζ2)k\frac{A(f^{n+1})}{A(f^n)} = \sum_{j=0}^{m}a^{(m)}_j(\zeta)\binom{2j}{j}\,4^{-j} = \sum_{k=0}^{m}\frac{1}{k!}\left(-\frac{\zeta}{2}\right)^{k}
(32)

the Taylor polynomial of order mm of e−ζ/2e^{-\zeta/2}: the method follows the collision equation to the order it is built for, with an error of ζm+1/(2m+1(m+1)!)\zeta^{m+1}/\bigl(2^{m+1}(m+1)!\bigr) in a step. This is no accident: AA is linear in ff, so the Taylor series of Eq. (8) carries over to A(f)A(f) term by term. Fig. 7 draws the error of a step for the first five orders; on axes of ratios the order is the slope.

10−1210−1110−1010−910−810−710−610−510−410−310−210−11000.020.050.10.20.51collision fraction, ζerror of one step
  • m = 1, DSMC
  • m = 2
  • m = 3
  • m = 4
  • m = 5
  • dotted, and a ring: past the longest step the order can sample

Your collision fraction: ζ = 0.3 drag the number

m = 1, DSMC
1.2%
m = 2
6.3 × 10⁻⁴
m = 3
2.4 × 10⁻⁵
m = 4
7.2 × 10⁻⁷
m = 5
1.8 × 10⁻⁸
Fig. 7 The error of one step of the method on Maxwell molecules, the distance of Eq. (32) from e−ζ/2e^{-\zeta/2} as a share of it, for the first five orders against the collision fraction. Each order is solid up to the longest step it can sample, Eq. (25), and dotted beyond. The white line is the reader’s ζ\zeta.

Fig. 8 runs the method of Section 2.8 itself, on 12 000 particles of Maxwell molecules that start hotter along one axis than across it, at 2.2 and 0.4 times their mean temperature. The particles measure the anisotropy that Eq. (32) predicts, to within their scatter. At a step of half a mean collision time the DSMC method relaxes the gas too fast, the third order follows the collision equation, and the fourth and fifth cannot take a step that long.

The particles are drawn here once the page has loaded them.

  • f₀, not collided
  • f₁, one collision
  • white rings: the shape the collision equation gives
00.20.40.60.8102468time, in mean collision timesanisotropy remaining
  • the collision equation, e−t/2
  • the method's prediction, in the colour of its order
  • what the particles measure

Your method and step: m = 1 ζ = 0.5

Time, in mean collision times
0.00
The particles measure
100.0%
The method predicts
100.0%
The collision equation
100.0%
Fig. 8 The method run on 12 000 particles of Maxwell molecules, for an order mm and a step ζ\zeta to choose. Above, the particles in velocity space, coloured by the group of Eq. (15) that their last step put them in; drag the cloud to turn it. The white rings are two standard deviations of the distribution the collision equation gives at that time. Below, the anisotropy left: the collision equation dashed, the prediction of Eq. (32) in the colour of the order, and what the particles measure as rings.

2.10. What the order costs, and which order is best

A higher order does not collide more. Summed over its rounds, the counts of Eq. (29) make, for every order, as many collisions in a step as the DSMC method does:

∑k=1mNck=Nζ2\sum_{k=1}^{m}N_{c_k} = \frac{N\zeta}{2}
(33)

which holds exactly, as is checked for every order up to m=8m = 8. What changes with the order is who meets whom: some of the Nζ/2N\zeta/2 collisions pair particles that have already collided, in the proportions that Eq. (22) sets. Every step therefore costs the same, whatever the order, and what an order costs is the number of steps it needs.

Two limits set that number. Over a span of time the error of the method is the sum of the errors of its steps, about n ζm+1/(2m+1(m+1)!)n\,\zeta^{m+1}/\bigl(2^{m+1}(m+1)!\bigr) in nn steps of ζ\zeta, so the accuracy asks for fewer steps the higher the order. But no step may be longer than 2/(m+1)2/(m+1) mean collision times, Eq. (25), so an order needs at least (m+1)/2(m+1)/2 steps for every mean collision time, and more the higher the order. The best order is where the two limits meet, and it depends on the accuracy asked for. To follow the relaxation of Maxwell molecules over one mean collision time to within 1%, the DSMC method needs 13 steps and the second order 2. To within 0.1%, the DSMC method needs 126, the second order 5 and the third 2, the fewest of any order. To within 0.01% the fourth order is best, with 3 steps where the DSMC method needs 1 251. Fig. 9 draws this for an accuracy to choose; where several orders need the same count, the lowest of them is marked, being the simplest.

10010110210310410510612345678order of the method, msteps per mean collision time
  • steps the order needs
  • steps the accuracy alone asks for
  • fewest steps the order can sample
  • the amber dot: the best order

Your accuracy, an error of 10−d: d = 3 drag the number

Accuracy asked for
0.1%
Best order
m = 3
Its steps
2
DSMC's steps
126
Fig. 9 The steps per mean collision time that each order of the method needs to follow the relaxation of Maxwell molecules over one mean collision time to within an error of 10−d10^{-d}, for a dd to choose: as many as the accuracy asks for (dotted), and never fewer than the order can sample (dashed). Every step costs Nζ/2N\zeta/2 collisions, Eq. (33), so the lowest point is the best order.

These counts are for the collision step alone, and three things temper them in a simulation. The first is the steady state. A gas at rest in equilibrium is left as it is by every order, since then P(f,f)/μ=fP(f,f)/\mu = f and every group is ff again. A steady flow with gradients in it, a shock or a beam crossing a gas, is not a Maxwellian, and its steady state carries the error of the time step as a transient does; what the order does not change is how soon a flow settles, which the physics sets. The second is the split of Eqs. (5) and (6). Convection and collision taken one after the other approximate the Boltzmann equation to the first order in Δt\Delta t, and Strang’s splitting, which takes half a convection step on either side of the collision step, to the second; in a flow that varies in space the gain of a collision step of higher order is taken in full only within a splitting of matching order, which makes the second order the natural partner of Strang’s. The third is the scatter of the particles. The statistical error of a simulation falls only as the square root of the number of particles and samples, and wherever it is larger than the error of the time step, no order changes the result.

The gain of the higher orders is therefore in unsteady flows, where the collisions themselves have to be followed in time. There, at the same work in every step, the second order needs about a sixth of the steps of the DSMC method to be within 1%, and the third order about a sixtieth to be within 0.1%.

3. Results and discussion

Section 2 ends with a method that is as accurate as its order, shown on one gas and one quantity. This section asks what that accuracy is worth: in which problems the order of the collision step changes the answer, by how much, and at what cost. It first sets out its tests, what each one measures and what it is measured against. The results of a test are added to its part of the section as the test is run.

The tests form a chain, and each part of it hands the next what it found. The first parts take the collision step alone, in a gas at rest where the exact answer is known, and measure the error of each method and the quantities that error reaches. The third part measures the error where a flow feels it: in the viscosity, the heat conduction and the diffusion that a method gives the gas. Those numbers, put into the classical results of fluid flow, predict what each method should do in a flow, and the later parts run the flows to see whether it does. Measure, predict, confirm: Fig. 10 is the map, and Table 2 lists the tests.

  1. Measure

    3.1 One step, where the answer is known

    Is each method as accurate as its order, where the truth is known?

    hands on the error of one step of each method

  2. Measure

    3.2 Which physics is at risk

    How does that error depend on how fast a quantity relaxes?

    hands on the quantities that are exposed: the stress and the heat flux

  3. Measure

    3.3 What the gas becomes

    Which viscosity, heat conduction and diffusion does each method give the gas?

    hands on three coefficients for each method and step

  4. Predict, confirm

    3.4 Steady flows are not immune

    Does a steady flow with gradients depend on the method?

    hands on steady errors, set beside what the coefficients predict

  5. Predict, confirm

    3.5 Flows that the coefficients decide

    Do the predictions come true in rarefied flows?

    hands on the size of the effect in a flow

  6. Bound

    3.6 Limits and cost

    Where does the method stop, and where could it win?

Fig. 10 The map of the tests. Each part answers one question and hands its answer to the next; the last sets the bounds of the method. A test’s name leads to its description.

Five lines are drawn in every figure of this section, each in one colour throughout:

  • The exact answer , or, where there is none, a run at a step so short that the method no longer matters
  • Bird's DSMC
  • Nanbu's scheme , Eq. (7)
  • H-DSMC of the second order
  • H-DSMC of the third order

Two of the five need a word. What Section 2 calls the DSMC method, the first order scheme of Eq. (7), lets a particle collide at most once in a time step. It is the scheme of Nanbu15, in the form that Babovsky16 gave it, which collides the particles in pairs. Bird’s method1, the one most DSMC programs run, differs from it in one thing: it picks the pairs of a step one after another from all the particles of a cell, so a particle may be picked again and collide twice or more within one step. For a gas at rest this leaves no error of the time step at all, however long the step, which is why Bird’s method is in every comparison here: a new method has to be set against it, and not only against Eq. (7). From here on the name DSMC is kept for Bird’s method, and Eq. (7) is called Nanbu’s scheme.

Every comparison is at equal work. All of the methods make the same number of collisions in a step, Nζ/2N\zeta/2 for NN particles (Eq. (33); Bird’s method picks as many pairs), so two methods run at the same step have done the same work, and a difference between them is one of accuracy alone. Three steps are used throughout: ζ=0.1\zeta = 0.1, 0.3 and 0.5 mean collision times, the last being the longest that the third order can take.

The answers of a particle method scatter from one run to the next. Every number of this section is the mean of several runs that differ only in their random numbers, and is given with its spread; a difference between two methods is claimed only where it is larger than that spread.

Table 2 The tests of this section: the gas of each, what its result is measured against, and whether it runs in the reader's browser or was run ahead of time. "Earlier test" is a prediction made from a coefficient that an earlier test measured; "others' work" a measurement or a simulation from the literature; a "reference run" the same flow at a very short step, or Bird's method on the same machine. Every test is run with the five methods and at the three steps of the text. A test's name leads to its description.
Test Gas Measured against Run
Maxwell molecules Hard spheres Variable hard spheres Argon and helium Exact answer Classical theory Earlier test Others' work Reference run In the browser
3.1. One step, where the answer is known
1 Beam
2 Hard spheres
3 Known relaxation
3.2. Which physics is at risk
4 Error map
3.3. What the gas becomes
5 Viscosity
6 Heat conduction
7 Diffusion
3.4. Steady flows are not immune
8 Slab
9 Torque
3.5. Flows that the coefficients decide
10 Sliding wall
11 Vortices
12 Spin-up
13 Mixing
3.6. Limits and cost
14 Long steps
15 Side by side

3.1. One step, where the answer is known

The first question is the one that Section 2.9 answered for a single quantity: is each method as accurate as its order? Three tests ask it again where the exact answer is known and the conditions are harder: the fastest change a gas can undergo, a gas whose collision rate depends on the speed of its particles, and a relaxation that starts far from equilibrium, for which Bobylev17 and Krook and Wu18 found the exact solution, known as the BKW solution. This part hands on the error of one step of each method.

gas at restbeamafter one collisionvelocity space

Test 1 Maxwell molecules runs in the browser

A beam into a gas at rest

Set up
A gas at rest in equilibrium, and in it a thin beam of the same molecules that all start with one velocity, several times the thermal speed.
Measured
The share of the beam's particles that have not yet collided, step by step.
Against
Exactly e−te^{-t}, with tt in mean collision times: every particle meets partners at one steady rate.
Why
Nothing in a gas changes faster than this, at the full rate of the collisions, so no test asks more of a time step. The particles that have collided once lie on a known shell in velocity space, the dashed circle of the picture.

3.2. Which physics is at risk

How large the error of a step is depends on the quantity it is measured in. A quantity that relaxes at the rate ν\nu, counted in units of the collision rate μ/Kn\mu/\dn{Kn}, is left a share e−νζe^{-\nu\zeta} of itself by the collision equation over one step. For Maxwell molecules the argument of Section 2.9 holds for any quantity that is linear in ff and relaxes at one rate: each time derivative brings a factor −νμ/Kn-\nu\mu/\dn{Kn}, and one step of the mmth order method leaves

∑k=0m(−νζ)kk!,in error by about(νζ)m+1(m+1)!\sum_{k=0}^{m}\frac{(-\nu\zeta)^k}{k!},\qquad\text{in error by about}\quad \frac{(\nu\zeta)^{m+1}}{(m+1)!}
(34)

of which Eq. (32) is the case ν=1/2\nu = 1/2. The error grows steeply with the rate. That of Nanbu’s scheme, (νζ)2/2(\nu\zeta)^2/2, is four times as large for a beam that is being scattered (ν=1\nu = 1) as for the stress (ν=1/2\nu = 1/2), and nine times as large as for the heat flux (ν=1/3\nu = 1/3); in the slow filling of the tail of the distribution it is smaller still. The test of this part puts the measured errors of all these quantities on one map against ν\nu. It hands on which quantities are exposed. Two of them are the stress and the heat flux, and these are what the viscosity and the heat conduction of a gas are made of.

tailheat fluxstressbeamNanbu's schemesecond ordererror of a steprate of relaxation

Test 4 Maxwell molecules runs in the browser

One map of the error

Set up
Four relaxations of a gas at rest, run side by side: the beam of Test 1; a gas hotter along one axis than across it, which carries a stress (Fig. 8); a gas whose hot particles drift one way and its cold ones the other, which carries a heat flux; and the gas of Test 3.
Measured
The error of one step in each of the four quantities, for each method and step.
Against
Eq. (34): (νζ)m+1/(m+1)!(\nu\zeta)^{m+1}/(m+1)! for a quantity that relaxes at the rate ν\nu.
Why
It shows at a glance which physics a time step puts at risk. The stress and the heat flux sit in the middle of the map, and they are what viscosity and heat conduction are made of.

3.3. What the gas becomes

A flow does not feel the collision step directly. It feels the viscosity, the heat conduction and the diffusion that the collisions give the gas, and each of these comes from how long a disturbance lasts: the viscosity from how long a shear stress survives, the heat conduction from how long a heat flux survives, the diffusion from how long two gases keep drifting through each other. A method that relaxes the stress too fast makes the gas less viscous than it is.

In a free relaxation at ζ=0.3\zeta = 0.3, Eq. (32) gives the size of this: Nanbu’s scheme relaxes the stress 8% too fast, the second order method 0.4% too slowly, and the third order follows it to within two hundredths of a percent. In a sheared flow the stress is made and relaxed anew in every step, and part of the error may cancel, so the viscosity itself has to be measured. The three tests of this part measure the three coefficients for each method and step, and hand them on.

wall, slidingwall, still

Test 5 Maxwell molecules, hard spheres run ahead of time

Viscosity: a gas sheared between two walls

Set up
A gas between two flat walls many mean free paths apart, one of them sliding along itself. As a second run, a shear wave in a gas with no walls, left to die away.
Measured
The shear stress over the rate of shear in the middle of the gap, which is the viscosity; and how fast the wave dies.
Against
The viscosity of the gas from the Chapman-Enskog theory, and the same run at a step so short that the method no longer matters.
Why
It tells whether the error of the stress in a free relaxation, 8% for Nanbu's scheme at ζ=0.3\zeta = 0.3, carries over to a gas that is sheared without pause.

3.4. Steady flows are not immune

A gas at rest in equilibrium is left as it is by every method, and it is tempting to conclude that a steady state forgives the time step. It does not where the steady flow has gradients in it. Such a flow is held away from equilibrium, and what a collision step does wrong it does again at every step. The two tests of this part are steady. In the first the answer is exact. In the second it is predicted from the viscosity of Section 3.3 and set beside the measurements of Kuhlthau12.

beamgas at restdepth into the gas

Test 8 Maxwell molecules runs in the browser

A beam through a slab of gas

Set up
A steady beam enters a slab of gas at rest, several mean free paths thick, and the flow is left to settle.
Measured
The share of the beam that arrives unscattered at each depth, in the steady state.
Against
e−x/λbe^{-x/\lambda_b}, with xx the depth and λb\lambda_b the mean free path of the beam: the law of exponential attenuation.
Why
A steady state with an exact answer that the time step can still spoil. The beam is scattered anew in every step, so an error of the step is an error of the depth the beam reaches.

3.5. Flows that the coefficients decide

The last flows are those in which a coefficient decides not only the size of the answer but its kind: whether vortices form between two cylinders, how soon a mixture parts in a centrifuge, how fast two gases mix. For each of them the prediction comes first. The coefficients of Section 3.3 go into the classical results, the spreading of momentum from a wall, the critical speed of the vortices, the times of spin-up and of mixing, and give for each method a number that its simulation then has to meet. Where it does, the chain holds from the collision step to the flow. The vortices are compared with the simulations of Riechelmann and Nanbu3 as well.

wall, set slidingearlylatergas at rest

Test 10 Maxwell molecules run ahead of time

A wall set suddenly in motion

Set up
A gas at rest over a flat wall that, at one instant, starts to slide along itself.
Measured
How the motion spreads into the gas: the velocity at each height, at several times.
Against
The spreading of momentum by viscosity, a profile known in closed form once the moving layer is many mean free paths thick, with the viscosity of Test 5; and a run at a very short step.
Why
The first unsteady flow. It is run twice, with convection and collision taken in turn and with Strang's splitting, to show where the error of the splitting takes over from that of the collision step.

3.6. Limits and cost

The last part sets the bounds. A method of order mm cannot take a step longer than 2/(m+1)2/(m+1) mean collision times, Eq. (25), and Bird’s method has no such limit; where the gas is dense and the step has to be long, his method or the exact weights of Eq. (24), those of the time relaxed methods6, take over. Against that stands the one thing that the rounds of H-DSMC have and Bird’s pairs do not: within a round no particle is in two pairs. Besides its two tests, this part gathers from every test above the work that each method needed for a given accuracy.

Nanbu, Eq. (7)1second order2/3third order1/2Birdexact weights012step, ζ

Test 14 Maxwell molecules runs in the browser

Longer and longer steps

Set up
The relaxation of Fig. 8 at steps from a tenth of a mean collision time to several, each method running as far as it can.
Measured
The error of each method, and the collisions it makes, against the length of the step.
Against
The exact relaxation. Nanbu's scheme stops at ζ=1\zeta = 1 and the method of order mm at 2/(m+1)2/(m+1); Bird's method and the exact weights of Eq. (24) take any step.
Why
It marks where the method stops. In a dense gas the step has to be many collision times long, and there Bird's method, at a cost that grows with the step, or the exact weights take over.

4. Conclusion

A high-order algorithm of the direct simulation Monte Carlo method, H-DSMC, has been derived from the mmth order Taylor series expansion of the collision part of the Boltzmann equation. Carrying out the time derivatives of the bilinear collision term exactly, with both of its arguments, sorts the particles of a time step into groups by the number of collisions they carry (Eq. (15)), each passing its particles on to the next at a rate that grows with the group (Eq. (16)). The method of any order is then a mixture of these groups, with probabilities in closed form (Eqs. (21) and (22)). They add up to one for every order, they are the Taylor polynomials of the weights of Wild’s exact sum, and they are all nonnegative while the time step is no longer than 2/(m+1)2/(m+1) mean collision times. On Maxwell molecules one step of the mmth order method is accurate to the mmth order in ζ\zeta, as it is built to be, and the particle algorithm of Section 2.8 reproduces it. Every order makes the same Nζ/2N\zeta/2 collisions in a step, so what an order costs is its number of steps, and the best order depends on the accuracy asked for: the second for 1%, the third for 0.1%, and higher ones beyond. The gain is in unsteady flows; a steady state is the same with every order.

References

18 references, from 1951 to 2010. Each dot is one of them, in the year it appeared; pick a strand to see what the paper takes from it.

  1. 1

    Molecular Gas Dynamics and the Direct Simulation of Gas Flows

    G.A. Bird · Oxford University Press, London, 1994

    Direct simulation Monte Carlo

  2. 2

    The Boltzmann Equation and Its Applications

    C. Cercignani · Applied Mathematical Sciences Series, vol. 67, Springer-Verlag, Berlin, New York, 1988

    The Boltzmann equation

  3. 3

    Monte Carlo direct simulation of Taylor instability in rarefied gas

    D. Riechelmann, K. Nanbu · Journal of Physics of Fluids A: Fluid Dynamics 5 (11), 2585-2587, 1993

    Rotating cylinders

  4. 4

    An implicit Monte Carlo method for rarefied gas dynamics

    L. Pareschi, R.E. Calfisch · Journal of Computational Physics 154, 90-114, 1999

    Time relaxed and implicit schemes

  5. 5

    Asymptotic preserving Monte Carlo methods for the Boltzmann equation

    L. Pareschi, S. Trazzi · Transport Theory Statistical Physics 29, 415-430, 2005

    Time relaxed and implicit schemes

  6. 6

    Time relaxed Monte Carlo methods for the Boltzmann equation

    L. Pareschi, G. Russo · SIAM Journal on Scientific Computing 23, 1253-1273, 2001

    Time relaxed and implicit schemes

  7. 7

    On Boltzmann's equation in the kinetic theory of gases

    E. Wild · Proceedings of the Cambridge Philosophical Society 47, 602-609, 1951

    The Boltzmann equation

  8. 8

    Numerical simulation of a binary gas flow inside a rotating cylinder

    A.A. Ganjaei, S.S. Nourazar · Journal of Mechanical Science and Technology 23, 2848-2860, 2009

    Rotating cylinders

  9. 9

    Problems and Solutions on Thermodynamics and Statistical Mechanics

    L.Y. Kuo · World Scientific Publications, 1990

    The Boltzmann equation

  10. 10

    A new algorithm for the simulation of the Boltzmann equation using the direct simulation Monte Carlo method

    A.A. Ganjaei, S.S. Nourazar · Journal of Mechanical Science and Technology 23, 2861-2870, 2010

    Modified collision schemes

  11. 11

    A new scheme developed for numerical simulation of the Boltzmann equation using the direct simulation of Monte-Carlo scheme for the flow about the sphere

    S.S. Nourazar, A.A. Ganjaei · Journal of Mechanical Science and Technology 23, 1989-1996, 2010

    Modified collision schemes

  12. 12

    Recent low density experiments using rotating cylinder techniques

    A.R. Kuhlthau · In: F.M. Deuienne Pergamon (Ed.), Proceeding of the First International Symposium on Rarefied Gas Dynamics, London, pp. 192-200, 1960

    Rotating cylinders

  13. 13

    Relaxation time simulation method with internal energy exchange for perfect gas flow at near continum region

    M. Wang, M. Macrossan, Z. Li · Communications of Nonlinear Sciences and Numerical Simulation 12 (7), 1277-1282, 2007

    Modified collision schemes

  14. 14

    An Enskog based Monte Carlo method for high Knudsen number non-ideal gas flows

    M. Wang, Z. Li · Computer & Fluids 36 (8), 1291-1297, 2007

    Modified collision schemes

  15. 15

    Direct simulation scheme derived from the Boltzmann equation. I. Monocomponent gases

    K. Nanbu · Journal of the Physical Society of Japan 49 (5), 2042-2049, 1980

    Direct simulation Monte Carlo

  16. 16

    On a simulation scheme for the Boltzmann equation

    H. Babovsky · Mathematical Methods in the Applied Sciences 8 (1), 223-233, 1986

    Direct simulation Monte Carlo

  17. 17

    Exact solutions of the Boltzmann equation

    A.V. Bobylev · Soviet Physics Doklady 20, 820-822, 1976

    The Boltzmann equation

  18. 18

    Formation of Maxwellian tails

    M. Krook, T.T. Wu · Physical Review Letters 36 (19), 1107-1109, 1976

    The Boltzmann equation

  • Pouyan Jahangiri: Department of Mechanical Engineering, University of British Columbia, Vancouver, BC, Canada
  • Amir Nejat, Jila Samadi: School of Mechanical Engineering, College of Engineering, University of Tehran, Tehran, Iran
  • Ali Aboutalebi: Department of Mechanical Engineering, University of Birjand, Birjand, Iran

© 2012 Elsevier Inc. All rights reserved.. This page is a web edition of the paper: its text and equations set again for the screen, and its figures computed here from its equations. The published version is the one of record.