This repo contains the code for our paper:
**Real-time inference and extrapolation with Time-Conditioned UNet: Applications in hypersonic flows, incompressible flows, and global temperature forecasting
**
(arXiv version here)
Abstract
Neural Operators are fast and accurate surrogates for nonlinear mappings between functional spaces within training domains. Extrapolation beyond the training domain remains a grand challenge across all application areas. We present Time-Conditioned UNet (TC-UNet) as an operator learning method to solve time-dependent PDEs continuously in time without any temporal discretization, including in extrapolation scenarios. TC-UNet incorporates the temporal evolution of the PDE into its architecture by combining a parameter conditioning approach with the attention mechanism from the Transformer architecture. After training, TC-UNet makes real-time inferences on an arbitrary temporal grid. We demonstrate its extrapolation capability on a climate problem by estimating the global temperature for several years and also for inviscid hypersonic flow around a double cone. We propose different training strategies involving temporal bundling and sub-sampling. We demonstrate performance improvements for several benchmarks, performing extrapolation for long time intervals and zero-shot super-resolution time.
To install all dependencies, run:
pip install -r requirements.txtThe main code lives in the src/ folder.
- The entry point is:
src/ditto/main_local.py - Configurations for experiments are in:
src/configs/
You can control experiments by:
- Editing the config files to set parameters.
- Choosing the relevant
run()function insidemain_local.py.
A ready-to-run example is already set up using the TC-UNet-s model (ditto_subsampled_X10) on the Navier-Stokes equation with N = 1000 initial conditions.
You’ll find everything pre-configured in:
src/ditto/main_local.pysrc/configs/navier_stokes.py
Just run:
python src/ditto/main_local.pyAfter training, results and the saved model will appear in a new folder called outputs/.




