← Anay Pandit / Rocket Flight Lab
↗ Rocket Flight Lab
Flight dynamics / Prototype 01
An experiment in aerospace fundamentals

How high will it fly?

Change the inputs. Follow the flight. Explore how thrust, changing mass, gravity, and air resistance shape a rocket’s ascent.

●   1D vertical flight
—m
—m/s
—s
—×

Flight profile

Current flight
ALTITUDE · m
VERTICAL VELOCITY · m/s   (negative = descent)
T+ 0.00 s
On pad

Flight events

02 / RESULTS
Engine cutoff

—

Apogee

—

Ground crossing

—

What the model calculates

A single stage starts at rest on a level launch pad. Thrust and mass flow remain constant during the burn. Fourth-order Runge–Kutta (RK4) integrates altitude and vertical velocity at 0.02-second intervals; a step ends exactly at burnout.

m(t) = m_dry + m_prop × max(0, 1 − t / t_burn)
ρ(h) = 1.225 × exp(−h / 8500) kg/m³
dh/dt = v
dv/dt = [T − ½ρ Cd A v|v|] / m − g
g = 9.80665 m/s²

Drag opposes motion on ascent and descent. Pad contact prevents downward movement before liftoff. Apogee and ground crossings are interpolated between samples.

Limits: constant gravity, a simple exponential atmosphere, fixed drag coefficient, no wind, no staging, no attitude dynamics, no parachute, no orbital motion, no optimization, and no real-flight calibration. Numerical checks do not establish real-world prediction accuracy.

Reference: NASA Glenn · Ideal rocket equation.

Verification against known results

Compare the no-drag model with closed-form burnout velocity, burnout altitude, and ballistic apogee. Check step-size convergence separately with drag enabled.

Checks use the default test vehicle, independently of the current inputs. Absolute errors and acceptance tolerances are shown below.

Educational prototype · no real-flight validation yet.