fetch3.initial_conditions.calc_potential_vangenuchten#
- calc_potential_vangenuchten(theta, theta_r, theta_s, alpha, m, n, rho, g)#
Calculates water potential from soil moisture, using van Genuchten equation
- Parameters:
theta (float or np.ndarray) – soil water content [m3 m-3]
theta_r (float) – residual water content [m3 m-3]
theta_s (float) – saturated water content [m3 m-3]
alpha (float) – empirical van Genuchten parameter [m-1]
m (float) – empirical van Genuchten parameter [unitless]
n (float) – empirical van Genuchten parameter [unitless]
rho (float) – density of water [kg m-3]
g (float) – gravitational constant [m s-2]
- Returns:
water_potential_Pa – water potential [Pa]
- Return type:
float or np.ndarray