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
|
|
|
|
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 COMPUTE_CLASS
|
|
|
|
|
|
|
|
ComputeStyle(pressure,ComputePressure)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef LMP_COMPUTE_PRESSURE_H
|
|
|
|
#define LMP_COMPUTE_PRESSURE_H
|
2007-01-30 08:31:11 +08:00
|
|
|
|
|
|
|
#include "compute.h"
|
|
|
|
|
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
|
|
|
class ComputePressure : public Compute {
|
|
|
|
public:
|
|
|
|
ComputePressure(class LAMMPS *, int, char **);
|
|
|
|
~ComputePressure();
|
|
|
|
void init();
|
|
|
|
double compute_scalar();
|
|
|
|
void compute_vector();
|
2009-08-19 01:59:14 +08:00
|
|
|
void reset_extra_compute_fix(char *);
|
2007-01-30 08:31:11 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
double boltz,nktv2p,inv_volume;
|
2007-07-04 03:53:23 +08:00
|
|
|
int nvirial,dimension;
|
2007-06-20 21:17:59 +08:00
|
|
|
double **vptr;
|
|
|
|
double *kspace_virial;
|
2007-01-30 08:31:11 +08:00
|
|
|
Compute *temperature;
|
2009-07-02 04:28:37 +08:00
|
|
|
char *id_temp;
|
2007-01-30 08:31:11 +08:00
|
|
|
double virial[6];
|
2007-12-01 05:54:30 +08:00
|
|
|
int keflag,pairflag,bondflag,angleflag,dihedralflag,improperflag;
|
|
|
|
int fixflag,kspaceflag;
|
2007-01-30 08:31:11 +08:00
|
|
|
|
2007-11-30 23:26:11 +08:00
|
|
|
void virial_compute(int, int);
|
2007-01-30 08:31:11 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2010-01-12 09:37:48 +08:00
|
|
|
#endif
|