Learn R Programming

tealeaves (version 1.0.6)

.get_gr: Gr: Grashof number

Description

Gr: Grashof number

Usage

.get_gr(T_leaf, pars, unitless)

Value

A unitless number 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

$$Gr = t_\mathrm{air} G d ^ 3 |T_\mathrm{v,leaf} - T_\mathrm{v,air}| / D_\mathrm{m} ^ 2$$

SymbolRDescriptionUnitsDefault
\(d\)leafsizeLeaf characteristic dimension in metersm0.1
\(D_\mathrm{m}\)D_mdiffusion coefficient of momentum in airm\(^2\) / scalculated
\(G\)Ggravitational accelerationm / s\(^2\)9.8
\(t_\mathrm{air}\)t_aircoefficient of thermal expansion of air1 / K1 / Temp
\(T_\mathrm{v,air}\)Tv_airvirtual air temperatureKcalculated
\(T_\mathrm{v,leaf}\)Tv_leafvirtual leaf temperatureKcalculated

Examples

Run this code

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)

Run the code above in your browser using DataLab