Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
0de32856
Commit
0de32856
authored
Feb 27, 2019
by
tic20
Browse files
Fixed bug in _mbondi_radii()
parent
74f6ea57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
41 deletions
+2
-41
wrappers/python/simtk/openmm/app/internal/customgbforces.py
wrappers/python/simtk/openmm/app/internal/customgbforces.py
+2
-41
No files found.
wrappers/python/simtk/openmm/app/internal/customgbforces.py
View file @
0de32856
...
...
@@ -250,7 +250,6 @@ def _bondi_radii(topology):
E
.
sulfur
:
1.8
,
E
.
chlorine
:
1.5
,
}
natoms
=
topology
.
getNumAtoms
()
radii
=
numpy
.
empty
(
topology
.
getNumAtoms
(),
numpy
.
double
)
for
i
,
atom
in
enumerate
(
topology
.
atoms
()):
radii
[
i
]
=
element_to_radius
.
get
(
atom
.
element
,
default_radius
)
...
...
@@ -287,6 +286,7 @@ def _mbondi_radii(topology, all_bonds = None):
elif
element
is
E
.
carbon
:
radii
[
i
]
=
1.7
# All other elements have fixed radii for all types/partners
else
:
radii
[
i
]
=
element_to_const_radius
.
get
(
element
,
default_radius
)
return
radii
# converted to nanometers above
...
...
@@ -833,45 +833,6 @@ class GBSAGBn2Force(GBSAGBnForce):
def
__init__
(
self
,
solventDielectric
=
78.5
,
soluteDielectric
=
1
,
SA
=
None
,
cutoff
=
None
,
kappa
=
0.0
):
GBSAGBnForce
.
__init__
(
self
,
solventDielectric
,
soluteDielectric
,
SA
,
cutoff
,
kappa
)
# @staticmethod
# def getStandardParameters(topology):
# """ Gets list of standard parameters for this GB model based on an input Topology
#
# Parameters
# ----------
# topology : simtk.openmm.app.Topology
# Topology of the system to get parameters for
#
# Returns
# -------
# list of float
# List of all parameters needed for this GB model. These can be passed
# to addParticle or setParticleParameters after the charge is inserted
# at the beginning of the list
#
# """
# import numpy
# natoms = topology.getNumAtoms()
# radii = numpy.empty((6,natoms), numpy.double)
# radii[:,0] = [[x/10] for x in _mbondi3_radii(topology)]
# for i, atom in enumerate(topology.atoms()):
# radii[i,1] = _screen_parameter(atom)[2]
# e = atom.element
# if e in (E.hydrogen, E.deuterium):
# radii[i, 2:]= [0.788440, 0.798699, 0.437334]
# elif atom.element is E.carbon:
# radii[i].extend([0.733756, 0.506378, 0.205844])
# elif atom.element is E.nitrogen:
# radii[i].extend([0.503364, 0.316828, 0.192915])
# elif atom.element is E.oxygen:
# radii[i].extend([0.867814, 0.876635, 0.387882])
# elif atom.element is E.sulfur:
# radii[i].extend([0.867814, 0.876635, 0.387882])
# else:
# radii[i].extend([0.8, 4.85, 0.5])
# return radii
_atom_params
=
{
E
.
hydrogen
:
numpy
.
array
([
0.788440
,
0.798699
,
0.437334
]),
E
.
deuterium
:
numpy
.
array
([
0.788440
,
0.798699
,
0.437334
]),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment