Skip to content
Snippets Groups Projects
Commit fc36754c authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #561 from v0i0/fix-airebo-various

Fix Various AIREBO issues
parents 3a46c34c e493b6a6
No related branches found
No related tags found
No related merge requests found
......@@ -15,12 +15,13 @@ pair_style rebo/omp command :h3
[Syntax:]
pair_style style cutoff LJ_flag TORSION_flag :pre
pair_style style cutoff LJ_flag TORSION_flag cutoff_min :pre
style = {airebo} or {airebo/morse} or {rebo}
cutoff = LJ or Morse cutoff (sigma scale factor) (AIREBO and AIREBO-M only)
LJ_flag = 0/1 to turn off/on the LJ or Morse term (AIREBO and AIREBO-M only, optional)
TORSION_flag = 0/1 to turn off/on the torsion term (AIREBO and AIREBO-M only, optional) :ul
TORSION_flag = 0/1 to turn off/on the torsion term (AIREBO and AIREBO-M only, optional)
cutoff_min = Start of the transition region of cutoff (sigma scale factor) (AIREBO and AIREBO-M only, optional) :ul
[Examples:]
......@@ -60,7 +61,7 @@ The AIREBO potential consists of three terms:
:c,image(Eqs/pair_airebo.jpg)
By default, all three terms are included. For the {airebo} style, if
the two optional flag arguments to the pair_style command are
the first two optional flag arguments to the pair_style command are
included, the LJ and torsional terms can be turned off. Note that
both or neither of the flags must be included. If both of the LJ an
torsional terms are turned off, it becomes the 2nd-generation REBO
......@@ -97,6 +98,12 @@ standard AIREBO potential, sigma_CC = 3.4 Angstroms, so with a scale
factor of 3.0 (the argument in pair_style), the resulting E_LJ cutoff
would be 10.2 Angstroms.
By default, the longer-ranged interaction is smoothly switched off
between 2.16 and 3.0 sigma. By specifying {cutoff_min} in addition
to {cutoff}, the switching can be configured to take place between
{cutoff_min} and {cutoff}. {cutoff_min} can only be specified if all
optional arguments are given.
The E_TORSION term is an explicit 4-body potential that describes
various dihedral angle preferences in hydrocarbon configurations.
......
This diff is collapsed.
......@@ -46,6 +46,7 @@ class PairAIREBO : public Pair {
int morseflag; // 1 if Morse instead of LJ for non-bonded
double cutlj; // user-specified LJ cutoff
double sigcut,sigwid,sigmin; // corresponding cutoff function
double cutljrebosq; // cut for when to compute
// REBO neighs of ghost atoms
......@@ -113,6 +114,12 @@ class PairAIREBO : public Pair {
double Sp5th(double, double *, double *);
double Spbicubic(double, double, double *, double *);
double Sptricubic(double, double, double, double *, double *);
void Sptricubic_patch_adjust(double *, double, double, char);
void Sptricubic_patch_coeffs(double, double, double, double, double, double,
double*, double*, double*, double*, double*);
void Spbicubic_patch_adjust(double *, double, double, char);
void Spbicubic_patch_coeffs(double, double, double, double, double *,
double *, double *, double *);
void spline_init();
void allocate();
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment