Learn R Programming

tealeaves (version 1.0.6)

.get_H: H: sensible heat flux density (W / m^2)

Description

H: sensible heat flux density (W / m^2)

Usage

.get_H(T_leaf, pars, unitless)

Value

Value in W / m\(^2\) of class units

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.

Details

$$H = P_\mathrm{a} c_p g_\mathrm{h} (T_\mathrm{leaf} - T_\mathrm{air})$$

SymbolRDescriptionUnitsDefault
\(c_p\)c_pheat capacity of airJ / (g K)1.01
\(g_\mathrm{h}\)g_hboundary layer conductance to heatm / scalculated
\(P_\mathrm{a}\)P_adensity of dry airg / m^3calculated
\(T_\mathrm{air}\)T_airair temperatureK298.15
\(T_\mathrm{leaf}\)T_leafleaf temperatureKinput

See Also

.get_gh, .get_Pa

Examples

Run this code

library(tealeaves)

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

T_leaf <- set_units(298.15, K)

tealeaves:::.get_H(T_leaf, c(cs, ep, lp), FALSE)

Run the code above in your browser using DataLab