Skip to content

Commit 68ea2aa

Browse files
authored
docs(lmp): fix the usage of LAMMPS pair_style hybrid/overlay (#4951)
As documented in https://docs.lammps.org/pair_hybrid.html, "In the pair_coeff commands, the name of a pair style must be added after the I,J type specification". <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Documentation - Updated the hybrid/overlay example for D3 dispersion to use model-specific pair_coeff entries instead of placeholders. - Clarifies how to declare coefficients for multiple models in one configuration (e.g., Deep Potential and D3), improving accuracy and reducing setup confusion. - Example now better reflects real-world usage without altering existing commands. - No functional changes to the software; updates are limited to documentation examples. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>
1 parent d1428e0 commit 68ea2aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/third-party/lammps-command.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,6 @@ For example, when `water.pb` is trained against the PBE0 functional, the simulat
319319

320320
```lammps
321321
pair_style hybrid/overlay deepmd water.pb dispersion/d3 original pbe0 30.0 20.0
322-
pair_coeff * * O H
323-
pair_coeff * * O H
322+
pair_coeff * * deepmd O H
323+
pair_coeff * * dispersion/d3 O H
324324
```

0 commit comments

Comments
 (0)