Skip to content

Commit 079b9b6

Browse files
authored
Merge pull request #185 from ChiahsinChu/ethresh
update doc and comment for `ethresh` in pme
2 parents 64c5fbc + 42c0672 commit 079b9b6

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

dmff/admp/pme.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(
6565
rc:
6666
float: cutoff distance
6767
ethresh:
68-
float: pme energy threshold
68+
float: (empirical) average relative error in the PME forces
6969
lmax:
7070
int: max L for multipoles
7171
lpol:
@@ -441,7 +441,7 @@ def setup_ewald_parameters(
441441
rc: float
442442
The cutoff distance, in nm
443443
ethresh: float
444-
Required energy precision, in kJ/mol
444+
(Empirical) average relative error in the PME forces
445445
box: ndarray, optional
446446
3*3 matrix, box size, a, b, c arranged in rows, used in openmm method
447447
spacing: float, optional

docs/admp/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ In `run.py`, when creating the potential function, several key parameters are no
112112
```python
113113
potentials = H.createPotential(pdb.topology, nonbondedCutoff=rc*angstrom, nonbondedMethod=CutoffPeriodic, ethresh=1e-4)
114114
```
115-
* `ethresh`: this is the energy threshold for PME
115+
* `ethresh`: the (empirical) average relative error in the PME forces, which is used to setup the size of the meshgrid of PME (see [openmm doc](http://docs.openmm.org/latest/userguide/theory/02_standard_forces.html#coulomb-interaction-with-particle-mesh-ewald) for more details).
116116
* `rc`: the cutoff distance. `rc`, `ethresh`, and `box` together, determine the $K_{max}$ and $\kappa$
117117
(please see [theory](../user_guide/theory.md)).
118118
Note that the `rc` variable in here is only used to determine the PME settings. The user has to make sure the `rc`
@@ -161,7 +161,7 @@ LastAxisTypeIndex = 6
161161

162162
* `rc`: cutoff distance in real space. Only used to determine the PME settings.
163163

164-
* `ethresh`: energy threshold for PME.
164+
* `ethresh`: (empirical) average relative error in the PME forces, which is used to setup the size of the meshgrid of PME (see [openmm doc](http://docs.openmm.org/latest/userguide/theory/02_standard_forces.html#coulomb-interaction-with-particle-mesh-ewald) for more details).
165165

166166
* `lmax`: max L for multipoles.
167167

docs/user_guide/4.2ADMPPmeForce.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ A few keywords in `createPotential` would impact the behavior of the function:
215215
settings.POL_COV = 2.0
216216
```
217217

218-
* `ethresh`: the accuracy of PME, used to setup the size of the meshgrid of PME.
218+
* `ethresh`: the (empirical) average relative error in the PME forces, which is used to setup the size of the meshgrid of PME (see [openmm doc](http://docs.openmm.org/latest/userguide/theory/02_standard_forces.html#coulomb-interaction-with-particle-mesh-ewald) for more details).
219219

220220
A typical `xml` file to define an ADMPDispPmeForce frontend is:
221221

@@ -255,8 +255,7 @@ generator_pme = H.getGenerators()[0] # if ADMPDispPmeForce is the First force no
255255
```
256256
The keyword `ethresh` in `createPotential` would impact the behavior of the function:
257257

258-
* `ethresh`: the accuracy of PME, used to setup the size of the meshgrid of PME.
259-
258+
* `ethresh`: the (empirical) average relative error in the PME forces, which is used to setup the size of the meshgrid of PME (see [openmm doc](http://docs.openmm.org/latest/userguide/theory/02_standard_forces.html#coulomb-interaction-with-particle-mesh-ewald) for more details).
260259

261260

262261
## 3. ADMPPmeGenerator Doc

docs/user_guide/4.3ADMPQeqForce.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ A few keywords in `createPotential` would impact the behavior of the function:
205205
* `const_list`: the atomic numbers of all residues with different constraints.
206206
* `const_vals`: the corresponding constraint valu on each residue.
207207

208-
* `ethresh`: the accuracy of PME, used to setup the size of the meshgrid of PME.
208+
* `ethresh`: the (empirical) average relative error in the PME forces, which is used to setup the size of the meshgrid of PME (see [openmm doc](http://docs.openmm.org/latest/userguide/theory/02_standard_forces.html#coulomb-interaction-with-particle-mesh-ewald) for more details).
209209
* `has_aux`: bool type, whether to intruduce auxilliary parameters, equilibrated atomic charges, etc.
210210

211211
## 3. ADMPQeqGenerator Doc

0 commit comments

Comments
 (0)