Skip to content

This repository contains the source code for the research presented in the paper "Exploring hidden flow structures from sparse data through deep-learning-strengthened proper orthogonal decomposition"

License

Notifications You must be signed in to change notification settings

Panda000001/PINN-POD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exploring hidden flow structures from sparse data through deep-learning-strengthened proper orthogonal decomposition

This repository contains the source code for the research presented in the paper "Exploring hidden flow structures from sparse data through deep-learning-strengthened proper orthogonal decomposition", https://doi.org/10.1063/5.0138287. The framework implements an improved POD framework for fluid dynamics problems by introducing Physics-Informed Neural Networks (PINNs) with parallel training.

Overview

The main program, main.py, initiates multiple processes, each running an instance of sub_train.py, which corresponds to the training process of an individual PINN sub-network. During the training, each sub-network writes out a Loss file and reconstructs the flow field, outputting it in a .h5 format at the end of each cosine annealing cycle. The main.py monitors these outputs to calculate the Loss convergence criterion and performs Proper Orthogonal Decomposition (POD) for the modal convergence criterion. Based on these criteria, main.py generates a signal file to guide whether sub_train.py should continue training.

Key Components

  1. main.py: The main script that orchestrates the parallel training of PINN sub-networks. UseGPU = True/False decides if the process sub_train.py runs on a GPU. mainDebug = True/False decides if debug the main.py or not. subDebug = 1/0 decides if debug the sub_train.py or not.
  2. sub_train.py: Handles the training process of each PINN sub-network.
  3. utilities_ndm.py: Defines the PINN network structure, inspired by the work available at https://github.com/maziarraissi/HFM. isGPU = True/False decides if the process sub_train.py runs on a GPU, which should be the same as the UseGPU in main.py.
  4. PyPOD.py: Contains utility functions used in the paper, such as pre-processing, post-processing, POD, and so on.
  5. Data Set: The data set used in the paper is available at this link http://gofile.me/5UAtB/NYzIc5sxJ.

Getting Started

To use this framework, follow these steps:

1. Clone the Repository

git clone https://github.com/Panda000001/PINN-POD.git  
cd PINN-POD

2. Install Dependencies

Ensure you have Python 3.x and TensorFlow1.x installed.
Install required Python packages (if any).

3. Download the Data Set

Download the data set from the provided link.
Place the data set in the designated directory within the project.

4. Modify Main Program

Modify the gpu_process/cpu_process in main.py according to the properties of your computer/server/HPC

5. Run the Main Program

python main.py

Note

This part is also the preliminary work of our spatiotemporal parallel physics-informed neural networks, a more efficient framework of spatiotemporal parallel PINN, which is available at https://github.com/Shengfeng233/PINN-MPI.

Citation

If you find this code useful in your research, please consider citing our paper:

@article{yan2023exploring,
  title={Exploring hidden flow structures from sparse data through deep-learning-strengthened proper orthogonal decomposition},
  author={Yan, Chang and Xu, Shengfeng and Sun, Zhenxu and Guo, Dilong and Ju, Shengjun and Huang, Renfang and Yang, Guowei},
  journal={Physics of Fluids},
  volume={35},
  number={3},
  year={2023},
  publisher={AIP Publishing}
}

@article{xu2023spatiotemporal,
  title={Spatiotemporal parallel physics-informed neural networks: A framework to solve inverse problems in fluid mechanics},
  author={Xu, Shengfeng and Yan, Chang and Zhang, Guangtao and Sun, Zhenxu and Huang, Renfang and Ju, Shengjun and Guo, Dilong and Yang, Guowei},
  journal={Physics of Fluids},
  volume={35},
  number={6},
  year={2023},
  publisher={AIP Publishing}
}

License

This project is open-sourced under the MIT License.

Acknowledgements

Special thanks to Raissi Maziar for the inspiration and foundational work in the field of Physics-Informed Neural Networks.

About

This repository contains the source code for the research presented in the paper "Exploring hidden flow structures from sparse data through deep-learning-strengthened proper orthogonal decomposition"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages