fluidlab.objects.tanks

Tanks (fluidlab.objects.tanks)

Todo

Solve a bug loading the tank (about values Rin, Rout…).

Provides:

class fluidlab.objects.tanks.DensityProfile(z, rho)[source]

Represent the density profile as a function of the height.

Parameters:
zarray_like

Position.

rhoarray_like

Surface.

Attributes:
z: `numpy.ndarray`

Position.

rho: `numpy.ndarray`

Density profile.

plot()[source]

Plot the density profile.

class fluidlab.objects.tanks.Surface(z, S)[source]

Represent the surface as a function of the height.

Parameters:
zarray_like

Position.

Sarray_like

Surface.

Attributes:
z: `numpy.ndarray`

Position.

S: `numpy.ndarray`

Surface.

class fluidlab.objects.tanks.StratifiedTank(H=520, S=100, z=None, rho=None, dico_profile=None, pumps=None, str_path=None)[source]

Represent a tank with a density profile.

Parameters:
H{520, number}, optional

Height (in mm).

S{100, number}, optional

Surface (in mm).

dico_profiledict, optional

Characteristics of the profile.

pumpsfluidlab.objects.pumps.MasterFlexPumps

Represent the pumps.

str_pathstr

Related to the path of the associated directory.

save(path_save)[source]

Save in a file tank.h5

fill(dt=1, pumps=False, hastoplot=True, vol_tube=142.0)[source]

Fill the tank.

Parameters:
dt{2, number}, optional

Time interval (in s) between the change of flow rate.

pumps{False, fluidlab.objects.pumps.MasterFlexPumps}, optional

If False, an instance is created.

hastoplot{True, False}, optional

if True, plot the density profile.

Notes

Warning: I would advice not to use the “quick-edit option” of the command prompt in Windows since when you click on the command prompt window, a charactere is selected and when any characteres are selected, the output (and the program!) is frozen. This is unbelivable how bug-generating is it! Attaboy Windows!

class fluidlab.objects.tanks.TaylorCouette(Rin=100, Rout=240, H=520, z=None, rho=None, dico_profile=None, str_path=None)[source]

Represent a Taylor-Couette tank.

Functions

test_load()

test_profiles()

test_save()

Classes

DensityProfile(z, rho)

Represent the density profile as a function of the height.

StratifiedTank([H, S, z, rho, dico_profile, ...])

Represent a tank with a density profile.

Surface(z, S)

Represent the surface as a function of the height.

TaylorCouette([Rin, Rout, H, z, rho, ...])

Represent a Taylor-Couette tank.