fnc_MvG.swc | R Documentation |
This simple function reproduces the Mualem-vanGenuchten equation without creating another package dependency.
fnc_MvG.swc(psi, alpha, n, ThS, ThR, m = 1 - 1/n)
psi |
pressure head in hPa |
alpha |
MvG alpha in 1/cm |
n |
MvG n, dimensionless |
ThS |
MvG theta_s |
ThR |
MvG theta_r |
Value of volumetric water content (theta) for given pressure head (psi)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.