forked from plrodolfo/FluidFreeEnergyforLAMMPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pair_lj_cut_tip4p_long.h
105 lines (71 loc) · 3.18 KB
/
pair_lj_cut_tip4p_long.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, [email protected]
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#ifdef PAIR_CLASS
PairStyle(lj/cut/tip4p/long,PairLJCutTIP4PLong)
#else
#ifndef LMP_PAIR_LJ_CUT_TIP4P_LONG_H
#define LMP_PAIR_LJ_CUT_TIP4P_LONG_H
#include "pair_lj_cut_coul_long.h"
namespace LAMMPS_NS {
class PairLJCutTIP4PLong : public PairLJCutCoulLong {
public:
PairLJCutTIP4PLong(class LAMMPS *);
~PairLJCutTIP4PLong();
virtual void compute(int, int);
void settings(int, char **);
void init_style();
double init_one(int, int);
void write_restart_settings(FILE *fp);
void read_restart_settings(FILE *fp);
void *extract(const char *, int &);
double memory_usage();
protected:
int typeH,typeO; // atom types of TIP4P water H and O atoms
int typeA,typeB; // angle and bond types of TIP4P water
double alpha; // geometric constraint parameter for TIP4P
int nmax; // info on off-oxygen charge sites
int **hneigh; // 0,1 = indices of 2 H associated with O
// 2 = 0 if site loc not yet computed, 1 if yes
double **newsite; // locations of charge sites
void compute_newsite(double *, double *, double *, double *);
};
}
#endif
#endif
/* ERROR/WARNING messages:
E: TIP4P hydrogen is missing
The TIP4P pairwise computation failed to find the correct H atom
within a water molecule.
E: TIP4P hydrogen has incorrect atom type
The TIP4P pairwise computation found an H atom whose type does not
agree with the specified H type.
E: Illegal ... command
Self-explanatory. Check the input script syntax and compare to the
documentation for the command. You can use -echo screen as a
command-line option when running LAMMPS to see the offending line.
E: Pair style lj/cut/tip4p/long requires atom IDs
There are no atom IDs defined in the system and the TIP4P potential
requires them to find O,H atoms with a water molecule.
E: Pair style lj/cut/tip4p/long requires newton pair on
This is because the computation of constraint forces within a water
molecule adds forces to atoms owned by other processors.
E: Pair style lj/cut/tip4p/long requires atom attribute q
The atom style defined does not have these attributes.
E: Must use a bond style with TIP4P potential
TIP4P potentials assume bond lengths in water are constrained
by a fix shake command.
E: Must use an angle style with TIP4P potential
TIP4P potentials assume angles in water are constrained by a fix shake
command.
E: Water H epsilon must be 0.0 for pair style lj/cut/tip4p/long
This is because LAMMPS does not compute the Lennard-Jones interactions
with these particles for efficiency reasons.
*/