Skip to content

Commit

Permalink
Merge pull request #1548 from glotzerlab/fix-virial-pressure-docs
Browse files Browse the repository at this point in the history
Fix virial pressure documentation.
  • Loading branch information
joaander committed May 12, 2023
2 parents a0494d3 + e059065 commit 55bcc52
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions hoomd/md/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def pressure(self):
.. math::
W_\\mathrm{isotropic} = & \\frac{1}{D} \\left(
W_\\mathrm{isotropic} = & \\left(
W_{\\mathrm{net},\\mathrm{additional}}^{xx}
+ W_{\\mathrm{net},\\mathrm{additional}}^{yy}
+ W_{\\mathrm{net},\\mathrm{additional}}^{zz} \\right) \\\\
+ & \\frac{1}{D} \\sum_{i \\in \\mathrm{filter}}
+ & \\sum_{i \\in \\mathrm{filter}}
\\left( W_\\mathrm{{net},i}^{xx}
+ W_\\mathrm{{net},i}^{yy}
+ W_\\mathrm{{net},i}^{zz}
Expand All @@ -106,14 +106,14 @@ def pressure_tensor(self):
(:math:`P^{xx}`, :math:`P^{xy}`, :math:`P^{xz}`, :math:`P^{yy}`,
:math:`P^{yz}`, :math:`P^{zz}`):
.. math::
.. math::
P^{kl} = \\frac{1}{V} \\left(
W_{\\mathrm{net},\\mathrm{additional}}^{kl}
+ \\sum_{i \\in \\mathrm{filter}} m_i
\\cdot v_i^k \\cdot v_i^l +
W_{\\mathrm{net},i}^{kl}
\\right),
P^{kl} = \\frac{1}{V} \\left(
W_{\\mathrm{net},\\mathrm{additional}}^{kl}
+ \\sum_{i \\in \\mathrm{filter}} m_i
\\cdot v_i^k \\cdot v_i^l +
W_{\\mathrm{net},i}^{kl}
\\right),
where the net virial terms are computed by `hoomd.md.Integrator` over
all of the forces in `hoomd.md.Integrator.forces`, :math:`v_i^k` is the
Expand Down

0 comments on commit 55bcc52

Please sign in to comment.