This module calculates the autocorrelation of the off-diagonal elements of
the stess tensor :
By normalisation with the particle number , the result remains
finite in the thermodynamic limit. The stress tensor is obtained from
halmd.observables.thermodynamics.stress_tensor().
The shear viscosity is found from this autocorrelation via the
Green–Kubo relation
Note
The module returns the sum over all off-diagonal elements,
, analogously to
halmd.observables.dynamics.mean_square_displacement.
Construct stress tensor autocorrelation function.
This module implements a halmd.observables.dynamics.correlation module.
Parameters: |
|
---|
Acquire stress tensor
Returns: | Stress tensor sample |
---|
Correlate two stress tensor samples.
Parameters: |
|
---|---|
Returns: | stress tensor autocorrelation function between two samples. |
Module description.
Construct file writer.
Parameters: |
|
---|---|
Returns: | file writer as returned by file:writer(). |
The argument location specifies a path in a structured file format like H5MD given as a table of strings. It defaults to {"dynamics", self.label, "stress_tensor_autocorrelation"}.