class OEZap
This class represents OEZap
OEZap() OEZap(const OEZap &rhs)
Default and copy constructors.
OEZap &operator=(const OEZap &rhs)
Assignment operator
bool CalcAtomPotentials(float *pot)
Calculates the atom potentials and fills the float array with their values. The float array should be of length N, where N is the number of atoms.
bool CalcForces(float *forces)
Calculates the forces on the atoms and fills the float array with the values of their x, y, and z components. The float array should be of length 3N, where N is the number of atoms.
bool CalcPotentialGrid(OESystem::OEScalarGrid &grid)
Calculates the potential grid and will the OEScalarGrid with the values.
float CalcSolvationEnergy()
Returns the solvation energy of the molecule that has been set. This result does not include an area term.
void ClearFocusTarget()
Clears the target setting for focussing.
float GetBoundarySpacing() const
Returns the boundary spacing setting, which is the amount of distance between the molecule and the edge of the grid. The default setting is 4.0.
unsigned int GetDielectricModel() const
Returns an int representing the dielectric model being used. The two available models are OEZapDielectricModel::Gaussian and OEZapDielectricModel::Molecular.
const OEChem::OEMolBase &GetFocusTarget() const
Returns a reference to the molecule that has been set as the focus target.
float GetGridSpacing() const
Returns the setting for the grid spacing. The default value is 0.5.
float GetInnerDielectric() const
Returns the setting for the internal dielectric constant. The default value is 1.0.
int GetIterations() const
Returns the maximum number of iterations allowed for the zap calculation. The default value is 10.
const OEChem::OEMolBase &GetMolecule() const
Returns a reference to the molecule that has been set to Zap.
float GetOuterDielectric() const
Returns the setting for the outer dielectric constant. The default value is 80.0.
float GetProbeRadius() const
Returns the setting for the probe radius. The default value is 1.4.
float GetSaltConcentration() const
Returns the setting for the salt concentration. The default value is 0.0.
bool IsFocusTargetSet(const OEChem::OEMolBase &mol)
Returns a bool for whether the focus target is currently set. See the section of Focussing for more information.
bool SetBoundarySpacing(float spacing)
Sets the boundary spacing, which is the amount of distance between the molecule and the edge of the grid. The default setting is 4.0.
bool SetDielectricModel(unsigned int model)
Sets the dielectric model. The two available models are OEZapDielectricModel::Gaussian and OEZapDielectricModel::Molecular. The default is the Gaussian model.
Rather than setting the grid spacing, the acceptable error may be set instead using this method. The default value is set to 0.0, which means that the grid spacing is set explicitly.
bool SetFocusTarget(const OEChem::OEMolBase &mol)
Sets the focus target. See the section of Focussing for more information.
bool SetGridSpacing(float spacing)
Sets the grid spacing. The default value is 0.5.
bool SetInnerDielectric(float epsin)
Sets the internal dielectric constant. The default value is 1.0.
bool SetIterations(int iters)
Sets the maximum number of iterations allowed for the zap calculation. The default value is 10
bool SetMolecule(const OEChem::OEMolBase &mol)
Sets the molecule to Zap. Partial charges, 3-D coordinates, and radii need to be set to the molecule before the molecule is set to Zap.
bool SetOuterDielectric(float epsout)
Sets the external dielectric constant. The default value is 80.0.
bool SetProbeRadius(float radius)
Sets the probe radius, the default value is 1.4.
bool SetSaltConcentration(float conc)
Sets the salt concentration. The default value is 0.0.