2006-09-28 03:51:33 +08:00
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
2007-01-30 08:22:05 +08:00
|
|
|
http://lammps.sandia.gov, Sandia National Laboratories
|
|
|
|
Steve Plimpton, sjplimp@sandia.gov
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#ifndef VERLET_H
|
|
|
|
#define VERLET_H
|
|
|
|
|
|
|
|
#include "integrate.h"
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
class Verlet : public Integrate {
|
|
|
|
public:
|
2007-01-30 08:22:05 +08:00
|
|
|
Verlet(class LAMMPS *, int, char **);
|
2007-02-21 08:15:29 +08:00
|
|
|
~Verlet();
|
2006-09-28 03:51:33 +08:00
|
|
|
void init();
|
|
|
|
void setup();
|
|
|
|
void iterate(int);
|
|
|
|
|
|
|
|
private:
|
2007-02-21 08:15:29 +08:00
|
|
|
int virial_style; // compute virial explicitly or implicitly
|
|
|
|
int virial_every; // 1 if virial computed every step
|
|
|
|
int next_virial; // next timestep to compute virial
|
|
|
|
int nfix_virial; // # of fixes that need virial occasionally
|
|
|
|
int *fix_virial_every; // frequency they require it
|
|
|
|
int *next_fix_virial; // next timestep they need it
|
|
|
|
|
|
|
|
int pairflag,torqueflag,granflag; // arrays to zero out every step
|
|
|
|
int maxpair; // local copies of Update quantities
|
2006-09-28 03:51:33 +08:00
|
|
|
double **f_pair;
|
|
|
|
|
|
|
|
void force_clear(int);
|
2007-02-21 08:15:29 +08:00
|
|
|
int fix_virial(int);
|
2006-09-28 03:51:33 +08:00
|
|
|
};
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
}
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
#endif
|