2014-10-22 01:09:24 +08:00
|
|
|
/* -*- c++ -*- ----------------------------------------------------------
|
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
|
2012-06-07 06:47:51 +08:00
|
|
|
certain rights in this software. This software is distributed under
|
2007-01-30 08:31:11 +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 COMPUTE_CLASS
|
|
|
|
|
|
|
|
ComputeStyle(temp,ComputeTemp)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef LMP_COMPUTE_TEMP_H
|
|
|
|
#define LMP_COMPUTE_TEMP_H
|
2007-01-30 08:31:11 +08:00
|
|
|
|
|
|
|
#include "compute.h"
|
|
|
|
|
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
|
|
|
class ComputeTemp : public Compute {
|
|
|
|
public:
|
|
|
|
ComputeTemp(class LAMMPS *, int, char **);
|
2010-08-21 04:43:41 +08:00
|
|
|
virtual ~ComputeTemp();
|
2013-02-15 02:51:12 +08:00
|
|
|
void init() {}
|
2013-02-13 07:09:54 +08:00
|
|
|
void setup();
|
2015-09-25 04:34:59 +08:00
|
|
|
virtual double compute_scalar();
|
|
|
|
virtual void compute_vector();
|
2007-01-30 08:31:11 +08:00
|
|
|
|
2010-08-21 04:43:41 +08:00
|
|
|
protected:
|
2007-01-30 08:31:11 +08:00
|
|
|
double tfactor;
|
|
|
|
|
2010-08-21 04:43:41 +08:00
|
|
|
virtual void dof_compute();
|
2007-01-30 08:31:11 +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.
|
|
|
|
|
|
|
|
*/
|