2014-10-22 01:09:24 +08:00
|
|
|
/* -*- c++ -*- ----------------------------------------------------------
|
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
|
2012-06-07 06:47:51 +08:00
|
|
|
certain rights in this software. This software is distributed under
|
2006-09-28 03:51:33 +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 INTEGRATE_CLASS
|
|
|
|
|
|
|
|
IntegrateStyle(verlet,Verlet)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef LMP_VERLET_H
|
|
|
|
#define LMP_VERLET_H
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
#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 **);
|
2011-05-20 23:27:50 +08:00
|
|
|
virtual ~Verlet() {}
|
2011-12-06 08:01:41 +08:00
|
|
|
virtual void init();
|
2011-12-03 02:25:42 +08:00
|
|
|
virtual void setup();
|
|
|
|
virtual void setup_minimal(int);
|
|
|
|
virtual void run(int);
|
2010-10-23 05:27:16 +08:00
|
|
|
void cleanup();
|
2006-09-28 03:51:33 +08:00
|
|
|
|
2011-05-20 23:27:50 +08:00
|
|
|
protected:
|
2007-03-08 08:54:02 +08:00
|
|
|
int triclinic; // 0 if domain is orthog, 1 if triclinic
|
2014-06-05 04:52:04 +08:00
|
|
|
int torqueflag,extraflag;
|
2006-09-28 03:51:33 +08:00
|
|
|
|
2014-02-12 08:35:28 +08:00
|
|
|
virtual void force_clear();
|
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
|
2010-01-12 09:37:48 +08:00
|
|
|
#endif
|
2011-12-16 09:37:13 +08:00
|
|
|
|
|
|
|
/* ERROR/WARNING messages:
|
|
|
|
|
|
|
|
W: No fixes defined, atoms won't move
|
|
|
|
|
|
|
|
If you are not using a fix like nve, nvt, npt then atom velocities and
|
|
|
|
coordinates will not be updated during timestepping.
|
|
|
|
|
|
|
|
*/
|