generateBeta.py
- geminids.generateBeta.calc_speed(m)
Assigns a speed to each particle based on its mass and a maxwellian distribution
- Parameters:
m (ndarray, g) – The masses of the particles
- Returns:
speeds (ndarray, m/s) – The speeds of the particles
- geminids.generateBeta.particles(n, model, max_b=20)
Generates n particles properly spaced in beta-space with appropriate relative velocities for each particle
- Parameters:
n (int) – The number of particles
model (int) – The integer that corresponds with the model type - 0 or 3: Base Model - 1 or 4: Violent Creation Model - 2 or 5: Cometary Creation Model - 0-2: Asteroidal Composition - 3-5: Young Cometary Composition
max_b (int, optional) – The maximum value for beta. All returned particles will be less than this Defaults to 20.
- Returns:
beta (ndarray, dimentionless) – The beta values of the particles
mass (ndarray, g) – The mass of the particles
vel (ndarray, m/s) – The velocities of the particles