Skip to content

πŸŒ€ This repository contains the implementation of a physics-informed surrogate model leveraging Proper Orthogonal Decomposition (POD) and neural networks to solve the inviscid Burgers' equation efficiently.

License

Notifications You must be signed in to change notification settings

biromiro/pod-pinn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Burgers' Physics-Informed Surrogate leveraging Proper Orthogonal Decomposition

Overview

This repository contains the implementation of a physics-informed surrogate model that leverages Proper Orthogonal Decomposition (POD) and neural networks to efficiently solve the inviscid Burgers' equation. This project integrates the dimensionality reduction capabilities of POD with the predictive power of neural networks, incorporating Physics-Informed Neural Networks (PINNs) principles to ensure physical consistency in the solutions.

Repository Structure

β”œβ”€β”€ src
β”‚   β”œβ”€β”€ dl_roms_clean.ipynb
β”‚   β”œβ”€β”€ plots.ipynb
β”‚   β”œβ”€β”€ requirements.txt
β”œβ”€β”€ docs
β”‚   β”œβ”€β”€ naml-report.pdf
β”‚   β”œβ”€β”€ naml-present.pdf
β”œβ”€β”€ README.md
  • src/: Contains the source code and notebooks for model implementation and analysis.

    • dl_roms_clean.ipynb: Notebook for training and evaluating the POD-NN model.
    • plots.ipynb: Notebook for generating plots and visualizations related to the project.
    • requirements.txt: Python libraries required to run the notebooks.
  • docs/: Contains the documentation and reports related to the project.

    • naml-report.pdf: Detailed project report.
    • naml-present.pdf: Project presentation slides.

Getting Started

Prerequisites

Ensure you have the following dependencies installed:

  • Python 3.10
  • Jupyter Notebook
  • Libraries: dlroms, jax, matplotlib, numpy, phiflow, pytorch

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/burgers-pinn-pod.git
    cd burgers-pinn-pod
  2. Install the required Python packages:

    pip install -r src/requirements.txt

Running the Notebooks

  1. Navigate to the src directory:

    cd src
  2. Open and run the dl_roms_clean.ipynb notebook to train and evaluate the POD-NN model:

    jupyter notebook dl_roms_clean.ipynb
  3. Open and run the plots.ipynb notebook to generate the relevant plots and visualizations:

    jupyter notebook plots.ipynb

Project Description

The goal of this project is to create a surrogate model that combines Proper Orthogonal Decomposition (POD) with neural networks to reduce the computational complexity of solving the inviscid Burgers' equation. By incorporating Physics-Informed Neural Networks (PINNs), the model ensures that the predictions adhere to the underlying physical laws.

Key Features

  • Proper Orthogonal Decomposition (POD): Reduces the dimensionality of the system while preserving its most significant features.
  • POD-NN Hybrid Model: Combines POD with neural networks to map new parameters to POD coefficients for efficient state prediction.
  • Physics-Informed Neural Networks (PINNs): Incorporates physical laws directly into the neural network architecture, ensuring the predictions adhere to known physical principles.
  • Efficient Data Generation: Utilizes high-fidelity data generation frameworks for robust model training.
  • Multiple Training Regimes: Evaluates supervised, unsupervised, and mixed training methods to balance accuracy and physical fidelity.

Results

The results of the project demonstrate the effectiveness of integrating POD with PINNs, showing improved computational efficiency and adherence to physical laws compared to traditional methods. Detailed results and analysis can be found in the naml-report.pdf in the docs folder.

Documentation

For a detailed explanation of the methodology, experiments, and results, refer to the following documents in the docs folder:

  • naml-report.pdf: Detailed project report.
  • naml-present.pdf: Project presentation slides.

Acknowledgements

This project was developed as part of the Numerical Analysis for Machine Learning course at Politecnico di Milano, Italy. Special thanks to Dr. Nicola Rares Franco for his invaluable support and guidance.

License

This project is licensed under the MIT License - see the LICENSE file for details.


If you have any questions or need further assistance, please feel free to contact me at [email protected].

About

πŸŒ€ This repository contains the implementation of a physics-informed surrogate model leveraging Proper Orthogonal Decomposition (POD) and neural networks to solve the inviscid Burgers' equation efficiently.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published