Thrust Model
The thrust system in Moonlander is modeled as a first-order dynamic system. The actual thrust approaches the target thrust exponentially, with a time constant representing the engine's response delay.
Assumptions:
The engine cannot change its thrust instantaneously. Instead, it behaves like a first-order system (PT1 / first-order lag) with time constant .
This model class is the same as:
- RC circuits
- Thermal inertia
- Motor spin-up dynamics
- Low-pass filters
Physical / System Formulation:
The rate of change of thrust is proportional to the difference between commanded and actual thrust:
Interpretation:
- : commanded thrust [N]
- : actual thrust [N]
- : engine response time / inertia [s]
Limited cases:
- : instantaneous response
- Large : slow engine response
Discrete Form (from ODE)
Start from:
Step-by-Step Solution of the Differential Equation
We solve the first-order ODE:
Step 1: Rearrange
Bring into standard linear form:
Step 2: Homogeneous Solution
Solve
Step 3: Particular Solution
Since the forcing term is constant, try .
Substitute into ODE:
Step 4: General Solution
Step 5: Apply Initial Condition
At , :
Step 6: Evaluate at t + Δt
Step 7: Intuition
- The system always moves toward .
- The speed of convergence is governed by .
- Smaller → faster response.
- Larger → slower response.
Illustration
The figure below shows the thrust approaching the target over time.

Fuel Consumption
Specific impulse is defined as:
- : specific impulse [s]
- : thrust [N]
- : standard gravity [m/s²]
Solving for mass flow rate:
Typical values for common engines:
| Engine Type | Fuel / Propellant | |
|---|---|---|
| Liquid Rocket | LOX/LH2 | 450–465 |
| Liquid Rocket | LOX/Kerosene | 300–350 |
| Solid Rocket | HTPB / Black Powder | 200–300 |
| Ion / Electric | Xenon, Hall / Electrostatic | 1500–4000 |
| Hybrid Rocket | HTPB + N₂O | 250–300 |
Key Points
- First-order exponential response to target thrust
- Real-time fuel consumption derived from thrust and specific impulse
- Time step update allows smooth and stable simulation