Skip to content

Commit 4701d51

Browse files
Documentation for non-conservative and scaling factor in LAMMPS (#40)
1 parent 952e4cd commit 4701d51

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

docs/src/engines/lammps.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,16 @@ documentation.
287287
directory = path to a directory containing TorchScript extensions as
288288
shared libraries. If the model uses extensions, we will try to load
289289
them from this directory first
290+
**non_conservative** values = on or off
291+
set this to on to use non-conservative forces and stresses in your
292+
simulation, typically affording a speedup factor between 2 and 3. We recommend
293+
using this in combination with RESPA to obtain physically correct
294+
observables (see https://arxiv.org/abs/2412.11569 for more information, and
295+
https://atomistic-cookbook.org/examples/pet-mad-nc/pet-mad-nc.html for an
296+
example of how to set up the RESPA run). Default to off.
297+
**scale** values = float
298+
multiplies the contribution of the potential by a scaling factor.
299+
Defaults to 1.
290300
**check_consistency** values = on or off
291301
set this to on/off to enable/disable internal consistency checks,
292302
verifying both the data passed by LAMMPS to the model, and the data

docs/src/outputs/non_conservative.rst

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,18 @@ key in the model outputs, and must adhere to the following metadata:
4848
- non-conservative forces must have a single property dimension named
4949
``"non_conservative_forces"``, with a single entry set to ``0``.
5050

51-
The following simulation engines can use the ``"non_conservative_forces"`` output:
51+
The following simulation engines can use the ``"non_conservative_forces"`` output, using
52+
the ``non_conservative`` flag:
5253

53-
.. grid:: 1 1 1 1
54+
.. grid:: 1 3 3 3
55+
56+
.. grid-item-card::
57+
:text-align: center
58+
:padding: 1
59+
:link: engine-lammps
60+
:link-type: ref
61+
62+
|lammps-logo|
5463

5564
.. grid-item-card::
5665
:text-align: center
@@ -60,7 +69,13 @@ The following simulation engines can use the ``"non_conservative_forces"`` outpu
6069

6170
|ase-logo|
6271

63-
(using the ``non_conservative`` flag or ``MetatomicCalculator.run_model()``)
72+
.. grid-item-card::
73+
:text-align: center
74+
:padding: 1
75+
:link: engine-ipi
76+
:link-type: ref
77+
78+
|ipi-logo|
6479

6580

6681
.. _non-conservative-stress-output:
@@ -107,9 +122,18 @@ in the model outputs, and must adhere to the following metadata:
107122
- the non-conservative stress must have a single property dimension named
108123
``"non_conservative_stress"``, with a single entry set to ``0``.
109124

110-
The following simulation engines can use the ``"non_conservative_stress"`` output:
125+
The following simulation engines can use the ``"non_conservative_stress"`` output, using
126+
the ``non_conservative`` flag:
111127

112-
.. grid:: 1 1 1 1
128+
.. grid:: 1 3 3 3
129+
130+
.. grid-item-card::
131+
:text-align: center
132+
:padding: 1
133+
:link: engine-lammps
134+
:link-type: ref
135+
136+
|lammps-logo|
113137

114138
.. grid-item-card::
115139
:text-align: center
@@ -119,4 +143,10 @@ The following simulation engines can use the ``"non_conservative_stress"`` outpu
119143

120144
|ase-logo|
121145

122-
(using the ``non_conservative`` flag or ``MetatomicCalculator.run_model()``)
146+
.. grid-item-card::
147+
:text-align: center
148+
:padding: 1
149+
:link: engine-ipi
150+
:link-type: ref
151+
152+
|ipi-logo|

0 commit comments

Comments
 (0)