2009-04-06 23:59:15 +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.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#ifndef FIX_TTM_H
|
|
|
|
#define FIX_TTM_H
|
|
|
|
|
|
|
|
#include "fix.h"
|
|
|
|
|
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
|
|
|
class FixTTM : public Fix {
|
|
|
|
public:
|
|
|
|
FixTTM(class LAMMPS *, int, char **);
|
|
|
|
~FixTTM();
|
|
|
|
int setmask();
|
|
|
|
void init();
|
|
|
|
void setup(int);
|
|
|
|
void post_force(int);
|
|
|
|
void post_force_respa(int, int, int);
|
2009-06-04 04:33:16 +08:00
|
|
|
void end_of_step();
|
2009-04-06 23:59:15 +08:00
|
|
|
void reset_dt();
|
2009-04-07 04:13:53 +08:00
|
|
|
double memory_usage();
|
2009-06-04 04:33:16 +08:00
|
|
|
void grow_arrays(int);
|
|
|
|
double compute_vector(int);
|
2009-04-06 23:59:15 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
int me;
|
|
|
|
int nfileevery;
|
|
|
|
int nlevels_respa;
|
|
|
|
class RanMars *random;
|
2009-04-07 04:13:53 +08:00
|
|
|
FILE *fp,*fpr;
|
2009-04-06 23:59:15 +08:00
|
|
|
int nxnodes,nynodes,nznodes,total_nnodes;
|
2009-06-04 04:33:16 +08:00
|
|
|
int ***nsum;
|
|
|
|
int ***nsum_all,***T_initial_set;
|
2009-04-06 23:59:15 +08:00
|
|
|
double *gfactor1,*gfactor2,*ratio;
|
2009-06-04 04:33:16 +08:00
|
|
|
double **flangevin;
|
|
|
|
double ***T_electron,***T_electron_old;
|
|
|
|
double ***sum_vsq,***sum_mass_vsq;
|
|
|
|
double ***sum_vsq_all,***sum_mass_vsq_all;
|
|
|
|
double ***net_energy_transfer,***net_energy_transfer_all;
|
2009-04-07 04:13:53 +08:00
|
|
|
double electronic_specific_heat,electronic_density;
|
|
|
|
double electronic_thermal_conductivity;
|
2009-04-06 23:59:15 +08:00
|
|
|
double gamma_p,gamma_s,v_0,v_0_sq;
|
2009-04-07 04:13:53 +08:00
|
|
|
|
|
|
|
void read_initial_electron_temperatures();
|
2009-04-06 23:59:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|