| 36 |
|
* [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). |
| 37 |
|
* [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). |
| 38 |
|
* [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). |
| 39 |
< |
* [4] Vardeman & Gezelter, in progress (2009). |
| 39 |
> |
* [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). |
| 40 |
> |
* [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). |
| 41 |
|
*/ |
| 42 |
|
|
| 43 |
|
#ifndef NONBONDED_SHAPES_HPP |
| 44 |
|
#define NONBONDED_SHAPES_HPP |
| 45 |
|
|
| 46 |
+ |
#include "nonbonded/NonBondedInteraction.hpp" |
| 47 |
|
#include "types/ShapeAtomType.hpp" |
| 48 |
< |
#include "UseTheForce/ForceField.hpp" |
| 48 |
> |
#include "brains/ForceField.hpp" |
| 49 |
|
#include "math/SquareMatrix3.hpp" |
| 50 |
|
|
| 51 |
|
using namespace std; |
| 52 |
|
namespace OpenMD { |
| 53 |
|
|
| 54 |
< |
class SHAPES { |
| 54 |
> |
class SHAPES : public VanDerWaalsInteraction { |
| 55 |
|
|
| 56 |
|
public: |
| 57 |
< |
static SHAPES* Instance(); |
| 58 |
< |
static void setForceField(ForceField *ff) {forceField_ = ff;}; |
| 59 |
< |
static void initialize(); |
| 58 |
< |
static void addType(AtomType* atomType); |
| 59 |
< |
|
| 60 |
< |
static void calcForce(AtomType* at1, AtomType* at2, const Vector3d d, const RealType rij, const RealType r2, const RealType sw, RealType &vpair, RealType &pot, const RotMat3x3d A1, const RotMat3x3d A2, Vector3d &f1, Vector3d &t1, Vector3d &t2); |
| 61 |
< |
|
| 62 |
< |
// Fortran support routines; |
| 63 |
< |
static RealType getShapeCut(int atid); |
| 64 |
< |
static void do_shape_pair(int *atid1, int *atid2, RealType *d, RealType *rij, RealType *r2, RealType *sw, RealType *vpair, RealType *pot, RealType *A1, RealType *A2, RealType *f1, RealType *t1, RealType *t2); |
| 57 |
> |
SHAPES(); |
| 58 |
> |
void setForceField(ForceField *ff) {forceField_ = ff;}; |
| 59 |
> |
virtual void calcForce(InteractionData &idat); |
| 60 |
|
|
| 61 |
|
private: |
| 62 |
< |
virtual ~SHAPES() { } |
| 63 |
< |
// singleton pattern, prevent reconstruction |
| 64 |
< |
SHAPES() { } |
| 65 |
< |
SHAPES(SHAPES const &) {}; |
| 66 |
< |
SHAPES& operator=(SHAPES const&) {}; |
| 67 |
< |
static SHAPES* _instance; |
| 62 |
> |
void initialize(); |
| 63 |
> |
void addShape(ShapeAtomType* atomType); |
| 64 |
> |
void addLJ(AtomType* atomType); |
| 65 |
> |
LJParam getLJParam(AtomType* atomType); |
| 66 |
> |
RealType getLJSigma(AtomType* atomType); |
| 67 |
> |
RealType getLJEpsilon(AtomType* atomType); |
| 68 |
|
|
| 69 |
< |
static bool initialized_; |
| 70 |
< |
static map<int, AtomType*> ShapesMap; |
| 71 |
< |
static map<pair<AtomType*, AtomType*>, SHAPESInteractionData> MixingMap; |
| 72 |
< |
static ForceField* forceField_; |
| 73 |
< |
static int lMax_; |
| 74 |
< |
static int mMax_; |
| 69 |
> |
bool initialized_; |
| 70 |
> |
map<int, ShapeAtomType*> ShapesMap; |
| 71 |
> |
map<int, AtomType*> LJMap; |
| 72 |
> |
|
| 73 |
> |
ForceField* forceField_; |
| 74 |
> |
int lMax_; |
| 75 |
> |
int mMax_; |
| 76 |
|
}; |
| 77 |
|
} |
| 78 |
|
|