Professional Documents
Culture Documents
A
G
L
A
E
ID O
L
N
A AR
C
V
A
O
A
S
R
P
A
A
T
S
A
2
M
0
,
4
O
M
S
E
T
N
B
IV
IT
Pros
Pros
Exact
Rigorous
Cons
Cons
Difficult?
Time consuming
http://quantumfreak.com/
There are more particles with velocity near the mean (, average)
Histogram the particle velocities, and they will look like the graph
below
INITIALIZATION
INITIALIZATION - CODE
cham ber_size = .05 # m eters
a_tot = 24 * cham ber_size ** 2 # m ^ 2 (6 sides, each squares of side 2*cham ber_size)
num _particles = 100000
particle_m ass = 6.6335e-26 # kg, m ass of argon
tem p = 300 # kelvin
k = 1.3806503e-23 # boltzm ann constant, in m ^ 2 kg s^ -2
particle_pos = [[uniform (-cham ber_size, cham ber_size) for iin range(3)]
for iin range(num _particles)] # m eters
particle_vel= [[norm alvariate(0, sqrt(k*tem p/particle_m ass)) for iin range(3)]
for iin range(num _particles)] # m /s
(xf,
yf)
(xf,
y f)
(xi,
y i)
xwall
xf = xwall (xf
xwall)
= 2*xwall xf
y'f = yf
vyf)
(vxf,
vyf)
(vxi,
vyi)
vxf = -vxf =
-vxi
v'yf = vyf =
vyi
xwall
vx = -2vx
vy = 0
KINETIC ENERGY
v(T), Ideal Gas Law
Rearrangements
RESULTS
Boyle's Law
4.50E-13
4.00E-13
3.50E-13
3.00E-13
2.50E-13
Pressure (Pa)
P = (4.13E-16)
(1/V)
2.00E-13
1.50E-13
1.00E-13
5.00E-14
0.00E+00
0
200
400
600
800
1000
1200
1/Volume (m^-3)
RESULTS
Gay-Lussac's Law
8.00E-13
7.00E-13
6.00E-13
5.00E-13
Pressure (Pa)
4.00E-13
P = (1.38E15)T
3.00E-13
2.00E-13
1.00E-13
0.00E+00
50
100
150
200
250
300
350
400
450
500
550
Temperature (K)
RESULTS
Mass variation
8.00E-13
7.00E-13
6.00E-13
5.00E-13
4.00E-13
Pressure (Pa)
3.00E-13
2.00E-13
1.00E-13
1.00E-29
1.00E-28
1.00E-27
1.00E-26
1.00E-25
1.00E-24
0.00E+00
1.00E-23 1.00E-22
THANK YOU!
Thanks for your attention
Please provide feedback, comments, questions, etc:
vyassa.baratham@stonybrook.edu