Make lists of parameters of leaf, environmental, or constant parameters

make_leafpar

make_enviropar

make_constants

make_leafpar(replace = NULL)

make_enviropar(replace = NULL)

make_constants(replace = NULL)

Arguments

replace

A named list of parameters to replace defaults. If NULL, defaults will be used.

Value

make_leafpar: An object inheriting from class leaf_par

make_enviropar: An object inheriting from class enviro_par

make_constants: An object inheriting from class constants

Details

Leaf parameters:

SymbolRDescriptionUnitsDefault
\(d\)leafsizeLeaf characteristic dimensionm0.1
\(\alpha_\mathrm{l}\)abs_labsorbtivity of longwave radiation (4 - 80 \(\mu\)m)none0.97
\(\alpha_\mathrm{s}\)abs_sabsorbtivity of shortwave radiation (0.3 - 4 \(\mu\)m)none0.50
\(g_\mathrm{sw}\)g_swstomatal conductance to H2O(\(\mu\)mol H2O) / (m\(^2\) s Pa)5
\(g_\mathrm{uw}\)g_uwcuticular conductance to H2O(\(\mu\)mol H2O) / (m\(^2\) s Pa)0.1
\(\mathrm{logit}(sr)\)logit_srstomatal ratio (logit transformed)none0 = logit(0.5)

Environment parameters:

SymbolRDescriptionUnitsDefault
\(P\)Patmospheric pressurekPa101.3246
\(r\)rreflectance for shortwave irradiance (albedo)none0.2
\(\mathrm{RH}\)RHrelative humiditynone0.50
\(S_\mathrm{sw}\)S_swincident short-wave (solar) radiation flux densityW / m\(^2\)1000
\(S_\mathrm{lw}\)S_lwincident long-wave radiation flux densityW / m\(^2\)calculated
\(T_\mathrm{air}\)T_airair temperatureK298.15
\(u\)windwindspeedm / s2

Constants:

SymbolRDescriptionUnitsDefault
\(c_p\)c_pheat capacity of airJ / (g K)1.01
\(D_{h,0}\)D_h0diffusion coefficient for heat in air at 0 °Cm\(^2\) / s19.0e-06
\(D_{m,0}\)D_m0diffusion coefficient for momentum in air at 0 °Cm\(^2\) / s13.3e-06
\(D_{w,0}\)D_w0diffusion coefficient for water vapour in air at 0 Cm\(^2\) / s21.2e-06
\(\epsilon\)epsilonratio of water to air molar massesnone0.622
\(eT\)eTexponent for temperature dependence of diffusionnone1.75
\(G\)Ggravitational accelerationm / s\(^2\)9.8
\(Nu\)NuNusselt numbernonecalculated
\(R\)Rideal gas constantJ / (mol K)8.3144598
\(R_\mathrm{air}\)R_airspecific gas constant for dry airJ / (kg K)287.058
\(\sigma\)sStefan-Boltzmann constantW / (m\(^2\) K\(^4\))5.67e-08
\(Sh\)ShSherwood numbernonecalculated

Examples


library(tealeaves)

# Use defaults
cs <- make_constants()
ep <- make_enviropar()
lp <- make_leafpar()

# Replace defaults

ep <- make_enviropar(
  replace = list(
    T_air = set_units(300, K)
  )
)

lp <- make_leafpar(
  replace = list(
    leafsize = set_units(c(0.1, 0.2), m)
  )
)