Giter VIP home page Giter VIP logo

beta-vae-combined-with-transformers-for-rom's Introduction

Towards optimal $\beta$-variational autoencoders combined with transformers for reduced-order modeling of turbulent flows

Introduction

The code in this repository features a Python implementation of reduced-order model (ROM) of turbulent flow using $\beta$-variational autoencoders and transformer neural network. More details about the implementation and results from the training are available in "Towards optimal β-variational autoencoders combined with transformers for reduced-order modeling of turbulent flows", Yuning Wang, Alberto Solera-Rico, Carlos Sanmiguel Vila and Ricardo Vinuesa

Data availabilty

We share the original data with 10,000 snapshots and 26,000 snapshots in OneDrive. We also provide the pre-trained models of $\beta$-VAE, transformers and LSTM in this repository. The obtined results such as temporal and spatial modes are available.

Training and inference

Modal decomposition: $\beta$-VAE

  • To train $\beta$-VAE, please run:

      python beta_vae_train.py
    
  • For post-processing, please run:

      python beta_vae_postprocess.py
    
  • For ranking the $\beta$-VAE mode, please run:

      python beta_vae_rankModes.py
    

Temporal-dynamics prediction: Transformer / LSTM

  • To train a self-attention-based transformer, please run:

      python temporal_pred_train_selfattn.py
    
  • For post-processing, pleas run:

      python temporal_pred_postprocess.py 
    
  • To yield the sliding-window error $\epsilon$, please run:

      python temporal_pred_sliding_window.py 
    

Archiecture

  • The transformer and LSTM archiectures are in the utils/NNs

  • The $\beta$-VAE archiectures are in the utils/VAE

  • The configurations of employed archiectures are in /utils/configs.py

Visualisation

We offer the scripts and data for reproducing the figures in the paper. For instance, to visualise the results of parametric studies, please run:

    python visual_lines.py

Repository structure

beta-vae-combined-with-transformers-for-rom's People

Stargazers

 avatar  avatar

Watchers

 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.