:orphan:
Examples Gallery
================
This gallery contains examples demonstrating the capabilities of ALCHEMI Toolkit-Ops.
Each example is a fully executable Python script that showcases different features
of the library, from basic neighbor list construction to advanced dispersion corrections.
All examples are designed to run on both CPU and GPU, automatically detecting available
hardware. The code can be downloaded as Python scripts or Jupyter notebooks.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/images/thumb/sphx_glr_01_bspline_visualization_thumb.png
:alt:
:ref:`sphx_glr_examples_01_bspline_visualization.py`
.. raw:: html
B-Spline Interpolation for Particle Mesh Methods
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/examples/01_bspline_visualization
Interactions
============
Examples demonstrating GPU-accelerated computation of atomic interactions,
including DFT-D3 dispersion corrections with environment-dependent C6 coefficients.
These examples show how to:
* Compute dispersion energies and forces for molecules
* Process batches of crystal structures
* Integrate with PyTorch for differentiable workflows
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/dispersion/images/thumb/sphx_glr_01_dftd3_molecule_thumb.png
:alt:
:ref:`sphx_glr_examples_dispersion_01_dftd3_molecule.py`
.. raw:: html
DFT-D3 Dispersion Correction for a Molecule
.. raw:: html
.. only:: html
.. image:: /examples/dispersion/images/thumb/sphx_glr_02_dftd3_batch_crystals_thumb.png
:alt:
:ref:`sphx_glr_examples_dispersion_02_dftd3_batch_crystals.py`
.. raw:: html
DFT-D3 Dispersion Correction for Batched Crystals
.. thumbnail-parent-div-close
.. raw:: html
Electrostatics
==============
Examples demonstrating GPU-accelerated computation of long-range electrostatic
interactions in periodic systems using Coulomb, Ewald summation, and Particle
Mesh Ewald (PME).
These examples show how to:
* Compute direct Coulomb interactions (damped and undamped)
* Use Ewald summation for periodic systems with automatic parameter estimation
* Apply Particle Mesh Ewald (PME) for O(N log N) scaling
* Work with neighbor list and neighbor matrix formats
* Perform batch evaluation for multiple systems
* Leverage autograd for computing forces and gradients
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/electrostatics/images/thumb/sphx_glr_01_coulomb_example_thumb.png
:alt:
:ref:`sphx_glr_examples_electrostatics_01_coulomb_example.py`
.. raw:: html
Coulomb Electrostatic Interactions
.. raw:: html
.. only:: html
.. image:: /examples/electrostatics/images/thumb/sphx_glr_02_ewald_summation_example_thumb.png
:alt:
:ref:`sphx_glr_examples_electrostatics_02_ewald_summation_example.py`
.. raw:: html
Ewald Summation for Long-Range Electrostatics
.. raw:: html
.. only:: html
.. image:: /examples/electrostatics/images/thumb/sphx_glr_03_pme_example_thumb.png
:alt:
:ref:`sphx_glr_examples_electrostatics_03_pme_example.py`
.. raw:: html
Particle Mesh Ewald (PME) for Long-Range Electrostatics
.. thumbnail-parent-div-close
.. raw:: html
Neighbor Lists
==============
Examples demonstrating efficient O(N) neighbor list construction using GPU-accelerated
cell list algorithms.
These examples show how to:
* Build neighbor lists for single and batched systems
* Use dense or sparse COO output formats
* Detect when neighbor lists need rebuilding
* Optimize performance with ``torch.compile``
* Integrate with molecular dynamics workflows
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/neighborlist/images/thumb/sphx_glr_01_simple_neighbor_list_thumb.png
:alt:
:ref:`sphx_glr_examples_neighborlist_01_simple_neighbor_list.py`
.. raw:: html
Simple Neighbor List Example
.. raw:: html
.. only:: html
.. image:: /examples/neighborlist/images/thumb/sphx_glr_02_batch_neighbor_list_thumb.png
:alt:
:ref:`sphx_glr_examples_neighborlist_02_batch_neighbor_list.py`
.. raw:: html
Batch Neighbor List Example
.. raw:: html
.. only:: html
.. image:: /examples/neighborlist/images/thumb/sphx_glr_03_rebuild_neighborlist_detection_thumb.png
:alt:
:ref:`sphx_glr_examples_neighborlist_03_rebuild_neighborlist_detection.py`
.. raw:: html
Neighbor List Rebuild Detection Example
.. raw:: html
.. only:: html
.. image:: /examples/neighborlist/images/thumb/sphx_glr_04_neighbors_list_torch_compile_performance_thumb.png
:alt:
:ref:`sphx_glr_examples_neighborlist_04_neighbors_list_torch_compile_performance.py`
.. raw:: html
Torch.compile Performance Benefits Example
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/examples/dispersion/index.rst
/examples/electrostatics/index.rst
/examples/neighborlist/index.rst
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: examples_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: examples_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery