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
fddfeecb
Commit
fddfeecb
authored
Jul 01, 2020
by
Peter Eastman
Browse files
Updated Python API for AmoebaVdwForce
parent
d925ed4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+9
-0
wrappers/python/src/swig_doxygen/swigInputConfig.py
wrappers/python/src/swig_doxygen/swigInputConfig.py
+4
-1
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
fddfeecb
...
@@ -4509,12 +4509,21 @@ class AmoebaVdwGenerator(object):
...
@@ -4509,12 +4509,21 @@ class AmoebaVdwGenerator(object):
def
createForce
(
self
,
sys
,
data
,
nonbondedMethod
,
nonbondedCutoff
,
args
):
def
createForce
(
self
,
sys
,
data
,
nonbondedMethod
,
nonbondedCutoff
,
args
):
potentialMap
=
{
'BUFFERED-14-7'
:
0
,
'LENNARD-JONES'
:
1
}
sigmaMap
=
{
'ARITHMETIC'
:
1
,
'GEOMETRIC'
:
1
,
'CUBIC-MEAN'
:
1
}
sigmaMap
=
{
'ARITHMETIC'
:
1
,
'GEOMETRIC'
:
1
,
'CUBIC-MEAN'
:
1
}
epsilonMap
=
{
'ARITHMETIC'
:
1
,
'GEOMETRIC'
:
1
,
'HARMONIC'
:
1
,
'W-H'
:
1
,
'HHG'
:
1
}
epsilonMap
=
{
'ARITHMETIC'
:
1
,
'GEOMETRIC'
:
1
,
'HARMONIC'
:
1
,
'W-H'
:
1
,
'HHG'
:
1
}
force
=
mm
.
AmoebaVdwForce
()
force
=
mm
.
AmoebaVdwForce
()
sys
.
addForce
(
force
)
sys
.
addForce
(
force
)
# Potential function
if
(
self
.
type
.
upper
()
in
potentialMap
):
force
.
setPotentialFunction
(
potentialMap
[
self
.
type
.
upper
()])
else
:
stringList
=
' '
.
join
(
str
(
x
)
for
x
in
potentialMap
.
keys
())
raise
ValueError
(
"AmoebaVdwGenerator: potential type %s not recognized; valid values are %s; using default."
%
(
self
.
type
,
stringList
))
# sigma and epsilon combining rules
# sigma and epsilon combining rules
if
(
'sigmaCombiningRule'
in
args
):
if
(
'sigmaCombiningRule'
in
args
):
...
...
wrappers/python/src/swig_doxygen/swigInputConfig.py
View file @
fddfeecb
...
@@ -325,10 +325,13 @@ UNITS = {
...
@@ -325,10 +325,13 @@ UNITS = {
(
"AmoebaVdwForce"
,
"getEpsilonCombiningRule"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getEpsilonCombiningRule"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getParticleExclusions"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getParticleExclusions"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getAlchemicalMethod"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getAlchemicalMethod"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getPotentialFunction"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getSoftcorePower"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getSoftcorePower"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getSoftcoreAlpha"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getSoftcoreAlpha"
)
:
(
None
,
()),
(
"AmoebaVdwForce"
,
"getCutoff"
)
:
(
'unit.nanometer'
,
()),
(
"AmoebaVdwForce"
,
"getCutoff"
)
:
(
'unit.nanometer'
,
()),
(
"AmoebaVdwForce"
,
"getParticleParameters"
)
:
(
None
,
(
None
,
'unit.nanometer'
,
'unit.kilojoule_per_mole'
,
None
,
None
)),
(
"AmoebaVdwForce"
,
"getParticleParameters"
)
:
(
None
,
(
None
,
'unit.nanometer'
,
'unit.kilojoule_per_mole'
,
None
,
None
,
None
)),
(
"AmoebaVdwForce"
,
"getParticleTypeParameters"
)
:
(
None
,
(
None
,
'unit.nanometer'
,
'unit.kilojoule_per_mole'
)),
(
"AmoebaVdwForce"
,
"getTypePairParameters"
)
:
(
None
,
(
None
,
None
,
None
,
'unit.nanometer'
,
'unit.kilojoule_per_mole'
)),
(
"AmoebaWcaDispersionForce"
,
"getParticleParameters"
)
:
(
None
,
(
'unit.nanometer'
,
'unit.kilojoule_per_mole'
)),
(
"AmoebaWcaDispersionForce"
,
"getParticleParameters"
)
:
(
None
,
(
'unit.nanometer'
,
'unit.kilojoule_per_mole'
)),
(
"AmoebaWcaDispersionForce"
,
"getAwater"
)
:
(
'1/(unit.nanometer*unit.nanometer*unit.nanometer)'
,()),
(
"AmoebaWcaDispersionForce"
,
"getAwater"
)
:
(
'1/(unit.nanometer*unit.nanometer*unit.nanometer)'
,()),
...
...
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