fnc_MvG.swc: Mualem-vanGenuchten Function

View source: R/fnc_MvG.R

fnc_MvG.swcR Documentation

Mualem-vanGenuchten Function

Description

This simple function reproduces the Mualem-vanGenuchten equation without creating another package dependency.

Usage

fnc_MvG.swc(psi, alpha, n, ThS, ThR, m = 1 - 1/n)

Arguments

psi

pressure head in hPa

alpha

MvG alpha in 1/cm

n

MvG n, dimensionless

ThS

MvG theta_s

ThR

MvG theta_r

Value

Value of volumetric water content (theta) for given pressure head (psi)

Examples

psi_vals <- 10^(seq(log10(1), log10(100000), length.out = 500))

# Ls3
thetas <- fnc_MvG.swc(psi = psi_vals,
                      alpha = 0.06835,
                      n = 1.20501,
                      ThS = 0.4091,
                      ThR = 0.07284)
#Ts3
thetas2 <- fnc_MvG.swc(psi = psi_vals,
                      alpha = 0.06194,
                      n = 1.14565,
                      ThS = 0.4374,
                      ThR = 0.07841)
# Ss
thetas3 <- fnc_MvG.swc(psi = psi_vals,
                       alpha = 0.26437,
                       n = 1.35154,
                       ThS = 0.3879,
                       ThR = 0)

plot(log10(psi_vals), thetas,  ylim =c(0,0.5),
     xlab = "pressure head (pF)", ylab = "soil water content")
points(log10(psi_vals), thetas2, col = "red")
points(log10(psi_vals), thetas3, col = "blue")
legend("topright", inset = 0.02, title = "soil texture", c("Ls3", "Ts3", "Ss"),
       col=c("black", "red", "blue"), pch = 19, cex=0.8)

rhabel/modLWFB90 documentation built on Nov. 21, 2024, 3:28 a.m.