sarkas.tools.observables.Thermodynamics#

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

Thermodynamic functions.

Methods

Thermodynamics.__init__()

Thermodynamics.average_acf_slices_data()

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

Thermodynamics.average_slices_data()

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

Thermodynamics.calc_acf_slice_data([...])

Calculate the observable acf for each slice.

Thermodynamics.calc_k_data()

Calculate and save Fourier space data.

Thermodynamics.calc_nkt_slices_data()

Calculate n(k,t) for each slice.

Thermodynamics.calc_slices_data()

Calculate the observable for each slice.

Thermodynamics.calc_vkt_slices_data()

Calculate v(k,t) for each slice.

Thermodynamics.calculate_beta_simulation([...])

Calculate the inverse temperature by taking the mean of the temperature time series.

Thermodynamics.calculate_beta_slices([ensemble])

Calculate the inverse temperature by taking the mean of the temperature time series.

Thermodynamics.calculate_corr_times([slices])

Thermodynamics.calculate_heat_capacity_simulation([...])

Calculate the specific heat capacity from the fluctuations of the energy.

Thermodynamics.calculate_heat_capacity_slices([...])

Calculate the specific heat capacity from the fluctuations of the energy.

Thermodynamics.compute([calculate_acf])

Routine for computing the observable.

Thermodynamics.compute_from_rdf(rdf, potential)

Calculate the correlational energy and correlation pressure using sarkas.tools.observables.RadialDistributionFunction.compute_sum_rule_integrals() method.

Thermodynamics.compute_kt_data([nkt_flag, ...])

Calculate Time dependent Fourier space quantities.

Thermodynamics.copy_params(params)

Thermodynamics.create_dirs_filenames()

Create the directories and filenames where to save dataframes.

Thermodynamics.from_dict(input_dict)

Update attributes from input dictionary.

Thermodynamics.from_pickle()

Read the observable's info from the pickle file.

Thermodynamics.grab_sim_data([phase])

Grab the pandas dataframe from the saved csv file.

Thermodynamics.initialize_hdf()

Thermodynamics.integrate_normalized_acf_squared(...)

Calculate the normalized correlation time as given by

Thermodynamics.parse([acf_data])

Grab the pandas dataframe from the saved csv file.

Thermodynamics.parse_acf()

Thermodynamics.parse_k_data()

Read in the precomputed Fourier space data.

Thermodynamics.parse_kt_data([nkt_flag, ...])

Read in the precomputed time dependent Fourier space data.

Thermodynamics.plot([scaling, acf, figname, ...])

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

Thermodynamics.pretty_print_msg()

Create the message with the basic information of every observable

Thermodynamics.save_acf_hdf()

Thermodynamics.save_hdf()

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

Thermodynamics.save_pickle()

Save the observable's info into a pickle file.

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

Assign attributes from simulation's parameters.

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

Assign Observables attributes and copy the simulation's parameters.

Thermodynamics.setup_multirun_dirs()

Set the attributes postprocessing_dir and dump_dirs_list.

Thermodynamics.temp_energy_plot(process[, ...])

Plot Temperature and Energy as a function of time with their cumulative sum and average.

Thermodynamics.update_args(**kwargs)

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

Thermodynamics.update_finish()

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