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.
- 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.
- pumps
fluidlab.objects.pumps.MasterFlexPumps
Represent the pumps.
- str_pathstr
Related to the path of the associated directory.
- 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!
Functions
|
|
|
|
|
Classes
|
Represent the density profile as a function of the height. |
|
Represent a tank with a density profile. |
|
Represent the surface as a function of the height. |
|
Represent a Taylor-Couette tank. |