## Tips & Tricks

### Codes and more that we use often

January 27, 2020 by

### Soil Hydraulic Functions in Matlab

#### Water Retention Functions

The van Genuchten (1980) model is the most widely used water retention curve function:

where the effective saturation is defined as:

The hydraulic conductivity function is defined using Mualem Model.

The hydraulic capacity function.

The following function takes a scalr or vector of u as input: test