-
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
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 , 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 below . At , 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.

Abstract
A high-order algorithm of the direct simulation Monte Carlo (DSMC) method, H-DSMC, has been developed to simulate rarefied flow regimes. The th 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 mean collision times. On Maxwell molecules one step of the th order algorithm is accurate to the th 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
- probability distribution function
- pre-collision velocity
- post-collision velocity
- Knudsen number
- collision integral operator describing the binary collision between particles
- bilinear operator describing the binary collision effects
- group of the particles of a time step that carry the outcome of j collisions, Eq. (15); f₀ = fⁿ
- order of the method
- probability of sampling a particle from the group f_j in the mth order method, Eq. (22)
- share of the group f_j in the kth time derivative of f, Eqs. (19) and (21)
- Stirling number of the second kind: the ways to split k things into j groups
- number of model particles in a cell
- number of collisions of the kth round of a time step, Eq. (29)
- stress anisotropy: the temperature along one axis less the mean of those across it
- rate at which a quantity relaxes, in units of the collision rate μ/Kn
- mean time between the collisions of a particle of a beam
- mean free path of a beam
- unit solid angle about the vector |v − v∗|
- nonnegative function describing the collision cross-section
- collision frequency, held over a time step at its upper bound, with dummy collisions
- time
- time step
- mean collision time, Kn/μ
- collision fraction, μΔt/Kn: the time step in mean collision times, or the mean number of collisions a particle has in one step
- scattering angle
- impact parameter
- dimensionless probability distribution function
- dimensionless position vector
- dimensionless velocity vector
- dimensionless time
- dimensionless collision cross-section
- average number density
- average velocity
- scale length
- 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 th 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:
where and are the post-collision nonnegative distribution functions of the particles moving with the velocities and respectively, and are the pre-collision nonnegative distribution functions of the particles moving with velocities and respectively and 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 is given by ; where is the deflection angle. The total collision cross-section can be obtained as follows:
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 th power forces between particles, the kernel has the form of:
where is the deflection angle (the angle between and ), is a positive constant in the VHS model and the exponent is equal to 1. The value of is equal to the total collision cross-section in the VHS model which is . Then the kernel in the collision part of the Boltzmann equation can be substitute by a simple model (the VHS model):
where is the energy dependent and is a unit solid angle about the vector and is a nonnegative function while 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:
The Boltzmann equation that we presented in Eq. (4) is non-dimensional Boltzmann equation. The non-dimensional parameters are the followings:
where is the average number density, is the average velocity, is the scale length of the system and is the relative velocity vector. The Knudsen number is defined as where 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:
And the equation of collision is4, 5, 6:
where is the bilinear operator describing the collision effect of the molecules, and is the mean collision frequency.
One group of quantities runs through everything that follows, and we call it the collision fraction :
Here is the mean collision time, the mean time between two collisions of one particle in the units of Eq. (6), so 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 : a particle comes through a step without colliding with probability , collides once with probability , twice with probability , and so on. For a small nearly every particle that collides at all collides once, and is close to the share of particles that collide. As grows, collisions twice or more within one step become common: at they are one in seven of the particles that collide, and at they are four in ten.
The Knudsen number stands in the denominator. At a given time step a denser gas, with a smaller , has more collisions in each step and so a larger . To keep 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 , the condition that the time step be shorter than the mean collision time reads .
The first order time discretization of Eq. (6) can be written as:
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 ), it is possible to sample a particle which did not experience inter particle collision in the current time step (a particle sampled from ) with probability of ; or a particle which experienced inter particle collision in the current time step (particle sampled from ) with probability of . The share left as it was, , is the first two terms of the series of , 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 will be computed less than unity and will be positive. On the other hand, the time step greater than the mean collision time, gives a value larger than unity for and will be negative resulting in failure of the probabilistic interpretation. The negative value of the coefficient 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 th order Taylor series expansion is employed to compute :
The second order time derivative of the function , in Eq. (8) is calculated as10:
and the third order time derivative of the function , in Eq. (8) can be expressed similarly as:
Continuing the above procedure for the th order time derivative of the function , in Eq. (8) leads to:
Substituting Eq. (11) into Eq. (8) for all terms of , we have:
Everything now turns on the time derivatives of the collision term , and two of its properties carry the rest. It is bilinear and symmetric: is linear in each of its two arguments, and , since swapping the two partners of a collision only relabels it (the direction turns into , which leaves as it is). And 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 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, is itself a probability density whenever and are: the velocity of a particle drawn from after it has met a partner drawn from . In particular is the distribution of the particles that have collided once in the step, and Eq. (6) reads .
2.4. The time derivative of the collision term
Both arguments of change in time, so its derivative has two terms, one for each partner of the collision:
The two terms are equal because is symmetric. Into the last line goes the time derivative of from Eq. (6), , and since is linear in its first argument:
Each factor has a meaning. The 2 counts the two particles of a collision, either of which may have collided before. The factor is the rate at which particles collide, so over one time step changes by a part of the size of , as does. And 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 , the collision of two particles that have each collided once, besides : 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 , and writing for from here on, the groups are
so that , and . Each is a probability density, a mean of the densities , and a particle of it carries the outcome of collisions: its own, and those that its partners, and their partners, had before it met them. It is sampled as Eq. (15) reads: draw from , each as likely, and let a particle of collide with one of . Fig. 1 draws the histories this allows for the group , the one that a method of order brings in, for an to choose. They are the trees of Wild’s sum7.
- 1
- 1
- 2/3
- 1/3
- 1/2
- 1/3
- 1/6
- 4/15
- 1/5
- 1/5
- 2/15
- 2/15
- 1/15
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
The time derivative of every group follows one rule:
For it is Eq. (6), and for it is Eq. (14) divided by . For it takes one more step of the same kind: both arguments of change, at the rates that Eq. (16) gives for and :
The last line is Eq. (15) twice over: and . For any the rule follows by induction. If it holds for the groups to , differentiate Eq. (15) for ; by symmetry the two terms of each add up to twice the first, and
From the second line to the third, each sum is folded on itself. In the first, the terms and are the same collision and their weights add up to , so the sum is times the plain sum; in the second, the weights and of the same collision add up to . The last line is Eq. (15) for and for .
Eq. (16) has a plain reading, which Fig. 2 draws. A particle of carries the outcome of particles of , the grey dots of its tree in Fig. 1. Each of them meets a new partner at the rate , and when one does, the tree gains a collision and a particle: the particle moves up to . So loses particles at the rate and gains them from at the rate . The rate grows with the group because a longer history holds more particles that can collide.
- no collision, 1 particle
- 1 collision, 2 particles
- ⋯
- collisions, particles
- ⋯
2.6. The mth order H-DSMC method
As Eq. (16) gives the derivative of every group in groups, so does every derivative of . Applying it times to :
The recursion says that the share of in the next derivative comes in from , at times its share there, and goes out at times its own. The first three derivatives are
and the coefficients have a closed form,
where is a Stirling number of the second kind, the number of ways to split things into groups. To check it, put it into the recursion of Eq. (19): with , the right side becomes , which is the closed form of . It is zero for : the th derivative reaches no further than .
Putting Eq. (19) into Eq. (8), each meets , and the time step stands only in the collision fraction :
The coefficients are the probabilities of sampling a particle of from each group. Four properties make them so, and say what the order buys.
They add up to one, for every order and every :
because for every : in Eq. (16) what one group loses the next one gains, so no derivative changes the number of particles, and only is left. This is what a probabilistic reading needs, and it holds term by term in .
The share left untouched, , is the first terms of (), the probability that a particle has no collision in the step. The last share is (): the particles of collisions come in at the th power of the step, as the probability of collisions does.
As the order grows, the shares tend to
which is Eq. (21) summed over : each sums to an exponential. These weights are positive for every , 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 th order method keeps the Taylor polynomial of order 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 . At the weights of to 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 is the first to:
The other shares stay positive up to that step, which is checked for every order up to . The longest step is one mean collision time for the DSMC method (), 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 , with the exact weights under them.
- f₀, not collided
- f₁, one collision
- f₂, two
- f₃, three
- f₄, four
- f₅, five
- 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
2.7. The second, third and fourth order methods
For , with and :
For the group joins, made of two kinds of collision:
and for :
Table 1 writes the probabilities out for an order to choose, up to the fifth. To first order in every one of them is Eq. (7). The higher orders correct it by terms in and above, which is the size of the error of Eq. (7) over one step.
| Sampling a particle from | Probability |
|---|---|
| 1st order: the DSMC method of Eq. (7) | |
| Their sum | |
| All positive for | |
| 2nd order H-DSMC | |
| Their sum | |
| All positive for | |
| 3rd order H-DSMC | |
| Their sum | |
| All positive for | |
| 4th order H-DSMC | |
| Their sum | |
| All positive for | |
| 5th order H-DSMC | |
| Their sum | |
| All positive for | |
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 is taken from the group with probability , and a particle of , for , is made as Eq. (15) says: draw from , each as likely, and let a particle of collide with one of .
In a cell of particles this is done with counts. The collisions are made in rounds, to , and round makes the group : each of its collisions takes a particle of group and one of group out of their groups, with drawn as above, and puts both particles that come out of it into group . A pair that the acceptance test turns down is a dummy collision: its particles keep their velocities, but they join group all the same, since counts dummy collisions.
The counts must leave every group with particles at the end of the step. A collision of round takes, on average, particles of any one group below it, so, working down from the last round,
rounded to whole numbers. Group 0 is then left with particles, since the shares add up to one, and a particle that no round has taken keeps its velocity. For the second order, and . 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 to
- Compute an upper bound, .
- Set .
- Set .
Compute
- Select dummy collision pairs uniformly among all possible pairs.
- Compute the relative cross section .
- Generate uniform random numbers ().
If
- Perform the collision between and , and compute the post-collision velocities and .
- Mark the selected particles as group 1, those that have collided once, whether the test held for their pair or not.
Set
- Select particles among those that have not been selected and particles of group 1, and pair them.
- Compute the relative cross section .
- Generate uniform random numbers ().
If
- Perform the collision between and , and compute the post-collision velocities and .
- Set for all the particles that have not been selected.
- End for
The algorithm of the DSMC method, the second order H-DSMC method and the th order H-DSMC method are presented in Figs. 4 to 6.
- Start
- Calculate the number of the particles and the model particles. Distribute initial location of the particles according to the uniform distribution.
- Allocate a value to the velocity of each particle according to the mean probable velocity, i.e. define .
-
Until the solution is steady
- Calculate .
- Perform boundary conditions.
-
For each cell
- Define the local number and calculate the effective diameter of the molecules.
- Calculate the maximum collision cross-section (define an upper bound ), and .
- Calculate the numbers of collisions ( ).
- Select dummy collision pairs uniformly among all possible pairs.
-
For each pair
- Generate a uniform random number .
- If Perform the collision between two selected particles (particle velocities update).
- Calculate macroscopic properties.
- Stop
- Start
- Calculate the number of the particles and the model particles. Distribute initial location of the particles according to the uniform distribution.
- Allocate a value to the velocity of each particle according to the mean probable velocity, i.e. define .
-
Until the solution is steady
- Calculate .
- Perform boundary conditions.
-
For each cell
- Define the local number and calculate the effective diameter of the molecules.
- Calculate the maximum collision cross-section (define an upper bound ), and .
- Calculate the numbers of collisions ( ).
- Select dummy collision pairs uniformly among the particles of group 0, those that have not collided.
-
For each pair
- Generate a uniform random number .
- If Particle velocities update.
- Both particles join group , whether the test held or not.
- Select particles of group 0 and particles of group 1, and pair them.
-
For each pair
- Generate a uniform random number .
- If Particle velocities update.
- Both particles join group , whether the test held or not.
- Calculate macroscopic properties.
- Stop
- Start
- Calculate the number of the particles and the model particles. Distribute initial location of the particles according to the uniform distribution.
- Allocate a value to the velocity of each particle according to the mean probable velocity, i.e. define .
-
Until the solution is steady
- Calculate .
- Perform boundary conditions.
-
For each cell
- Define the local number and calculate the effective diameter of the molecules.
- Calculate the maximum collision cross-section (define an upper bound ), and .
- Calculate the numbers of collisions ( , Eq. (29) ).
- Select dummy collision pairs uniformly among the particles of group 0, those that have not collided.
-
For each pair
- Generate a uniform random number .
- If Particle velocities update.
- Both particles join group , whether the test held or not.
-
For to
- For each of pairs, draw from , each as likely, and select a particle of group and one of group .
-
For each pair
- Generate a uniform random number .
- If Particle velocities update.
- Both particles join group , whether the test held or not.
- Calculate macroscopic properties.
- Stop
Fig. 4 The flowchart of the DSMC method.
Fig. 5 The flowchart of the second order H-DSMC method.
Fig. 6 The flowchart of the mth order H-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, is a constant, 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 at rest as a whole by , 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:
By Eq. (6) the anisotropy then relaxes as , and over one step the collision equation leaves of it. Eq. (30) with Eq. (15) gives the anisotropy of each group, , which is solved by
as putting it in shows. One step of the th order method therefore leaves
the Taylor polynomial of order of : the method follows the collision equation to the order it is built for, with an error of in a step. This is no accident: is linear in , so the Taylor series of Eq. (8) carries over to 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.
- 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. 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
- f₂, two
- f₃, three
- f₄, four
- f₅, five
- white rings: the shape the collision equation gives
- 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%
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:
which holds exactly, as is checked for every order up to . What changes with the order is who meets whom: some of the 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 in steps of , so the accuracy asks for fewer steps the higher the order. But no step may be longer than mean collision times, Eq. (25), so an order needs at least 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.
- 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
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 and every group is 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 , 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.
-
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
-
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
-
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
-
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
-
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
-
Bound
3.6 Limits and cost
Where does the method stop, and where could it win?
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, for 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.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.
| 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.
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 , with 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.
Test 2 Hard spheres runs in the browser
The same beam among hard spheres
- Set up
- The beam of Test 1 in a gas of hard spheres, where a fast particle sweeps through more gas in a step than a slow one and so collides more often.
- Measured
- The share of the beam that has not yet collided.
- Against
- , with the mean time between the collisions of a particle of the beam's speed, known in closed form from the kinetic theory of gases.
- Why
- Here the collision rate is not one number, and the method works with its upper bound and with dummy collisions (Section 2.8). This is the test of the rule that a pair turned down still joins its group.
Test 3 Maxwell molecules runs in the browser
A relaxation known for all time
- Set up
- A gas at rest that starts far from equilibrium, its particles crowded round one speed, with too few slow ones and too few fast ones.
- Measured
- The fourth moment of the speeds, and the number of fast particles, those beyond 3.5 thermal speeds.
- Against
- The exact solution of Bobylev and of Krook and Wu, which gives the whole distribution at every time.
- Why
- These are the slow quantities of a gas: the fourth moment relaxes at a third of the collision rate, and the tail fills at a sixth. They are the far end of the map of Section 3.2, where the methods should differ least.
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 , counted in units of the collision rate , is left a share 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 and relaxes at one rate: each time derivative brings a factor , and one step of the th order method leaves
of which Eq. (32) is the case . The error grows steeply with the rate. That of Nanbu’s scheme, , is four times as large for a beam that is being scattered () as for the stress (), and nine times as large as for the heat flux (); 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 . 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.
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): for a quantity that relaxes at the rate .
- 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 , 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.
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 , carries over to a gas that is sheared without pause.
Test 6 Maxwell molecules, hard spheres run ahead of time
Heat conduction: a gas between a hot and a cold wall
- Set up
- The same gap with both walls still, one kept hotter than the other.
- Measured
- The heat flux over the temperature gradient in the middle of the gap, which is the heat conductivity. With the viscosity of Test 5 it gives the Prandtl number.
- Against
- The Chapman-Enskog conductivity, and a Prandtl number of two thirds, which a gas of single atoms has very nearly.
- Why
- The heat flux relaxes more slowly than the stress, at a third of the collision rate against a half, so a method may get one coefficient more wrong than the other and shift their ratio.
Test 7 Argon and helium run ahead of time
Diffusion: argon drifting through helium
- Set up
- A mixture at rest as a whole, in which the argon drifts one way and the helium the other.
- Measured
- How fast the drift dies away, which gives the diffusion coefficient of the pair.
- Against
- For molecules whose collision rate does not depend on their speed, an exponential decay at a rate that the two masses fix.
- Why
- A mixture needs the method written for more than one gas, each pair of gases with its own bound of the collision rate; that version is derived with this test. Diffusion is what parts two gases in a centrifuge.
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.
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
- , with the depth and 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.
Test 9 Variable hard spheres run ahead of time
The torque between two cylinders
- Set up
- Two cylinders, one inside the other, with gas at 13.3 Pa in the gap: the two geometries of Kuhlthau's experiment (inner radius 5.08 or 5.73 cm, outer 6.35 cm, length 3.81 cm). The inner one spins steadily, below the speed at which vortices form.
- Measured
- The torque that the gas passes to the outer cylinder.
- Against
- The torque that the viscosity of Test 5 predicts, and Kuhlthau's measurements.
- Why
- The torque is the viscosity at work in a steady flow: the first place where a coefficient measured in Section 3.3 has to predict a number.
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.
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.
Test 11 Variable hard spheres run ahead of time
Vortices between two cylinders
- Set up
- The cylinders of Test 9 with the inner one spinning faster. Beyond a critical speed the smooth flow gives way to a stack of ring vortices, as Taylor found.
- Measured
- The critical speed, how fast the vortices grow, and how strong they are just above the onset.
- Against
- The critical speed that the viscosity of Test 5 predicts through the critical Taylor number, and the simulations of Riechelmann and Nanbu.
- Why
- Near the onset the outcome is all or nothing. The critical speed goes as the viscosity, so a few percent of viscosity decide whether there are vortices at all. Nowhere is a small error of the collision step easier to see.
Test 12 Argon and helium run ahead of time
A mixture spun up
- Set up
- A cylinder filled with equal parts of argon and helium is set spinning, and the gas is followed until it turns with the wall.
- Measured
- How long the gas takes to turn with the cylinder, and how long the heavier argon takes to gather at the wall.
- Against
- The times that the viscosity and the diffusion of Section 3.3 predict. The final state is known exactly and is the same for every method: both gases turning with the cylinder as one body, the heavier one crowded to the wall by a known law.
- Why
- The way there differs between the methods and the end does not, which makes this test its own control: a method that reached a different end would have a fault that no time step explains.
Test 13 Argon and helium run ahead of time
Two gases left to mix
- Set up
- A closed tube with argon in one half and helium in the other, at one pressure and one temperature. The wall between them is taken away.
- Measured
- How far each gas has spread into the other, at several times.
- Against
- The solution of the equation of diffusion, with the coefficient of Test 7.
- Why
- Diffusion with nothing else going on: the coefficient of Test 7 seen as a front that moves.
3.6. Limits and cost
The last part sets the bounds. A method of order cannot take a step longer than 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.
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 and the method of order at ; 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.
Test 15 Maxwell molecules run ahead of time
The same collisions, side by side
- Set up
- One step of the collisions of a large cell, made on one processor and on many.
- Measured
- The time a step takes against the number of processors.
- Against
- Bird's method on the same machine, whose pairs have to be made one after another, because a later pair may hold a particle of an earlier one.
- Why
- Within a round of H-DSMC no particle is in two pairs, so all the collisions of a round can be made at once. If the method has an advantage over Bird's, it is this one.
4. Conclusion
A high-order algorithm of the direct simulation Monte Carlo method, H-DSMC, has been derived from the th 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 mean collision times. On Maxwell molecules one step of the th order method is accurate to the th order in , as it is built to be, and the particle algorithm of Section 2.8 reproduces it. Every order makes the same 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
Molecular Gas Dynamics and the Direct Simulation of Gas Flows
G.A. Bird · Oxford University Press, London, 1994
Direct simulation Monte Carlo
- 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
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
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
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
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
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
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
Problems and Solutions on Thermodynamics and Statistical Mechanics
L.Y. Kuo · World Scientific Publications, 1990
The Boltzmann equation
- 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
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
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
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
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
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
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
Exact solutions of the Boltzmann equation
A.V. Bobylev · Soviet Physics Doklady 20, 820-822, 1976
The Boltzmann equation
- 18
Formation of Maxwellian tails
M. Krook, T.T. Wu · Physical Review Letters 36 (19), 1107-1109, 1976
The Boltzmann equation