Skip to content

csccm-iitd/WNO

Repository files navigation

Wavelet-Neural-Operator (WNO)

This repository contains the python codes of the paper

  • Tripura, T., & Chakraborty, S. (2023). Wavelet Neural Operator for solving parametric partial differential equations in computational mechanics problems. Computer Methods in Applied Mechanics and Engineering, 404, 115783. Article
  • ArXiv version- "Wavelet neural operator: a neural operator for parametric partial differential equations". The arXiv version can be accessed here.

New in version 3.0.0

 > Modified the convolution in wavelet space.
 > Replaced the element-wise multiplication with a secondary convolution.
 > The secondary convolution is done with respect to wavelet coefficients.
 > As a result, the WNO-v3 framework is now more accurate.
 > The secondary convolution is done in Fourier space, added new parameter `omega`.
 > `omega` controls the number of Fourier modes used in the spectral convolution. 

New in version 2.0.0

 > Added superresolution attribute to the WNO.
 > Added 3D support to the WNO.
 > Improved the interface and readability of the codes.

Architecture of the wavelet neural operator (WNO).

(a) Schematic of the proposed neural operator. (b) A simple WNO with one wavelet kernel integral layer. WNO

Construction of the parametric space using multi-level wavelet decomposition.

Construction of parameterization space in WNO

Super resolution using Wavelet Neural Operator.

Super resolution in Burgers' diffusion dynamics: Train at resolution-1024 and Test at resolution-2048 Super resolution in Navier-Stokes equation with 10000 Reynolds number: Train in Low resolution Test in High resolution

Files

A short despcription on the files are provided below for ease of readers. For time-dependent problems, please implement the autoregressive schemes provided in Version 2.0.0.

  + `wno1d_Burgers_v3.py`: For 1D Burger's equation (time-independent problem).
  + `wno2d_Darcy_cwt_v3.py`: For 2D Darcy equation using Slim Continuous Wavelet Transform (time-independent problem).
  + `wno2d_Darcy_dwt_v3.py`: For 2D Darcy equation using Discrete wavelet transform (time-independent problem).
  + `wno3d_NS_dwt_v3.py`: For 2D Navier-Stokes equation using 3D WNO (as a time-independent problem).

  + `Test_wno_1d_Burgers.py`: An example of Testing on new data.
  
  + `utils.py` contains some useful functions for data handling (improvised from [FNO paper](https://github.com/zongyi-li/fourier_neural_operator)).
  + `wavelet_convolution_v3.py` contains functions for 1D, 2D, and 3D convolution in wavelet domain.

Essential Python Libraries

Following packages are required to be installed to run the above codes:

Copy all the data in the folder 'data' and place the folder 'data' inside the same mother folder where the codes are present. Incase, the location of the data are changed, the correct path should be given.

Dataset

  • The training and testing datasets for the (i) Burgers equation with discontinuity in the solution field (section 4.1), (ii) 2-D Allen-Cahn equation (section 4.5), and (iii) Weakly-monthly mean 2m air temperature (section 5) are available in the following link:

    Dataset-1
    The dataset for the Weakly and monthly mean 2m air temperature are downloaded from 'European Centre for Medium-Range Weather Forecasts (ECMEF)' database. For more information on the dataset one can browse the link ECMEF.

  • The datasets for (i) 1-D Burgers equation ('burgers_data_R10.zip'), (ii) 2-D Darcy flow equation in a rectangular domain ('Darcy_421.zip'), (iii) 2-D time-dependent Navier-Stokes equation ('ns_V1e-3_N5000_T50.zip'), are taken from the following link:

    Dataset-2

  • The datasets for 2-D Darcy flow equation with a notch in triangular domain ('Darcy_Triangular_FNO.mat') and 1-D time-dependent wave advection equation are taken from the following link:

    Dataset-3

BibTex

If you use any part our codes, please cite us at,

@article{tripura2023wavelet,
  title={Wavelet Neural Operator for solving parametric partial differential equations in computational mechanics problems},
  author={Tripura, Tapas and Chakraborty, Souvik},
  journal={Computer Methods in Applied Mechanics and Engineering},
  volume={404},
  pages={115783},
  year={2023},
  publisher={Elsevier}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published