Coder Social home page Coder Social logo

glidersim's Introduction

pfh.glidersim

image

A Python library for estimating the flight dynamics of gliding aircraft.

To simplify its use in common engineering applications (such as control modeling and statistical filtering), the glider dynamics are encoded as differential equations (αΊ‹ = f(x, u)).

Key Features

Modeling

  • Novel wing geometry model optimized for nonlinear designs
  • Paraglider component models parametrized by basic technical data
  • Paraglider system models that accept all three primary control inputs: brakes, accelerator, and weight shift (direct manipulation of the risers and individual lines is not supported)
  • Stateless models that are easy understand, use, extend, and test

Aerodynamics

  • Nonlinear aerodynamics using a fast nonlinear lifting-line theory model
  • Graceful accuracy degradation near stall (important for paragliders, which frequently operate at relatively high angles of attack)
  • Supports non-uniform wind fields and non-uniform wind vectors along the aerodynamic surfaces, enabling simulations involving local wind sheer, thermal lift and sink, wing rotation, etc.
  • Includes paraglider system dynamics models that account for apparent mass (nonlinear dynamics due to the motion of an object through a fluid that become more significant for low-density volumes such as parafoils)

Usability

  • Flight dynamics are encoded as numerical state derivatives, providing a simple model interface
  • Includes a rudimentary simulator for generating flight trajectories from predefined wing control and wind field inputs
  • Open source with a permissive license, built using the Python scientific computing stack (NumPy, SciPy, and Numba). Usable from within embedded Python interpreters, such as the Python consoles in Blender and FreeCAD.

Non-features

Equally important is what it does not do:

  • The library is not suitable for studying behaviors involving turbulence, wing deformations, rapid wing maneuvers, or post-stall behaviors.
  • The library is not a structural simulator. The models are not adequate for designing or testing the structural integrity of a design; they assume rigid-body dynamics without estimating internal forces. (For example, it neglects suspension line tension, cell billowing, canopy wrinkling, etc.)
  • The library is not focused on engineering control input sequences or wind field models. The bundled simulator is for executing simulations given some inputs, not for designing them.
  • The library is not focused on execution time. Although speed is important, the design prioritizes readability, functionality, and flexibility.

Installation

To install the latest release of the package into a Python virtual environment:

$ pip install pfh.glidersim

Or, for the latest development version:

$ pip install git+https://github.com/pfheatwole/glidersim

Documentation

  • Design overview: for the background and architecture of the library, refer to the design guide.
  • Examples: to use the library to build glider models or run flight simulations, refer to the usage guide.
  • API: to program using the library, refer to the library reference.
  • Derivations: for a deeper discussion of the modeling choices, mathematical derivations, and literature references, refer to my thesis: Parametric Paraglider Modeling.

Disclaimer

This software has been stable for my purposes, but should be considered "alpha" quality. The design (including the API) needs more users to test it before it could be considered stable. Also the estimates produced by the nonlinear aerodynamics method needs more verification.

glidersim's People

Contributors

pfheatwole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.