Stock QC

class aguaclara.research.stock_qc.Variable_C_Stock(Q_sys, C_sys, Q_stock)[source]

A flow reactor with input from a stock of material of unknown concentration.

Examples:

>>> from aguaclara.research.stock_qc import Variable_C_Stock
>>> from aguaclara.core.units import u
>>> reactor = Variable_C_Stock(Q_sys = 1*u.mL/u.s, C_sys = 1.4*u.mg/u.L, Q_stock = .01*u.mL/u.s)
>>> reactor.C_stock()
<Quantity(140.0, 'milligram / liter')>
__init__(Q_sys, C_sys, Q_stock)[source]

Initialize a reactor of unknown material stock concentration.

Parameters:
  • Q_sys (float) – Flow rate of the system

  • C_sys (float) – Concentration of the material in the system

  • Q_stock (float) – Flow rate from the stock of material

Q_sys()[source]

Return the flow rate of the system.

Returns:

Flow rate of the system

Return type:

float

C_sys()[source]

Return the concentration of the material in the system.

Returns:

Concentration of the material in the system

Return type:

float

Q_stock()[source]

Return the flow rate from the stock of material.

Returns:

Flow rate from the stock of material

Return type:

float

C_stock()[source]

Return the required concentration of material in the stock given a reactor’s desired system flow rate, system concentration, and stock flow rate.

Returns:

Concentration of material in the stock

Return type:

float

rpm(vol_per_rev)[source]

Return the pump speed required for the reactor’s stock of material given the volume of fluid output per revolution by the stock’s pump.

Parameters:

vol_per_rev (float) – Volume of fluid pumped per revolution (dependent on pump and tubing)

Returns:

Pump speed for the material stock, in revolutions per minute

Return type:

float

T_stock(V_stock)[source]

Return the amount of time at which the stock of materal will be depleted.

Parameters:

V_stock (float) – Volume of the stock of material

Returns:

Time at which the stock will be depleted

Return type:

float

M_stock(V_stock)[source]

Return the mass of undiluted material required for the stock concentration.

Parameters:

V_stock (float) – Volume of the stock of material

Returns:

Mass of undiluted stock material

Return type:

float

V_super_stock(V_stock, C_super_stock)[source]

Return the volume of super (more concentrated) stock that must be diluted for the desired stock volume and required stock concentration.

Parameters:
  • V_stock (float) – Volume of the stock of material

  • C_super_stock (float) – Concentration of the super stock

Returns:

Volume of super stock to dilute

Return type:

float

dilution_factor(C_super_stock)[source]

Return the dilution factor of the concentration of material in the stock relative to the super stock.

Parameters:

C_super_stock (float) – Concentration of the super stock

Returns:

dilution factor of stock concentration over super stock concentration (< 1)

Return type:

float

class aguaclara.research.stock_qc.Variable_Q_Stock(Q_sys, C_sys, C_stock)[source]

A flow reactor with input from a stock of material at an unknown flow rate.

Examples:

>>> from aguaclara.research.stock_qc import Variable_Q_Stock
>>> from aguaclara.core.units import u
>>> reactor = Variable_Q_Stock(Q_sys = 1*u.mL/u.s, C_sys = 1.4*u.mg/u.L, C_stock = 7.6*u.mg/u.L)
>>> round(reactor.Q_stock(), 6)
<Quantity(0.184211, 'milliliter / second')>
>>> pump_speed = reactor.rpm(vol_per_rev = .5*u.mL/u.rev).to(u.rev/u.min)
>>> round(pump_speed, 6)
<Quantity(22.105263, 'rev / minute')>
__init__(Q_sys, C_sys, C_stock)[source]

Initialize a reactor of unknown material stock flow rate.

Parameters:
  • Q_sys (float) – Flow rate of the system

  • C_sys (float) – Concentration of the material in the system

  • C_stock (float) – Concentration of the material in the stock

Q_sys()[source]

Return the flow rate of the system.

Returns:

Flow rate of the system

Return type:

float

C_sys()[source]

Return the concentration of the material in the system.

Returns:

Concentration of the material in the system

Return type:

float

C_stock()[source]

Return the concentration of the material in the stock.

Returns:

Concentration of the material in the stock

Return type:

float

Q_stock()[source]

Return the required flow rate from the stock of material given a reactor’s desired system flow rate, system concentration, and stock concentration.

Returns:

Flow rate from the stock of material

Return type:

float

rpm(vol_per_rev)[source]

Return the pump speed required for the reactor’s stock of material given the volume of fluid output per revolution by the stock’s pump.

Parameters:

vol_per_rev (float) – Volume of fluid pumped per revolution (dependent on pump and tubing)

Returns:

Pump speed for the material stock, in revolutions per minute

Return type:

float

T_stock(V_stock)[source]

Return the amount of time at which the stock of materal will be depleted.

Parameters:

V_stock (float) – Volume of the stock of material

Returns:

Time at which the stock will be depleted

Return type:

float

M_stock(V_stock)[source]

Return the mass of undiluted material required for the stock concentration.

Parameters:

V_stock (float) – Volume of the stock of material

Returns:

Mass of undiluted stock material

Return type:

float

V_super_stock(V_stock, C_super_stock)[source]

Return the volume of super (more concentrated) stock that must be diluted for the desired stock volume and stock concentration.

Parameters:
  • V_stock (float) – Volume of the stock of material

  • C_super_stock (float) – Concentration of the super stock

Returns:

Volume of super stock to dilute

Return type:

float

dilution_factor(C_super_stock)[source]

Return the dilution factor of the concentration of material in the stock relative to the super stock.

Parameters:

C_super_stock (float) – Concentration of the super stock

Returns:

dilution factor of stock concentration over super stock concentration (< 1)

Return type:

float