rocketpal.utilities.config_calc module¶
- rocketpal.utilities.config_calc.calculate_center_of_mass(parts)[source]¶
Calculate the center of mass of a list of parts
- Parameters:
parts (Sequence[Part]) – List of parts
- Returns:
The center of mass of the parts in the format (x, y, z)
- Return type:
tuple[float, float, float]
- rocketpal.utilities.config_calc.grainCom(grain_num, grain_h, grain_sep)[source]¶
Calculates the center of mass of the grains in the motor.
- Parameters:
grain_num (int) – The number of grains in the motor.
grain_h (float) – The height of each grain (longitudinal) in m.
grain_sep (float) – The separation gap between grains in m.
- Returns:
The center of mass of the grains in m, measured from the aft end of the motor
- Return type:
float
- rocketpal.utilities.config_calc.grainDensity(propWeight, grain_num, grain_h, grain_or, grain_ir)[source]¶
Calculates the density of the grain based on its dimensions and propellant weight.
- Parameters:
propWeight (float) – The total weight of the propellant in kg.
grain_num (int) – The number of grains in the motor.
grain_h (float) – The height of each grain (longitudinal) in m.
grain_or (float) – The outer radius of each grain in m.
grain_ir (float) – The inner radius of each grain in m.
- Returns:
The density of the grain in kg/m^3.
- Return type:
float