Skip to content

# Demos

## Scripts

### dp_periodic.py

Example 2D grid with periodic edge (toroidal) topology. Run with:

        python demos/dp_periodic.py

### dp_mixed.py

Example 2D grid with mixed edge (cylindrical) topology. Run with:

        python demos/dp_mixed.py

## Notebooks

### DemoDP.ipynb

Simple demo of DP Langevin integration on a 2d grid. Run either in Jupyter or JupyterLab, or using IPython:

    ipython demos/DP.ipynb

but be aware that two output graph PNG files will be written to the current directory.

### SimulationDP.ipynb

More sophisticated 2d DP Langevin integration.

    ipython demos/SimulationDP.ipynb