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
d0e168ad
Commit
d0e168ad
authored
Jan 20, 2015
by
peastman
Browse files
Merge pull request #789 from swails/fixgb
Fixgb
parents
8bd44206
91e353a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
57 deletions
+57
-57
wrappers/python/simtk/openmm/app/internal/customgbforces.py
wrappers/python/simtk/openmm/app/internal/customgbforces.py
+2
-2
wrappers/python/tests/systems/ala-ala-ala-implicit-forces/OBC2_NonPeriodic_Salt.xml
...ems/ala-ala-ala-implicit-forces/OBC2_NonPeriodic_Salt.xml
+33
-33
wrappers/python/tests/systems/alanine-dipeptide-implicit-forces/OBC2_NonPeriodic_Salt.xml
...anine-dipeptide-implicit-forces/OBC2_NonPeriodic_Salt.xml
+22
-22
No files found.
wrappers/python/simtk/openmm/app/internal/customgbforces.py
View file @
d0e168ad
...
...
@@ -217,7 +217,7 @@ def _createEnergyTerms(force, solventDielectric, soluteDielectric, SA, cutoff, k
"f=sqrt(r^2+B1*B2*exp(-r^2/(4*B1*B2)))"
+
params
,
CustomGBForce
.
ParticlePairNoExclusions
)
else
:
if
kappa
>
0
:
force
.
addEnergyTerm
(
"-138.935485*(1/soluteDielectric-kappa/solventDielectric)*q1*q2*(1/f-"
+
str
(
1
/
cutoff
)
+
");"
force
.
addEnergyTerm
(
"-138.935485*(1/soluteDielectric-
exp(-
kappa
*f)
/solventDielectric)*q1*q2*(1/f-"
+
str
(
1
/
cutoff
)
+
");"
"f=sqrt(r^2+B1*B2*exp(-r^2/(4*B1*B2)))"
+
params
,
CustomGBForce
.
ParticlePairNoExclusions
)
else
:
force
.
addEnergyTerm
(
"-138.935485*(1/soluteDielectric-1/solventDielectric)*q1*q2*(1/f-"
+
str
(
1
/
cutoff
)
+
");"
...
...
@@ -380,4 +380,4 @@ def convertParameters(params, gbmodel):
newparams
[
i
]
=
list
(
params
[
i
])
newparams
[
i
][
0
]
-=
offset
newparams
[
i
][
1
]
*=
newparams
[
i
][
0
]
return
newparams
\ No newline at end of file
return
newparams
wrappers/python/tests/systems/ala-ala-ala-implicit-forces/OBC2_NonPeriodic_Salt.xml
View file @
d0e168ad
...
...
@@ -6,38 +6,38 @@
<C
x=
"0"
y=
"0"
z=
"2"
/>
</PeriodicBoxVectors>
<Forces>
<Force
x=
"23
0.53816183034448"
y=
"161.56808931034723
"
z=
"5
7
.52
342867705611
"
/>
<Force
x=
"1
2.564077794922298"
y=
"-.47807572311680246"
z=
"-67.73089160911985
"
/>
<Force
x=
"-138.1
1146161319016"
y=
"-187.28762917098084
"
z=
"-12
8
.5
5946321637822
"
/>
<Force
x=
"-1
4.216667189461361"
y=
"-184.42361950033217
"
z=
"-
7
.7
55578386971408
"
/>
<Force
x=
"-5
1
.7
15805944708976"
y=
"-8.607643188725255"
z=
"189.75546331479697
"
/>
<Force
x=
"-9
2.82982967617171"
y=
"-37.94701798925213"
z=
"201.6270395366716
"
/>
<Force
x=
"25
4.05585203757227"
y=
"10.254599487982
06
3
"
z=
"45.
8494172596769
"
/>
<Force
x=
"-2
7.659651768165375"
y=
"8.348966087807838"
z=
"-142.57089821391565
"
/>
<Force
x=
"10
1.01881369689859"
y=
"-109.75517229560455"
z=
"-.2124479032227881
7"
/>
<Force
x=
"-2
1
.3
8037204037586"
y=
"22.86551289437265"
z=
"-92.96600655235835
"
/>
<Force
x=
"-
397.09125537412"
y=
"-424.17272961509434"
z=
"135.01295191731154
"
/>
<Force
x=
"1
56.04946355280902"
y=
"705.0998513932067"
z=
"-112.9041481108168
"
/>
<Force
x=
"3
06.5652214156939"
y=
"346.46968632209746"
z=
"-27.505218241078808
"
/>
<Force
x=
"-39
1
.7
5561856075"
y=
"-226.95233582000702"
z=
"83.27667931906632
"
/>
<Force
x=
"-206
7
.734
655394289
"
y=
"-1129.
4901474018056
"
z=
"-140.
062549
014711
46
"
/>
<Force
x=
"-19
1.13938275808238"
y=
"-18.6637422352650
05"
z=
"2
2.03099880659653
"
/>
<Force
x=
"-72
9.4196877368092
"
y=
"-242.
0
60
33981478328"
z=
"-550.7472953979611
"
/>
<Force
x=
"-1061.
6405049306088"
y=
"-16.04750142109850
2"
z=
"-835.69
02589805981
"
/>
<Force
x=
"-12.
191029759977653"
y=
"-71.33537155730633"
z=
"-67.96942675367183
"
/>
<Force
x=
"-3.
4285805496120787"
y=
"3.4221542613566953"
z=
"-83.54534249560267
"
/>
<Force
x=
"-5350
59.354506658"
y=
"-759427.0708915488"
z=
"-62607.30990893726
"
/>
<Force
x=
"-8
65.6928542682272"
y=
"-791.6607924296417"
z=
"-636.7355970320627
"
/>
<Force
x=
"-59134.
540453248046"
y=
"-11164.06852947624"
z=
"4084.1721748771993
"
/>
<Force
x=
"852
3.705742783686"
y=
"-5007.283077104953"
z=
"201.1341136301365
4"
/>
<Force
x=
"-9208
5.95982714288
"
y=
"-81874.1
344418939
6"
z=
"-3131.
044453507309
3"
/>
<Force
x=
"629671.
6843168879
"
y=
"832997.
032213837"
z=
"70286.08367161917
"
/>
<Force
x=
"13769
1.52277938166"
y=
"-29833.1218616508"
z=
"13271.79861725629
"
/>
<Force
x=
"-168
59.409597911006"
y=
"-20265.883709834423"
z=
"-2793.263778079010
5"
/>
<Force
x=
"-3533
1.66387798213"
y=
"19901.063774262533"
z=
"9356.077337288667
"
/>
<Force
x=
"-656679
5.1
522480175"
y=
"16253
89.908
741199"
z=
"-33396
49.74
6853593"
/>
<Force
x=
"89597
58.524878602"
y=
"469416.7061763106"
z=
"202234.18939046844
"
/>
<Force
x=
"-1344222.3
8
68171684"
y=
"172759
7.77
7500562"
z=
"312829
2
.1150764455"
/>
<Force
x=
"-108115
3.164
2807235"
y=
"-37655
40.08
3662639"
z=
"-1738
3.96051482133
"
/>
<Force
x=
"23
4.3570705217496"
y=
"163.74358064335448
"
z=
"5
8
.52
2749660942004
"
/>
<Force
x=
"1
1.176275670899656"
y=
".10336043410973161"
z=
"-67.8394884108773
"
/>
<Force
x=
"-138.1
8399426699852"
y=
"-188.63447670515973
"
z=
"-12
9
.5
4908723981578
"
/>
<Force
x=
"-1
5.57361985669769"
y=
"-186.45874523275336
"
z=
"-
6
.7
47109759041365
"
/>
<Force
x=
"-5
2
.7
674264281076"
y=
"-8.800529541266094"
z=
"189.15705938413362
"
/>
<Force
x=
"-9
3.31172512294934"
y=
"-38.325004897210775"
z=
"201.00706349297002
"
/>
<Force
x=
"25
6.65941343893945"
y=
"11.6023015143495
06"
z=
"45.
95001464126818
"
/>
<Force
x=
"-2
8.45807172055784"
y=
"8.808219398965122"
z=
"-143.27320686870036
"
/>
<Force
x=
"10
0.23553999999972"
y=
"-109.76252130988672"
z=
"-.587981960839975
7"
/>
<Force
x=
"-2
2
.3
3472537289542"
y=
"23.03629689095471"
z=
"-93.47432259239747
"
/>
<Force
x=
"-
401.2968446685536"
y=
"-430.4147340096256"
z=
"135.16515833820998
"
/>
<Force
x=
"1
60.8753607696059"
y=
"710.1318948502379"
z=
"-113.33155251450333
"
/>
<Force
x=
"3
12.07346116178763"
y=
"351.68193607795683"
z=
"-26.997287485463573
"
/>
<Force
x=
"-39
5
.7
366671447344"
y=
"-228.51147888641327"
z=
"83.07996301047257
"
/>
<Force
x=
"-206
8
.7
1
34
151599125
"
y=
"-1129.
9540145893047
"
z=
"-140.
265674
014711"
/>
<Force
x=
"-19
2.02003613943083"
y=
"-19.583507707677
05
7
"
z=
"2
1.378435711503514
"
/>
<Force
x=
"-72
7.5540871508714
"
y=
"-242.
9
60
21164095555"
z=
"-548.7788505737428
"
/>
<Force
x=
"-1061.
9428730946715"
y=
"-16.51072773945779
2"
z=
"-835.69
65456016912
"
/>
<Force
x=
"-12.
590897771452802"
y=
"-71.80267960173995"
z=
"-67.66338694349132
"
/>
<Force
x=
"-3.
820990827932391"
y=
"2.5665939586223203"
z=
"-83.27820687548548
"
/>
<Force
x=
"-5350
67.0613548026"
y=
"-759426.2200156943"
z=
"-62610.62216479664
"
/>
<Force
x=
"-8
59.4142898151022"
y=
"-789.8686781718292"
z=
"-632.8392957625315
"
/>
<Force
x=
"-59134.
92697363379"
y=
"-11169.742601741866"
z=
"4087.8435921135274
"
/>
<Force
x=
"852
2.153260178706"
y=
"-5005.082866533664"
z=
"199.4533389414158
4"
/>
<Force
x=
"-9208
6.06708689325
"
y=
"-81874.1
681905206
6"
z=
"-3131.
277356034164
3"
/>
<Force
x=
"629671.
515402093
"
y=
"832997.
2817255558"
z=
"70285.41316228079
"
/>
<Force
x=
"13769
4.26325789728"
y=
"-29834.67703743205"
z=
"13273.511385810978
"
/>
<Force
x=
"-168
60.23015455163"
y=
"-20265.776745723095"
z=
"-2792.959823000885
5"
/>
<Force
x=
"-3533
2.02002574824"
y=
"19901.26715484725"
z=
"9355.684799933244
"
/>
<Force
x=
"-656679
3.6
522480175"
y=
"16253
90.283
741199"
z=
"-33396
50.99
6853593"
/>
<Force
x=
"89597
62.888403993"
y=
"469418.38846543414"
z=
"202231.72648458465
"
/>
<Force
x=
"-1344222.
6
368171684"
y=
"172759
4.02
7500562"
z=
"312829
0
.1150764455"
/>
<Force
x=
"-108115
5.039
2807235"
y=
"-37655
36.83
3662639"
z=
"-1738
1.097965993205
"
/>
</Forces>
</State>
wrappers/python/tests/systems/alanine-dipeptide-implicit-forces/OBC2_NonPeriodic_Salt.xml
View file @
d0e168ad
...
...
@@ -6,27 +6,27 @@
<C
x=
"0"
y=
"0"
z=
"2"
/>
</PeriodicBoxVectors>
<Forces>
<Force
x=
"118.
3535195440054"
y=
"35.969449162483215"
z=
"-.281414270401001
"
/>
<Force
x=
"31
4
.4
263282418251"
y=
"344.44179029762745"
z=
"-.434397476259619
"
/>
<Force
x=
"-1.
4066988714039326"
y=
"-49.76428470760584"
z=
"-32.37674808874726
"
/>
<Force
x=
"-.
40957896783947945"
y=
"-49.3
97793
389856815"
z=
"31.823710206896067
"
/>
<Force
x=
"-65
7.3909059762955"
y=
"-38.007091015577316"
z=
"141.8415627987124
"
/>
<Force
x=
"-49
3.7057650089264"
y=
"-643.0512407422066"
z=
"398.3075271293055
"
/>
<Force
x=
"
7.296756054041907"
y=
"-855.5627281765919"
z=
"-257.9519661345
98
5
"
/>
<Force
x=
"-53.
50385844707489"
y=
"-24.334915697574615"
z=
"-1.115509501192718
7"
/>
<Force
x=
"429.
9477740279399"
y=
"379.88140909792855"
z=
"60.92471059667878
"
/>
<Force
x=
"-2
6.743043139576912"
y=
"21.195145785808563"
z=
"59.631179569754
75"
/>
<Force
x=
"
5.737775317160413"
y=
"-236.0452548211906"
z=
"-302.6426021682564
"
/>
<Force
x=
"23.
5177399627
86
4
36"
y=
"-16.
610735941678286"
z=
"-63.854551303666085
"
/>
<Force
x=
"9
4.2509424071759"
y=
"-182.99365315027535"
z=
"-125.87754732347094
"
/>
<Force
x=
"42
4.38538555800915"
y=
"311.03262597089633"
z=
"-349.64496991224587
"
/>
<Force
x=
"1
77.18182879686356"
y=
"-78.61917002499104
"
z=
"287.
9
51
0
353
2331996
"
/>
<Force
x=
"-44
2.6554002761841
"
y=
"158.
275
99
7
16
18652
3"
z=
"2.
4879631453659385
"
/>
<Force
x=
"-21
1.27339106053114"
y=
"403.45306001883"
z=
"150.30480124405585
"
/>
<Force
x=
"-3
7.10933029651642"
y=
"-140.19635248184204"
z=
"3.247371744597330
7"
/>
<Force
x=
"24
9.92661701142788"
y=
"200.21128232497722"
z=
"-1.3900556145235896
"
/>
<Force
x=
"83.
43381077051163"
y=
"328.46902453899384"
z=
"-.4314945936203003
"
/>
<Force
x=
"-
2.0295280162245035"
y=
"66.29071056842804"
z=
"10.737368497997522
"
/>
<Force
x=
"-2.
2310355845838785"
y=
"65.36275541782379"
z=
"-11.255987975746393
"
/>
<Force
x=
"118.
2953449901612"
y=
"36.343145614432956"
z=
"-.2760743796825409
"
/>
<Force
x=
"31
6
.4
7170598486133"
y=
"344.41246994526983"
z=
"-.474158710840052
"
/>
<Force
x=
"-1.
1452295848655893"
y=
"-49.32846625160302"
z=
"-32.51577624613921
"
/>
<Force
x=
"-.
15215707509996435"
y=
"-48.9664037
97
3
793
85"
z=
"31.977810471603078
"
/>
<Force
x=
"-65
9.8391488363056"
y=
"-34.25289463832678"
z=
"141.6053877604151
"
/>
<Force
x=
"-49
2.1452378865152"
y=
"-643.9370658369722"
z=
"398.0203066029868
"
/>
<Force
x=
"
9.674261573019749"
y=
"-855.2619230132133"
z=
"-258.50954801446
98
3
"
/>
<Force
x=
"-53.
29932832147381"
y=
"-24.555571139182803"
z=
"-1.079149553912557
7"
/>
<Force
x=
"429.
60542358755004"
y=
"379.81191734374033"
z=
"60.92130527728226
"
/>
<Force
x=
"-2
7.173569955981527"
y=
"21.689534176871305"
z=
"59.17215996718
75
7
"
/>
<Force
x=
"
4.18091842146913"
y=
"-236.21459904745598"
z=
"-301.5398263531279
"
/>
<Force
x=
"23.
3310
8636
95342
"
y=
"-16.
30219308014164"
z=
"-63.19829762180966
"
/>
<Force
x=
"9
3.88391935584424"
y=
"-182.29528079179096"
z=
"-125.36744363675353
"
/>
<Force
x=
"42
3.8151923337569"
y=
"311.348634051518"
z=
"-349.2582450324231
"
/>
<Force
x=
"1
80.51444825564784"
y=
"-81.82558540376868
"
z=
"287.
36901
51
5
353
475
"
/>
<Force
x=
"-44
3.77023652557386
"
y=
"158.
6472266
99
8
16
0
3"
z=
"2.
3268529288540947
"
/>
<Force
x=
"-21
4.16176598832385"
y=
"403.8324009485776"
z=
"149.991991097801
"
/>
<Force
x=
"-3
6.687251654326985"
y=
"-140.864637629052"
z=
"3.17255631028943
7"
/>
<Force
x=
"24
8.88215161128238"
y=
"199.22535600189227"
z=
"-1.404683406707714
"
/>
<Force
x=
"83.
8911339766326"
y=
"327.62190308224444"
z=
"-.4253474473953247
"
/>
<Force
x=
"-
1.9860850420565725"
y=
"65.89886742977791"
z=
"10.47831678198796
"
/>
<Force
x=
"-2.
185809239444268"
y=
"64.97288590817146"
z=
"-10.98718023108464
"
/>
</Forces>
</State>
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