Proposal: powered descent / retropropulsion module
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reading rocketpy/simulation/flight.py, especially __check_simulation_events and the apogee event, then review tests/test_flight.py. The proposal leaves key integration and thrust-direction choices open, so first get maintainer agreement on scope and architecture. Done for the proposed initial stage means a 3-DOF vacuum descent implementation with validation tests; later atmosphere, 6-DOF, and guidance support are listed as follow-up work.
由索引模型根据 Issue 内容生成。
描述
Hi, I'd like to contribute a powered descent / retropropulsion module to RocketPy — the ability to simulate a rocket re-igniting its motor (or a dedicated descent motor) after apogee to decelerate before landing, similar to what SpaceX does with Falcon 9 booster recovery.
This is currently missing from RocketPy. With 500+ university teams using the simulator, adding this capability would directly support vehicle recovery research and range safety analysis. I intend to use it for a peer-reviewed paper with a Vietnamese sounding rocket (VNSC-01/VNSC-02) as the worked example.
Proposed Architecture
After reading Flight.py, Rocket.py, Motor.py, and Environment.py, I believe the cleanest integration is a new flight phase inserted into the existing FlightPhases state machine (Option A below), rather than a subclass or a two-leg replay.
New Flight parameters
Flight(
rocket=...,
environment=...,
rail_length=...,
# ... existing params unchanged ...
descent_motor=None, # Motor instance, or None for ballistic descent
descent_trigger="apogee", # "apogee" | float (altitude m) | callable(t, y)
guidance_schedule=None, # pre-solved thrust schedule: Function(t) or array
)
guidance_scheduleis intentionally pre-solved offline (e.g. with CasADi) and replayed during integration — no optimizer inside the ODE loop, so Monte Carlo runs stay fast.- Flights without
descent_motorbehave identically to today. Fully backward compatible.
New ODE derivative: u_dot_powered_descent
Structurally identical to u_dot_generalized, except:
net_thrust = descent_motor.thrust(t - t_ignition)(time-shifted to descent ignition)- Thrust direction: body-frame −Z (retro) or guidance-commanded unit vector
- Mass:
rocket.dry_mass + descent_motor.mass(t - t_ignition)
Phase insertion (inside __check_simulation_events)
After apogee detection (currently flight.py:1113–1159), insert:
self.flight_phases.add_phase(
t_ignition,
derivative=self.u_dot_powered_descent,
callbacks=[self._start_descent_motor],
clear=True,
)
Minimal file footprint
| File | Change |
|---|---|
rocketpy/simulation/flight.py |
New params + u_dot_powered_descent + descent trigger |
rocketpy/rocket/rocket.py |
Optional add_descent_motor() helper |
tests/test_flight.py |
Validation cases (3-DOF vacuum, analytical check) |
Motor, Environment, math utils |
No changes |
Implementation Plan
- now: Architecture discussion with maintainers (this issue)
- 3-DOF vacuum descent — constant thrust, point mass, no atmosphere; validate against Tsiolkovsky + gravity-turn analytical solution; write tests
- Open draft PR with 3-DOF implementation
- Atmosphere, 6-DOF, guidance schedule support
And if possible, please help me figure some question out,
-
Preferred integration point — New
Flightarguments (Option A above) vs. aPoweredDescentFlightsubclass vs. a composableFlightSegmentapproach? Subclassing is fragile given the__private methods; I lean toward Option A. -
Motor API — Should we support a separate
descent_motorargument onFlight, or is there appetite for multi-burn support directly inMotor(i.e. discontinuous burn windows)? -
Thrust direction convention — Body-frame −Z (opposing body axis) or inertial −V (opposing velocity vector)? The latter is correct for a hover-slam but requires a guidance input.
-
enh/eventsbranch — I see an openenh/eventsbranch on upstream. Will this affect the event/trigger system in ways I should design around now? -
equations_of_motionparameter — Wouldequations_of_motion="powered_descent"be the right way to select this path, consistent with the existing"standard"/"solid_propulsion"options?
Background
I have a background in Aero/CFD, Propulsion, and GNC. The full design note (with class hierarchy analysis, ODE breakdown, and implementation sequence) is available — happy to share or attach.
Happy to hear if the maintainers prefer a different approach entirely before I invest in a deep implementation. Thanks for building such a clean simulator.
- 主要语言
- Python
- 星标
- 1.1k
- 派生
- 280
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RocketPy-Team/RocketPy 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
RocketPy-Team/RocketPy#1255 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
RocketPy-Team/RocketPy#1241 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
RocketPy-Team/RocketPy#1202 ·
维护者通常 3 天内回复
-
Monte Carlo test fixtures write their logs into the working directory可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
RocketPy-Team/RocketPy#1189 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
RocketPy-Team/RocketPy#1171 · 1 条评论 ·
维护者通常 3 天内回复
查看 RocketPy-Team/RocketPy 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭available documentation good first issue
难度 1/5 1-3 小时 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
JTHCode/secretguard#24 ·
维护者通常 1 天内回复
-
area: middleware documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
维护者通常 1 天内回复