fluidlab.objects.calib_density_probes

Calibration for density measurement (fluidlab.objects.calib_density_probes)

class fluidlab.objects.calib_density_probes.Calibration(path_rho, path_temp=None)[source]

Calibrate density

_load(kind_of_calib)[source]

Loads the data from the previous calibrations.

plot_rho(rho=None, voltrho=None)[source]

Plots the measurements of the saved calibrations for rho.

plot_temp(T=None, voltT=None)[source]

Plots the measurements of the saved calibrations for T.

_fit_rho_vs_voltrho(rho, voltrho)[source]

Creates a function from data.

_fit_T_vs_voltT(T, voltT)[source]

Creates a function from data.

add_point_rho(rho, T, duration=2.0)[source]

Calibrates the probe.

Parameters:
rho

The density \(\rho\) of the sample (in kg/l)).

T

Temperature in C

durationnumber

The duration of one measurement (in s).

Notes

\(\rho(C)\) and \(U(C, T)\), where \(C\) the concentration, \(U\) the voltage and \(T\) the temperature.

_save_new_point(rho, T, volts, kind_of_calib)[source]

Saves the results of a calibration.

Functions

load_calibration(path)

Loads the data from the previous calibrations.

prepare_calibration([rho_min, rho_max, ...])

Gives indications to prepare a calibration.

Classes

Calibration(path_rho[, path_temp])

Calibrate density