Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81415102
pair_lj_long_tip4p_long.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
Thu, Sep 5, 23:03
Size
3 KB
Mime Type
text/x-c
Expires
Sat, Sep 7, 23:03 (2 d)
Engine
blob
Format
Raw Data
Handle
20549470
Attached To
rLAMMPS lammps
pair_lj_long_tip4p_long.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(lj/long/tip4p/long,PairLJLongTIP4PLong)
#else
#ifndef LMP_PAIR_LJ_LONG_TIP4P_LONG_H
#define LMP_PAIR_LJ_LONG_TIP4P_LONG_H
#include "pair_lj_long_coul_long.h"
namespace LAMMPS_NS {
class PairLJLongTIP4PLong : public PairLJLongCoulLong {
public:
PairLJLongTIP4PLong(class LAMMPS *);
~PairLJLongTIP4PLong();
virtual void compute(int, int);
virtual void compute_inner();
virtual void compute_middle();
virtual void compute_outer(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.
W: Mixing forced for lj coefficients
Self-explanatory.
W: Using largest cutoff for pair_style lj/long/tip4p/long
Self-explanatory.
E: Coulomb cut not supported in pair_style lj/long/tip4p/long
Must use long-range Coulombic interactions.
E: Pair style lj/long/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/long/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/long/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/long/tip4p/long
This is because LAMMPS does not compute the Lennard-Jones interactions
with these particles for efficiency reasons.
*/
Event Timeline
Log In to Comment