sarkas.tools.transport.Diffusion.compute#

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

Calculate the transport coefficient from the Green-Kubo formula.

Parameters
  • observable (sarkas.tools.observables.VelocityAutoCorrelationFunction) – Observable object containing the ACF whose time integral leads to the self diffusion coefficient.

  • 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.