State propagation contract
0. DISCLAIMER: this section is a work in progress.
The state of the vehicle is propagated according to the following equation:
The simulation is expressed as a discrete-time integration problem, where time is sampled at and is an integer index.
1.1 State Vector Definition
The propagated state vector is defined as:
where:
- : CG's translational velocity components w.r.t. ECI, expressed in the standard body-fixed frame
- : vehicle's angular velocity components w.r.t. ECI, expressed in the standard body-fixed frame
- : CG's position coordinates expressed in the ECI frame
- : vehicle's attitude quaternion components defined in the ECI frame
- : the total mass, and possible individual masses of vehicle's sub-elements (tanks, etc.)
- : the 9 elements of the vehicle's inertia matrix in body-frame
1.2 Derivative (Dynamics) Model
At each discrete time , the derivative is defined as:
where:
- : current state
- : current inputs (controls, propulsion, environment, etc.)
- : previous-step state derivative
- : vector-valued function representing the RHS of the EOM in explicit form.
Including makes explicit what is already implicit in many simulator implementations:
- Predictor/corrector schemes
- Slope reuse in multi-stage integrators
- Iterative or stabilized propagation logic
This formulation clarifies the conceptual boundary between:
- Derivative formation (evaluation of )
- Numerical integration
1.3 Numerical Integration Step
The state update is:
The integral is approximated using the integrator selected inside FGPropagate.
This makes explicit that:
FGPropagateperforms numerical integrationFGFDMExecdetermines execution ordering and scheduling- The two together implement the discrete-time realization of the ODE
2. Observation Equation (Published Outputs)
In addition to propagation, the simulator produces outputs:
where:
- : published or observable outputs (aero angles, derived velocities, accelerations, navigation quantities, atmosphere values, etc.)
- : output mapping
This observation equation formalizes what is currently scattered across model execution and property publication.
TBD