AeroSandbox

peterdsharpeMIT活跃维护

用计算图变换(如自动微分)加速飞行器设计优化,提供气动、推进、结构、轨迹设计等可组合分析工具,适合多学科设计优化场景。

Aircraft design optimization made fast through computational graph transformations (e.g., automatic differentiation). Composable analysis tools for aerodynamics, propulsion, structures, trajectory design, and much more.

暂无版本1,389star +2 / 7 天214fork同步于 2026-11-10 23:49 UTC

怎么上手

由 README 提炼,执行前请确认
pip install aerosandbox[full]
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用自动微分加速飞机设计优化的 Python 工具包,把气动、结构、推进、轨迹等模型串成可微计算图

用计算图变换(如自动微分)加速飞行器设计优化,提供气动、推进、结构、轨迹设计等可组合分析工具,适合多学科设计优化场景。

核心能力

  • 基于计算图变换实现自动微分,加速大规模优化
  • 提供气动、推进、结构、轨迹等端到端可微物理模型
  • 沿用 NumPy 风格语法,可替换为自定义物理模型
  • 内置涡格法(VLM)等三维气动分析工具
  • 支持翼型、机翼平面形状与复合材料梁的结构优化

容易踩的坑

完整安装需带 [full] 额外依赖,否则跳过 3D 可视化、CAD 导出等可选包;所有输入输出默认使用基本 SI 单位,仅迎角和侧滑角用度;README 未说明默认端口

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    AeroSandbox :airplane:

    by Peter Sharpe (<pds [at] mit [dot] edu>)

    Downloads Monthly Downloads Build Status PyPI Documentation Status License: MIT

    AeroSandbox is a Python package that helps you design and optimize aircraft and other engineered systems.

    At its heart, AeroSandbox is an optimization suite that combines the ease-of-use of familiar NumPy syntax with the power of modern automatic differentiation.

    This automatic differentiation dramatically improves optimization performance on large problems: design problems with tens of thousands of decision variables solve in seconds on a laptop. AeroSandbox also comes with dozens of end-to-end-differentiable aerospace physics models, allowing you to simultaneously optimize an aircraft's aerodynamics, structures, propulsion, mission trajectory, stability, and more.

    Keeping AeroSandbox easy to learn and use is a top priority. Complexity is optional - you can use AeroSandbox's built-in physics models where helpful, or you can drop in arbitrary custom physics models of your own.

    pip install aerosandbox[full]
    

    What can I do with AeroSandbox?

    Use AeroSandbox to design and optimize entire aircraft:

    Use AeroSandbox to support real-world aircraft development programs, all the way from your very first sketch to your first-flight and beyond:

    Use AeroSandbox to explore counterintuitive, complicated design tradeoffs, all at the earliest stages of conceptual design where these insights make the most difference:

    Use AeroSandbox as a pure aerodynamics toolkit:

    Among many other disciplines:

    Easily interface AeroSandbox with all your favorite tools:

    Or, throw all the airplane-design-specific code out entirely, and use AeroSandbox purely as an optimization solver or as a solver for nonlinear systems of equations (or ODEs, or PDEs):

    And much, much more. Best of all, combine these tools arbitrarily without any loss in optimization speed and without any tedious derivative math, all thanks to AeroSandbox's end-to-end automatic-differentiability.

    Getting Started

    Installation

    In short:

    • pip install aerosandbox[full] for a complete install.

    • pip install aerosandbox for a lighter-weight installation. All optimization, numerics, and physics models are included, along with 2D plotting via matplotlib; optional dependencies for 3D visualization, CAD export, and geometry manipulation (e.g., plotly, pyvista, trimesh, cadquery) are skipped.

    For more installation details (e.g., if you're new to Python), see here.

    Tutorials, Examples, and Documentation

    To get started, check out the tutorials folder here! All tutorials are viewable in-browser, or you can open them as Jupyter notebooks by cloning this repository.

    For a more detailed and theory-heavy introduction to AeroSandbox, please see the author's PhD thesis and master's thesis.

    For a developer-oriented description of AeroSandbox internal modules, please see the developer README.

    For fully-detailed API documentation, see the documentation website.

    You can print documentation and examples for any AeroSandbox object by using the built-in help() function (e.g., help(asb.Airplane)). AeroSandbox code is also documented extensively in the source and contains hundreds of unit test examples, so examining the source code can also be useful.

    Usage Details

    Units

    One final point to note: all inputs and outputs to AeroSandbox are expressed in base SI units, or derived units thereof (e.g., m, kg, sec, N, m/s, J, Pa). Since this unit system is coherent, an enormous number of quantities can be converted without any scaling factors. This improves readability and reduces the likelihood of errors.

    There are only two exceptions to this SI-everywhere rule:

    1. If alternate units are used, this is noted in the variable name's suffix. For example:

      • battery_capacity → Joules
      • battery_capacity_watt_hours → Watt-hours
      • aircraft_endurance → Seconds
      • aircraft_endurance_hours → Hours
    2. Angle of attack (alpha, α) and sideslip angle (beta, β) are given in degrees due to long-standing aerospace convention. All other angles and angular rates use radians.

    Also, in case of any confusion on the units of a function's inputs and outputs, units are listed on all function docstrings.

    If you wish to use other units, consider using aerosandbox.tools.units to convert easily.

    Project Details

    Contributing

    Please feel free to join the development of AeroSandbox - contributions are always so welcome! If you have a change you'd like to make, the easiest way to do that is by submitting a pull request.

    The text file CONTRIBUTING.md has more details for developers and power users.

    If you've already made several additions and would like to be involved in a more long-term capacity, please message me! Contact information can be found next to my name near the top of this README.

    Donating

    If you like this software, please consider donating to support development via PayPal or GitHub Sponsors!

    Bugs

    Please, please report all bugs by creating a new issue!

    Versioning

    AeroSandbox loosely uses semantic versioning, which should give you an idea of whether or not you can probably expect backward-compatibility and/or new features from any given update.

    For more details, see the changelog.

    Citation & Commercial Use

    If you find AeroSandbox useful in your research, please cite the following publications:

    The author's PhD thesis:

    @phdthesis{aerosandbox_phd_thesis,
        title = {Accelerating Practical Engineering Design Optimization with Computational Graph Transformations},
        author = {Sharpe, Peter D.},
        school = {Massachusetts Institute of Technology}, 
        year = {2024},
        note = {Available at \url{https://dspace.mit.edu/handle/1721.1/157809}}
    }
    

    The author's Master's thesis:

    @mastersthesis{aerosandbox_masters_thesis,
        title = {AeroSandbox: A Differentiable Framework for Aircraft Design Optimization},
        author = {Sharpe, Peter D.},
        school = {Massachusetts Institute of Technology},
        year = {2021},
        note = {Available at \url{https://dspace.mit.edu/handle/1721.1/140023}}
    }
    

    Commercial users: I'm more than happy to discuss consulting work for active AeroSandbox support if this package proves helpful - use the email address in the header of this README to get in touch.

    License

    MIT License applies, full terms here. In short: use AeroSandbox for anything you want (commercial or non-commercial). AeroSandbox is released in hope that it will be useful but without any warranty of merchantability (either express or implied).

    If you use AeroSandbox, public attribution is appreciated. In particular, it's especially helpful when industry users share when and how they're using AeroSandbox, since it helps the team prioritize feature development.

    Stargazers over time

    Stargazers over time

    Supported by