Git Product home page Git Product logo

pod-surrogate's Introduction

Implementation of a POD based surrogate model for aerodynamic shape optimization

Please refer to the thesis for a in depth description of the methods involved. Some data has not been included into this git repository due to the 100MB file size limit of GitHub

Make sure the imports of SU2, Armadillo, PyDOE and RoDeO within the source files work for your setup.

TL;DR

  1. Requirements: SU2, RoDeO, Armadillo, PyDOE a SU2 compatible config file and mesh for your model.
  2. Compile model_order_reduction.hpp, model_training.cpp, model_evaluation.cpp and model_order_decompression
  3. Surrogate model creation:
python acquire_samples.py -f [CONFIG.cfg] -p [SAMPLE_DIR] -s [SAMPLENR]
mkdir [REDUCED_MODEL_DIR]
model_order_reduction -i[SAMPLE_DIR] -o[REDUCED_MODEL_DIR] -n[MODECOUNT]
python prepare_training_data.py -f [REDUCED_MODEL_DIR]/PODCoefficients.txt -p [SAMPLE_DIR] -o [TRAINING_DIR]
mkdir [KRIGING_DIR]
model_training -i[TRAINING_DIR] -o[KRIGING_DIR] -n[MODECOUNT] -i[ITERATIONS] -r[REGPARAM]
  1. Surrogate model evaluation (INPUT.txt containing line separated DV_VALUES)
model_evaluation -i[INPUT.txt] -m[KRIGIN_DIR] -p[REDUCED_MODEL_DIR] -o[FLOW_VECTOR.txt]
python  -i [FLOW_VECTOR.txt] -t [SAMPLE_DIR]/flow_file_template.vtk -o [OUTPUT_FLOWFILE.vtk] 
  1. Enjoy your surrogate model

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.