A modified version of the Brooks-Corey model (Brooks and Corey, 1964) has been implemented. In order to prevent the capillary pressure from decreasing towards negative infinity as the effective saturation approaches zero, a linear function is used for saturations Sl below a certain value Slrc+ε, where εis a small number. The slope of the linear extrapolation is identical with the slope of the capillary pressure curve at Sl=Slrc+ε. Alternatively, the capillary pressure is prevented from becoming more negative than −pc,max. The modified Brooks-Corey model is invoked by setting both IRP and ICP to 10.