Git Product home page Git Product logo

airfoilfoam's Introduction

airfoilFOAM

Python script to run CFD analysis on airfoil using OpenFOAM to simulate and gmsh to generate mesh. Given a .dat file with the geometry of the airfoil, and a set of angles of attack (AoA), the script generates the mesh for the geometry and runs a simulation for each AoA, returning the ClvsAlpha, CdvsCl and CmvsAlpha curves.

Requirements

This scripts requires python 3.5> installed, gmesh and openFoam. OpenFoam may be run native, or thought docker. In case you don't have any, run script openfoam7-linux.

./openfoam7-linux

This script will download a docker image with openfoam and paraview installed, and mount a container in background, named openfoam. In order for this to work, docker must be installed and your user added to the docker group. See more instructions in https://openfoam.org/download/7-linux/.

We strongly recommend to work with a python virtual environment. For example:

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

Dockerfile option

Another option is to run everthing inside a docker. First, build the image (this is needed only once).

docker build -t myopenfoam .

Then start the container and access it with:

./myopenfoam

Indise the container, the application can be run with, for example:

python simulate_perfil.py airfoil.dat basecases/RAS 0 1 1 --with-bl -o case

airfoilfoam's People

Contributors

henry-aocs 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.