You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def _init_velocities(self, temp, size):
"""Initialize velocities for each atom from a Maxwell-Boltzmann
distribution"""
kbT_over_m = 1.3806503*temp/(39.948e-3*6.0221415**(-1)) # m^2/s^2
velo_std = (kbT_over_m)**0.5 # m/s
init_velo = np.random.normal(0, velo_std, size)
return init_velo
Provides the Maxwell distribution?
The text was updated successfully, but these errors were encountered:
Yes, I believe so. The velocities are drawn from a Gaussian with std of 'sqrt(kBT/m)'. I also plotted the velocities in the jupyter notebook, and the shapes conforms to Maxwell-Boltzmann distribution.
Hey,
Does your function:
Provides the Maxwell distribution?
The text was updated successfully, but these errors were encountered: