Code Monkey home page Code Monkey logo

cnn-for-airfoil's Introduction

CNN-based aerodynamics parameters prediction method

CNN for airfoil lift-to-drag-ratio prediction

This repository contains data, code, and results for implementing an airfoil lift-to-drag ratio prediction method based on Convolutional Neural Network. The network model can take into cnn model the airfoil contour and predict its areodynamics parameters such as lift-to-drag ratio.

What we achieved:

Data Pre-processing: raw_data_parsing.py provided a way to transform the inconsistent raw coordinates data into dimension-unified matrices, this actually gives birth to a new easy-to-process upgraded version of UIUC dataset.

Model building: This CNN models runs 5000 times faster than commercial CFD software with relative low error (i.e Test MSE 0.36 after 200 epoch's training)

How to run

Be sure to install Pytorch (GPU version recommended) environment with numpy, scipy and matplotlib packages.

python CNN.py

Contents

/data/raw_data/foil_figure.rar:
 a file of all filled-in grayscale airfoil contour figures generated from coordinates txt files from UIUC Airfoil Data Site.
/data/raw_data/csv.zip:
 a file of all samples' lift-to-drag ratio calculated by Xflr5 /data/parsed_data/1_300.mat
 the above raw data is parsed into .mat file for loading
/source/raw_data_parsing.py
 This .py file shows steps of building a NIST36-alike organized dataset from raw data
 Please unzip raw data and modify directory and then run it. You can pass all data, which is a 4.2 GB 1_1550.mat file.
/source/CNN.py
 Run this file to load parsed data 1_300.mat, train and print testset result

Result

Licence

The source code is released under MIT Licence.
This research is led by Haolin Liu @HaolinCMU, Zi Li and Fei Lu @fei123ilike.
Please cite properly when refer to our contents and parsed dataset in the report.
Welcome to contact me at [email protected] for any question or suggestion.

cnn-for-airfoil's People

Contributors

ziliharvey avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  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.