fluidsim.base.output.spatial_means
Spatial means
Provides:
- class fluidsim.base.output.spatial_means.SpatialMeansBase(output)[source]
Bases:
SpecificOutput
A
SpatialMean
object handles the saving of .This class uses the particular functions defined by some solvers :func:`` and :func``. If the solver doesn’t has these functions, this class does nothing.
- _tag = 'spatial_means'
- _name_file = 'spatial_means.txt'
- static _complete_params_with_default(params)[source]
- _init_files(arrays_1st_time=None)[source]
- _online_save()[source]
Save the values at one time.
- _save_one_time(*args)[source]
- _init_online_plot()[source]
- _get_nb_points_from_lines(lines_t, *liness)[source]
- load()[source]
- load_dataset(dims=('t',))[source]
Loads results as a xarray dataset.
- plot()[source]
- compute_time_means(tstatio=0.0, tmax=None)[source]
compute the temporal means.
- _close_file()[source]
- time_first_saved() float [source]
- time_last_saved() float [source]
- class fluidsim.base.output.spatial_means.SpatialMeansJSON(output)[source]
Bases:
SpatialMeansBase
Save and load as line-delimited JSON.
- _tag = 'spatial_means'
- _name_file = 'spatial_means.json'
- _save_one_time(result: Dict[str, float], delimiter: str = '\n')[source]
- _file_exists()[source]
- load()[source]
- load_dataset(dims=('t',))[source]
Loads results as a xarray dataset.
- compute_time_means(tstatio=0.0, tmax=None)[source]
compute the temporal means.
- time_first_saved() float [source]
- time_last_saved() float [source]
Functions
|
Classes
|
A |
|
Save and load as line-delimited JSON. |