goal_flush_pH {respirometry} | R Documentation |
Calculate goal pH of a flush reservoir to achieve the post-flush goal pCO2
Description
Calculates the pH of a flush reservoir that is needed to achieve the goal pCO2 after the flush reservoir has been drained into the respirometer.
Usage
goal_flush_pH(
goal_pco2,
resp_pH,
resp_vol,
flush_vol,
flush_remain = 0,
temp = 25,
sal = 35,
TA = NULL,
atm_pres = 1013.25
)
Arguments
goal_pco2 |
the desired pCO2 in the respirometer after the flush (uatm). |
resp_pH |
pH inside the respirometer before the flush (total scale). |
resp_vol |
volume of the respirometer (liter). |
flush_vol |
volume of the flush reservoir (liter). |
flush_remain |
volume of the flush reservoir that will remain after the flush (liter). |
temp |
temperature (°C). Default is 25 °C. |
sal |
salinity (psu). Default is 35 psu. If |
TA |
(optional) total alkalinity (umol / kg). If undefined TA is estimated from salinity using |
atm_pres |
atmospheric pressure (mbar). Default is 1013.25 mbar. |
Value
pH needed in the flush reservoir to achieve the goal pCO2 post-flush (total scale).
Author(s)
Matthew A. Birk, matthewabirk@gmail.com
See Also
co2_rate
, flush_carb
, carb
, peri_pump
Examples
# I want the respirometer to have a pCO2 = 1000 uatm. It currently has a pH of 7.6 and is 90 L.
# If I have a 200 L reservoir which will be drained completely, what do I want
# the pH of the reservoir to be?
goal_flush_pH(goal_pco2 = 1000, resp_pH = 7.6, resp_vol = 90, flush_vol = 200)