JSBSim Python Examples

Documentation

  • Concepts
    • Frames of reference
      • Structural, or “Construction” Frame
      • Body Frame
      • Stability, or “Aerodynamic” Frame
      • Earth-Centered Frames (ECI and ECEF)
      • North-Oriented Tangent Frame
      • Local-Vertical Local-Level Frame (Local NED)
      • Wind Frame
    • Simulation
    • Frames of reference
    • Units
    • Properties
    • Math
    • Forces and moments
    • Flight Control and System Modelling

JSBSim Basics

  • JSBSim Hello World
    • What we will do
      • Install
    • 1. Import and version check
    • 2. Create the Flight Dynamics Model executor
    • 3. Load an aircraft model
    • 4. Set initial conditions
    • 5. Trim the aircraft
    • 6. Step the simulation and read properties
    • 7. Explore the property tree
    • Summary
  • JSBSim Flight Simulation
    • Topics covered
    • 1. Setup
    • 2. Initialise JSBSim and trim
    • 3. Run the simulation and record data
    • 4. Visualise – altitude and airspeed
    • 5. Visualise – attitude angles
    • 6. Visualise – ground track
    • 7. Reset and re-run: 10-degree turn to the left
    • Summary

PathSim Integration

  • PathSim Introduction
    • Install
      • 1. Imports
      • 2. Example 1 – Damped harmonic oscillator
      • 3. Example 2 – First-order system step response
      • 4. Example 3 – Sinusoidal source and phase portrait
      • 5. PathView
      • Summary
  • JSBSim Trim and Elevator Doublet with PathSim
    • 1. Imports
    • 2. Initialize the JSBSim FDM
    • 3. Aircraft Parameters and Trim Conditions
    • 4. Level-Flight Trim
    • 5. PathSim Block Diagram
    • 6. Simulation Results
    • Summary
  • pathsim-flight: JSBSim as a PathSim Block
    • Install
      • 1. Imports
      • 2. International Standard Atmosphere
      • 3. Airspeed conversions
      • 4. JSBSimWrapper – embedding JSBSim in a PathSim diagram
      • 5. Plot the results
      • 6. Angle-of-attack and airspeed
      • Summary

Advanced Analysis

  • Angle of attack (AoA) vs Calibrated Airspeed (CAS) of a Global 5000 aircraft in wings-level flight
    • Plotting trim angles of attack vs flight speed
      • Setting up a simulation script
    • Initialize FDM
    • Tweak aircraft XML file: remove <output name="..."/> nodes from the officially released files
      • Run a simulation for a single altitude, single weight, single CoG position
    • Different aircraft weights, CoG positions and altitudes
  • Rudder Kick
  • Thrust Vectoring Analysis
    • Initialize FDM
    • Tweak aircraft XML file: remove <input/> nodes from the officially released files
  • Trim Envelope
    • Initialize FDM
    • Tweak aircraft XML file: remove <input/> nodes from the officially released files
    • Initialize the JSBSim executable
    • Work on trim conditions
  • Trim Envelope and Climb Analysis
    • Import Required Libraries
    • Initialize JSBSim and Set Up Aircraft
    • Define Envelope Limits and Parameters
    • Generate Trim Envelope
    • Plot Trim Envelope Results
    • Define Flight Simulation Functions
      • Function 1: Climb with Initial Trim
      • Function 2: Climb with Interpolated Trim
    • Execute Climb Simulations

Resources

  • Resources
    • This documentation
    • Related projects
    • Useful references
JSBSim Python Examples
  • Search


© Copyright 2026, Agostino De Marco (LinkedIn).

Built with Sphinx using a theme provided by Read the Docs.