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.
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.
main.py
: The main script that orchestrates the parallel training of PINN sub-networks.UseGPU = True/False
decides if the processsub_train.py
runs on a GPU.mainDebug = True/False
decides if debug themain.py
or not.subDebug = 1/0
decides if debug thesub_train.py
or not.sub_train.py
: Handles the training process of each PINN sub-network.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 processsub_train.py
runs on a GPU, which should be the same as theUseGPU
inmain.py
.PyPOD.py
: Contains utility functions used in the paper, such as pre-processing, post-processing, POD, and so on.- Data Set: The data set used in the paper is available at this link http://gofile.me/5UAtB/NYzIc5sxJ.
To use this framework, follow these steps:
git clone https://github.com/Panda000001/PINN-POD.git
cd PINN-POD
Ensure you have Python 3.x and TensorFlow1.x installed.
Install required Python packages (if any).
Download the data set from the provided link.
Place the data set in the designated directory within the project.
Modify the gpu_process/cpu_process
in main.py
according to the properties of your computer/server/HPC
python main.py
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.
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}
}
This project is open-sourced under the MIT License.
Special thanks to Raissi Maziar for the inspiration and foundational work in the field of Physics-Informed Neural Networks.