Basic Maxwell Speed Distribution Function

2 replies · 2K views · last reply
McAfee
Messages
96
Reaction score
1

Homework Statement


Printed homework problem: write a FORTRAN program using the Maxwell speed distribution to find N_Δv, the number of diatomic nitrogen molecules with speeds between v = 0 and v0 = 2000 m/s, with Δv = 20 m/s, T = 300 K, N = 10000.



Homework Equations


Equation 53: dNv = N(4/π^1/2)(m/2kT)^3/2 v^2 exp(-mv^2/2kT)dv, highlighted in yellow, followed by red text stating it is the Maxwell speed distribution function.



The Attempt at a Solution


I DO NOT NEED HELP WRITING THE PROGRAM! I'm just trying to figure out the basics behind it. Since this is an integral I will be solving this problem by using riemann sums. Where I'm having the most trouble is in the actually computation.

These are my constants:
N=100000
m=28.02
T=300
k=1.38*10^(-23)

For example I can look at the first case, v=0 and realize that I will get a result of 0.

Now when a substitute in v=20 and try to solve, my calculator gets an error that says INF.

Does anyone know what I'm doing wrong here.
 
First, I found a typo. The problem states N = 10000 (N = 10^4). Your post indicates N = 100000 (10^5).

Second, always indicate the units for the various variables and constants you are using. It saves a lot of time and confusion.
 
What SteamKing said. You're clearly using the wrong units for the mass. ALWAYS write down the units. they are not optional.