Skip to content

ninarina12/dynamiCXS

Repository files navigation

Data-driven discovery of dynamics from time-resolved coherent scattering

Documentation Status doi

This repository contains supporting code for the work, "Data-driven discovery of dynamics from time-resolved coherent scattering" by Nina Andrejevic, et al.

The ode.py module contains classes for defining and solving systems of ordinary differential equations (ODEs) using PyTorch tensors and the torchdiffeq library of ODE solvers for numerical integration. Implementations of the systems reported in this work are provided as examples. The cxs.py module contains classes for computing coherent speckle patterns from objects defined either on a grid or as point clouds and is also implemented using PyTorch tensors.

Under the dynamicxs/systems directory, we have included Jupyter notebooks to reproduce the results of the three computational case studies and experimental proof-of-concept reported in the work. Corresponding datasets for the experimental example are available here. Please refer to requirements.txt for python package dependencies. Visualizations of the true and predicted dynamics in real and reciprocal space for these examples are shown below. Please see the manuscript for additional details.

images/kuramoto_results.gif

Locally-coupled moments | Learning the coupling kernel governing a two-dimensional lattice of locally-interacting moments evolving in time according to the Kuramoto model.

images/swarm_results.gif

Self-organizing particles | Learning clustering dynamics in a collection of interacting particles with an unknown interaction potential.

images/lotka_results.gif

Fluctuating source | Learning the dynamics of a periodic, fluctuating source from observations of a random test pattern.

images/traj_results.gif

Ptychographic scan | Learning the probe trajectory during a ptychographic scan. Blue markers denote inference within the time window seen during training; pink markers denote inference beyond the time window seen during training.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published