Files
lammps/doc/html/pair_snap.html
2025-01-13 14:55:48 +00:00

703 lines
66 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pair_style snap command &mdash; LAMMPS documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/sphinx-design.min.css" type="text/css" />
<link rel="stylesheet" href="_static/css/lammps.css" type="text/css" />
<link rel="shortcut icon" href="_static/lammps.ico"/>
<link rel="canonical" href="https://docs.lammps.org/pair_snap.html" />
<!--[if lt IE 9]>
<script src="_static/js/html5shiv.min.js"></script>
<![endif]-->
<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=5929fcd5"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/design-tabs.js?v=f930bc37"></script>
<script async="async" src="_static/mathjax/es5/tex-mml-chtml.js?v=cadf963e"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="pair_style soft command" href="pair_soft.html" />
<link rel="prev" title="pair_style smtbq command" href="pair_smtbq.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="Manual.html">
<img src="_static/lammps-logo.png" class="logo" alt="Logo"/>
</a>
<div class="lammps_version">Version: <b>19 Nov 2024</b></div>
<div class="lammps_release">git info: </div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">User Guide</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="Intro.html">1. Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="Install.html">2. Install LAMMPS</a></li>
<li class="toctree-l1"><a class="reference internal" href="Build.html">3. Build LAMMPS</a></li>
<li class="toctree-l1"><a class="reference internal" href="Run_head.html">4. Run LAMMPS</a></li>
<li class="toctree-l1"><a class="reference internal" href="Commands.html">5. Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="Packages.html">6. Optional packages</a></li>
<li class="toctree-l1"><a class="reference internal" href="Speed.html">7. Accelerate performance</a></li>
<li class="toctree-l1"><a class="reference internal" href="Howto.html">8. Howto discussions</a></li>
<li class="toctree-l1"><a class="reference internal" href="Examples.html">9. Example scripts</a></li>
<li class="toctree-l1"><a class="reference internal" href="Tools.html">10. Auxiliary tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="Errors.html">11. Errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Programmer Guide</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="Library.html">1. LAMMPS Library Interfaces</a></li>
<li class="toctree-l1"><a class="reference internal" href="Python_head.html">2. Use Python with LAMMPS</a></li>
<li class="toctree-l1"><a class="reference internal" href="Modify.html">3. Modifying &amp; extending LAMMPS</a></li>
<li class="toctree-l1"><a class="reference internal" href="Developer.html">4. Information for Developers</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Command Reference</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="commands_list.html">Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="fixes.html">Fix Styles</a></li>
<li class="toctree-l1"><a class="reference internal" href="computes.html">Compute Styles</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="pairs.html">Pair Styles</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="pair_adp.html">pair_style adp command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_agni.html">pair_style agni command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_aip_water_2dm.html">pair_style aip/water/2dm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_airebo.html">pair_style airebo command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_airebo.html#pair-style-airebo-morse-command">pair_style airebo/morse command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_airebo.html#pair-style-rebo-command">pair_style rebo command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_amoeba.html">pair_style amoeba command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_amoeba.html#pair-style-hippo-command">pair_style hippo command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_atm.html">pair_style atm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_awpmd.html">pair_style awpmd/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_beck.html">pair_style beck command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_body_nparticle.html">pair_style body/nparticle command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_body_rounded_polygon.html">pair_style body/rounded/polygon command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_body_rounded_polyhedron.html">pair_style body/rounded/polyhedron command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_bop.html">pair_style bop command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_born.html">pair_style born command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_born.html#pair-style-born-coul-long-command">pair_style born/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_born.html#pair-style-born-coul-msm-command">pair_style born/coul/msm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_born.html#pair-style-born-coul-wolf-command">pair_style born/coul/wolf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_born.html#pair-style-born-coul-dsf-command">pair_style born/coul/dsf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_born_gauss.html">pair_style born/gauss command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_bpm_spring.html">pair_style bpm/spring command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_brownian.html">pair_style brownian command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_brownian.html#pair-style-brownian-poly-command">pair_style brownian/poly command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_buck.html">pair_style buck command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_buck.html#pair-style-buck-coul-cut-command">pair_style buck/coul/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_buck.html#pair-style-buck-coul-long-command">pair_style buck/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_buck.html#pair-style-buck-coul-msm-command">pair_style buck/coul/msm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_buck6d_coul_gauss.html">pair_style buck6d/coul/gauss/dsf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_buck6d_coul_gauss.html#pair-style-buck6d-coul-gauss-long-command">pair_style buck6d/coul/gauss/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_buck_long.html">pair_style buck/long/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_charmm.html">pair_style lj/charmm/coul/charmm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_charmm.html#pair-style-lj-charmm-coul-charmm-implicit-command">pair_style lj/charmm/coul/charmm/implicit command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_charmm.html#pair-style-lj-charmm-coul-long-command">pair_style lj/charmm/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_charmm.html#pair-style-lj-charmm-coul-msm-command">pair_style lj/charmm/coul/msm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_charmm.html#pair-style-lj-charmmfsw-coul-charmmfsh-command">pair_style lj/charmmfsw/coul/charmmfsh command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_charmm.html#pair-style-lj-charmmfsw-coul-long-command">pair_style lj/charmmfsw/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_class2.html">pair_style lj/class2 command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_class2.html#pair-style-lj-class2-coul-cut-command">pair_style lj/class2/coul/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_class2.html#pair-style-lj-class2-coul-long-command">pair_style lj/class2/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_colloid.html">pair_style colloid command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_comb.html">pair_style comb command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_comb.html#pair-style-comb3-command">pair_style comb3 command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cosine_squared.html">pair_style cosine/squared command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html">pair_style coul/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-cut-global-command">pair_style coul/cut/global command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-ctip-command">pair_style coul/ctip command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-debye-command">pair_style coul/debye command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-dsf-command">pair_style coul/dsf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-exclude-command">pair_style coul/exclude command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-long-command">pair_style coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-msm-command">pair_style coul/msm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-streitz-command">pair_style coul/streitz command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-coul-wolf-command">pair_style coul/wolf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-tip4p-cut-command">pair_style tip4p/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul.html#pair-style-tip4p-long-command">pair_style tip4p/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul_diel.html">pair_style coul/diel command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul_shield.html">pair_style coul/shield command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul_slater.html">pair_style coul/slater command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul_slater.html#pair-style-coul-slater-cut-command">pair_style coul/slater/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul_slater.html#pair-style-coul-slater-long-command">pair_style coul/slater/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_coul_tt.html">pair_style coul/tt command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cs.html">pair_style born/coul/dsf/cs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cs.html#pair-style-born-coul-long-cs-command">pair_style born/coul/long/cs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cs.html#pair-style-born-coul-wolf-cs-command">pair_style born/coul/wolf/cs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cs.html#pair-style-buck-coul-long-cs-command">pair_style buck/coul/long/cs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cs.html#pair-style-coul-long-cs-command">pair_style coul/long/cs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cs.html#pair-style-coul-wolf-cs-command">pair_style coul/wolf/cs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cs.html#pair-style-lj-cut-coul-long-cs-command">pair_style lj/cut/coul/long/cs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_cs.html#pair-style-lj-class2-coul-long-cs-command">pair_style lj/class2/coul/long/cs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dielectric.html">pair_style coul/cut/dielectric command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dielectric.html#pair-style-coul-long-dielectric-command">pair_style coul/long/dielectric command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dielectric.html#pair-style-lj-cut-coul-cut-dielectric-command">pair_style lj/cut/coul/cut/dielectric command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dielectric.html#pair-style-lj-cut-coul-debye-dielectric-command">pair_style lj/cut/coul/debye/dielectric command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dielectric.html#pair-style-lj-cut-coul-long-dielectric-command">pair_style lj/cut/coul/long/dielectric command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dielectric.html#pair-style-lj-cut-coul-msm-dielectric-command">pair_style lj/cut/coul/msm/dielectric command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dielectric.html#pair-style-lj-long-coul-long-dielectric-command">pair_style lj/long/coul/long/dielectric command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dipole.html">pair_style lj/cut/dipole/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dipole.html#pair-style-lj-sf-dipole-sf-command">pair_style lj/sf/dipole/sf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dipole.html#pair-style-lj-cut-dipole-long-command">pair_style lj/cut/dipole/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dipole.html#pair-style-lj-long-dipole-long-command">pair_style lj/long/dipole/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dpd.html">pair_style dpd command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dpd.html#pair-style-dpd-tstat-command">pair_style dpd/tstat command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dpd_coul_slater_long.html">pair_style dpd/coul/slater/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dpd_ext.html">pair_style dpd/ext command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dpd_ext.html#pair-style-dpd-ext-tstat-command">pair_style dpd/ext/tstat command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dpd_fdt.html">pair_style dpd/fdt command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dpd_fdt.html#pair-style-dpd-fdt-energy-command">pair_style dpd/fdt/energy command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_drip.html">pair_style drip command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_dsmc.html">pair_style dsmc command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_e3b.html">pair_style e3b command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_eam.html">pair_style eam command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_eam.html#pair-style-eam-alloy-command">pair_style eam/alloy command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_eam.html#pair-style-eam-cd-command">pair_style eam/cd command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_eam.html#pair-style-eam-cd-old-command">pair_style eam/cd/old command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_eam.html#pair-style-eam-fs-command">pair_style eam/fs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_eam.html#pair-style-eam-he-command">pair_style eam/he command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_edip.html">pair_style edip command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_edip.html#pair-style-edip-multi-command">pair_style edip/multi command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_eff.html">pair_style eff/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_eim.html">pair_style eim command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_exp6_rx.html">pair_style exp6/rx command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_extep.html">pair_style extep command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html">pair_style lj/cut/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-lj-cut-coul-cut-soft-command">pair_style lj/cut/coul/cut/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-lj-cut-coul-long-soft-command">pair_style lj/cut/coul/long/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-lj-cut-tip4p-long-soft-command">pair_style lj/cut/tip4p/long/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-lj-charmm-coul-long-soft-command">pair_style lj/charmm/coul/long/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-lj-class2-soft-command">pair_style lj/class2/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-lj-class2-coul-cut-soft-command">pair_style lj/class2/coul/cut/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-lj-class2-coul-long-soft-command">pair_style lj/class2/coul/long/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-coul-cut-soft-command">pair_style coul/cut/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-coul-long-soft-command">pair_style coul/long/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-tip4p-long-soft-command">pair_style tip4p/long/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_fep_soft.html#pair-style-morse-soft-command">pair_style morse/soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gauss.html">pair_style gauss command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gauss.html#pair-style-gauss-cut-command">pair_style gauss/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gayberne.html">pair_style gayberne command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gran.html">pair_style gran/hooke command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gran.html#pair-style-gran-hooke-history-command">pair_style gran/hooke/history command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gran.html#pair-style-gran-hertz-history-command">pair_style gran/hertz/history command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_granular.html">pair_style granular command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gromacs.html">pair_style lj/gromacs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gromacs.html#pair-style-lj-gromacs-coul-gromacs-command">pair_style lj/gromacs/coul/gromacs command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gw.html">pair_style gw command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_gw.html#pair-style-gw-zbl-command">pair_style gw/zbl command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_harmonic_cut.html">pair_style harmonic/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_hbond_dreiding.html">pair_style hbond/dreiding/lj command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_hbond_dreiding.html#pair-style-hbond-dreiding-morse-command">pair_style hbond/dreiding/morse command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_hdnnp.html">pair_style hdnnp command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_hybrid.html">pair_style hybrid command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_hybrid.html#pair-style-hybrid-molecular-command">pair_style hybrid/molecular command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_hybrid.html#pair-style-hybrid-overlay-command">pair_style hybrid/overlay command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_hybrid.html#pair-style-hybrid-scaled-command">pair_style hybrid/scaled command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_ilp_graphene_hbn.html">pair_style ilp/graphene/hbn command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_ilp_tmd.html">pair_style ilp/tmd command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_kim.html">pair_style kim command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_kolmogorov_crespi_full.html">pair_style kolmogorov/crespi/full command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_kolmogorov_crespi_z.html">pair_style kolmogorov/crespi/z command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lcbop.html">pair_style lcbop command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lebedeva_z.html">pair_style lebedeva/z command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lepton.html">pair_style lepton command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_line_lj.html">pair_style line/lj command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_list.html">pair_style list command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj.html">pair_style lj/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj96.html">pair_style lj96/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cubic.html">pair_style lj/cubic command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_coul.html">pair_style lj/cut/coul/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_coul.html#pair-style-lj-cut-coul-debye-command">pair_style lj/cut/coul/debye command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_coul.html#pair-style-lj-cut-coul-dsf-command">pair_style lj/cut/coul/dsf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_coul.html#pair-style-lj-cut-coul-long-command">pair_style lj/cut/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_coul.html#pair-style-lj-cut-coul-msm-command">pair_style lj/cut/coul/msm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_coul.html#pair-style-lj-cut-coul-wolf-command">pair_style lj/cut/coul/wolf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_sphere.html">pair_style lj/cut/sphere command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_tip4p.html">pair_style lj/cut/tip4p/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_cut_tip4p.html#pair-style-lj-cut-tip4p-long-command">pair_style lj/cut/tip4p/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_expand.html">pair_style lj/expand command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_expand.html#pair-style-lj-expand-coul-long-command">pair_style lj/expand/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_expand_sphere.html">pair_style lj/expand/sphere command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_long.html">pair_style lj/long/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_long.html#pair-style-lj-long-tip4p-long-command">pair_style lj/long/tip4p/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_relres.html">pair_style lj/relres command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_smooth.html">pair_style lj/smooth command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_smooth_linear.html">pair_style lj/smooth/linear command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_switch3_coulgauss_long.html">pair_style lj/switch3/coulgauss/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lj_switch3_coulgauss_long.html#pair-style-mm3-switch3-coulgauss-long-command">pair_style mm3/switch3/coulgauss/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_local_density.html">pair_style local/density command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lubricate.html">pair_style lubricate command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lubricate.html#pair-style-lubricate-poly-command">pair_style lubricate/poly command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lubricateU.html">pair_style lubricateU command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_lubricateU.html#pair-style-lubricateu-poly-command">pair_style lubricateU/poly command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mdf.html">pair_style lj/mdf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mdf.html#pair-style-buck-mdf-command">pair_style buck/mdf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mdf.html#pair-style-lennard-mdf-command">pair_style lennard/mdf command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_meam.html">pair_style meam command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_meam.html#pair-style-meam-ms-command">pair_style meam/ms command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_meam_spline.html">pair_style meam/spline command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_meam_sw_spline.html">pair_style meam/sw/spline command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mesocnt.html">pair_style mesocnt command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mesocnt.html#pair-style-mesocnt-viscous-command">pair_style mesocnt/viscous command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mesodpd.html">pair_style edpd command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mesodpd.html#pair-style-mdpd-command">pair_style mdpd command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mesodpd.html#pair-style-mdpd-rhosum-command">pair_style mdpd/rhosum command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mesodpd.html#pair-style-tdpd-command">pair_style tdpd command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mgpt.html">pair_style mgpt command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mie.html">pair_style mie/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_mliap.html">pair_style mliap command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_momb.html">pair_style momb command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_morse.html">pair_style morse command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_morse.html#pair-style-morse-smooth-linear-command">pair_style morse/smooth/linear command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_multi_lucy.html">pair_style multi/lucy command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_multi_lucy_rx.html">pair_style multi/lucy/rx command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_nb3b.html">pair_style nb3b/harmonic command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_nb3b.html#pair-style-nb3b-screened-command">pair_style nb3b/screened command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_nm.html">pair_style nm/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_nm.html#pair-style-nm-cut-split-command">pair_style nm/cut/split command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_nm.html#pair-style-nm-cut-coul-cut-command">pair_style nm/cut/coul/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_nm.html#pair-style-nm-cut-coul-long-command">pair_style nm/cut/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_none.html">pair_style none command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna.html">pair_style oxdna/excv command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna.html#pair-style-oxdna-stk-command">pair_style oxdna/stk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna.html#pair-style-oxdna-hbond-command">pair_style oxdna/hbond command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna.html#pair-style-oxdna-xstk-command">pair_style oxdna/xstk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna.html#pair-style-oxdna-coaxstk-command">pair_style oxdna/coaxstk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna2.html">pair_style oxdna2/excv command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna2.html#pair-style-oxdna2-stk-command">pair_style oxdna2/stk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna2.html#pair-style-oxdna2-hbond-command">pair_style oxdna2/hbond command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna2.html#pair-style-oxdna2-xstk-command">pair_style oxdna2/xstk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna2.html#pair-style-oxdna2-coaxstk-command">pair_style oxdna2/coaxstk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxdna2.html#pair-style-oxdna2-dh-command">pair_style oxdna2/dh command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxrna2.html">pair_style oxrna2/excv command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxrna2.html#pair-style-oxrna2-stk-command">pair_style oxrna2/stk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxrna2.html#pair-style-oxrna2-hbond-command">pair_style oxrna2/hbond command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxrna2.html#pair-style-oxrna2-xstk-command">pair_style oxrna2/xstk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxrna2.html#pair-style-oxrna2-coaxstk-command">pair_style oxrna2/coaxstk command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_oxrna2.html#pair-style-oxrna2-dh-command">pair_style oxrna2/dh command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_pace.html">pair_style pace command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_pace.html#pair-style-pace-extrapolation-command">pair_style pace/extrapolation command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_pedone.html">pair_style pedone command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_peri.html">pair_style peri/pmb command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_peri.html#pair-style-peri-lps-command">pair_style peri/lps command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_peri.html#pair-style-peri-ves-command">pair_style peri/ves command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_peri.html#pair-style-peri-eps-command">pair_style peri/eps command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_pod.html">pair_style pod command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_polymorphic.html">pair_style polymorphic command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_python.html">pair_style python command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_quip.html">pair_style quip command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_rann.html">pair_style rann command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_reaxff.html">pair_style reaxff command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_rebomos.html">pair_style rebomos command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_resquared.html">pair_style resquared command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_rheo.html">pair_style rheo command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_rheo_solid.html">pair_style rheo/solid command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_saip_metal.html">pair_style saip/metal command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sdpd_taitwater_isothermal.html">pair_style sdpd/taitwater/isothermal command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_smatb.html">pair_style smatb command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_smatb.html#pair-style-smatb-single-command">pair_style smatb/single command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_smd_hertz.html">pair_style smd/hertz command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_smd_tlsph.html">pair_style smd/tlsph command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_smd_triangulated_surface.html">pair_style smd/tri_surface command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_smd_ulsph.html">pair_style smd/ulsph command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_smtbq.html">pair_style smtbq command</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">pair_style snap command</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#syntax">Syntax</a></li>
<li class="toctree-l3"><a class="reference internal" href="#examples">Examples</a></li>
<li class="toctree-l3"><a class="reference internal" href="#description">Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="#mixing-shift-table-tail-correction-restart-rrespa-info">Mixing, shift, table, tail correction, restart, rRESPA info</a></li>
<li class="toctree-l3"><a class="reference internal" href="#restrictions">Restrictions</a></li>
<li class="toctree-l3"><a class="reference internal" href="#related-commands">Related commands</a></li>
<li class="toctree-l3"><a class="reference internal" href="#default">Default</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="pair_soft.html">pair_style soft command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sph_heatconduction.html">pair_style sph/heatconduction command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sph_idealgas.html">pair_style sph/idealgas command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sph_lj.html">pair_style sph/lj command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sph_rhosum.html">pair_style sph/rhosum command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sph_taitwater.html">pair_style sph/taitwater command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sph_taitwater_morris.html">pair_style sph/taitwater/morris command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spica.html">pair_style lj/spica command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spica.html#pair-style-lj-spica-coul-long-command">pair_style lj/spica/coul/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spica.html#pair-style-lj-spica-coul-msm-command">pair_style lj/spica/coul/msm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spin_dipole.html">pair_style spin/dipole/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spin_dipole.html#pair-style-spin-dipole-long-command">pair_style spin/dipole/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spin_dmi.html">pair_style spin/dmi command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spin_exchange.html">pair_style spin/exchange command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spin_exchange.html#pair-style-spin-exchange-biquadratic-command">pair_style spin/exchange/biquadratic command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spin_magelec.html">pair_style spin/magelec command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_spin_neel.html">pair_style spin/neel command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_srp.html">pair_style srp command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_srp.html#pair-style-srp-react-command">pair_style srp/react command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sw.html">pair_style sw command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sw.html#pair-style-sw-mod-command">pair_style sw/mod command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_sw_angle_table.html">pair_style sw/angle/table command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_table.html">pair_style table command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_table_rx.html">pair_style table/rx command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_tersoff.html">pair_style tersoff command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_tersoff.html#pair-style-tersoff-table-command">pair_style tersoff/table command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_tersoff_mod.html">pair_style tersoff/mod command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_tersoff_mod.html#pair-style-tersoff-mod-c-command">pair_style tersoff/mod/c command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_tersoff_zbl.html">pair_style tersoff/zbl command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_thole.html">pair_style thole command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_thole.html#pair-style-lj-cut-thole-long-command">pair_style lj/cut/thole/long command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_threebody_table.html">pair_style threebody/table command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_tracker.html">pair_style tracker command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_tri_lj.html">pair_style tri/lj command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_uf3.html">pair_style uf3 command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_ufm.html">pair_style ufm command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_vashishta.html">pair_style vashishta command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_vashishta.html#pair-style-vashishta-table-command">pair_style vashishta/table command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_wf_cut.html">pair_style wf/cut command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_ylz.html">pair_style ylz command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_yukawa.html">pair_style yukawa command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_yukawa_colloid.html">pair_style yukawa/colloid command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_zbl.html">pair_style zbl command</a></li>
<li class="toctree-l2"><a class="reference internal" href="pair_zero.html">pair_style zero command</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="bonds.html">Bond Styles</a></li>
<li class="toctree-l1"><a class="reference internal" href="angles.html">Angle Styles</a></li>
<li class="toctree-l1"><a class="reference internal" href="dihedrals.html">Dihedral Styles</a></li>
<li class="toctree-l1"><a class="reference internal" href="impropers.html">Improper Styles</a></li>
<li class="toctree-l1"><a class="reference internal" href="dumps.html">Dump Styles</a></li>
<li class="toctree-l1"><a class="reference internal" href="fix_modify_atc_commands.html">fix_modify AtC commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="Bibliography.html">Bibliography</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="Manual.html">LAMMPS</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content style-external-links">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="Manual.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="pairs.html">Pair Styles</a></li>
<li class="breadcrumb-item active">pair_style snap command</li>
<li class="wy-breadcrumbs-aside">
<a href="https://www.lammps.org"><img src="_static/lammps-logo.png" width="64" height="16" alt="LAMMPS Homepage"></a> | <a href="Commands_all.html">Commands</a>
</li>
</ul><div class="rst-breadcrumbs-buttons" role="navigation" aria-label="Sequential page navigation">
<a href="pair_smtbq.html" class="btn btn-neutral float-left" title="pair_style smtbq command" accesskey="p"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="pair_soft.html" class="btn btn-neutral float-right" title="pair_style soft command" accesskey="n">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<p><span class="math notranslate nohighlight">\(\renewcommand{\AA}{\text{Å}}\)</span></p>
<section id="pair-style-snap-command">
<span id="index-2"></span><span id="index-1"></span><span id="index-0"></span><h1>pair_style snap command<a class="headerlink" href="#pair-style-snap-command" title="Link to this heading"></a></h1>
<p>Accelerator Variants: <em>snap/intel</em>, <em>snap/kk</em></p>
<section id="syntax">
<h2>Syntax<a class="headerlink" href="#syntax" title="Link to this heading"></a></h2>
<div class="highlight-LAMMPS notranslate"><div class="highlight"><pre><span></span><span class="k">pair_style</span><span class="w"> </span><span class="n">snap</span>
</pre></div>
</div>
</section>
<section id="examples">
<h2>Examples<a class="headerlink" href="#examples" title="Link to this heading"></a></h2>
<div class="highlight-LAMMPS notranslate"><div class="highlight"><pre><span></span><span class="k">pair_style</span><span class="w"> </span><span class="n">snap</span>
<span class="k">pair_coeff</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">InP.snapcoeff</span><span class="w"> </span><span class="n">InP.snapparam</span><span class="w"> </span><span class="n">In</span><span class="w"> </span><span class="n">In</span><span class="w"> </span><span class="n">P</span><span class="w"> </span><span class="n">P</span>
</pre></div>
</div>
</section>
<section id="description">
<h2>Description<a class="headerlink" href="#description" title="Link to this heading"></a></h2>
<p>Pair style <em>snap</em> defines the spectral neighbor analysis potential
(SNAP), a machine-learning interatomic potential <a class="reference internal" href="#thompson20142"><span class="std std-ref">(Thompson)</span></a>. Like the GAP framework of Bartok et
al. <a class="reference internal" href="#bartok20102"><span class="std std-ref">(Bartok2010)</span></a>, SNAP uses bispectrum components
to characterize the local neighborhood of each atom in a very general
way. The mathematical definition of the bispectrum calculation and its
derivatives w.r.t. atom positions is identical to that used by
<a class="reference internal" href="compute_sna_atom.html"><span class="doc">compute snap</span></a>, which is used to fit SNAP
potentials to <em>ab initio</em> energy, force, and stress data. In SNAP, the
total energy is decomposed into a sum over atom energies. The energy of
atom <em>i</em> is expressed as a weighted sum over bispectrum components.</p>
<div class="math notranslate nohighlight">
\[E^i_{SNAP}(B_1^i,...,B_K^i) = \beta^{\mu_i}_0 + \sum_{k=1}^K \beta_k^{\mu_i} B_k^i\]</div>
<p>where <span class="math notranslate nohighlight">\(B_k^i\)</span> is the <em>k</em>-th bispectrum component of atom <em>i</em>,
and <span class="math notranslate nohighlight">\(\beta_k^{\mu_i}\)</span> is the corresponding linear coefficient that
depends on <span class="math notranslate nohighlight">\(\mu_i\)</span>, the SNAP element of atom <em>i</em>. The number of
bispectrum components used and their definitions depend on the value of
<em>twojmax</em> and other parameters defined in the SNAP parameter file
described below. The bispectrum calculation is described in more detail
in <a class="reference internal" href="compute_sna_atom.html"><span class="doc">compute sna/atom</span></a>.</p>
<p>Note that unlike for other potentials, cutoffs for SNAP potentials are
not set in the pair_style or pair_coeff command; they are specified in
the SNAP potential files themselves.</p>
<p>Only a single pair_coeff command is used with the <em>snap</em> style which
specifies a SNAP coefficient file followed by a SNAP parameter file
and then N additional arguments specifying the mapping of SNAP
elements to LAMMPS atom types, where N is the number of
LAMMPS atom types:</p>
<ul class="simple">
<li><p>SNAP coefficient file</p></li>
<li><p>SNAP parameter file</p></li>
<li><p>N element names = mapping of SNAP elements to atom types</p></li>
</ul>
<p>As an example, if a LAMMPS indium phosphide simulation has 4 atoms
types, with the first two being indium and the third and fourth being
phophorous, the pair_coeff command would look like this:</p>
<div class="highlight-LAMMPS notranslate"><div class="highlight"><pre><span></span><span class="k">pair_coeff</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">snap</span><span class="w"> </span><span class="n">InP.snapcoeff</span><span class="w"> </span><span class="n">InP.snapparam</span><span class="w"> </span><span class="n">In</span><span class="w"> </span><span class="n">In</span><span class="w"> </span><span class="n">P</span><span class="w"> </span><span class="n">P</span>
</pre></div>
</div>
<p>The first 2 arguments must be * * so as to span all LAMMPS atom types.
The two filenames are for the coefficient and parameter files, respectively.
The two trailing In arguments map LAMMPS atom types 1 and 2 to the
SNAP In element. The two trailing P arguments map LAMMPS atom types
3 and 4 to the SNAP P element.</p>
<p>If a SNAP mapping value is specified as NULL, the mapping is not
performed. This can be used when a <em>snap</em> potential is used as part of
the <em>hybrid</em> pair style. The NULL values are placeholders for atom
types that will be used with other potentials.</p>
<p>The name of the SNAP coefficient file usually ends in the “.snapcoeff”
extension. It may contain coefficients for many SNAP elements. The only
requirement is that each of the unique element names appearing in the
LAMMPS pair_coeff command appear exactly once in the SNAP coefficient
file. It is okay if the SNAP coefficient file contains additional
elements not in the pair_coeff command, except when using <em>chemflag</em>
(see below). The name of the SNAP parameter file usually ends in the
“.snapparam” extension. It contains a small number of parameters that
define the overall form of the SNAP potential. See the <a class="reference internal" href="pair_coeff.html"><span class="doc">pair_coeff</span></a> page for alternate ways to specify the path for these
files.</p>
<p>SNAP potentials are quite commonly combined with one or more other
LAMMPS pair styles using the <em>hybrid/overlay</em> pair style. As an
example, the SNAP tantalum potential provided in the LAMMPS potentials
directory combines the <em>snap</em> and <em>zbl</em> pair styles. It is invoked by
the following commands:</p>
<div class="highlight-LAMMPS notranslate"><div class="highlight"><pre><span></span><span class="k">variable </span><span class="nv nv-Identifier">zblcutinner</span><span class="w"> </span><span class="n">equal</span><span class="w"> </span><span class="m">4</span>
<span class="k">variable </span><span class="nv nv-Identifier">zblcutouter</span><span class="w"> </span><span class="n">equal</span><span class="w"> </span><span class="m">4.8</span>
<span class="k">variable </span><span class="nv nv-Identifier">zblz</span><span class="w"> </span><span class="n">equal</span><span class="w"> </span><span class="m">73</span>
<span class="k">pair_style</span><span class="w"> </span><span class="n">hybrid</span><span class="o">/</span><span class="n">overlay</span><span class="w"> </span><span class="o">&amp;</span>
<span class="n">zbl</span><span class="w"> </span><span class="nv">${zblcutinner}</span><span class="w"> </span><span class="nv">${zblcutouter}</span><span class="w"> </span><span class="n">snap</span>
<span class="k">pair_coeff</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">zbl</span><span class="w"> </span><span class="m">0.0</span>
<span class="k">pair_coeff</span><span class="w"> </span><span class="m">1</span><span class="w"> </span><span class="m">1</span><span class="w"> </span><span class="n">zbl</span><span class="w"> </span><span class="nv">${zblz}</span>
<span class="k">pair_coeff</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">snap</span><span class="w"> </span><span class="n">Ta06A.snapcoeff</span><span class="w"> </span><span class="n">Ta06A.snapparam</span><span class="w"> </span><span class="n">Ta</span>
</pre></div>
</div>
<p>It is convenient to keep these commands in a separate file that can be
inserted in any LAMMPS input script using the <a class="reference internal" href="include.html"><span class="doc">include</span></a>
command.</p>
<p>The top of the SNAP coefficient file can contain any number of blank and
comment lines (start with #), but follows a strict format after
that. The first non-blank non-comment line must contain two integers:</p>
<ul class="simple">
<li><p>nelem = Number of elements</p></li>
<li><p>ncoeff = Number of coefficients</p></li>
</ul>
<p>This is followed by one block for each of the <em>nelem</em> elements.
The first line of each block contains three entries:</p>
<ul class="simple">
<li><p>Element name (text string)</p></li>
<li><p>R = Element radius (distance units)</p></li>
<li><p>w = Element weight (dimensionless)</p></li>
</ul>
<p>This line is followed by <em>ncoeff</em> coefficients, one per line.</p>
<p>The SNAP parameter file can contain blank and comment lines (start
with #) anywhere. Each non-blank non-comment line must contain one
keyword/value pair. The required keywords are <em>rcutfac</em> and
<em>twojmax</em>. Optional keywords are <em>rfac0</em>, <em>rmin0</em>,
<em>switchflag</em>, <em>bzeroflag</em>, <em>quadraticflag</em>, <em>chemflag</em>,
<em>bnormflag</em>, <em>wselfallflag</em>, <em>switchinnerflag</em>,
<em>sinner</em>, <em>dinner</em>, <em>chunksize</em>, and <em>parallelthresh</em>.</p>
<p>The default values for these keywords are</p>
<ul class="simple">
<li><p><em>rfac0</em> = 0.99363</p></li>
<li><p><em>rmin0</em> = 0.0</p></li>
<li><p><em>switchflag</em> = 1</p></li>
<li><p><em>bzeroflag</em> = 1</p></li>
<li><p><em>quadraticflag</em> = 0</p></li>
<li><p><em>chemflag</em> = 0</p></li>
<li><p><em>bnormflag</em> = 0</p></li>
<li><p><em>wselfallflag</em> = 0</p></li>
<li><p><em>switchinnerflag</em> = 0</p></li>
<li><p><em>chunksize</em> = 32768</p></li>
<li><p><em>parallelthresh</em> = 8192</p></li>
</ul>
<p>For detailed definitions of all of these keywords,
see the <a class="reference internal" href="compute_sna_atom.html"><span class="doc">compute sna/atom</span></a> doc page.</p>
<p>If <em>quadraticflag</em> is set to 1, then the SNAP energy expression includes
additional quadratic terms that have been shown to increase the overall
accuracy of the potential without much increase in computational cost
<a class="reference internal" href="#wood20182"><span class="std std-ref">(Wood)</span></a>.</p>
<div class="math notranslate nohighlight">
\[E^i_{SNAP}(\mathbf{B}^i) = \beta^{\mu_i}_0 + \boldsymbol{\beta}^{\mu_i} \cdot \mathbf{B}_i + \frac{1}{2}\mathbf{B}^t_i \cdot \boldsymbol{\alpha}^{\mu_i} \cdot \mathbf{B}_i\]</div>
<p>where <span class="math notranslate nohighlight">\(\mathbf{B}_i\)</span> is the <em>K</em>-vector of bispectrum components,
<span class="math notranslate nohighlight">\(\boldsymbol{\beta}^{\mu_i}\)</span> is the <em>K</em>-vector of linear
coefficients for element <span class="math notranslate nohighlight">\(\mu_i\)</span>, and
<span class="math notranslate nohighlight">\(\boldsymbol{\alpha}^{\mu_i}\)</span> is the symmetric <em>K</em> by <em>K</em> matrix
of quadratic coefficients. The SNAP coefficient file should contain
<em>K</em>(<em>K</em>+1)/2 additional coefficients in each element block, the
upper-triangular elements of <span class="math notranslate nohighlight">\(\boldsymbol{\alpha}^{\mu_i}\)</span>.</p>
<p>If <em>chemflag</em> is set to 1, then the energy expression is written in
terms of explicit multi-element bispectrum components indexed on ordered
triplets of elements, which has been shown to increase the ability of
the SNAP potential to capture energy differences in chemically complex
systems, at the expense of a significant increase in computational cost
<a class="reference internal" href="#cusentino20202"><span class="std std-ref">(Cusentino)</span></a>.</p>
<div class="math notranslate nohighlight">
\[E^i_{SNAP}(\mathbf{B}^i) = \beta^{\mu_i}_0 + \sum_{\kappa,\lambda,\mu} \boldsymbol{\beta}^{\kappa\lambda\mu}_{\mu_i} \cdot \mathbf{B}^{\kappa\lambda\mu}_i\]</div>
<p>where <span class="math notranslate nohighlight">\(\mathbf{B}^{\kappa\lambda\mu}_i\)</span> is the <em>K</em>-vector of
bispectrum components for neighbors of elements <span class="math notranslate nohighlight">\(\kappa\)</span>,
<span class="math notranslate nohighlight">\(\lambda\)</span>, and <span class="math notranslate nohighlight">\(\mu\)</span> and
<span class="math notranslate nohighlight">\(\boldsymbol{\beta}^{\kappa\lambda\mu}_{\mu_i}\)</span> is the
corresponding <em>K</em>-vector of linear coefficients for element
<span class="math notranslate nohighlight">\(\mu_i\)</span>. The SNAP coefficient file should contain a total of
<span class="math notranslate nohighlight">\(K N_{elem}^3\)</span> coefficients in each element block, where
<span class="math notranslate nohighlight">\(N_{elem}\)</span> is the number of elements in the SNAP coefficient file,
which must equal the number of unique elements appearing in the LAMMPS
pair_coeff command, to avoid ambiguity in the number of coefficients.</p>
<p>The keyword <em>switchinnerflag</em> activates an additional switching function
that smoothly turns off contributions to the SNAP potential from neighbor
atoms at short separations. If <em>switchinnerflag</em> is set to 1 then
the additional keywords <em>sinner</em> and <em>dinner</em> must also be provided.
Each of these is followed by <em>nelements</em> values, where <em>nelements</em>
is the number of unique elements appearing in appearing in the LAMMPS
pair_coeff command. The element order should correspond to the order
in which elements first appear in the pair_coeff command reading from
left to right.</p>
<p>The keywords <em>chunksize</em> and <em>parallelthresh</em> are only applicable when
using the pair style <em>snap</em> with the KOKKOS package on GPUs and are
ignored otherwise. The <em>chunksize</em> keyword controls the number of atoms
in each pass used to compute the bispectrum components and is used to
avoid running out of memory. For example if there are 8192 atoms in the
simulation and the <em>chunksize</em> is set to 4096, the bispectrum
calculation will be broken up into two passes (running on a single GPU).
The <em>parallelthresh</em> keyword controls a crossover threshold for
performing extra parallelism. For small systems, exposing additional
parallelism can be beneficial when there is not enough work to fully
saturate the GPU threads otherwise. However, the extra parallelism also
leads to more divergence and can hurt performance when the system is
already large enough to saturate the GPU threads. Extra parallelism
will be performed if the <em>chunksize</em> (or total number of atoms per GPU)
is smaller than <em>parallelthresh</em>.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The previously used <em>diagonalstyle</em> keyword was removed in 2019,
since all known SNAP potentials use the default value of 3.</p>
</div>
</section>
<hr class="docutils" />
<section id="mixing-shift-table-tail-correction-restart-rrespa-info">
<h2>Mixing, shift, table, tail correction, restart, rRESPA info<a class="headerlink" href="#mixing-shift-table-tail-correction-restart-rrespa-info" title="Link to this heading"></a></h2>
<p>For atom type pairs I,J and I != J, where types I and J correspond to
two different element types, mixing is performed by LAMMPS with
user-specifiable parameters as described above. You never need to
specify a pair_coeff command with I != J arguments for this style.</p>
<p>This pair style does not support the <a class="reference internal" href="pair_modify.html"><span class="doc">pair_modify</span></a>
shift, table, and tail options.</p>
<p>This pair style does not write its information to <a class="reference internal" href="restart.html"><span class="doc">binary restart
files</span></a>, since it is stored in potential files. Thus, you need
to re-specify the pair_style and pair_coeff commands in an input script
that reads a restart file.</p>
<p>This pair style can only be used via the <em>pair</em> keyword of the
<a class="reference internal" href="run_style.html"><span class="doc">run_style respa</span></a> command. It does not support the
<em>inner</em>, <em>middle</em>, <em>outer</em> keywords.</p>
<hr class="docutils" />
<p>Styles with a <em>gpu</em>, <em>intel</em>, <em>kk</em>, <em>omp</em>, or <em>opt</em> suffix are
functionally the same as the corresponding style without the suffix.
They have been optimized to run faster, depending on your available
hardware, as discussed on the <a class="reference internal" href="Speed_packages.html"><span class="doc">Accelerator packages</span></a>
page. The accelerated styles take the same arguments and should
produce the same results, except for round-off and precision issues.</p>
<p>These accelerated styles are part of the GPU, INTEL, KOKKOS,
OPENMP, and OPT packages, respectively. They are only enabled if
LAMMPS was built with those packages. See the <a class="reference internal" href="Build_package.html"><span class="doc">Build package</span></a> page for more info.</p>
<p>You can specify the accelerated styles explicitly in your input script
by including their suffix, or you can use the <a class="reference internal" href="Run_options.html"><span class="doc">-suffix command-line switch</span></a> when you invoke LAMMPS, or you can use the
<a class="reference internal" href="suffix.html"><span class="doc">suffix</span></a> command in your input script.</p>
<p>See the <a class="reference internal" href="Speed_packages.html"><span class="doc">Accelerator packages</span></a> page for more
instructions on how to use the accelerated styles effectively.</p>
</section>
<hr class="docutils" />
<section id="restrictions">
<h2>Restrictions<a class="headerlink" href="#restrictions" title="Link to this heading"></a></h2>
<p>This style is part of the ML-SNAP package. It is only enabled if LAMMPS
was built with that package. See the <a class="reference internal" href="Build_package.html"><span class="doc">Build package</span></a> page for more info.</p>
<p>The <em>snap/intel</em> accelerator variant will <em>only</em> be available if LAMMPS
is built with Intel <em>compilers</em> and for CPUs with AVX-512 support.
While the INTEL package in general allows multiple floating point
precision modes to be selected, <em>snap/intel</em> will currently always use
full double precision regardless of the precision mode selected.
Additionally, the <em>intel</em> variant of snap will <strong>NOT</strong> use multiple
threads with OpenMP.</p>
</section>
<section id="related-commands">
<h2>Related commands<a class="headerlink" href="#related-commands" title="Link to this heading"></a></h2>
<p><a class="reference internal" href="compute_sna_atom.html"><span class="doc">compute sna/atom</span></a>,
<a class="reference internal" href="compute_sna_atom.html"><span class="doc">compute snad/atom</span></a>,
<a class="reference internal" href="compute_sna_atom.html"><span class="doc">compute snav/atom</span></a>,
<a class="reference internal" href="compute_sna_atom.html"><span class="doc">compute snap</span></a></p>
</section>
<section id="default">
<h2>Default<a class="headerlink" href="#default" title="Link to this heading"></a></h2>
<p>none</p>
<hr class="docutils" />
<p id="thompson20142"><strong>(Thompson)</strong> Thompson, Swiler, Trott, Foiles, Tucker, J Comp Phys, 285, 316 (2015).</p>
<p id="bartok20102"><strong>(Bartok2010)</strong> Bartok, Payne, Kondor, Csanyi, Phys Rev Lett, 104, 136403 (2010).</p>
<p id="wood20182"><strong>(Wood)</strong> Wood and Thompson, J Chem Phys, 148, 241721, (2018)</p>
<p id="cusentino20202"><strong>(Cusentino)</strong> Cusentino, Wood, Thompson, J Phys Chem A, 124, 5456, (2020)</p>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="pair_smtbq.html" class="btn btn-neutral float-left" title="pair_style smtbq command" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="pair_soft.html" class="btn btn-neutral float-right" title="pair_style soft command" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>&#169; Copyright 2003-2025 Sandia Corporation.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(false);
});
</script>
</body>
</html>