sarkas.tools.observables.HeatFlux#

class sarkas.tools.observables.HeatFlux[source]#

Heat Flux.

Methods

HeatFlux.__init__()

HeatFlux.average_acf_slices_data()

Calculate the average and standard deviation of the observable autocorrelation function from the slices dataframe.

HeatFlux.average_slices_data()

Calculate the average and standard deviation of the observable from the slices dataframe.

HeatFlux.calc_acf_slices_data([...])

Calculate the observable acf for each slice.

HeatFlux.calc_k_data()

Calculate and save Fourier space data.

HeatFlux.calc_nkt_slices_data()

Calculate n(k,t) for each slice.

HeatFlux.calc_slices_data()

Calculate the observable for each slice.

HeatFlux.calc_vkt_slices_data()

Calculate v(k,t) for each slice.

HeatFlux.calculate_corr_times([slices])

HeatFlux.compute([calculate_acf])

Routine for computing the observable.

HeatFlux.compute_acf([equal_number_time_samples])

Routine for computing the observable's autocorrelation function.

HeatFlux.compute_kt_data([nkt_flag, vkt_flag])

Calculate Time dependent Fourier space quantities.

HeatFlux.copy_params(params)

HeatFlux.create_dirs_filenames()

Create the directories and filenames where to save dataframes.

HeatFlux.from_dict(input_dict)

Update attributes from input dictionary.

HeatFlux.from_pickle()

Read the observable's info from the pickle file.

HeatFlux.grab_sim_data([pva])

Read in particles data into one large array.

HeatFlux.initialize_hdf()

HeatFlux.integrate_normalized_acf_squared(...)

Calculate the normalized correlation time as given by

HeatFlux.parse([acf_data])

Grab the pandas dataframe from the saved csv file.

HeatFlux.parse_acf()

HeatFlux.parse_k_data()

Read in the precomputed Fourier space data.

HeatFlux.parse_kt_data([nkt_flag, vkt_flag])

Read in the precomputed time dependent Fourier space data.

HeatFlux.plot([scaling, acf, figname, show])

Plot the observable by calling the pandas.DataFrame.plot() function and save the figure.

HeatFlux.pretty_print_msg()

Create the message with the basic information of every observable

HeatFlux.save_acf_hdf()

HeatFlux.save_hdf()

HeatFlux.save_kt_hdf([nkt_flag, vkt_flag])

Save the \(n(\mathbf{k},t)\) and/or \(\mathbf{v}(\mathbf{k},t)\) data of each slice to disk.

HeatFlux.save_pickle()

Save the observable's info into a pickle file.

HeatFlux.setup(params[, phase, no_slices])

Assign attributes from simulation's parameters.

HeatFlux.setup_init(params[, phase, ...])

Assign Observables attributes and copy the simulation's parameters.

HeatFlux.setup_multirun_dirs()

Set the attributes postprocessing_dir and dump_dirs_list.

HeatFlux.update_args(**kwargs)

Update observable specific attributes and call update_finish() to save info.

HeatFlux.update_finish()

Update the slice_steps, CCF's and DSF's attributes, and save pickle file with observable's info.