sarkas.tools.transport.Viscosity.compute#

Viscosity.compute(observable, plot=True, display_plot=False)[source]#

Calculate the transport coefficient from the Green-Kubo formula.

Parameters
  • observable (sarkas.tools.observables.PressureTensor) – Observable object containing the ACF whose time integral leads to the viscsosity coefficients.

  • plot (bool, optional) – Flag for making the dual plot of the ACF and transport coefficient. Default = True.

  • display_plot (bool, optional) – Flag for displaying the plot if using the IPython. Default = False