This repository contains the implementation of a Deep Learning Framework based on Convolutional Autoencoder (CAE) for the generation of a non-linear and efficient ROM for the prediction of the unsteady aerodynamic simulations. The description of the problem and the dataset can be found in the Thesis of G.Catalani "Machine Learning based local reduced order modeling for the prediction of unsteady aerodynamic loads". This model represents an extension of the linear models based on the Proper Orthogonal Decomposition and Neural Networks presented in the thesis.
During the offline stage (training) of the model, the Autoencoder and the MLP are trained together: the CAE learns the mapping between the Input Images (113,65) to their latent representation and then back to reconstructed images through the decoder, while the MLP learns the mapping from the control inputs (AoA, pitch rate..) to the AE latent vectors. The cumulative loss function contains two weighed terms: the AE reconstruction error, and the MLP latent vector prediction error.
During the online stage (testing) of the model, the Encoder part of the CAE is discarderd. The control inputs are fed into the MLP, whose output represented the prediction of the latent vector which is then fed into the pretrained decoder.
The clone the repository:
git clone [email protected]:giovannicatalani/CAE_ROM.git
The model uses the PyTorch library. To install dependencies with conda:
conda env create -f env_rom.yml
The model works with input images of size [113,65]. To adapt it to new images it is sufficient to change the convolution parameters of the Autoencoder. The input variables are the control variables of the wing (Angle of Attack, First Derivative of AoA, Second Derivative AoA, Pitch Rate, First Derivative Pitch Rate)