dot-get_L.RdL: Latent heat flux density (W / m^2)
.get_L(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.
Value in W / m^2 of class units
$$L = h_\mathrm{vap} g_\mathrm{tw} d_\mathrm{wv}$$
| Symbol | R | Description | Units | Default | 
| \(d_\mathrm{wv}\) | d_wv | water vapour gradient | mol / m ^ 3 | calculated | 
| \(h_\mathrm{vap}\) | h_vap | latent heat of vaporization | J / mol | calculated | 
| \(g_\mathrm{tw}\) | g_tw | total conductance to H2O | (\(\mu\)mol H2O) / (m\(^2\) s Pa) | calculated | 
library(tealeaves)
cs <- make_constants()
ep <- make_enviropar()
lp <- make_leafpar()
T_leaf <- set_units(298.15, K)
tealeaves:::.get_L(T_leaf, c(cs, ep, lp), FALSE)
#> 248.9066 [W/m^2]