Skip to content

Fix: motor casing counted twice in the rocket mass - #45

Open
rundvd wants to merge 1 commit into
RocketPy-Team:developfrom
rundvd:fix/motor-dry-mass
Open

rundvd wants to merge 1 commit into
RocketPy-Team:developfrom
rundvd:fix/motor-dry-mass

Conversation

@rundvd

@rundvd rundvd commented Dec 1, 2026

Copy link
Copy Markdown

The rocket mass, center of mass and inertia are read from the simulation at burnout, so they already include the motor casing. Since 0165038, files with a Motor mass column also get the casing as the motor's dry_mass, and RocketPy counts it twice. This sets it back to 0.

In Anonymous--Alpha the casing is 6.575 kg. RocketPy's liftoff mass is 38.978 kg on develop and 32.403 kg with this change (OpenRocket: 32.402 kg). In a standard atmosphere without wind, its apogee goes from 2965 m to 3533 m (OpenRocket: 3488 m).

The Anonymous--Epsilon, Anonymous--Xi, WERT--Prometheus--2022 and rocket_with_elliptical_fins examples are affected too. Their parameters.json still have a dry_mass of 0, so the test now compares it with the extracted value. Those five fail on develop.

@rundvd
rundvd requested a review from juliomachad0 as a code owner December 1, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant