Skip to content

Commit 8bbfd19

Browse files
authored
Merge pull request #2138 from glotzerlab/typo-n-particles
Fix typo in docs
2 parents 5f596a5 + 542cf51 commit 8bbfd19

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

hoomd/hpmc/external/external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def energy(self):
7676
7777
.. math::
7878
79-
U = \\sum_{i=0}^\\mathrm{N_particles-1}
79+
U = \\sum_{i=0}^{N_\\mathrm{particles}-1}
8080
U_{\\mathrm{external},i}
8181
8282
See `hoomd.hpmc.integrate` for the full expression which includes

hoomd/hpmc/integrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
.. math::
158158
159159
U_\mathrm{external} =
160-
\sum_{i=0}^\mathrm{N_particles-1} U_{\mathrm{external},i}(\vec{r}_i,
160+
\sum_{i=0}^\mathrm{N_{particles}-1} U_{\mathrm{external},i}(\vec{r}_i,
161161
\mathbf{q}_i)
162162
163163
Potential classes in `hoomd.hpmc.pair` evaluate

hoomd/hpmc/pair/pair.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def energy(self):
8383
8484
.. math::
8585
86-
U = \\sum_{i=0}^\\mathrm{N_particles-1}
87-
\\sum_{j=i+1}^\\mathrm{N_particles-1}
86+
U = \\sum_{i=0}^{N_\\mathrm{particles}-1}
87+
\\sum_{j=i+1}^{N_\\mathrm{particles}-1}
8888
U_{\\mathrm{pair},ij}
8989
9090
See `hoomd.hpmc.integrate` for the full expression which includes

hoomd/md/external/wall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
.. math::
88
9-
U_\mathrm{wall} = \sum_{i=0}^{\mathrm{N_particles-1}}
9+
U_\mathrm{wall} = \sum_{i=0}^{N_\mathrm{particles}-1}
1010
\sum_{w \in walls} U_w(d_i),
1111
1212
where :math:`d_i` is the signed distance between particle :math:`i` and the wall

hoomd/md/integrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def linear_momentum(self):
379379
380380
.. math::
381381
382-
\\vec{p} = \\sum_{i=0}^\\mathrm{N_particles-1} m_i \\vec{v}_i
382+
\\vec{p} = \\sum_{i=0}^{N_\\mathrm{particles}-1} m_i \\vec{v}_i
383383
"""
384384
v = self._cpp_obj.computeLinearMomentum()
385385
return (v.x, v.y, v.z)

hoomd/md/many_body.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
.. math::
88
9-
U_\mathrm{many-body} = \frac{1}{2} \sum_{i=0}^\mathrm{N_particles-1}
9+
U_\mathrm{many-body} = \frac{1}{2} \sum_{i=0}^{N_\mathrm{particles}-1}
1010
\sum_{j \ne i}
1111
\sum_{j \ne k} U(\vec{r}_{ij}, \vec{r}_{ik})
1212

hoomd/md/pair/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
.. math::
88
9-
U_\mathrm{pair,total} = \frac{1}{2} \sum_{i=0}^\mathrm{N_particles-1}
9+
U_\mathrm{pair,total} = \frac{1}{2} \sum_{i=0}^{N_\mathrm{particles}-1}
1010
\sum_{j \ne i, (i,j) \notin \mathrm{exclusions}}
1111
U_\mathrm{pair}(r_{ij})
1212

hoomd/md/pair/aniso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
.. math::
88
9-
U_\mathrm{pair,total} = \frac{1}{2} \sum_{i=0}^\mathrm{N_particles-1}
9+
U_\mathrm{pair,total} = \frac{1}{2} \sum_{i=0}^{N_\mathrm{particles}-1}
1010
\sum_{j \ne i, (i,j) \notin \mathrm{exclusions}}
1111
U_\mathrm{pair}(r_{ij}, \mathbf{q}_i, \mathbf{q}_j)
1212

0 commit comments

Comments
 (0)