Private types and functions
Documentation for ClimaOceanBiogeochemistry.jl
's internal interface.
ClimaOceanBiogeochemistry
ClimaOceanBiogeochemistry.CAN
— MethodTracer sources and sinks for alkalinity (ALK)
ClimaOceanBiogeochemistry.CAN
— MethodTracer sources and sinks for dissolved inorganic carbon (DIC)
ClimaOceanBiogeochemistry.CAN
— MethodTracer sources and sinks for dissolved organic phosphorus (DOP)
ClimaOceanBiogeochemistry.CAN
— MethodTracer sources and sinks for dissolved iron (FeT)
ClimaOceanBiogeochemistry.CAN
— MethodTracer sources and sinks for nitrate (NO₃)
ClimaOceanBiogeochemistry.CAN
— MethodTracer sources and sinks for phosphate (PO₄)
ClimaOceanBiogeochemistry.CarbonAlkalinityNutrients
— MethodCarbonAlkalinityNutrients(; reference_density = 1024,
maximum_net_community_production_rate = 1 / day,
phosphate_half_saturation = 1e-7 * reference_density,
nitrate_half_saturation = 1.6e-6 * reference_density,
iron_half_saturation = 1e-10 * reference_density,
incident_PAR = 700.0,
PAR_half_saturation = 10.0,
PAR_attenuation_scale = 25.0,
fraction_of_particulate_export = 0.33
dissolved_organic_phosphorus_remin_timescale = 1 / 30day,
stoichoimetric_ratio_carbon_to_phosphate = 106.0
stoichoimetric_ratio_nitrate_to_phosphate = 16.0
stoichoimetric_ratio_phosphate_to_oxygen = 170.0,
stoichoimetric_ratio_phosphate_to_iron = 4.68e-4
stoichoimetric_ratio_carbon_to_nitrate = 106 / 16
stoichoimetric_ratio_carbon_to_oxygen = 106 / 170,
stoichoimetric_ratio_carbon_to_iron = 106 / 1.e-3
stoichoimetric_ratio_silicate_to_phosphate = 15.0
rain_ratio_inorganic_to_organic_carbon = 1e-1
martin_curve_exponent = 0.84,
iron_scavenging_rate = 5e-4 / day,
ligand_concentration = 1e-9 * reference_density,
ligand_stability_coefficient = 1e8)
Return a six-tracer biogeochemistry model for the interaction of carbon, alkalinity, and nutrients.
Keyword Arguments
Tracer names
DIC
: Dissolved Inorganic CarbonAlk
: AlkalinityPO₄
: Phosphate (macronutrient)NO₃
: Nitrate (macronutrient)DOP
: Dissolved Organic Phosphate (macronutrient)Fe
: Dissolved Iron (micronutrient)
Biogeochemical functions
transitions for
DIC
,Alk
,PO₄
,NO₃
,DOP
, andFe
biogeochemical_drift_velocity
forD
, modeling the sinking of detritus at a constantdetritus_sinking_speed
.
ClimaOceanBiogeochemistry.NutrientsPlanktonBacteriaDetritus
— MethodNutrientsPlanktonBacteriaDetritus(; grid,
maximum_plankton_growth_rate = 1/day,
maximum_bacteria_growth_rate = 1/day
maximum_grazing_rate = 3/day
bacteria_yield = 0.2
zooplankton_yield = 0.3
linear_remineralization_rate = 0.03/day,
linear_mortality_rate = 0.01/day,
quadratic_mortality_rate = 0.1/day,
quadratic_mortality_rate_Z = 1/day,
nutrient_half_saturation = 0.1,
detritus_half_saturation = 0.1,
grazing_half_saturation = 3.0,
PAR_half_saturation = 10.0,
PAR_attenuation_scale = 25.0,
detritus_vertical_velocity = -10/day)
Return a six-tracer biogeochemistry model for the interaction of nutrients (N), phytoplankton (P), zooplankton(Z), bacteria (B), dissolved detritus (D1), and particulate detritus (D2).
Keyword Arguments
grid
(required): An Oceananigans' grid.maximum_plankton_growth_rate
: (s⁻¹) Growth rate of planktonP
unlimited by the availability of nutrients and light. Default: 1/day.maximum_bacteria_growth_rate
: (s⁻¹) Growth rate of planktonB
unlimited by the availability of nutrients and light. Default = 0.5/day.maximum_grazing_rate
: (s⁻¹) Maximum grazing rate of phytoplankton by zooplankton.bacteria_yield
: Determines fractional nutrient production by bacteria production relative to consumption of detritus such that $∂_t N / ∂_t D = 1 - y$, wherey = bacteria_yield
. Default: 0.2.linear_remineralization_rate
: (s⁻¹) Remineralization rate constant of detritus 'D', assuming linear remineralization of 'D', while implicitly modeling bacteria 'B'. Default = 0.3/day.linear_mortality_rate
: (s⁻¹) Linear term of the mortality rate of both plankton and bacteria.quadratic_mortality_rate
: (s⁻¹) Quadratic term of the mortality rate of both plankton and bacteria.nutrient_half_saturation
: (mmol m⁻³) Half-saturation of nutrients for plankton production.detritus_half_saturation
: (mmol m⁻³) Half-saturation of nutrients for bacteria production. Default = 10.0 mmol m⁻³.phytoplankton_half_saturation
: (mmol m⁻³) Half-saturation of phytoplankton for zooplankton production.zooplankton_assimilation
: Fractional assimilation efficiency for zooplankton.PAR_half_saturation
: (W m⁻²) Half-saturation of photosynthetically available radiation (PAR) for plankton production.PAR_attenuation_scale
: (m) Depth scale over which photosynthetically available radiation (PAR) attenuates exponentially.detritus_sinking_speed
: (m s⁻¹) Sinking velocity of particulate detritus.
Tracer names
N
: nutrientsP
: phytoplanktonZ
: zooplanktonB
: bacteriaD
: detritus
Biogeochemical functions
transitions for
N
,P
,Z
,B
,D
biogeochemical_drift_velocity
forD2
, modeling the sinking of detritus at a constantdetritus_sinking_speed
.
ClimaOceanBiogeochemistry.PAR
— MethodPAR(surface_photosynthetically_active_ratiation,
photosynthetically_active_ratiation_attenuation_scale,
depth)
Calculate the photosynthetically active radiation (PAR) at a given depth due to attenuation.
ClimaOceanBiogeochemistry.dissolved_organic_phosphorus_remin
— Methoddissolved_organic_phosphorus_remin(remineralization_rate,
dissolved_organic_phosphorus_concentration)
Calculate the remineralization of dissolved organic phosphorus.
ClimaOceanBiogeochemistry.iron_scavenging
— Methodiron_scavenging(iron_scavenging_rate, iron_concentration, ligand_concentration, ligand_stability_coefficient)
Calculate the scavenging loss of iron. Iron scavenging depends on free iron, which involves solving a quadratic equation in terms of ligand concentration and stability coefficient. Ligand-complexed iron is safe from being scavenged.
ClimaOceanBiogeochemistry.net_community_production
— Methodnet_community_production(maximum_net_community_production_rate,
light_half_saturation,
phosphate_half_saturation,
nitrate_half_saturation,
iron_half_saturation,
photosynthetically_active_radiation,
phosphate_concentration,
nitrate_concentration,
iron_concentration)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.CarbonChemistryCoefficients
— MethodCarbonChemistryCoefficients(Θᶜ, Sᴬ, Δpᵦₐᵣ)
Return dissociation coefficients necessary to solve for the distribution of carbonate species.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Bᵀᴼᵀ
— FunctionBᵀᴼᵀ(Sᵖ, Pᴮᵀᴼᵀ)
Return total borate concentration in mol/kg-SW given practical salinity, Sᵖ
. References: Uppström (1974), cited by Dickson et al. (2007, chapter 5, p 10) Millero (1982) cited in Millero (1995)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Caᵀᴼᵀ
— FunctionCaᵀᴼᵀ(Sᵖ, Pᶜᵃᵀᴼᵀ)
Return calcium concentration in mol/kg-SW given practical salinity, Sᵖ
. References: Culkin and Cox (1966), Culkin (1967), Riley and Tongudai (1967)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.FCᵀCO₂ˢᵒˡ
— MethodFCᵀCO₂ˢᵒˡ(Cᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate the dissolved and hydrated CO₂ concentration in seawater given the total carbon concentration Cᵀ, pH, and the carbon chemistry coefficients.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.FCᵀCO₃²⁻
— MethodFCᵀCO₃²⁻(Cᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate the carbonate concentration in seawater given the total carbon concentration Cᵀ, pH, and the carbon chemistry coefficients.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.FCᵀHCO₃⁻
— MethodFCᵀHCO₃⁻(Cᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate the bicarbonate ion concentration in seawater given the total carbon concentration Cᵀ, pH, and the carbon chemistry coefficients.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.FpCO₂CO₂ˢᵒˡ
— MethodFpCO₂CO₂ˢᵒˡ(pCO₂, pH, Pᶜᵒᵉᶠᶠ)
Calculate the dissolved and hydrated CO₂ concentration in seawater given the pCO₂, pH, and the carbon chemistry coefficients.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.FpCO₂CO₃²⁻
— MethodFpCO₂CO₃²⁻(pCO₂, pH, Pᶜᵒᵉᶠᶠ)
Calculate the carbonate concentration in seawater given the pCO₂, pH, and the carbon chemistry coefficients.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.FpCO₂HCO₃⁻
— MethodFpCO₂HCO₃⁻(pCO₂, pH, Pᶜᵒᵉᶠᶠ)
Calculate the bicarbonate ion concentration in seawater given the pCO₂, pH, and the carbon chemistry coefficients.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fˢⁱᵗₖ₁
— FunctionFˢⁱᵗₖ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pˢⁱᵗₖ₁)
Return the first dissociation constant of silicic acid (H4SiO4) in seawater, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pˢⁱᵗₖ₁
.
References: Yao and Millero (1995) cited by Millero (1995) pH scale : SWS (according to Dickson et al, 2007) Note : No pressure correction available Note : converted here from mol/kg-H2O to mol/kg-sw
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴴ²ˢₖ₁
— FunctionFᴴ²ˢₖ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴴ²ˢₖ₁)
Return the dissociation constant of hydrogen sulfide in sea-water, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴴ²ˢₖ₁
.
References: Millero et al. (1988) (cited by Millero (1995) Millero (1995) for pressure correction pH scale : - SWS (according to Yao and Millero, 1995, p. 82: "refitted if necessary") - Total (according to Lewis and Wallace, 1998) Note : we stick to SWS here for the time being Note : the fits from Millero (1995) and Yao and Millero (1995) derive from Millero et al. (1988), with all the coefficients multiplied by -ln(10)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴴ²ᴼₖ₁
— FunctionFᴴ²ᴼₖ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴴ²ᴼₖ₁)
Return dissociation constant of water in (mol/kg-SW)^2, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴴ²ᴼₖ₁
.
References: Millero (1995) for value at p_bar = 0 Millero (pers. comm. 1996) for pressure correction pH scale : SWS
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴴˢᴼ⁴ₖ₁
— FunctionFᴴˢᴼ⁴ₖ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴴˢᴼ⁴ₖ₁)
Return the dissociation constant of hydrogen sulfate (bisulfate) , given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴴˢᴼ⁴ₖ₁
.
References: Dickson (1990) – also Handbook (2007) Millero (1995) for pressure correction pH scale : free Note : converted here from mol/kg-H2O to mol/kg-SW
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴴᶠᵦ₁
— FunctionFᴴᶠᵦ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴴᶠᵦ₁)
Return the association constant of HF in (mol/kg-SW)^-1, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴴᶠᵦ₁
.
HF <-> H⁺ + F⁻
References: Dickson and Riley (1979) Millero (1995) for pressure correction pH scale : free Note : converted here from mol/kg-H2O to mol/kg-SW
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴴᶠₖ₁
— FunctionFᴴᶠₖ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴴᶠₖ₁)
Return the dissociation constant for hydrogen fluoride in mol/kg-SW, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴴᶠₖ₁
.
HF <-> H⁺ + F⁻
References: Perez and Fraga (1987) Millero (1995) for pressure correction pH scale : Total (according to Handbook, 2007
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴺᴴ⁴ₖ₁
— FunctionFᴺᴴ⁴ₖ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴺᴴ⁴ₖ₁)
Return the dissociation constant of ammonium in sea-water [mol/kg-SW], given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴺᴴ⁴ₖ₁
.
References: Yao and Millero (1995) Millero (1995) for pressure correction pH scale : SWS
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴾᴼ⁴ₖ₁
— FunctionFᴾᴼ⁴ₖ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴾᴼ⁴ₖ₁)
Return the first dissociation constant of phosphoric acid (H3PO4) in seawater, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴾᴼ⁴ₖ₁
.
References: Yao and Millero (1995) Millero (1995) for pressure correction pH scale : SWS
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴾᴼ⁴ₖ₂
— FunctionFᴾᴼ⁴ₖ₂(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴾᴼ⁴ₖ₂)
Return the second dissociation constant of phosphoric acid (H3PO4) in seawater, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴾᴼ⁴ₖ₂
.
References: Yao and Millero (1995) Millero (1995) for pressure correction pH scale : SWS
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᴾᴼ⁴ₖ₃
— FunctionFᴾᴼ⁴ₖ₃(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴾᴼ⁴ₖ₃)
Return the third dissociation constant of phosphoric acid (H3PO4) in seawater, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴾᴼ⁴ₖ₃
.
References: Yao and Millero (1995) Millero (1995) for pressure correction pH scale : SWS
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵀᴼᵀ
— FunctionFᵀᴼᵀ(Sᵖ, Pᶠᵀᴼᵀ)
Return total fluoride concentration in mol/kg-SW given practical salinity, Sᵖ
. References: Culkin (1965) (???)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵃʳᵃᵍᵒⁿⁱᵗᵉₛₚ
— FunctionFᵃʳᵃᵍᵒⁿⁱᵗᵉₛₚ(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᵃʳᵃᵍᵒⁿⁱᵗᵉₛₚ)
Return stoichiometric solubility product, Ω
, of aragonite in seawater, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᵃʳᵃᵍᵒⁿⁱᵗᵉₛₚ
.
References: Mucci (1983) Millero (1979) for pressure correction pH scale : N/A Units : (mol/kg-SW)^2
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵇₖ₁
— FunctionFᵇₖ₁(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᴮₖ₁)
Return boric acid dissociation constant in mol/kg-SW, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᴮₖ₁
.
References: Dickson (1990, eq. 23) – also Handbook (2007, eq. 37) Millero (1979) pressure correction pH scale : total
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵈⁱᶜₖ₀
— FunctionFᵈⁱᶜₖ₀(Θᴷ, Sᵖ, Pᵈⁱᶜₖ₀)
Return hydration constant of CO₂ in (mol/kg-SW)/atm given temperature in K, Θᴷ
, practical salinity, Sᵖ
, and coefficients, Pᵈⁱᶜₖ₀
.
CO₂ + H₂O <-> H₂CO₃
References: Weiss (1979) pH scale : N/A Note : currently no pressure correction
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵈⁱᶜₖ₁ᵣ₉₃
— FunctionFᵈⁱᶜₖ₁ᵣ₉₃(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᵈⁱᶜₖ₁ᵣ₉₃)
Return the first dissociation constant of carbonic acid in mol/kg-SW, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᵈⁱᶜₖ₁ᵣ₉₃
.
H₂CO₃ <-> HCO₃⁻ + H⁺
References: Roy et al. (1993) – also Handbook (1994) Millero (1979) pressure correction pH scale : Total Valid range: T: 0-45 S: 5-45. Note : converted here from mol/kg-H2O to mol/kg-SW
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵈⁱᶜₖ₁ₗ₀₀
— FunctionFᵈⁱᶜₖ₁ₗ₀₀(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᵈⁱᶜₖ₁ₗ₀₀)
Return the first dissociation constant of carbonic acid in mol/kg-SW, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᵈⁱᶜₖ₁ₗ₀₀
.
H₂CO₃ <-> HCO₃⁻ + H⁺
References: Luecker et al. (2000) – also Handbook (2007) Millero (1979) pressure correction pH scale: Total
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵈⁱᶜₖ₁ₘ₉₅
— FunctionFᵈⁱᶜₖ₁ₘ₉₅(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᵈⁱᶜₖ₁ₘ₉₅)
Return the first dissociation constant of carbonic acid in mol/kg-SW, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᵈⁱᶜₖ₁ₘ₉₅
.
H₂CO₃ <-> HCO₃⁻ + H⁺
References: Millero (1995, eq 50 – ln K1(COM)) Millero (1982) pressure correction pH scale: SWS
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵈⁱᶜₖ₂ᵣ₉₃
— FunctionFᵈⁱᶜₖ₂ᵣ₉₃(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᵈⁱᶜₖ₂ᵣ₉₃)
Return the second dissociation constant of carbonic acid in mol/kg-SW, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᵈⁱᶜₖ₂ᵣ₉₃
.
HCO₃⁻ <-> CO₃²⁻ + H⁺
References: Roy et al. (1993) – also Handbook (1994) Millero (1979) pressure correction pH scale : Total Valid range: T: 0-45 S: 5-45. Note : converted here from mol/kg-H2O to mol/kg-SW
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵈⁱᶜₖ₂ₗ₀₀
— FunctionFᵈⁱᶜₖ₂ₗ₀₀(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᵈⁱᶜₖ₂ₗ₀₀)
Return the second dissociation constant of carbonic acid in mol/kg-SW, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᵈⁱᶜₖ₂ₗ₀₀
.
HCO₃⁻ <-> CO₃²⁻ + H⁺
References: Luecker et al. (2000) – also Handbook (2007) Millero (1979) pressure correction pH scale: Total
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᵈⁱᶜₖ₂ₘ₉₅
— FunctionFᵈⁱᶜₖ₂ₘ₉₅(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᵈⁱᶜₖ₂ₘ₉₅)
Return the second dissociation constant of carbonic acid in mol/kg-SW, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᵈⁱᶜₖ₂ₘ₉₅
.
HCO₃⁻ <-> CO₃²⁻ + H⁺
References: Millero (1995, eq 51 – ln K2(COM)) Millero (1979) pressure correction pH scale: SWS
ClimaOceanBiogeochemistry.CarbonSystemSolvers.Fᶜᵃˡᶜⁱᵗᵉₛₚ
— FunctionFᶜᵃˡᶜⁱᵗᵉₛₚ(Θᴷ, Sᵖ, Δpᵦₐᵣ, Pᶜᵃˡᶜⁱᵗᵉₛₚ)
Return the stoichiometric solubility product of calcite, Ω
, in seawater, given temperature in K, Θᴷ
, practical salinity, Sᵖ
, applied pressure, Δpᵦₐᵣ
, and coefficients, Pᶜᵃˡᶜⁱᵗᵉₛₚ
References: Mucci (1983) Millero (1995) for pressure correction pH scale : N/A Units : (mol/kg-SW)^2
ClimaOceanBiogeochemistry.CarbonSystemSolvers.H⁺ₛoverH⁺₃
— MethodH⁺ₛoverH⁺₃(Θᴷ, Sᵖ, Δpᵦₐᵣ)
Return the ratio HSWS/Hfree as a @inline function of salinity, Sᵖ
.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.H⁺ₛoverH⁺ₜ
— MethodH⁺ₛoverH⁺ₜ(Θᴷ, Sᵖ, Δpᵦₐᵣ)
Return the ratio HSWS/HTot as a @inline function of salinity, Sᵖ
. Reference: Munhoven pH scale: all
ClimaOceanBiogeochemistry.CarbonSystemSolvers.H⁺ₜoverH⁺₃
— MethodH⁺ₜoverH⁺₃(Θᴷ, Sᵖ, Δpᵦₐᵣ)
Return the ratio HTot/Hfree as a @inline function of salinity, Sᵖ
. Reference: Munhoven pH scale: N/A
ClimaOceanBiogeochemistry.CarbonSystemSolvers.H₂Oˢʷ
— FunctionH₂Oˢʷ(Sᵖ, Pᴴ²⁰ˢʷ)
Return the mass of pure water in one kg of seawater of practical salinity, Sᵖ
. References: "libthdyct" – derived by Munhoven (1997) from data by Millero (1982) "Handbook (2007)" – Handbook (2007) pH scale: N/A
ClimaOceanBiogeochemistry.CarbonSystemSolvers.SO₄ᵀᴼᵀ
— FunctionSO₄ᵀᴼᵀ(Sᵖ, Pˢᴼ⁴ᵀᴼᵀ)
Return total sulfate concentration in mol/kg-SW given practical salinity, Sᵖ
. References: Morris, A.W. and Riley, J.P. (1966) quoted in Handbook (2007)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.μₛ
— Functionμₛ(Sᵖ)
Return ionic strength in mol/kg-SW, for given practical salinity, Sᵖ
. References: "libthdyct" – derived by Munhoven (1997) from data by Millero (1982) "Handbook (2007)" – Handbook (2007) pH scale: N/A
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FABᵀ
— Methodfunction FABᵀ(H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FACᵀ
— Methodfunction FACᵀ(Cᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FAFᵀ
— Methodfunction FAFᵀ(H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FAH₂O
— Methodfunction FAH₂O(H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FAH₂Sᵀ
— Methodfunction FAH₂Sᵀ(H₂Sᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FANH₄ᵀ
— Methodfunction FANH₄ᵀ(NH₄ᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FAPᵀ
— Methodfunction FAPᵀ(Pᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FASO₄ᵀ
— Methodfunction FASO₄ᵀ(H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FASiᵀ
— Methodfunction FASiᵀ(Siᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FAᵀ
— Methodfunction FAᵀ(Cᵀ, Aᵀ, Bᵀ, Pᵀ, Siᵀ, SO₄ᵀ, Fᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
Evaluate the rational function form of the total alkalinity-pH equation
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FH⁺ᵢₙᵢ
— MethodFH⁺ᵢₙᵢ(Aᵀ, Cᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
Calculates the root for the 2nd order approximation of the Cᵀ-Bᵀ-Aᶜ equation for H+ around the local minimum, if it exists.
Returns * 1e-03 if Aᶜ <= 0 * 1e-10 if Aᶜ >= 2Cᵀ + Bᵀ * 1e-07 if 0 < Aᶜ < 2Cᵀ + Bᵀ and the 2nd order approximation does not have a solution
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.FboundsAᵀₙₕ₂ₒ
— Method FboundsAᵀₙₕ₂ₒ(
Cᵀ, Pᵀ, Siᵀ, NH₄ᵀ=0, H₂Sᵀ=0, Pᶜᵒᵉᶠᶠ
)
Calculate the lower and upper bounds of the "non-water-selfionization" contributions to total alkalinity.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.Fᵖᴴᵤₙᵢᵣₒ
— FunctionFᵖᴴᵤₙᵢᵣₒ(Aᵀ, Cᵀ, Pᵀ, Siᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate the pH of seawater given the total alkalinity Aᵀ, total carbon Cᵀ, total phosphate Pᵀ, total silicate Siᵀ, and the carbon chemistry coefficients. Uses the SolveSAPHE package (Munhoven et al., 2013), a universal, robust, pH solver that converges from any given initial value.
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂Bᵀ
— Methodfunction F∂A∂Bᵀ(H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂Cᵀ
— MethodF∂A∂Cᵀ(Cᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂Fᵀ
— Methodfunction F∂A∂Fᵀ(H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂H₂O
— Methodfunction F∂A∂H₂O(H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂H₂Sᵀ
— Methodfunction F∂A∂H₂Sᵀ(H₂Sᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂NH₄ᵀ
— Methodfunction F∂A∂NH₄ᵀ(NH₄ᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂Pᵀ
— Methodfunction F∂A∂Pᵀ(Pᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂SO₄ᵀ
— Methodfunction F∂A∂SO₄ᵀ(H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.UniversalRobustCarbonSolver.F∂A∂Siᵀ
— Methodfunction F∂A∂Siᵀ(Siᵀ, H⁺, Pᶜᵒᵉᶠᶠ)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.BO₄H₄⁻
— MethodBO₄H₄⁻(pH, Pᶜᵒᵉᶠᶠ)
Calculate borate (B(OH)₄⁻) contribution to Aᶜ using salinity as a proxy
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.Fᵖᴴ⁽ᴬᵀ⁺ᵖᶜᵒ²⁾
— MethodFᵖᴴ⁽ᴬᵀ⁺ᵖᶜᵒ²⁾(Aᵀ, pCO₂, Pᵀ, Siᵀ, pH, Pᶜᵒᵉᶠᶠ)
Solve for ocean DIC given total Alkalinity and pCO₂
Estimate H⁺ (hydrogen ion conc) using estimate of Aᶜ, carbonate alkalinity after (Follows et al., 2006)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.Fᵖᴴ⁽ᴬᵀ⁺ᶜᵀ⁾
— MethodFᵖᶜᵒ²⁽ᴬᵀ⁺ᶜᵀ⁾(Aᵀ, Cᵀ, pH, Pᶜᵒᵉᶠᶠ)
Solve for ocean pCO₂ given total Alkalinity and DIC
Estimate H⁺ (hydrogen ion conc) using estimate of Aᶜ, carbonate alkalinity after (Follows et al., 2006)
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.HF
— MethodHF(pH, Pᶜᵒᵉᶠᶠ)
Calculate the hydrogen fluoride (HF) contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.HPO₄²⁻
— MethodHPO₄²⁻(Pᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate the monohydrogen phosphate (HPO₄²⁻) contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.HSO₄⁻
— MethodHSO₄⁻(pH, Pᶜᵒᵉᶠᶠ)
Calculate the hydrogen sulphate (HSO₄⁻) contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.H⁺ᶠʳᵉᵉ
— MethodH⁺ᶠʳᵉᵉ(pH, Pᶜᵒᵉᶠᶠ)
Calculate the "Free" H⁺ contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.H₂PO₄⁻
— MethodH₂PO₄⁻(Pᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate the dihydrogen phosphate (H₂PO₄⁻) contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.H₃PO₄
— MethodH₃PO₄(Pᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate orthophosphoric acid (H₃PO₄) contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.OH⁻
— MethodOH⁻(pH, Pᶜᵒᵉᶠᶠ)
Calculate the hydroxide (OH⁻) contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.PO₄³⁻
— MethodPO₄³⁻(Pᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate the phosphate (PO₄³⁻) contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.AlkalinityCorrectionCarbonSolver.SiO₄H₃⁻
— MethodSiO₄H₃⁻(Siᵀ, pH, Pᶜᵒᵉᶠᶠ)
Calculate the silicate (SiO(OH)₃⁻) contribution to Aᶜ
ClimaOceanBiogeochemistry.CarbonSystemSolvers.DirectCubicCarbonSolver.Fᵖᴴ⁽ᴬᵀ⁺ᵖᶜᵒ²⁾
— MethodFᵖᴴ⁽ᴬᵀ⁺ᵖᶜᵒ²⁾(Aᵀ, pCO₂ᵃᵗᵐ, pH, Pᶜᵒᵉᶠᶠ)
Solve for DIC given total Alkalinity and pCO₂
ClimaOceanBiogeochemistry.CarbonSystemSolvers.DirectCubicCarbonSolver.Fᵖᴴ⁽ᴬᵀ⁺ᶜᵀ⁾
— MethodFᵖᴴ⁽ᴬᵀ⁺ᶜᵀ⁾(Aᵀ, Cᵀ, pH, Pᶜᵒᵉᶠᶠ)
Solve for ocean pCO₂ given total Alkalinity and DIC