Peristaltic Pump

aguaclara.research.peristaltic_pump.vol_per_rev_3_stop(color='', inner_diameter=0)[source]

Return the volume per revolution of an Ismatec 6 roller pump given the inner diameter (ID) of 3-stop tubing. The calculation is interpolated from the table found at https://web.archive.org/web/20211027155239/http://www.ismatec.com/int_e/pumps/t_mini_s_ms_ca/tubing_msca2.htm.

Note: 1. Either input a string as the tubing color code or a number as the tubing inner diameter. If both are given, the function will default to using the color. 2. The calculation is interpolated for inner diameters between 0.13 and 3.17 mm. Accuracy is not guaranteed for tubes with smaller or larger diameters.

Parameters:
  • color (string) – Color code of the Ismatec 3-stop tubing

  • inner_diameter (float) – Inner diameter of the Ismatec 3-stop tubing. Results will be most accurate for inner diameters between 0.13 and 3.17 mm.

Returns:

Volume per revolution output by a 6-roller pump through the 3-stop tubing (mL/rev)

Return type:

float

Examples:

>>> from aguaclara.research.peristaltic_pump import vol_per_rev_3_stop
>>> from aguaclara.core.units import u
>>> round(vol_per_rev_3_stop(color="yellow-blue"), 6)
<Quantity(0.148846, 'milliliter / rev')>
>>> round(vol_per_rev_3_stop(inner_diameter=.20*u.mm), 6)
<Quantity(0.003116, 'milliliter / rev')>
aguaclara.research.peristaltic_pump.ID_colored_tube(color)[source]

Look up the inner diameter of Ismatec 3-stop tubing given its color code.

Parameters:

color (string) – Color of the 3-stop tubing

Returns:

Inner diameter of the 3-stop tubing (mm)

Return type:

float

Examples:

>>> from aguaclara.research.peristaltic_pump import ID_colored_tube
>>> from aguaclara.core.units import u
>>> ID_colored_tube("yellow-blue")
<Quantity(1.52, 'millimeter')>
>>> ID_colored_tube("orange-yellow")
<Quantity(0.51, 'millimeter')>
>>> ID_colored_tube("purple-white")
<Quantity(2.79, 'millimeter')>
aguaclara.research.peristaltic_pump.vol_per_rev_LS(id_number)[source]

Look up the volume per revolution output by a Masterflex L/S pump through L/S tubing of the given ID number.

Parameters:

id_number (int) – Identification number of the L/S tubing. Valid numbers are 13-18, 24, 35, and 36.

Returns:

Volume per revolution output by a Masterflex L/S pump through the L/S tubing

Return type:

float

Examples:

>>> from aguaclara.research.peristaltic_pump import vol_per_rev_LS
>>> from aguaclara.core.units import u
>>> vol_per_rev_LS(13)
<Quantity(0.06, 'milliliter / turn')>
>>> vol_per_rev_LS(18)
<Quantity(3.8, 'milliliter / turn')>
aguaclara.research.peristaltic_pump.flow_rate(vol_per_rev, rpm)[source]

Return the flow rate from a pump given the volume of fluid pumped per revolution and the desired pump speed.

Parameters:
  • vol_per_rev (float) – Volume of fluid output per revolution (dependent on pump and tubing)

  • rpm (float) – Desired pump speed in revolutions per minute

Returns:

Flow rate of the pump (mL/s)

Return type:

float

Examples:

>>> from aguaclara.research.peristaltic_pump import flow_rate
>>> from aguaclara.core.units import u
>>> flow_rate(3*u.mL/u.rev, 5*u.rev/u.min)
<Quantity(0.25, 'milliliter / second')>