Project Report - Physics 1 - Topic 10
Project Report - Physics 1 - Topic 10
Members
Full name ID number Class
Nguyễn Trần Việt Hưng 2152629 CC02
Trần Gia Huy 2352409 CC02
Nguyễn Võ Nguyên Khang 2352494 CC02
Nguyễn Gia Khánh 2352523 CC02
Trần Anh Khoa 2352587 CC02
Applied Physics Department: Matlab Projects 2
1. INTRODUCTION
The Maxwell-Boltzmann velocity distribution describes the distribution of speeds among particles
in a gas that is in thermal equilibrium. It is derived from the principles of statistical mechanics
and provides a probability distribution for the speeds of particles in the gas. This distribution is
fundamental in understanding the kinetic theory of gases and plays a critical role in various fields
of physics.
The distribution function is given by:
r
m 3 mv 2
f (v) = 4πv 2 e− 2kT
2πkT
where:
• m is the mass of a particle
• k is Boltzmann constant
• T is the absolute temperature of the gas
Explanation and Application:
• Thermal Motion: The Maxwell-Boltzmann distribution explains the speed spread of par-
ticles in a gas. At higher temperatures, the distribution broadens, indicating a wider range
of particle speeds and a higher average speed.
• Gas Dynamics: It is essential to predict the behavior of gases under different conditions,
such as diffusion and overflow rates.
Graphical Representation: The Maxwell-Boltzmann distribution is often represented as a curve
on a graph where the x-axis is the speed of the particles and the y-axis is the probability density.
The curve shows a peak at the most probable speed and a gradual decrease at higher and lower
speeds. The area under the curve represents the total probability, which is 1.
2. THEORY
The expression for the average of the squares of velocities in one dimension is given by:
Z ∞
2
⟨v ⟩ = v 2 f (v) dv
−∞
3kB T
⟨v 2 ⟩ =
m
For three dimensions, the total kinetic energy is three times that of one dimension:
3kB T
⟨v 2 ⟩total = 3⟨v 2 ⟩ =
m
The RMS velocity vrms is defined as the square root of the average of the squares of the velocities:
r
p 3kB T
vrms = ⟨v 2 ⟩total =
m
The kinetic molecular theory is used to determine the motion of a molecule of an ideal gas under
a certain set of conditions. However, when looking at a mole of ideal gas, it is impossible to
measure the velocity of each molecule at every instant of time. Therefore, the Maxwell-Boltzmann
distribution is used to determine how many molecules are moving between velocities v and v + dv.
Assuming that the one-dimensional distributions are independent of one another, that the velocity
in the y and z directions does not affect the x velocity, for example, the Maxwell-Boltzmann
distribution is given by
1/2
dN m − mv
2
= e 2kB T dv (1)
N 2πkB T
Applied Physics Department: Matlab Projects 3
where
• dN
N is the fraction of molecules moving at velocity v to v + dv,
• m is the mass of the molecule,
Finally, the Maxwell-Boltzmann distribution can be used to determine the distribution of the
kinetic energy for a set of molecules. The distribution of the kinetic energy is identical to the
distribution of the speeds for a certain gas at any temperature.
3. MATLAB CODE
1 % Define constants
2 k_B = 1.38 e -23; % Boltzmann constant ( J / K )
3
30 % Velocity range for plotting ( choose the largest range among the systems )
31 v_max_plot = max ( v_max ) ;
32 v = linspace (0 , 2 * v_max_plot , 1000) ;
33
41
42 for i = 1: num_systems
43 % Get the mass of the current gas
44 m = gas_masses .( gas_types { i }) ;
45
64 xlabel ( ’ Velocity ( m / s ) ’) ;
65 ylabel ( ’ Probability Density ’) ;
66 title ( ’ Maxwell - Boltzmann Velocity Distribution for Multiple Systems ’) ;
67 legend ( legend_labels , ’ Location ’ , ’ northeast ’) ;
68 grid on ;
69
for system 3 is 1
Discussion: The results is satisfied with the manual calculations. With the Matlab calculations, we
can evaluate for many specific cases
Conclusion: By researching the theory and programming calculations in Matlab for Maxwell –
Boltzmann velocity distribution, we complete the project and satisfied requirements. With these
calculations and Matlab program, we can solve for other complex cases which are difficult for
manual calculations.
5. Conclusion
Conclusion:We have conducted research based on theory and computational programming on Mat-
lab to analyze the Maxwell - Boltzmann distribution so we can more clearly determine the distri-
bution of gases at a certain temperature. Matlab’s charts and calculations help us solve difficult
calculation cases manually.