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
|
|
|
|
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.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
2007-10-04 00:22:30 +08:00
|
|
|
#ifndef PAIR_COUL_CUT_H
|
|
|
|
#define 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 *);
|
|
|
|
~PairCoulCut();
|
|
|
|
void compute(int, int);
|
|
|
|
void settings(int, char **);
|
|
|
|
void coeff(int, char **);
|
|
|
|
void init_style();
|
|
|
|
double init_one(int, int);
|
|
|
|
void write_restart(FILE *);
|
|
|
|
void read_restart(FILE *);
|
|
|
|
void write_restart_settings(FILE *);
|
|
|
|
void read_restart_settings(FILE *);
|
2008-01-03 03:24:46 +08:00
|
|
|
double single(int, int, int, int, double, double, double, double &);
|
2007-01-30 08:31:11 +08:00
|
|
|
|
|
|
|
private:
|
2007-10-04 00:22:30 +08:00
|
|
|
double cut_global;
|
|
|
|
double **cut;
|
|
|
|
|
|
|
|
void allocate();
|
2007-01-30 08:31:11 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|