fwoxy: Main program for the forward oxygen model (fwoxy)

View source: R/fwoxy.R

fwoxyR Documentation

Main program for the forward oxygen model (fwoxy)

Description

Main program for the forward oxygen model (fwoxy)

Usage

fwoxy(
  oxy_ic = oxy_ic,
  a_param = a_param,
  er_param = er_param,
  ht_in = ht_const,
  salt_in = salt_const,
  temp_in = temp_const,
  wspd_in = wspd_const,
  agas_param = 0.251,
  gas_inv = -0.5,
  plot = TRUE
)

Arguments

oxy_ic

numeric for initial oxygen concentration, mmol/m3

a_param

numeric for light efficiency, (mmol/m3/d)/(W/m2)

er_param

numeric for ecosystem respiration, mmol/m3/day

ht_in

numeric for water column height, m

salt_in

numeric for salinity, ppt

temp_in

numeric for water temperature, C

wspd_in

numeric for windspeed at 10 m, m/s

agas_param

numeric for the a coefficient, passed to fun_gas_transfer_velocity

gas_inv

numeric for the inverse exponent function, passed to fun_gas_transfer_velocity

plot

logical if plot is printed in addition to results data frame

Details

OXYGEN BUDGET: TROC = GPP - ER - GASEX Positive gas flux is from water to air

USES FUNCTIONS: fun_par_sin_model fun_eqb_oxygen fun_density fun_schmidt_oxygen fun_gas_transfer_velocity

INPUT: oxygen concentration, time variables, initial conditions, forcing, parameters

OUTPUT: oxygen concentration, TROC, GPP, ER, GASEX

Value

2 plots and a data frame if plot = TRUE, otherwise just a data frame


jmarriola/fwoxy documentation built on Jan. 30, 2023, 5:13 a.m.