Skip to content

Commit 19ef355

Browse files
njzjzChiahsinChu
authored andcommitted
docs(lmp): fix the usage of LAMMPS pair_style hybrid/overlay (deepmodeling#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 f734683 commit 19ef355

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)