Skip to content

Add wind tunnel simulation and interactive CLI for aircraft design - #22

Merged
smaruf merged 8 commits into
mainfrom
copilot/add-gui-cli-tool-for-aircraft
Feb 22, 2026
Merged

Add wind tunnel simulation and interactive CLI for aircraft design#22
smaruf merged 8 commits into
mainfrom
copilot/add-gui-cli-tool-for-aircraft

Conversation

Copilot AI commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Adds aerodynamic simulation and CLI tooling for aircraft design experimentation. Existing GUI receives minimal enhancements (wind tunnel integration buttons).

Implementation

Wind Tunnel Engine (wind_tunnel.py)

  • Lift/drag coefficient calculations using thin airfoil theory with Prandtl finite wing corrections
  • Stall modeling, trim finding (binary search), stability analysis (static margin)
  • Angle of attack sweeps (-5° to 20°), pressure distribution

CLI Tool (aircraft_designer_cli.py)

  • Interactive mode: guided parameter input
  • Quick mode: python aircraft_designer_cli.py -w 1000 -c 150 --weight 1000
  • Batch mode: JSON input/output for automation

GUI Integration (airframe_designer.py)

  • Wind tunnel button added to Fixed Wing and Glider designers (+78 lines)
  • Opens simulation window with real-time AoA sweep tables and recommendations
  • Results export to JSON

Testing (test_wind_tunnel.py)

  • 10 unit tests covering aerodynamic calculations
  • Validation against NACA data (±10% stall speed, ±15% L/D)

Usage

# Interactive design session
python aircraft_designer_cli.py -i

# Quick analysis
python aircraft_designer_cli.py -w 1200 -c 180 --weight 1400 --cruise 15

# Batch processing
python aircraft_designer_cli.py --batch design.json -o results.json

Design file format:

{
  "design_params": {
    "wingspan": 1200,
    "chord": 180,
    "weight": 1400,
    "airfoil_type": "clark_y"
  },
  "cruise_speed": 15.0
}

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@smaruf smaruf left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GUI already existed, just want more enhancements and CLI for interactive designing with simulation of flights

Copilot AI and others added 7 commits February 19, 2026 09:48
Co-authored-by: smaruf <10070242+smaruf@users.noreply.github.com>
Co-authored-by: smaruf <10070242+smaruf@users.noreply.github.com>
Co-authored-by: smaruf <10070242+smaruf@users.noreply.github.com>
Co-authored-by: smaruf <10070242+smaruf@users.noreply.github.com>
… to constants

Co-authored-by: smaruf <10070242+smaruf@users.noreply.github.com>
…s, add formatting constants

Co-authored-by: smaruf <10070242+smaruf@users.noreply.github.com>
Co-authored-by: smaruf <10070242+smaruf@users.noreply.github.com>
@smaruf
smaruf marked this pull request as ready for review February 22, 2026 03:36
@smaruf
smaruf merged commit f34d77e into main Feb 22, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants