# Demos

## Scripts

### [dp_periodic.py](https://github.com/cstarkjp/Langevin/tree/main/demos/dp_periodic.py)

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

        python demos/dp_periodic.py

<!-- ### [dp_mixed.py][dp_mixed.py] -->
### [dp_mixed.py](https://github.com/cstarkjp/Langevin/tree/main/demos/dp_mixed.py)

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

        python demos/dp_mixed.py

## Notebooks

### [DemoDP.ipynb](https://github.com/cstarkjp/Langevin/tree/main/demos/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](https://github.com/cstarkjp/Langevin/tree/main/demos/SimulationDP.ipynb)

More sophisticated 2d DP Langevin integration.

    ipython demos/SimulationDP.ipynb


