| 75 |
|
void setForceField(ForceField *ff) {forceField_ = ff;}; |
| 76 |
|
void addType(AtomType* atomType); |
| 77 |
|
void addExplicitInteraction(AtomType* atype1, AtomType* atype2, RealType dr, int nr, std::vector<RealType> phiAB); |
| 78 |
< |
void calcDensity(DensityData ddat); |
| 79 |
< |
void calcFunctional(FunctionalData fdat); |
| 80 |
< |
void calcForce(InteractionData idat); |
| 78 |
> |
void calcDensity(InteractionData &idat); |
| 79 |
> |
void calcFunctional(SelfData &sdat); |
| 80 |
> |
void calcForce(InteractionData &idat); |
| 81 |
|
virtual string getName() { return name_; } |
| 82 |
< |
virtual RealType getSuggestedCutoffRadius(AtomType* at1, AtomType* at2); |
| 82 |
> |
virtual RealType getSuggestedCutoffRadius(pair<AtomType*,AtomType*> atypes); |
| 83 |
> |
void setCutoffRadius( RealType rCut ); |
| 84 |
|
|
| 85 |
+ |
|
| 86 |
|
private: |
| 87 |
|
void initialize(); |
| 88 |
|
EAMParam getEAMParam(AtomType* atomType); |
| 93 |
|
CubicSpline* getPhi(AtomType* atomType1, AtomType* atomType2); |
| 94 |
|
|
| 95 |
|
bool initialized_; |
| 96 |
+ |
bool haveCutoffRadius_; |
| 97 |
|
std::map<int, AtomType*> EAMlist; |
| 98 |
|
std::map<AtomType*, EAMAtomData> EAMMap; |
| 99 |
|
std::map<std::pair<AtomType*, AtomType*>, EAMInteractionData> MixingMap; |