Re: Reynolds number

.get_re(T_leaf, pars, unitless)

Arguments

T_leaf

Leaf temperature in Kelvin

pars

Concatenated parameters (leaf_par, enviro_par, and constants)

unitless

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.

Value

A unitless number of class units

Details

$$Re = u d / D_\mathrm{m}$$

SymbolRDescriptionUnitsDefault
\(d\)leafsizeLeaf characteristic dimension in metersm0.1
\(D_\mathrm{m}\)D_mdiffusion coefficient of momentum in airm\(^2\) / scalculated
\(u\)windwindspeedm / s2

Examples


library(tealeaves)

cs <- make_constants()
ep <- make_enviropar()
lp <- make_leafpar()

T_leaf <- set_units(298.15, K)

tealeaves:::.get_re(T_leaf, c(cs, ep, lp), FALSE)
#> 12900.89 [1]