sarkas.tools.observables.VelocityDistribution.compute_moments
sarkas.tools.observables.VelocityDistribution.compute_moments#
- VelocityDistribution.compute_moments(parse_data=False, vel_raw=None, time=None)[source]#
Calculate and save moments of the distribution.
- Parameters
parse_data (bool) – Flag for reading data. Default = False. If False, must pass
vel_raw
andtime
. If True it will parse data from simulations dumps.vel_raw (ndarray, optional) – Container of particles velocity at each time step.
time (ndarray, optional) – Time array.