Coder Social home page Coder Social logo

ashleyhoho / pinn-pod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from panda000001/pinn-pod

0.0 0.0 0.0 90 KB

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"

Home Page: https://doi.org/10.1063/5.0138287

License: MIT License

Python 100.00%

pinn-pod's Introduction

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.

pinn-pod's People

Contributors

panda000001 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.