Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78437797
pair_tip4p_long_soft.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Aug 20, 21:28
Size
3 KB
Mime Type
text/x-c
Expires
Thu, Aug 22, 21:28 (2 d)
Engine
blob
Format
Raw Data
Handle
19248461
Attached To
rLAMMPS lammps
pair_tip4p_long_soft.h
View Options
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
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
(
tip4p
/
long
/
soft
,
PairTIP4PLongSoft
)
#else
#ifndef LMP_PAIR_TIP4P_LONG_SOFT_H
#define LMP_PAIR_TIP4P_LONG_SOFT_H
#include "pair_coul_long_soft.h"
namespace
LAMMPS_NS
{
class
PairTIP4PLongSoft
:
public
PairCoulLongSoft
{
public:
PairTIP4PLongSoft
(
class
LAMMPS
*
);
virtual
~
PairTIP4PLongSoft
();
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
&
);
virtual
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 tip4p/long/soft 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 tip4p/long/soft 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 tip4p/long/soft 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.
*/
Event Timeline
Log In to Comment