Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ can point to a local machine, a Slurm/PBS cluster, or another supported backend.
| `ti_water` | TTI or pTI for water systems. |
| `gdi` | Gibbs-Duhem integration of phase boundaries. |
| `mti` | Mass thermodynamic integration for quantum free-energy corrections. |
| `soft_lj` | Fit a soft-core Lennard-Jones reference system to DeepMD-format data. |

Use `-h` at any level to inspect the available options:

Expand All @@ -95,8 +96,27 @@ dpti -h
dpti hti -h
dpti hti gen -h
dpti ti compute -h
dpti soft_lj fit -h
```

### Soft-LJ parameter fitting

Fit a soft-core Lennard-Jones reference system to energies and forces stored in
DeepMD NumPy format:

```bash
pip install 'dpti[soft-lj]'
dpti soft_lj fit deepmd_data \
--n-exp 1 --alpha-lj 0.5 --cutoff 6 \
--activation 0.5 --batch-size 64
```

The energy loss uses centered energies because the reference potential need
not reproduce the arbitrary energy zero of the target model. The output is a
LAMMPS input fragment containing `pair_style lj/cut/soft` and all pair
coefficients. By default, the activation is fixed; pass `--fit-activation` to
optimize it along with epsilon and sigma.

## Examples

Example input files are included in `examples/`. The snippets below show the
Expand Down
3 changes: 2 additions & 1 deletion dpti/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import argparse

from . import equi, gdi, hti, hti_ice, hti_liq, hti_water, mti, ti, ti_water
from . import equi, gdi, hti, hti_ice, hti_liq, hti_water, mti, soft_lj, ti, ti_water

# from . import gdi

Expand All @@ -26,6 +26,7 @@ def create_parser():
ti_water.add_module_subparsers(main_subparsers)
gdi.add_module_subparsers(main_subparsers)
mti.add_module_subparsers(main_subparsers)
soft_lj.add_module_subparsers(main_subparsers)
return parser


Expand Down
Loading
Loading