Skip to content

About

Mod for Kerbal Space Program. Tool for fuel mass distribution optimization across rocket stages.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

BetterRocket

English | 简体中文

BetterRocket is a small mod for figuring out how much fuel to put in each stage. Give it your rocket and a goal, and it'll suggest a fuel distribution. Hopefully that saves you a few rounds of stretching tanks, checking the numbers, and undoing everything again.

main UI

Dependencies

  • KSP 1.12.5

No other dependencies. The following mods are supported and recommended

  • MechJeb2
  • RealFuels
  • ProceduralParts
  • RSS/RO/RP-1

Special credit to MechJeb2, this work almost copied Fuel Flow Simulator module for rocket stage analysis.

Install

Why this matters

The unforgiving Tsiolkovsky rocket equation holds sway over rocket engineers, compelling them to design their rockets in stages so that useless dead weight can be jettisoned as quickly as possible. Given a total mass constraint, it is not trivial to decide fuel mass for each stage. Here's a simple example: a 100 t two-stage rocket, with fixed dry masses of 6 / 2 t, 2 t of payload, and 300 / 350 s Isp. Only the fuel split changes:

Lower-stage propellant Upper-stage propellant Ideal vacuum Δv
75 t 15 t 9.43 km/s
60 t 30 t 10.04 km/s

That's about 615 m/s from just moving fuel around! You can exploit excess performance of your rocket with some slight adjustment, to carry more payload, or fly faster into deep space. This tool provides you basic analysis on optimal fuel configuration, to optimize payload capacity given total ΔV constraint. But this work is beyond that, it can also do joint optimization on ascent trajectory and stage fuel distribution, which means you can give it target orbit parameters and get optimal stage mass distribution based on real ascent trajectory.

Newbees to KSP tends to treat ΔV as golden rule for a launch vehicle, but it is actually not true in a lot of cases, especially LVs with strap-on boosters. For a simple example, SM65-Atlas adopted a drop-engine design. The center sustainer engine has higher Isp than boosters, if you want total ΔV optimized, the optimal way is to drop booster engines as soon as the rocket leaves launch pad, but the sustainer engine doesn't have enough thrust to send the rocket into orbit. Engine thrust decides optimal ascent profile, as well as gravity loss and steering loss, which can be a large contribution to total ΔV expended. This mod adopts PEG (Powered Explicit Guidance) as a ultra-fast solver for ascent trajectory, enabling fast optimization on stage configurations.

What it can do

Mode What it does
A · Payload Maximize payload at fixed launch mass and a minimum vacuum Δv.
B · Δv Maximize vacuum Δv at fixed launch mass and payload.
C · Orbit Maximize payload at fixed launch mass for a target orbit or escaping trajectory, using a simplified ascent model.

Mode C simulates a vertical ascent and programmed turn, then uses PEG guidance to predict the rest of the climb. That gives it a way to estimate gravity and steering losses. You supply a separate allowance for drag. It's still a simplified model, so I'd treat the result as something worth trying, then fly the rocket and see.

Quick start

  1. Open the rocket toolbar button in the VAB/SPH and click Refresh.
  2. Select A, B or C and enter your target. Current payload is mass already aboard, not extra mass to add.
  3. Set Last ascent stage to exclude satellite/service-module burns. Use Fixed for phases whose propellant allocation you want to keep.
  4. Click Optimize and have a look at the result. Make any changes yourself, then refresh to check the new design.

The upper stages appear at the top of the list. With boosters or crossfeed, each row represents a burn phase, so several rows can draw from the same tank. Old results stay visible after you edit the rocket, with a stale-result notice to remind you they belong to the previous design.

The mod doesn't account for engine failures, and it has no sense of style. I take no responsibility for any horrible chimeras you build with its help.

Details and development

User guide · Changelog · Architecture · Validation · Building and releasing

Source builds require the .NET SDK, .NET Framework 4.8 reference assemblies, Python 3 and a local KSP installation. Set KSP_ROOT, then run ./tools/build.ps1; packages appear in artifacts/.

Licensed under GNU GPL v3. See third-party notices.

About

Mod for Kerbal Space Program. Tool for fuel mass distribution optimization across rocket stages.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages