| 51 |
|
FluctuatingChargeNVT::FluctuatingChargeNVT(SimInfo* info) : |
| 52 |
|
FluctuatingChargePropagator(info), chiTolerance_ (1e-6), |
| 53 |
|
maxIterNum_(4), thermo(info), |
| 54 |
< |
snap(info->getSnapshotManager()->getCurrentSnapshot()) { |
| 54 |
> |
snap(info->getSnapshotManager()->getCurrentSnapshot()) { |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
void FluctuatingChargeNVT::initialize() { |
| 123 |
|
cfrc = atom->getFlucQFrc(); |
| 124 |
|
cmass = atom->getChargeMass(); |
| 125 |
|
|
| 126 |
– |
cerr << cpos << "\t" << cvel << "\t" << cfrc << "\t" << instTemp << "\t" <<chi << "\t" << integralOfChidt << "\n"; |
| 126 |
|
// velocity half step |
| 127 |
|
cvel += dt2_ * cfrc / cmass - dt2_*chi*cvel; |
| 128 |
|
// position whole step |