Fit soil water retention function with hysteresis

View the Project on GitHub or PyPI


hystfit is a Python library designed to calculate the soil water retention curve (SWRC) with hysteresis, building upon the model proposed by Zhou (2013). It extends the functionality of unsatfit.

Although Zhou’s model is complex, hystfit simplifies the plotting of SWRCs that incorporate hysteresis and aids in parameter optimization. Once parameters are determined, it enables the calculation of changes in pressure head based on changes in water content.


Please follow the instruction.

Example output

Here are some figures calculated using hystfit. For more detailed information, please refer to the example documentation, which provides sample codes for generating these figures.