Skip to content
/ pmwd Public
forked from eelregit/pmwd

Differentiable Cosmological Forward Model

License

Notifications You must be signed in to change notification settings

MinhMPA/pmwd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

particle mesh with derivatives

pmwd is a differentiable cosmological particle-mesh forward model. The C2 symmetry of the name symbolizes the reversibility of the model, which helps to dramatically reduce the memory cost when used with the adjoint method. Based on JAX, pmwd is fully differentiable, and is highly performant on GPUs.

Particles align on the initial grid after evolving forward and then backward in time.

time_evolution.mp4

Optimizing the initial conditions by gradient descent to make some interesting projected patterns.

pmwd_optim.mp4

Installation

pip install -e .  # to install in editable/develop mode

Examples

See docs/examples.

About

Differentiable Cosmological Forward Model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%