2008-03-12 01:42:05 +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.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
2010-01-12 09:37:48 +08:00
|
|
|
#ifdef FIX_CLASS
|
|
|
|
|
|
|
|
FixStyle(temp/berendsen,FixTempBerendsen)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef LMP_FIX_TEMP_BERENDSEN_H
|
|
|
|
#define LMP_FIX_TEMP_BERENDSEN_H
|
2008-03-12 01:42:05 +08:00
|
|
|
|
|
|
|
#include "fix.h"
|
|
|
|
|
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
|
|
|
class FixTempBerendsen : public Fix {
|
|
|
|
public:
|
|
|
|
FixTempBerendsen(class LAMMPS *, int, char **);
|
|
|
|
~FixTempBerendsen();
|
|
|
|
int setmask();
|
|
|
|
void init();
|
|
|
|
void end_of_step();
|
|
|
|
int modify_param(int, char **);
|
|
|
|
void reset_target(double);
|
2010-09-11 01:28:15 +08:00
|
|
|
double compute_scalar();
|
2008-03-12 01:42:05 +08:00
|
|
|
|
2008-07-30 01:12:38 +08:00
|
|
|
private:
|
2008-03-12 01:42:05 +08:00
|
|
|
int which;
|
2010-09-11 01:28:15 +08:00
|
|
|
double t_start,t_stop,t_period;
|
|
|
|
double energy;
|
2008-03-12 01:42:05 +08:00
|
|
|
|
|
|
|
char *id_temp;
|
|
|
|
class Compute *temperature;
|
|
|
|
int tflag;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2010-01-12 09:37:48 +08:00
|
|
|
#endif
|