"platforms/hip/tests/TestHipATMForce.cpp" did not exist on "68ef42c07833aa5a695ab62f79a79177e163bf46"
Commit 1ae5a332 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Include missing factor of 138.93548 (1/4*pi*epsilon0) in nonpolar energy expression:

parent 0094d14b
......@@ -84,7 +84,7 @@ void testSingleParticle() {
double tau = (1.0/forceField->getSoluteDielectric()-1.0/forceField->getSolventDielectric());
double bornEnergy = (-charge*charge/(8*PI_M*eps0))*tau/bornRadius;
double nonpolarEnergy = -gamma*tau*std::pow( radius/bornRadius, 3.0);
double nonpolarEnergy = -gamma*tau*138.935485*std::pow( radius/bornRadius, 3.0);
double expectedE = (bornEnergy+nonpolarEnergy);
double obtainedE = state.getPotentialEnergy();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment