Git Product home page Git Product logo

andreweiner / transonic_shock_buffet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tushargh29/transonic_shock_buffet

2.0 2.0 1.0 12.15 MB

This repository is dedicated for the studienarbeit project of "Numerical investigation of 2D transonic shock-buffet around a NACA 0012-34 airfoil using OpenFOAM" undertaken by Mr. Tushar Gholap under the guidance of Dr. Andre Weiner

C++ 93.67% Shell 4.42% Python 1.91%

transonic_shock_buffet's Introduction

Numerical investigation of 2D transonic shock-buffet around a NACA 0012-34 airfoil using OpenFOAM

Creating the Singularity image

To make results reproducible, a Singularity image containing OpenFOAM is used to perform simulations. To install Singularity, follow the official installation instructions. More information on the image may be found here. Building the image requires root privileges. Once the image is built, any user can use the image without any extra privileges. To build the image, run:

sudo singularity build of2006-py1.6-cpu.sif Singularity.def

To check if the image is working, run:

singularity run-help of2006-py1.6-cpu.sif
# ...
# expected output
# ...
  Simple Singularity image containing OpenFOAM-v2006
  and libtorch (PyTorch 1.6). The generic syntax to execute
  a command with arguments is

  singularity run image_name.sif command [path] [argument]

  Examples:

  - compile the application tensorCreation using wmake
    singularity run of2006-py1.6-cpu.sif wmake test/tensorCreation/

  - clean tensorCreation build
    singularity run of2006-py1.6-cpu.sif wclean test/tensorCreation/

  - run tensorCreation
    singularity run of2006-py1.6-cpu.sif ./tensorCreation test/tensorCreation/

Performing a simulation

The folder test_cases contains all basic OpenFOAM simulation cases. Simulations should be performed in the run directory, which is not tracked by the version control system. A typical workflow to run a simulation may look as follows:

# top-level folder of the repository
mkdir run
# make a copy of the simulation case
cp -r test_cases/naca0012-34-base/ run/test_base
# execute the runCase script in the top-level folder where the image is located
# the first argument must be the path to the simulation case
./runCase run/test_base/
# post-processing using local ParaView installation
cd run/test_base
paraview post.foam

If the simulation is performed in parallel, make sure to select Case Type -> Decomposed Case in ParaView. To see the mesh properly, make sure to unselect Decompose polyhedra.

transonic_shock_buffet's People

Contributors

tushargh29 avatar andreweiner avatar

Stargazers

Shiyu Lyu avatar Ramakant Gadhewal avatar

Watchers

James Cloos avatar  avatar

Forkers

lyushiyu

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.