00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _LJ2_H
00010 #define _LJ2_H
00011
00012 #include "mdparallel.h"
00013
00014
00015 #define P_KB 1.380662e-23 // (kg*m^2/s^2/K) Boltzmann constant
00016 #define P_E 1.6021892e-19 // (C) electron charge
00017
00018 #define LJ_ENERGY (119.8*P_KB/P_E) // argon energy (sigma)
00019 #define LJ_LENGTH 3.405 // argon length (epsilon)
00020 #define LJ_RC (2.37343077641*LJ_LENGTH) //4 neighbor
00021
00022 class LJ2Frame : public MDPARALLELFrame
00023 {
00024
00025 double _ALJ_00,_BLJ_00, ALJ_00,BLJ_00, Uc_00,DUDRc_00;
00026 double _ALJ_11,_BLJ_11, ALJ_11,BLJ_11, Uc_11,DUDRc_11;
00027 double _ALJ_01,_BLJ_01, ALJ_01,BLJ_01, Uc_01,DUDRc_01;
00028
00029 public:
00030 LJ2Frame(){};
00031 void lennard_jones_2();
00032 virtual void potential();
00033 virtual void initvars();
00034
00035 virtual void initparser();
00036 virtual int exec(char *name);
00037 virtual void calcprop();
00038
00039 void initLJ();
00040
00041 };
00042
00043
00044
00045 #endif // _LJ2_H
00046