| 51 |
|
|
| 52 |
|
namespace OpenMD { |
| 53 |
|
|
| 54 |
< |
LJ::LJ() : name_("LJ"), initialized_(false), forceField_(NULL) {} |
| 54 |
> |
LJ::LJ() : initialized_(false), forceField_(NULL), name_("LJ") {} |
| 55 |
|
|
| 56 |
|
RealType LJ::getSigma(AtomType* atomType1, AtomType* atomType2) { |
| 57 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
void LJ::addType(AtomType* atomType){ |
| 138 |
– |
LennardJonesAdapter lja1 = LennardJonesAdapter(atomType); |
| 139 |
– |
|
| 140 |
– |
RealType sigma1 = lja1.getSigma(); |
| 141 |
– |
RealType epsilon1 = lja1.getEpsilon(); |
| 138 |
|
|
| 139 |
|
// add it to the map: |
| 140 |
|
int atid = atomType->getIdent(); |
| 176 |
|
} |
| 177 |
|
} |
| 178 |
|
|
| 179 |
< |
void LJ::addExplicitInteraction(AtomType* atype1, AtomType* atype2, RealType sigma, RealType epsilon){ |
| 179 |
> |
void LJ::addExplicitInteraction(AtomType* atype1, AtomType* atype2, |
| 180 |
> |
RealType sigma, RealType epsilon){ |
| 181 |
|
|
| 182 |
|
LJInteractionData mixer; |
| 183 |
|
mixer.sigma = sigma; |