Giter Site home page Giter Site logo

nomad-vagabond / streamlit-wing-design Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 7.0 790 KB

A Streamlit app for generating 3D model of the UAV wing console

Home Page: https://splinecloud.com/apps/nomad-vagabond/rectangular-wing-generator/

License: Apache License 2.0

Python 42.99% JavaScript 56.44% Dockerfile 0.57%
airfoil cadquery generative-design kbe streamlit-webapp uav wing

streamlit-wing-design's Introduction

UAV Wing Console Generator

Rectangular Wing Console (v1.0)

Streamlit app based on the CQ-UAV library for generation of UAV components with CadQuery and SplineCloud.


Live app: https://rectangular-wing-generator.streamlit.app/

Mathematical Model of The Wing Console

Assumptions

  • considered uniform distribution of pressure along the wing span (which is not true in reality);
  • UAV pitch angle = 0, meaning horizontal flight mode with arbitrary angle of attack;
  • only the wing box section accepts aerodynamic load, which is applied along the central line of the wing box;
  • pure box bending is considered;
  • wing console is fixed on one of its ends, another end is free;
  • wing materials are isotropic.

Geometry

Wing consists of three main parts: three-chamber box compartment (inner body), shell and interim body (XPS foam or other low-density material)

Geometry is automatically reenerated based on the airfoil type and wing size.

Airfoil data

Airfoil data (profile geometry and aerodynamic coefficients) are collected from the open SplineCloud repositories with the script from the cq-uav library. Airfoil shapes are approximated with smoothing B-Splines, while sharp tails are thickened to avoid malformed geometry.

Running Locally

1. Clone this repository with git.

2. Open terminal and cd to the cloned repository.

a) Using docker-compose (recommended)

3. In terminal

docker-compose up --build

4. In browser go to http://localhost:8501/

b) Using virtual environment

3. Create virtual environment

python -m venv venv

4. Install dependencies

source venv/bin/activate
pip install -r requirements.txt

5. Run the streamlit app

streamlit run app/app.py

6. A browser window (tab) with the app should appear.


Inspired by obeliskterrain

streamlit-wing-design's People

Contributors

nomad-vagabond avatar

Stargazers

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

Watchers

 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.