fluidsim.base.output.spectra
Spectra
Provides:
- class fluidsim.base.output.spectra.MoviesSpectra(output, spectra)[source]
Bases:
MoviesBase1D
- _name_attr_path = 'path_file2D'
- _half_key = 'spectrum2D_'
- _key_axis = 'khE'
- property path
- _init_ani_times(tmin, tmax, dt_equations)[source]
Initialization of the variable ani_times for one animation.
- init_animation(*args, **kwargs)[source]
Initializes animated figure.
- get_field_to_plot(time, key=None)[source]
Once a saved file is loaded, this selects the field and mpi-gathers.
- Returns:
- fieldnd array or string
- get_closest_time_file(time)[source]
Find the index and value of the closest actual time of the field.
- _init_labels(xlabel='x')[source]
Initialize the labels.
- _get_axis_data()[source]
Get axis data.
- Returns:
- xarray
x-axis data.
- _set_key_field(key_field)[source]
Defines key_field default.
- class fluidsim.base.output.spectra.Spectra(output)[source]
Bases:
SpectraBase
Used for the saving of spectra.
- _init_path_files()[source]
- _init_files(arrays_1st_time=None)[source]
- _online_save()[source]
Save the values at one time.
- compute()[source]
compute the values at one time.
- _init_online_plot()[source]
- _online_plot_saving()[source]
- load2d_mean(tmin=None, tmax=None)[source]
- load1d_mean(tmin=None, tmax=None)[source]
- plot1d()[source]
- plot2d()[source]
Classes
|
|
|
Used for the saving of spectra. |
|