2014-10-22 01:09:24 +08:00
|
|
|
/* -*- c++ -*- ----------------------------------------------------------
|
2007-01-30 08:31:11 +08:00
|
|
|
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
|
2012-06-07 06:47:51 +08:00
|
|
|
certain rights in this software. This software is distributed under
|
2007-01-30 08:31:11 +08:00
|
|
|
the GNU General Public License.
|
|
|
|
|
|
|
|
See the README file in the top-level LAMMPS directory.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
2010-01-12 09:37:48 +08:00
|
|
|
#ifdef PAIR_CLASS
|
|
|
|
|
|
|
|
PairStyle(coul/cut,PairCoulCut)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef LMP_PAIR_COUL_CUT_H
|
|
|
|
#define LMP_PAIR_COUL_CUT_H
|
2007-01-30 08:31:11 +08:00
|
|
|
|
2007-10-04 00:22:30 +08:00
|
|
|
#include "pair.h"
|
2007-01-30 08:31:11 +08:00
|
|
|
|
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
2007-10-04 00:22:30 +08:00
|
|
|
class PairCoulCut : public Pair {
|
2007-01-30 08:31:11 +08:00
|
|
|
public:
|
2007-10-04 00:22:30 +08:00
|
|
|
PairCoulCut(class LAMMPS *);
|
2008-01-04 09:20:28 +08:00
|
|
|
virtual ~PairCoulCut();
|
|
|
|
virtual void compute(int, int);
|
|
|
|
virtual void settings(int, char **);
|
2007-10-04 00:22:30 +08:00
|
|
|
void coeff(int, char **);
|
|
|
|
void init_style();
|
|
|
|
double init_one(int, int);
|
|
|
|
void write_restart(FILE *);
|
|
|
|
void read_restart(FILE *);
|
2008-01-04 09:20:28 +08:00
|
|
|
virtual void write_restart_settings(FILE *);
|
|
|
|
virtual void read_restart_settings(FILE *);
|
|
|
|
virtual double single(int, int, int, int, double, double, double, double &);
|
2011-12-17 05:15:49 +08:00
|
|
|
void *extract(const char *, int &);
|
2007-01-30 08:31:11 +08:00
|
|
|
|
2008-01-04 09:20:28 +08:00
|
|
|
protected:
|
2007-10-04 00:22:30 +08:00
|
|
|
double cut_global;
|
2010-10-23 05:26:44 +08:00
|
|
|
double **cut,**scale;
|
2007-10-04 00:22:30 +08:00
|
|
|
|
2015-02-24 07:45:29 +08:00
|
|
|
virtual void allocate();
|
2007-01-30 08:31:11 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2010-01-12 09:37:48 +08:00
|
|
|
#endif
|
2011-12-16 09:37:13 +08:00
|
|
|
|
|
|
|
/* ERROR/WARNING messages:
|
|
|
|
|
|
|
|
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: Incorrect args for pair coefficients
|
|
|
|
|
|
|
|
Self-explanatory. Check the input script or data file.
|
|
|
|
|
|
|
|
E: Pair style coul/cut requires atom attribute q
|
|
|
|
|
|
|
|
The atom style defined does not have these attributes.
|
|
|
|
|
|
|
|
*/
|