Skip to content

HL-20 Flight Simulator ​

Download this exampleHL20Demo.zipFull project — Dyad model + Julia + data

This checkout provides the aerodynamic core, atmosphere/table helpers, an engineering spec (assets/shared/hl20_spec.md), and two Dyad Agent prompts in scripts/. The prompts describe how to build a full flight simulator; the closed-loop vehicle and flight analyses are not present in this checkout.

The vehicle is the NASA HL-20, a proposed crew-carrying spaceplane that flies on the shape of its own body rather than on wings. The requested simulator would follow its motion through the air — where it is, how fast it is going, and which way it is pointing — using these parts:

PartWhat it does
Rigid-body dynamicsMoves and turns the vehicle under the forces acting on it
1976 Standard AtmosphereLooks up air density and pressure for the current altitude
Aerodynamics (NASA TM-4302)Turns airspeed, attitude, and surface angles into forces and torques
Flight-control lawsSteers pitch, roll, yaw, and speed toward the commanded values
Surface mixer and actuatorsSpreads each command across the seven moving surfaces

The spec requests comparison with a golden solution and NASA's published pitch-pulse test case from TM-107580 Appendix F. No flight result or such comparison is included here.

Note

This is a heavy, agent-generated demo. The aerodynamic core's Dyad source is shown below. Running the Dyad Agent prompts inside the HL20Demo project produces the full closed-loop plant, controllers, and mixer — start there to reproduce the end-to-end pitch-pulse maneuver.

The model ​

HL20Demo.shared.HL20Aero is the pre-provided aerodynamic core of the vehicle: the full TM-4302 body-axis coefficient buildup. Flight state and the seven control-surface deflections go in; the body-axis force and moment coefficients (CX, CY, CZ, Cl, Cm, Cn) come out.

The agent builds the rest of the closed loop around it: