Fitting soil water retention curve data in R
2020-08-09 / Blog 5
The relationship between water content (θ) of the soil and its matric suction (Ψ), or water potential, is defined using the soil water retention curve (SWRC). One of the most commonly used equations to define the SWRC of a soil is proposed by van Genuchten (1980). In terms of usual geotechnical parameters, SWRC equation can be expressed as follows:
where θs and θr are the saturated and residual water content, α and n are the fitting parameters of the equation. α is related - but not equal - to the air-entry value of the soil, whereas n controls the slope of the mid-section of the curve.
You can determine SWRC in many ways. But it can be summarised in two main categories as suction-controlled and suction-monitored. Suction-controlled techniques are mainly used in the laboratory, whereas suction-monitoring techniques can be applied both under laboratory and field conditions. Whatever technique you use, what you end up as data is combinations of volumetric, or gravimetric, water content and matric suction. What you need after you obtain the data is an algorithm to fit the equation of van Genuchten (1980) to the measured data.
We start with defining a function to calculate the volumetric water content at a discrete value of matric suction.
We will use the nls function in R to estimate the fitting parameters of the van Genuchten (1980) equation using a non-linear least squares algorithm.
Here, y is the measured volumetric water content values, while x is the measured matric suction values. You need to enter a rough estimate of starting values for the fitting parameters. R will try to estimate your fitting parameters using a convergence criteria. If successful, you will end up with such a screen:
We see that the estimation has been performed successfully in 9 iterations, and all our fitting parameters are statistically significant. We obtain the fitting parameters as θs = 42.3%, θr=5.94%, a=0.27 and n=7.42.
keywords: soil water retention curve; SWRC; van Genuchten; water content; matric suction, non-linear least squares