fluidsim.base.output.phys_fields

Physical fields output

Provides:

class fluidsim.base.output.phys_fields.PhysFieldsBase(output)[source]

Bases: SpecificOutput

Manage the output of physical fields.

_tag = 'phys_fields'
static _complete_params_with_default(params)[source]
get_key_field_to_plot(forbid_compute=False, key_prefered=None)[source]
_init_path_files()[source]
_init_files(arrays_1st_time=None)[source]
_init_online_plot()[source]
_online_save()[source]

Online save.

_online_plot()[source]

Online plot.

save(state_phys=None, params=None, particular_attr=None)[source]
get_field_to_plot(key=None, time=None, idx_time=None, equation=None, interpolate_time=True)[source]

Get the field to be plotted in process 0.

get_field_to_plot_from_state(field=None, equation=None)[source]

Get the field to be plotted in process 0.

get_vector_for_plot()[source]
_get_axis_data(equation=None)[source]

Get axis data.

Returns:
xarray

x-axis data.

yarray

y-axis data.

_get_grid1d_seq(axis)[source]
class fluidsim.base.output.phys_fields.SetOfPhysFieldFiles(path_dir=None, output=None)[source]

Bases: SetOfPhysFieldFilesBase

A set of physical field files.

static time_from_path(path)

Regular expression search to extract time from filename.

_abc_impl = <_abc._abc_data object>
_get_field_to_plot_from_file(path_file, key, equation, skip_vars=())[source]

Get a 2d field from a file

Functions

time_from_path(path)

Regular expression search to extract time from filename.

Classes

PhysFieldsBase(output)

Manage the output of physical fields.

SetOfPhysFieldFiles([path_dir, output])

A set of physical field files.