sarkas.tools.observables.VelocityAutoCorrelationFunction
sarkas.tools.observables.VelocityAutoCorrelationFunction#
- class sarkas.tools.observables.VelocityAutoCorrelationFunction[source]#
Velocity Auto-correlation function.
Methods
Calculate the average and standard deviation of the observable autocorrelation function from the slices dataframe.
Calculate the observable acf for each slice.
Calculate and save Fourier space data.
Calculate n(k,t) for each slice.
Calculate v(k,t) for each slice.
Calculate the velocity autocorrelation function of each species and in each direction.
Routine for computing the observable.
Routine for computing the observable's autocorrelation function.
Calculate Time dependent Fourier space quantities.
Create the directories and filenames where to save dataframes.
Update attributes from input dictionary.
Read the observable's info from the pickle file.
Grab the data from simulation dumps.
VelocityAutoCorrelationFunction.integrate_normalized_acf_squared(...)Calculate the normalized correlation time as given by
VelocityAutoCorrelationFunction.parse([acf_data])Grab the pandas dataframe from the saved csv file.
Read in the precomputed Fourier space data.
Read in the precomputed time dependent Fourier space data.
Plot the observable by calling the pandas.DataFrame.plot() function and save the figure.
Create the message with the basic information of every observable
VelocityAutoCorrelationFunction.save_acf_slices_data_to_hdf(...)Store ACF data of slice isl into a hierarchical dataframe.
Save the \(n(\mathbf{k},t)\) and/or \(\mathbf{v}(\mathbf{k},t)\) data of each slice to disk.
Save the observable's info into a pickle file.
VelocityAutoCorrelationFunction.select_random_indices([...])Randomly select a given number of indices that indicate the particles to be used to average the VACF.
Assign attributes from simulation's parameters.
Assign Observables attributes and copy the simulation's parameters.
Set the attributes postprocessing_dir and dump_dirs_list.
Update observable specific attributes and call
update_finish()to save info.Update the
slice_steps, CCF's and DSF's attributes, and save pickle file with observable's info.