Published on Communications Physics: Multi-resolution partial differential equations preserved learning framework for spatiotemporal dynamics | arxiv version
requirements
pytorch
numpy
matplotlib
tensorboard
deepxde # required by DeepONet only
data generation
use code in src/operators.py
training
python src/train2D.py cases/CASE_NAME.yaml
src
: PPNN source codes
opertors.py
: numerical operators, is used to generate dataset. Also works as the PDE-preserving part of PPNNrhs.py
: define various right hand side of PDEstrain2D.py
: the main training script for RD and burgers case. It requires config files. Examples of config files are listed in the folder cases
models.py
: deep learning neural networkscase
: contains yaml files that list configurations for different cases.
Bv
: contains source code for parameterizing different boundary conditions, as disscussed in the first section in the supplementary informantion.
baselines
: source code for the baseline methods including FNO, PINN and DeepONet
If you find any bugs in the code or have trouble in running PPNN, you are very welcome to create an issue in this repository.
If you find our work relevant to your research, please cite:
@article{liu2024multi,
title={Multi-resolution partial differential equations preserved learning framework for spatiotemporal dynamics},
author={Liu, Xin-Yang and Zhu, Min and Lu, Lu and Sun, Hao and Wang, Jian-Xun},
journal={Communications Physics},
volume={7},
number={1},
pages={31},
year={2024},
publisher={Nature Publishing Group UK London}
}