Description Usage Arguments Value Examples
Calculates the rate constant of exchange between surface and bottom waters.
1 | Exchange.coefficient(BOD, O2.surf, O2.bottom, L)
|
BOD |
Benthic oxygen demand (mol O2/[m2 y]) |
O2.surf |
Surface oxygen concentration (mol/m3) |
O2.bottom |
Bottom oxygen concentration (mol/m3) |
L |
Thickness of bottom layer (m) |
Returns vertical exchange coefficient between surface and bottom waters (/y)
1 2 3 4 5 6 7 8 9 10 11 12 13 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (BOD, O2.surf, O2.bottom, L)
{
Exchange <- BOD/((O2.surf - O2.bottom) * L)
mask <- (0.05 > (O2.surf - O2.bottom)/O2.surf | O2.bottom >
O2.surf)
Exchange[mask] <- BOD[mask]/(0.1 * O2.surf[mask] * L)
return(Exchange)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.