1 #ifndef OPENMM_GBSAOBCFORCEFIELD_H_
2 #define OPENMM_GBSAOBCFORCEFIELD_H_
37 #include "internal/windowsExport.h"
66 CutoffNonPeriodic = 1,
81 return particles.size();
92 int addParticle(
double charge,
double radius,
double scalingFactor);
101 void getParticleParameters(
int index,
double& charge,
double& radius,
double& scalingFactor)
const;
110 void setParticleParameters(
int index,
double charge,
double radius,
double scalingFactor);
115 return solventDielectric;
121 solventDielectric = dielectric;
127 return soluteDielectric;
133 soluteDielectric = dielectric;
138 NonbondedMethod getNonbondedMethod()
const;
142 void setNonbondedMethod(NonbondedMethod method);
149 double getCutoffDistance()
const;
156 void setCutoffDistance(
double distance);
168 void updateParametersInContext(
Context& context);
173 NonbondedMethod nonbondedMethod;
174 double cutoffDistance, solventDielectric, soluteDielectric;
175 std::vector<ParticleInfo> particles;
182 class GBSAOBCForce::ParticleInfo {
184 double charge, radius, scalingFactor;
186 charge = radius = scalingFactor = 0.0;
188 ParticleInfo(
double charge,
double radius,
double scalingFactor) :
189 charge(charge), radius(radius), scalingFactor(scalingFactor) {