ThomasV: Thomas algorithm for solving simultanious vapour fluxes

View source: R/code.R

ThomasVR Documentation

Thomas algorithm for solving simultanious vapour fluxes

Description

ThomasV implements the Thomas algorithm for solving simultanious vapour fluxes between air layers.

Usage

ThomasV(
  Vo,
  tn,
  pk,
  theta,
  thetap,
  relhum,
  tair,
  tsoil,
  zth,
  gt,
  Vflux,
  f = 0.6,
  previn,
  soilp
)

Arguments

Vo

a vector of air vapour concentrations for each canopy node in the previos timestep (mol fraction)

tn

vector of air temperatures (deg C) for each canopy node in the current timestep (deg C)

pk

atmospheric pressure (kPa)

theta

Volumetric water content of the upper most soil layer in the current time step (m3 / m3)

thetap

Volumetric water content of the upper most soil layer in the previous time step (m3 / m3)

relhum

relative humidity (percentage) at reference height 2 m above canopy in current time step (percentage)

tair

air temperature at reference height 2 m above canopy in current time step (deg C)

tsoil

temperature of upper soil layer in current time step (deg C)

zth

heightdifference between each canopy node and that directly below it. the first value is the height difference between the lowest canopy node and the ground

gt

vector of molar conductances between each canopy node at that directly below it (mol / m^2 / sec). The first value is the conductivity between the ground and the lowest node, and the last value the conductivity between the highest node and reference height.

Vflux

Total vapour flux from leaves to air (mol /m^3)

f

forward / backward weighting of algorithm (as for Thomas())

previn

a list of model outputs form the previous timestep

soilp

a list of soil parameters as returned by soilinit()

Value

a vector of vapour concentrations expressed as mole fractions for each canopy node in the current time step. The first value is that for the ground and the last value that at reference height

See Also

Thomas()


ilyamaclean/microclimc documentation built on July 28, 2023, 1:40 a.m.