Learn R Programming

respirometry (version 1.2.1)

co2_flush: Calculate CO2 to add to flush reservoir

Description

Calculates the moles of CO2 gas to be added to a seawater reservoir before flushing a respirometer to achieve the desired pCO2 in the respirometer after the flush. Useful for ocean acidification experiments where CO2 treatments are desired.

Usage

co2_flush(
  goal_pco2,
  resp_pH,
  resp_vol,
  flush_pH,
  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_pH

pH of the reservoir water used for flushing before CO2 is added (total scale).

flush_vol

volume of the flush reservoir (liter).

flush_remain

volume of the flush reservoir that will remain after the flush (liter).

temp

temperature (<U+00B0>C). Default is 25 <U+00B0>C.

sal

salinity (psu). Default is 35 psu. If sal < 26 psu, then TA must be provided.

TA

(optional) total alkalinity (umol / kg). If undefined TA is estimated from salinity using guess_TA.

atm_pres

atmospheric pressure (mbar). Default is 1013.25 mbar.

Value

moles of CO2 gas to be added to the flush reservoir.

References

Jokiel PL, Bahr KD, Rodgers KS. 2014. Low-cost, high-flow mesocosm system for simulating ocean acidification with CO2 gas. Limnol Oceanogr Methods. 12:313<U+2013>322.

See Also

co2_add, co2_rate, flush_carb, carb, peri_pump

Examples

Run this code
# NOT RUN {
# 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 with pH = 7.9 seawater, how much CO2 do I need
# to add to the flush reservoir?
co2_flush(goal_pco2 = 1000, resp_pH = 7.6, resp_vol = 90, flush_pH = 7.9, flush_vol = 200)

# }

Run the code above in your browser using DataLab