fluidsim_core.hexa_files

Utilities for hexahedral files

fluidsim_core.hexa_files.get_edges_2d(var)[source]
class fluidsim_core.hexa_files.HexaField(key, hexa_data=None, arrays=None, time=None, equation='z=0')[source]

Bases: object

_init_from_arrays(arrays)[source]
_init_from_hexa_data(hexa_data, key, equation)[source]
min()[source]
max()[source]
class fluidsim_core.hexa_files.SetOfPhysFieldFiles(path_dir=None, output=None, prefix=None)[source]

Bases: SetOfPhysFieldFilesBase

get_dataset_from_time(time)[source]
get_dataset_from_path(path)[source]
read_hexadata_from_time(time, skip_vars=(), prefix=None)[source]
read_hexadata(path=None, index=None, skip_vars=(), prefix=None)[source]
_read_hexadata_from_path(path, skip_vars=())[source]
_get_field_to_plot_from_file(path_file, key, equation, skip_vars=())[source]

Get a 2d field from a file

init_hexa_pcolormesh(ax, hexa_color, hexa_x, hexa_y, vmin=None, vmax=None, **kwargs)[source]
init_quiver_1st_step(hexa_x, hexa_y, percentage_dx_quiver=4.0)[source]
compute_vectors_quiver(hexa_vx, hexa_vy, indices_vectors_in_elems)[source]
get_letters_axes_from_equation(equation)[source]
_get_setoffiles_from_prefix(prefix)[source]
plot_hexa(key=None, time=None, equation='z=0', percentage_dx_quiver=4.0, vmin=None, vmax=None, normalize_vectors=True, quiver_kw={}, pcolor_kw={}, prefix=None)[source]
time_from_path(path)[source]

Get the time corresponding to a file

get_header(path=None)[source]
_get_glob_pattern()[source]
get_vector_for_plot(time, equation=None, skip_vars=())[source]
get_key_field_to_plot(key_prefered=None)[source]
_abc_impl = <_abc._abc_data object>

Functions

get_edges_2d(var)

Classes

HexaField(key[, hexa_data, arrays, time, ...])

SetOfPhysFieldFiles([path_dir, output, prefix])