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 (list[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]¶
grain_num: amount of grains in motor grain_h: height of grain(longitudinal) in m grain_sep: seperation gap between grains in m
- grainCOM: center of mass of grain in m !0.087m offset from nozzle position(aft end) to first grain;
also used for center of mass for dry mass(might be later inputted from CAD model)
- Parameters:
grain_num (int)
grain_h (float)
grain_sep (float)
- Return type:
float
- rocketpal.utilities.config_calc.grainDensity(propWeight, grain_num, grain_h, grain_or, grain_ir)[source]¶
propWeight: propellant weight in kg grain_num: amount of grains in motor grain_h: height of grain(longitudinal) in m grain_or: outer radius of grain in m grain_ir: inner radius of grain in m
grainDens: grain density in kg/m^3
- Parameters:
propWeight (float)
grain_num (int)
grain_h (float)
grain_or (float)
grain_ir (float)
- Return type:
float
- rocketpal.utilities.config_calc.inertia_component(refPoint, aftEndComp, radialDis, radialDir, diam, len, mass)[source]¶
Calculate the inertia tensor contribution of one rocket component.
The returned values are the six unique elements of the inertia tensor in the order
(I_11, I_22, I_33, I_12, I_13, I_23).- Parameters:
aftEndComp (float)
radialDis (float)
radialDir (float)
diam (float)
len (float)
mass (float)
- rocketpal.utilities.config_calc.rocket_cog(aft_end_comps, radial_dis_comps, radial_dir_comps, len_comps, mass_comps)[source]¶
Calculates the center of gravity of rocket in reference to the aft end of the rocket! Depending on chosen coordinate system this position must be shifted!
- aft_end_comps: list of distances of aft ends of components to aft end of rocket
(z component of position); components must be in order of radial_dis_comps, radial_dir_comps, diam_comps, len_comps, mass_comps!
- radial_dis_comps: list of radial distances to rocket’s rotational axis in m; components
must be in order of aft_end_comps, radial_dir_comps, diam_comps, len_comps, mass_comps!
- radial_dir_comps: list of radial directions in degree (=0°: direction of x-axis of reference point);
components must be in order of aft_end_comps, radial_dis_comps, diam_comps, len_comps, mass_comps!
- len_comps: list of lengths/heights of components in m; components must be in order of aft_end_comps, radial_dis_comps,
radial_dir_comps, diam_comps, mass_comps!
- mass_comps: list of components masses in kg; components must be in order of aft_end_comps, radial_dis_comps,
radial_dir_comps, diam_comps, len_comps!
- rocketCOG: tuple of position of center of gravity of rocket in m
FORMAT: (x,y,z)