dot-get_gr.Rd
Gr: Grashof number
.get_gr(T_leaf, pars, unitless)
Leaf temperature in Kelvin
Concatenated parameters (leaf_par
, enviro_par
, and constants
)
Logical. Should function use parameters with units
? The function is faster when FALSE, but input must be in correct units or else results will be incorrect without any warning.
A unitless number of class units
$$Gr = t_\mathrm{air} G d ^ 3 |T_\mathrm{v,leaf} - T_\mathrm{v,air}| / D_\mathrm{m} ^ 2$$
Symbol | R | Description | Units | Default |
\(d\) | leafsize | Leaf characteristic dimension in meters | m | 0.1 |
\(D_\mathrm{m}\) | D_m | diffusion coefficient of momentum in air | m\(^2\) / s | calculated |
\(G\) | G | gravitational acceleration | m / s\(^2\) | 9.8 |
\(t_\mathrm{air}\) | t_air | coefficient of thermal expansion of air | 1 / K | 1 / Temp |
\(T_\mathrm{v,air}\) | Tv_air | virtual air temperature | K | calculated |
\(T_\mathrm{v,leaf}\) | Tv_leaf | virtual leaf temperature | K | calculated |
library(tealeaves)
cs <- make_constants()
ep <- make_enviropar()
lp <- make_leafpar()
T_leaf <- set_units(298.15, K)
tealeaves:::.get_gr(T_leaf, c(cs, ep, lp), FALSE)
#> 245079.5 [1]