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 FIX_CLASS
|
|
|
|
|
|
|
|
FixStyle(spring/rg,FixSpringRG)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef LMP_FIX_SPRING_RG_H
|
|
|
|
#define LMP_FIX_SPRING_RG_H
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
#include "fix.h"
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
class FixSpringRG : public Fix {
|
|
|
|
public:
|
2007-01-30 08:22:05 +08:00
|
|
|
FixSpringRG(class LAMMPS *, int, char **);
|
2006-09-28 03:51:33 +08:00
|
|
|
int setmask();
|
|
|
|
void init();
|
2008-01-10 05:56:57 +08:00
|
|
|
void setup(int);
|
2006-09-28 03:51:33 +08:00
|
|
|
void post_force(int);
|
|
|
|
void post_force_respa(int, int, int);
|
|
|
|
|
|
|
|
private:
|
|
|
|
int nlevels_respa,rg0_flag;
|
|
|
|
double rg0,k,masstotal;
|
|
|
|
};
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
*/
|