Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chazeon authored Oct 17, 2023
1 parent 91f7634 commit 6bfbaa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cij/core/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def primary_velocities(self) -> numpy.ndarray:
function of temperature and volume.
.. math::
v_\\text{p} = \\sqrt{\\frac{K_\\text{VRH} + 3/4 \, G_\\text{VRH} }{\\rho}}
v_\\text{p} = \\sqrt{\\frac{K_\\text{VRH} + 4/3 \, G_\\text{VRH} }{\\rho}}
'''
e = units.Quantity((self.bulk_modulus_voigt_reuss_hill + 4 / 3 * self.shear_modulus_voigt_reuss_hill) * self.v_array, units.rydberg).to(units.kg * units.km ** 2 / units.s ** 2).magnitude
return numpy.sqrt(e / self.mass)
Expand Down Expand Up @@ -490,7 +490,7 @@ def primary_velocities(self) -> numpy.ndarray:
function of temperature and pressure.
.. math::
v_\\text{p} = \\sqrt{\\frac{K_\\text{VRH} + 3/4 \, G_\\text{VRH} }{\\rho}}
v_\\text{p} = \\sqrt{\\frac{K_\\text{VRH} + 4/3 \, G_\\text{VRH} }{\\rho}}
'''
return self.v2p(self.calculator.volume_base.primary_velocities)

Expand Down

0 comments on commit 6bfbaa4

Please sign in to comment.