Skip to content

v1.14.0

Latest

Choose a tag to compare

@MateusStano MateusStano released this 02 Dec 23:35
d703905

RocketPy v1.14.0 is out. This release adds the tip-off phase at the end of the rail, tube fins, new weather sources, forecast caching and reproducible Monte Carlo studies, and fixes many bugs in the equations of motion, the sensors and the stochastic models. Some results change, so read the Breaking changes below before you upgrade.

pip install rocketpy==1.14.0

Highlights

Flight

  • Tip-off phase. Between the upper rail button leaving the rail and the lower one following it, the rocket now pivots about the lower button instead of jumping straight to free flight. The phase always runs when both buttons start on the rail. Its results are tip_off_end_time, tip_off_end_state, tip_off_duration and the lower button's forces. #920 #1217
  • Fixes to the equations of motion. The position vectors in the generalized equations, the nozzle gyration tensor, and the angular rates in solid_propulsion are corrected. #1196 #1188 #1195
  • Parachutes that open at a set time, with trigger=("time", t). #1133
  • New plots: Flight.plots.trajectory_on_map(), an interactive map of the ground track (with the new maps extra), and Flight.plots.center_of_pressure(). #1132 #1130

Rocket and motors

  • TubeFins, a new aerodynamic surface based on NACA TN 4117. #1144 #1218
  • Unbonded solid-motor grains: the shift of the grains' center of mass is now modeled. #1138
  • The static margin is computed only when it is needed, and a drag CSV that is not a regular grid now gives a warning. #1135 #1239
  • calculate_simplified_opening_shock_force, a simplified estimate of the parachute opening shock force. #1092

Environment

  • New sources: Open-Meteo forecasts and ensembles (type="open_meteo" and "open_meteo_ensemble"), which need no files and no netCDF, and Meteomatics. #1119 #1079
  • Forecasts are reused. Within a session, a forecast that was already downloaded is downloaded again only when the server has a newer run. cache=True also keeps forecasts on disk between sessions. #1137 #1219
  • Environment.create_ensemble builds an ensemble from your own profiles. #1141 #1231
  • NOAA retired the NAM forecast. file="NAM" now raises a clear error that points to RAP, HRRR or GFS. #1246

Monte Carlo

  • Reproducible studies. One random_seed reproduces the whole study, in serial or in parallel, and append=True continues the same study. simulate_convergence accepts random_seed too. #1187 #1213
  • StochasticFreeFormFins, so free-form fins can be varied in a Monte Carlo study. #1117
  • Many fixes to the stochastic models and the Monte Carlo runs: parallel runs that hung, values that drifted between simulations, parachutes flown without the values that were drawn for them, and results files that lost their pairing after an interrupt.

Breaking changes

  • Monte Carlo results with a fixed seed differ from v1.13. Regenerate fixed-seed baselines:
    • each simulation is reseeded from the study's random_seed;
    • seeds set on the individual models are ignored;
    • serial runs are numbered from 0, as parallel runs already were;
    • CustomSampler callbacks receive a different seed. #1187 #1213 #1102
  • Flight results shift slightly, because of the tip-off phase and the fixes to the equations of motion. #1217 #1196 #1195 #1188
  • Flight.potential_energy and total_energy change sign, and are now computed from Environment.gravity. #1204 #1224
  • Accelerometer readings taken with consider_gravity=True change sign in the gravity term. #1175
  • The sensors' default operating_temperature is 298.15 K instead of 25. #1118
  • A parachute that would open while the rocket is still on the rail now raises a ValueError. #1226
  • Assigning Rocket.static_margin is deprecated. #1225

See the changelog for the full list of changes.

What's Changed

New Contributors

Full Changelog: v1.13.0...v1.14.0