When the interested fluid phenomenon reaches very low density region, we have to be careful whether it is still within the scope of ordinary fluid dynamics, or it is rather in the field of molecular dynamics or rarefied gas dynamics.
One of the useful indicators to characterize such physical phenomena is a dimensionless quantity called Knudsen number.
In this article, we will look into the definition of the Knudsen number, and evaluate the mean free path, which is an essential quantity to understand the Knudsen number.
The evaluation procedure is mainly based on [1].
Definition of Knudsen Number
The Knudsen number is defined as shown in Eq. (1), where λ [m] is a mean free path, and L [m] is a representative length.
Kn=Lλ
Mean free path indicates the average distance, where a molecule travels before colliding with another molecule.
Thus, if there are a lot of molecules close to each other, the mean free path becomes smaller.
The Knudsen number is defined as the ratio of the mean free path and the representative length (ex. pipe diameter for pipe flow).
When the Knudsen number is well below 1, typically less than 0.01, the molecules collide frequently enough and the flow can be considered continuum.
Now, assuming that N is the number of molecules in unit volume, there is a following relation between the number of molecules N and the mean free path λ.
σTλ∝N1
In this equation, σT is a total collision cross-section, which represents the area involved in the collision and varies depending on the molecule type.
When molecules of the same type with diameter d collide, a collision occurs when the distance between the two molecules is equal to or less than d.
Therefore, σT is described by Eq. (3).
σT=πd2
Figure 1: Total Collision Cross-Section of Monoatomic Molecules.
In other words, the left side of Eq. (2) indicates the volume of the region swept by the motion of a molecule, and the right side indicates the volume allocated to a molecule.
However, a mean free path λ cannot be specified by simply equating the left and right side of Eq. (2).
Thus, we have to discuss the underlying relations between the parameters more in detail.
Definition of Mean Free Path
First, let us focus on a molecule t, and determine the mean collision rate (average collision frequency of a molecule with other molecules).
Let us describe molecules with a velocity vector vi as i.
Now, we describe the relative velocity of t with respect to i as vr=vt−vi, and think about the molecule t flying with vr in the stable molecules i.
In this case, the volume swept by the molecule t in unit time is described by σT∣vr∣.
Let us assume that the number of molecules with a velocity vector vi is ΔNi within a unit volume.
Integrating ΔNi for all possible velocity vectors, i.e. over the velocity distribution, the number of molecules in collision per unit time can be estimated.
ν=NσTvr,whereσTvr=N1i∑ΔNiσT∣vr∣
If the molecules are only one type, sphere shape, and rigid, the mean collision rate can be written in the following form.
ν=NσTvr=Nπd2vr
The mean free path λ [m] can be estimated by molecules’ average velocity v′ [ms−1] divided by the mean collision rate ν [s−1].
λ=νv′=N1σTvrv′
If the molecules are single type rigid sphere, the mean free path can be estimated by
λ=N1πd2vrv′
Mean Free Path under Equilibrium
In this section, we look into the concrete description of the mean free path for single type and rigid sphere molecules.
In Eq. (7), the unknowns are the mean velocity of the molecules v′ and the mean relative velocity of the molecules vr.
Using the Maxwell-Boltzmann distribution Eq. (8), which is a velocity distribution under equilibrium, we try to determine the form of these parameters.
dϱv=(2πkBTm)23exp[−2kBTm(u2+v2+w2)]dudvdw
Mean Relative Velocity, vr
For molecule 1 and molecule 2, we define the average velocity vector and relative velocity vector as show below.
m1v1+m2v2=(m1+m2)vmvr=v1−v2
A probability of having vr is calculated as a product of a probability of having v1 and a probability of having v2.
Multiplying the probability of vr and the relative velocity vr, and integrating it over the entire v1 and v2 distributions, gives the average relative velocity.
To calculate this integral, we should convert the parameters from v1=(u1,v1,w1) and v2=(u2,v2,w2) to vr=(ur,vr,wr) and vm=(um,vm,wm).
To do this parameter conversion, the corresponding Jacobian has to be specified.
First, we describe v1,v2 by using vr,vm based on Eq. (9) and (10).
v1=m1+m2m2vr+vmv2=−m1+m2m1vr+vm
Then, we can calculate the Jacobian by performing the Laplace expansion (cofactor expansion).
The process is quite lengthy, but the Jacobian is simply 1 in the end.
In the meantime, we should review the following transformation as well.
The parameter mr corresponds to the reduced mass, which is commontly known in the classical mechanics.
The integration should be performed over the entire velocity space for (ur,vr,wr) and (um,vm,wm).
As the integrand is only a function of ∣vr∣ and ∣vm∣, the calculation can be simplified by using the polar coordinate system.
If molecule 1 and molecule 2 have the same mass of m, the reduced mass is described by mr=m/2.
In this case, the mean relative velocity is described by
vr=πm16kBT
Mean Velocity, v′
The mean velocity of molecules can be evaluated in the similar procedure.
Using Eq. (22), the mean velocity of molecules is described by
v′=4π(2πkBTm)23m22kB2T2=πm8kBT
Conclusion
Through the discussions in the previous sections, mean relative velocity vr and mean velocity v′ are characterized by Eq. (25) and Eq. (27), respectively.
Substituting these results to Eq. (7), the mean free path is described by
λ=2σTN1=2πd2N1
Applying this result to Eq. (1) and additionally using the ideal gas law, PV=NkBT (N is the number of molecules), the following Knudsen number description is obtained.
Kn=Lλ=2πd2NL1=2πd2PLkBT
Reference
G.A. Bird “Molecular Gas Dynamics and the Direct Simulation of Gas Flows”, Oxford University Press, 1994.
MRG32k3a is one of the common algorithms for random number generation for parallel computing. In this article, we will implement the MRG32k3a algorithm on GPUs using WebGL2, with skip-ahead functionality.
Xorshift is one of the simplest and high-speed random number generator (RNG) algorithms. In this article, we explore the concept of Xorshift, and implement Rust code for searching valid Xorshift parameters for 32-bit binary.