Skip to content

Commit

Permalink
Add and update viscosity docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xhgchen committed Aug 25, 2023
1 parent b478c4b commit f57478e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ API Documentation
:caption: API Reference

api/velocityautocorr
api/viscosity
5 changes: 5 additions & 0 deletions docs/source/api/viscosity.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Viscosity
=========

.. automodule:: transport_analysis.viscosity
:members:
12 changes: 8 additions & 4 deletions transport_analysis/viscosity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
Viscosity --- :mod:`transport_analysis.analysis.viscosity`
==========================================================
This module offers a class for the lightweight computation of
viscosity via the Einstein-Helfand method.
This module offers a class for the lightweight computation of shear
viscosity via the Einstein-Helfand method. It outputs the "viscosity
function," the product of viscosity and time as a function of time, from
which the slope is taken to calculate the shear viscosity. This is
described in eq. 5 of E M Kirova and G E Norman 2015 J. Phys.: Conf.
Ser. 653 012106.
"""
from typing import TYPE_CHECKING
Expand All @@ -21,8 +25,8 @@
class ViscosityHelfand(AnalysisBase):
"""
Class to calculate viscosity using the Einstein-Helfand approach.
Note that the slope of the viscosity function must be taken to obtain the
viscosity.
Note that the slope of the viscosity function, the product of viscosity
and time as a function of time, must be taken to obtain the viscosity.
Parameters
----------
Expand Down

0 comments on commit f57478e

Please sign in to comment.