flapjax 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flapjax-0.1.1/.github/workflows/docs.yml +33 -0
- flapjax-0.1.1/.github/workflows/publish_pypi.yml +34 -0
- flapjax-0.1.1/.github/workflows/python_package.yml +29 -0
- flapjax-0.1.1/.gitignore +35 -0
- flapjax-0.1.1/LICENSE +22 -0
- flapjax-0.1.1/PKG-INFO +69 -0
- flapjax-0.1.1/README.md +41 -0
- flapjax-0.1.1/docs/figures/beam_transform.png +0 -0
- flapjax-0.1.1/docs/figures/primal_solve.png +0 -0
- flapjax-0.1.1/docs/figures/uvlm_grid.png +0 -0
- flapjax-0.1.1/docs/index.md +70 -0
- flapjax-0.1.1/docs/javascripts/mathjax.js +24 -0
- flapjax-0.1.1/docs/reference/aero.md +3 -0
- flapjax-0.1.1/docs/reference/algebra.md +3 -0
- flapjax-0.1.1/docs/reference/coupled.md +3 -0
- flapjax-0.1.1/docs/reference/index.md +9 -0
- flapjax-0.1.1/docs/reference/structure.md +3 -0
- flapjax-0.1.1/docs/reference/utils.md +3 -0
- flapjax-0.1.1/docs/stylesheets/extra.css +10 -0
- flapjax-0.1.1/docs/theory/adjoint.md +3 -0
- flapjax-0.1.1/docs/theory/beam.md +370 -0
- flapjax-0.1.1/docs/theory/coupling.md +49 -0
- flapjax-0.1.1/docs/theory/index.md +27 -0
- flapjax-0.1.1/docs/theory/linear.md +3 -0
- flapjax-0.1.1/docs/theory/uvlm.md +121 -0
- flapjax-0.1.1/docs/tutorials/flying_spaghetti.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/geradin_beam_static.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/index.md +38 -0
- flapjax-0.1.1/docs/tutorials/patil_wing_control.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/simple_hale_gust.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/straight_pazy_deformed_modes.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/straight_pazy_flutter.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/straight_pazy_lco.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/straight_pazy_static_deflection.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/swept_pazy_deformed_modes.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/swept_pazy_flutter.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/swept_pazy_lco.ipynb +1 -0
- flapjax-0.1.1/docs/tutorials/swept_pazy_static_deflection.ipynb +1 -0
- flapjax-0.1.1/mkdocs.yml +106 -0
- flapjax-0.1.1/pyproject.toml +90 -0
- flapjax-0.1.1/src/flapjax/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/aero/__init__.py +21 -0
- flapjax-0.1.1/src/flapjax/aero/aic.py +312 -0
- flapjax-0.1.1/src/flapjax/aero/data_structures.py +1019 -0
- flapjax-0.1.1/src/flapjax/aero/flowfields.py +223 -0
- flapjax-0.1.1/src/flapjax/aero/gradients/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/aero/gradients/data_structures.py +409 -0
- flapjax-0.1.1/src/flapjax/aero/linear/__init__.py +2 -0
- flapjax-0.1.1/src/flapjax/aero/linear/data_structures.py +165 -0
- flapjax-0.1.1/src/flapjax/aero/linear/linear_uvlm.py +595 -0
- flapjax-0.1.1/src/flapjax/aero/utils.py +556 -0
- flapjax-0.1.1/src/flapjax/aero/uvlm.py +2434 -0
- flapjax-0.1.1/src/flapjax/algebra/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/algebra/array_utils.py +459 -0
- flapjax-0.1.1/src/flapjax/algebra/base.py +745 -0
- flapjax-0.1.1/src/flapjax/algebra/integration.py +81 -0
- flapjax-0.1.1/src/flapjax/algebra/se3.py +395 -0
- flapjax-0.1.1/src/flapjax/algebra/so3.py +213 -0
- flapjax-0.1.1/src/flapjax/algebra/test_routines.py +280 -0
- flapjax-0.1.1/src/flapjax/coupled/__init__.py +18 -0
- flapjax-0.1.1/src/flapjax/coupled/coupled.py +510 -0
- flapjax-0.1.1/src/flapjax/coupled/data_structures.py +459 -0
- flapjax-0.1.1/src/flapjax/coupled/gradients/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/coupled/gradients/coupled.py +2038 -0
- flapjax-0.1.1/src/flapjax/coupled/gradients/data_structures.py +127 -0
- flapjax-0.1.1/src/flapjax/coupled/linear/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/coupled/linear/data_structures.py +36 -0
- flapjax-0.1.1/src/flapjax/coupled/linear/linear_coupled.py +1061 -0
- flapjax-0.1.1/src/flapjax/models/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/cantilever_wing.py +82 -0
- flapjax-0.1.1/src/flapjax/models/flying_spaghetti/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/flying_spaghetti/flying_spaghetti.py +103 -0
- flapjax-0.1.1/src/flapjax/models/flying_spaghetti/free_dynamic.ipynb +1248 -0
- flapjax-0.1.1/src/flapjax/models/geradin_beam/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/geradin_beam/geradin_beam.py +41 -0
- flapjax-0.1.1/src/flapjax/models/geradin_beam/static_deformation.ipynb +361 -0
- flapjax-0.1.1/src/flapjax/models/ifasd_aviation_2026/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/ifasd_aviation_2026/cantilever_wing_adjoint.py +158 -0
- flapjax-0.1.1/src/flapjax/models/ifasd_aviation_2026/flying_spaghetti_adjoint.py +105 -0
- flapjax-0.1.1/src/flapjax/models/ifasd_aviation_2026/flying_spaghetti_optimise.py +158 -0
- flapjax-0.1.1/src/flapjax/models/ifasd_aviation_2026/geradin_beam_adjoint.py +77 -0
- flapjax-0.1.1/src/flapjax/models/ifasd_aviation_2026/optimal_roll.py +360 -0
- flapjax-0.1.1/src/flapjax/models/panel_scaling_profile.py +398 -0
- flapjax-0.1.1/src/flapjax/models/patil_wing/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/patil_wing/open_loop_control.ipynb +722 -0
- flapjax-0.1.1/src/flapjax/models/patil_wing/patil_wing.py +127 -0
- flapjax-0.1.1/src/flapjax/models/pazy/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/pazy/base.py +280 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/data/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/data/prepazy_properties.py +819 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/data/technion_pazy_properties.py +796 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/deformed_modes.ipynb +259 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/flutter.ipynb +431 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/lco.ipynb +18097 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/pazy_wing.py +108 -0
- flapjax-0.1.1/src/flapjax/models/pazy/straight/static_deflection.ipynb +335 -0
- flapjax-0.1.1/src/flapjax/models/pazy/swept/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/pazy/swept/data/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/pazy/swept/data/properties.py +408 -0
- flapjax-0.1.1/src/flapjax/models/pazy/swept/deformed_modes.ipynb +299 -0
- flapjax-0.1.1/src/flapjax/models/pazy/swept/flutter.ipynb +474 -0
- flapjax-0.1.1/src/flapjax/models/pazy/swept/lco.ipynb +9880 -0
- flapjax-0.1.1/src/flapjax/models/pazy/swept/static_deflection.ipynb +477 -0
- flapjax-0.1.1/src/flapjax/models/pazy/swept/swept_pazy_wing.py +61 -0
- flapjax-0.1.1/src/flapjax/models/scitech_abstract_2027/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/scitech_abstract_2027/linear_uvlm_case.py +189 -0
- flapjax-0.1.1/src/flapjax/models/simple_hale/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/models/simple_hale/parallel_gust.ipynb +26503 -0
- flapjax-0.1.1/src/flapjax/models/simple_hale/simple_hale.py +397 -0
- flapjax-0.1.1/src/flapjax/plotting/__init__.py +1 -0
- flapjax-0.1.1/src/flapjax/plotting/aerogrid.py +134 -0
- flapjax-0.1.1/src/flapjax/plotting/beam.py +271 -0
- flapjax-0.1.1/src/flapjax/plotting/modal.py +241 -0
- flapjax-0.1.1/src/flapjax/plotting/pvd.py +64 -0
- flapjax-0.1.1/src/flapjax/structure/__init__.py +20 -0
- flapjax-0.1.1/src/flapjax/structure/beam.py +3075 -0
- flapjax-0.1.1/src/flapjax/structure/data_structures.py +945 -0
- flapjax-0.1.1/src/flapjax/structure/gradients/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/structure/gradients/beam.py +1367 -0
- flapjax-0.1.1/src/flapjax/structure/gradients/data_structures.py +315 -0
- flapjax-0.1.1/src/flapjax/structure/linear/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/structure/linear/data_structures.py +59 -0
- flapjax-0.1.1/src/flapjax/structure/linear/linear_beam.py +455 -0
- flapjax-0.1.1/src/flapjax/structure/time_integration.py +179 -0
- flapjax-0.1.1/src/flapjax/structure/utils.py +260 -0
- flapjax-0.1.1/src/flapjax/tests/aero/test_linear_planar_wing.py +380 -0
- flapjax-0.1.1/src/flapjax/tests/aero/test_mirrored_wing.py +78 -0
- flapjax-0.1.1/src/flapjax/tests/aero/test_static_no_wake.py +65 -0
- flapjax-0.1.1/src/flapjax/tests/aero/test_variable_wake_disc.py +89 -0
- flapjax-0.1.1/src/flapjax/tests/algebra/test_beam_algebra.py +592 -0
- flapjax-0.1.1/src/flapjax/tests/algebra/test_kernels.py +98 -0
- flapjax-0.1.1/src/flapjax/tests/conftest.py +16 -0
- flapjax-0.1.1/src/flapjax/tests/coupled/dynamic/test_dynamic_equilibrium.py +69 -0
- flapjax-0.1.1/src/flapjax/tests/coupled/dynamic/test_dynamic_equilibrium_adjoint.py +132 -0
- flapjax-0.1.1/src/flapjax/tests/coupled/dynamic/test_dynamic_gust_adjoint.py +160 -0
- flapjax-0.1.1/src/flapjax/tests/coupled/dynamic/test_parallel_cantilever.py +39 -0
- flapjax-0.1.1/src/flapjax/tests/coupled/static/test_pazy.py +206 -0
- flapjax-0.1.1/src/flapjax/tests/coupled/static/test_static_adjoint.py +127 -0
- flapjax-0.1.1/src/flapjax/tests/plotting/test_beam_plot.py +35 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_linear/test_oscillating_cantilever.py +170 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_primal/test_applied_force_point.py +131 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_primal/test_const_initial_linear_velocity.py +91 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_primal/test_const_initial_rotational_velocity.py +186 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_primal/test_const_initial_velocity_lumped_mass.py +94 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_primal/test_gravity_beam_drop.py +113 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_primal/test_gravity_point_drop.py +82 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_primal/test_parallel_spaghetti.py +42 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_primal/test_two_lumped_mass_const_rot_velocity.py +195 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_tangent/test_beam_dynamic_adjoint.py +131 -0
- flapjax-0.1.1/src/flapjax/tests/structure/dynamic_tangent/test_lumped_mass_dynamic_adjoint.py +119 -0
- flapjax-0.1.1/src/flapjax/tests/structure/static_primal/test_geradin_beam.py +50 -0
- flapjax-0.1.1/src/flapjax/tests/structure/static_primal/test_mass_gravity.py +153 -0
- flapjax-0.1.1/src/flapjax/tests/structure/static_primal/test_matrices.py +60 -0
- flapjax-0.1.1/src/flapjax/tests/structure/static_primal/test_modal.py +91 -0
- flapjax-0.1.1/src/flapjax/tests/structure/static_primal/test_multi_element_beam.py +642 -0
- flapjax-0.1.1/src/flapjax/tests/structure/static_primal/test_pazy_modes.py +173 -0
- flapjax-0.1.1/src/flapjax/tests/structure/static_primal/test_two_node_beam.py +533 -0
- flapjax-0.1.1/src/flapjax/tests/structure/static_tangent/test_geradin_gradients.py +111 -0
- flapjax-0.1.1/src/flapjax/utils/__init__.py +0 -0
- flapjax-0.1.1/src/flapjax/utils/constants.py +23 -0
- flapjax-0.1.1/src/flapjax/utils/data_structures.py +498 -0
- flapjax-0.1.1/src/flapjax/utils/linear.py +866 -0
- flapjax-0.1.1/src/flapjax/utils/print_utils.py +103 -0
- flapjax-0.1.1/src/flapjax/utils/utils.py +140 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Deploy documentation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
deploy:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v6
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- name: Install uv
|
|
20
|
+
uses: astral-sh/setup-uv@v7
|
|
21
|
+
|
|
22
|
+
- name: Install docs dependencies
|
|
23
|
+
run: uv sync --group docs
|
|
24
|
+
|
|
25
|
+
- name: Build site
|
|
26
|
+
run: uv run mkdocs build --strict
|
|
27
|
+
|
|
28
|
+
- name: Publish to gh-pages
|
|
29
|
+
uses: peaceiris/actions-gh-pages@v4
|
|
30
|
+
with:
|
|
31
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
32
|
+
publish_dir: ./site
|
|
33
|
+
keep_files: true
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
build-and-publish:
|
|
8
|
+
name: Build and publish to PyPI
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
environment:
|
|
11
|
+
name: pypi
|
|
12
|
+
url: https://pypi.org/project/flapjax/
|
|
13
|
+
permissions:
|
|
14
|
+
id-token: write
|
|
15
|
+
contents: read
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Install uv
|
|
20
|
+
uses: astral-sh/setup-uv@v6
|
|
21
|
+
with:
|
|
22
|
+
enable-cache: true
|
|
23
|
+
|
|
24
|
+
- name: Set up Python
|
|
25
|
+
run: uv python install
|
|
26
|
+
|
|
27
|
+
- name: Build distributions
|
|
28
|
+
run: uv build
|
|
29
|
+
|
|
30
|
+
- name: Check distributions
|
|
31
|
+
run: uvx twine check dist/*
|
|
32
|
+
|
|
33
|
+
- name: Publish to PyPI
|
|
34
|
+
run: uv publish --trusted-publishing automatic
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Run tests and coverage
|
|
2
|
+
|
|
3
|
+
on: [ push ]
|
|
4
|
+
|
|
5
|
+
permissions:
|
|
6
|
+
contents: write
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-linux:
|
|
10
|
+
name: python
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v6
|
|
15
|
+
with:
|
|
16
|
+
persist-credentials: false
|
|
17
|
+
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v7
|
|
20
|
+
|
|
21
|
+
- name: Install
|
|
22
|
+
run: uv sync
|
|
23
|
+
|
|
24
|
+
- name: Run tests and coverage
|
|
25
|
+
run: uv run pytest --cov --cov-report json
|
|
26
|
+
|
|
27
|
+
- name: Update coverage badge
|
|
28
|
+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
|
29
|
+
uses: we-cli/coverage-badge-action@main
|
flapjax-0.1.1/.gitignore
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# output files
|
|
2
|
+
*.vts
|
|
3
|
+
*.vtp
|
|
4
|
+
*.vtu
|
|
5
|
+
*.pvd
|
|
6
|
+
*.dat
|
|
7
|
+
*.csv
|
|
8
|
+
*.pickle
|
|
9
|
+
|
|
10
|
+
# Claude files
|
|
11
|
+
*.claude
|
|
12
|
+
CLAUDE.md
|
|
13
|
+
|
|
14
|
+
# python files
|
|
15
|
+
*.pyc
|
|
16
|
+
*.egg_info/
|
|
17
|
+
|
|
18
|
+
# IDE/package manager files
|
|
19
|
+
uv.lock
|
|
20
|
+
.venv
|
|
21
|
+
.idea/
|
|
22
|
+
|
|
23
|
+
# Mac files
|
|
24
|
+
.DS_Store
|
|
25
|
+
|
|
26
|
+
# testing files
|
|
27
|
+
tests/test_outputs/
|
|
28
|
+
tests/.jax_cache/
|
|
29
|
+
tmp/
|
|
30
|
+
*.prof
|
|
31
|
+
|
|
32
|
+
# MkDocs build output
|
|
33
|
+
site/
|
|
34
|
+
.cache/
|
|
35
|
+
|
flapjax-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, Loads Control and Aeroelastics, Imperial College London
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
flapjax-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: flapjax
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Solver for computing aeroelastic responses and corresponding design derivatives.
|
|
5
|
+
Project-URL: Homepage, https://ben-l-p.github.io/flapjax/
|
|
6
|
+
Project-URL: Documentation, https://ben-l-p.github.io/flapjax/
|
|
7
|
+
Project-URL: Repository, https://github.com/ben-l-p/flapjax
|
|
8
|
+
Project-URL: Issues, https://github.com/ben-l-p/flapjax/issues
|
|
9
|
+
Author-email: Ben Preston <b.preston23@imperial.ac.uk>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: adjoint methods,aeroelasticity,nonlinear beam,unsteady vortex lattice method
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
21
|
+
Requires-Python: >=3.12
|
|
22
|
+
Requires-Dist: jax>=0.9
|
|
23
|
+
Requires-Dist: matplotlib>=3.10
|
|
24
|
+
Requires-Dist: numpy>=2.4
|
|
25
|
+
Requires-Dist: scipy>=1.17
|
|
26
|
+
Requires-Dist: vtk>=9.6
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# FLAPJAX — FLexible Aeroelastic Panel code in JAX
|
|
30
|
+
|
|
31
|
+
*nonlinear · differentiable · adjoint-enabled*
|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
[](https://github.com/ben-l-p/flapjax/actions)
|
|
35
|
+
[](https://ben-l-p.github.io/flapjax/)
|
|
36
|
+
[](https://pypi.org/project/flapjax/)
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
FLAPJAX is a differentiable nonlinear aeroelastic analysis framework which couples a nonlinear structural model with
|
|
40
|
+
unsteady vortex lattice method (UVLM) aerodynamics. This allows for a range of structural, aerodynamic and coupled
|
|
41
|
+
analyses, with gradients available using the adjoint method. The full codebase is implemented in JAX, which allows for
|
|
42
|
+
efficient automatic differentiation, GPU acceleration and multi-case parallelisation.
|
|
43
|
+
|
|
44
|
+
Full documentation, including tutorials, API reference and theory, is available at
|
|
45
|
+
[ben-l-p.github.io/flapjax](https://ben-l-p.github.io/flapjax/).
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
|
|
49
|
+
Installation is available using PyPi with:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pip install flapjax
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Cloning the full repository and installing with uv is also supported, which allows for development installation:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
uv sync
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
An extensive test suite is included to verify the correctness of the code. This verified the numerics, and takes
|
|
62
|
+
approximately 30 minutes to run on an M2 MacBook Air. Tests can be run using pytest.
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
uv run pytest
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
flapjax-0.1.1/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# FLAPJAX — FLexible Aeroelastic Panel code in JAX
|
|
2
|
+
|
|
3
|
+
*nonlinear · differentiable · adjoint-enabled*
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
[](https://github.com/ben-l-p/flapjax/actions)
|
|
7
|
+
[](https://ben-l-p.github.io/flapjax/)
|
|
8
|
+
[](https://pypi.org/project/flapjax/)
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
FLAPJAX is a differentiable nonlinear aeroelastic analysis framework which couples a nonlinear structural model with
|
|
12
|
+
unsteady vortex lattice method (UVLM) aerodynamics. This allows for a range of structural, aerodynamic and coupled
|
|
13
|
+
analyses, with gradients available using the adjoint method. The full codebase is implemented in JAX, which allows for
|
|
14
|
+
efficient automatic differentiation, GPU acceleration and multi-case parallelisation.
|
|
15
|
+
|
|
16
|
+
Full documentation, including tutorials, API reference and theory, is available at
|
|
17
|
+
[ben-l-p.github.io/flapjax](https://ben-l-p.github.io/flapjax/).
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
Installation is available using PyPi with:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install flapjax
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Cloning the full repository and installing with uv is also supported, which allows for development installation:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
uv sync
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
An extensive test suite is included to verify the correctness of the code. This verified the numerics, and takes
|
|
34
|
+
approximately 30 minutes to run on an M2 MacBook Air. Tests can be run using pytest.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
uv run pytest
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# flapjax
|
|
2
|
+
|
|
3
|
+
**flapjax** (COupled Nonlinear Differentiable solver fOR aeroelastics) is a nonlinear aeroelastic solver build using
|
|
4
|
+
Google JAX. It couples:
|
|
5
|
+
|
|
6
|
+
- **UVLM** (Unsteady Vortex Lattice Method) for aerodynamics
|
|
7
|
+
- **Nonlinear beam theory** (SE (3)/SO (3) Lie-group formulation) for structural mechanics
|
|
8
|
+
|
|
9
|
+
This allows for accurate simulation of highly flexible aircraft configurations. Capabilities for simulation include:
|
|
10
|
+
|
|
11
|
+
- **Static aeroelastic analysis** for finding the equilibrium configuration
|
|
12
|
+
- **Dynamic aeroelastic analysis** for time-domain response to gusts and control inputs
|
|
13
|
+
- **Linearised aeroelastic analysis** for structural modal, and aeroelastic stability and flutter analysis
|
|
14
|
+
- **Adjoint-based gradients** for efficient sensitivity computation of static and dynamic systems, enabling
|
|
15
|
+
gradient-based optimisation
|
|
16
|
+
|
|
17
|
+
There are many advantages for using a fully JAX-based framework, including:
|
|
18
|
+
|
|
19
|
+
- **Fast analysis** using JAX's just-in-time compilation
|
|
20
|
+
- **Parallelisation** using JAX's vectorisation and batching capabilities, which allows for parallelising across
|
|
21
|
+
multiple cases, as well as within a single case. This supports execution on CPU and GPU hardware.
|
|
22
|
+
- **Automatic differentiation** of Python functions, which allows for an elegant implementation of adjoint and
|
|
23
|
+
linearised systems.
|
|
24
|
+
|
|
25
|
+
It is advised that users have an understanding of key JAX principles, including JIT compilation, vectorisation, and
|
|
26
|
+
automatic differentiation [JAX documentation](https://docs.jax.dev/en/latest/notebooks/thinking_in_jax.html). This can
|
|
27
|
+
often result in unusual coding patterns due to the absense of conventional control logic.
|
|
28
|
+
|
|
29
|
+
This framework is designed to be modular, and allows for very flexible workflows. It makes extensive use of
|
|
30
|
+
object-oriented principles with a very "pythonic" interface. It makes full use of Python type hinting to best inform
|
|
31
|
+
users of the expected input and output types for each function.
|
|
32
|
+
|
|
33
|
+
## Where to go next
|
|
34
|
+
|
|
35
|
+
<div class="grid cards" markdown>
|
|
36
|
+
|
|
37
|
+
- :material-school: **[Tutorials](tutorials/index.md)**
|
|
38
|
+
Example-based guides.
|
|
39
|
+
|
|
40
|
+
- :material-book-open-variant: **[Reference](reference/index.md)**
|
|
41
|
+
API documentation.
|
|
42
|
+
|
|
43
|
+
- :material-lightbulb: **[Theory](theory/index.md)**
|
|
44
|
+
Theoretical background behind the aeroelastic modelling.
|
|
45
|
+
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
## Installation
|
|
49
|
+
|
|
50
|
+
Installation is simple, supporting pip installation. It is recommended to install in a virtual environment, with ``uv``
|
|
51
|
+
being the recommended package manager. The following commands will install the package with all dependencies, including
|
|
52
|
+
optional dependencies for development.
|
|
53
|
+
|
|
54
|
+
Recommended installation with ``uv``:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
uv sync --no-dev # runtime only
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Development installation with ``uv``:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
uv sync # runtime + dev
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
For installation without ``uv`` (for instance if using Conda), we can fall back to ``pip``:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install .
|
|
70
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* global MathJax, document$ */
|
|
2
|
+
window.MathJax = {
|
|
3
|
+
tex: {
|
|
4
|
+
inlineMath: [["\\(", "\\)"]],
|
|
5
|
+
displayMath: [["\\[", "\\]"]],
|
|
6
|
+
processEscapes: true,
|
|
7
|
+
processEnvironments: true
|
|
8
|
+
},
|
|
9
|
+
options: {
|
|
10
|
+
ignoreHtmlClass: ".*|",
|
|
11
|
+
processHtmlClass: "arithmatex"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
document$.subscribe(() => {
|
|
16
|
+
// noinspection JSUnresolvedReference
|
|
17
|
+
MathJax.startup.output.clearCache();
|
|
18
|
+
// noinspection JSUnresolvedReference
|
|
19
|
+
MathJax.typesetClear();
|
|
20
|
+
// noinspection JSUnresolvedReference
|
|
21
|
+
MathJax.texReset();
|
|
22
|
+
// noinspection JSUnresolvedReference
|
|
23
|
+
MathJax.typesetPromise();
|
|
24
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# API reference
|
|
2
|
+
|
|
3
|
+
Auto-generated from docstrings via [`mkdocstrings`](https://mkdocstrings.github.io/).
|
|
4
|
+
|
|
5
|
+
- [Aero](aero.md) — UVLM, AIC kernels, wake models
|
|
6
|
+
- [Structure](structure.md) — Cosserat beam, time integration
|
|
7
|
+
- [Coupled](coupled.md) — static and dynamic aeroelastic solvers
|
|
8
|
+
- [Algebra](algebra.md) — SO (3)/SE (3) Lie-group primitives
|
|
9
|
+
- [Utils](utils.md) — pytree helpers, convergence settings, design variables
|