Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions apps/dash-airfoil-design/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import plotly.express as px
import plotly.graph_objects as go
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash import dcc, html
import dash_bootstrap_components as dbc
from dash.dependencies import Input, Output, State
import aerosandbox as asb
from aerosandbox.geometry.airfoil.airfoil_families import get_kulfan_coordinates
import aerosandbox.numpy as np
import copy
import plotly.figure_factory as ff
Expand Down Expand Up @@ -263,11 +263,10 @@ def display_graph(

### Start constructing the figure
airfoil = asb.Airfoil(
coordinates=asb.get_kulfan_coordinates(
coordinates=get_kulfan_coordinates(
lower_weights=np.array(kulfan_inputs[n_kulfan_inputs_per_side:]),
upper_weights=np.array(kulfan_inputs[:n_kulfan_inputs_per_side]),
TE_thickness=0,
enforce_continuous_LE_radius=False,
n_points_per_side=200,
)
)
Expand Down Expand Up @@ -351,4 +350,4 @@ def display_graph(


if __name__ == "__main__":
app.run_server(debug=True)
app.run(debug=True)
4 changes: 2 additions & 2 deletions apps/dash-airfoil-design/app_components.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dash_core_components as dcc
import dash_html_components as html
from dash import dcc, html


### Operating things
operating_slider_components = [
Expand Down
12 changes: 12 additions & 0 deletions apps/dash-airfoil-design/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[project]
name = "dash-airfoil-design"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"aerosandbox>=4.2.10",
"dash>=4.4.1",
"dash-bootstrap-components>=2.0.4",
"plotly>=7.0.0",
"pandas>=3.0.5",
"gunicorn>=26.2.0",
]
58 changes: 51 additions & 7 deletions apps/dash-airfoil-design/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,51 @@
aerosandbox == 3.0.0 # TODO fix a version
plotly>= 4.14.3
dash>= 1.19.0
dash_core_components>=1.15.0
dash_html_components>=1.1.2
dash_bootstrap_components>=0.11.3
gunicorn
aerosandbox==4.2.10
annotated-types==0.8.0
blinker==1.9.0
casadi==3.8.0
certifi==2026.7.22
charset-normalizer==3.5.1
click==8.5.0
colorama==0.4.6 ; sys_platform == 'win32'
comm==0.2.3
contourpy==1.3.3
cycler==0.12.1
dash==4.4.1
dash-bootstrap-components==2.0.4
dill==0.4.1
flask==3.1.3
fonttools==4.64.0
gunicorn==26.2.0
idna==3.19
importlib-metadata==9.0.1
itsdangerous==2.2.0
janus==2.0.0
jinja2==3.1.6
kiwisolver==1.5.1
markupsafe==3.0.3
matplotlib==3.11.1
narwhals==2.25.0
nest-asyncio==1.6.0
neuralfoil==0.3.3
numpy==2.5.3
packaging==26.3
pandas==3.0.5
pillow==12.3.0
plotly==7.0.0
pydantic==2.13.5
pydantic-core==2.46.5
pyparsing==3.3.2
python-dateutil==2.9.0.post0
requests==2.34.2
retrying==1.4.2
scipy==1.18.1
seaborn==0.13.2
setuptools==84.0.0
six==1.17.0
sortedcontainers==2.4.0
tqdm==4.70.0
typing-extensions==4.16.0
typing-inspection==0.4.4
tzdata==2026.3 ; sys_platform == 'emscripten' or sys_platform == 'win32'
urllib3==2.7.0
werkzeug==3.1.8
zipp==4.1.0
2 changes: 1 addition & 1 deletion apps/dash-airfoil-design/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.8.2
python-3.12.11
Loading