# IRP=13  Simple hysteresis

The regular hysteresis option (*IRP* = *ICP* = 12) provides a rigorous representation of hysteretic relative permeability and capillary pressure curves.  However, it can significantly slow down TOUGH simulations, because small time steps are often required at turning points, when a grid block switches between drainage and imbibition, because the slopes of the characteristic curves are discontinuous. Moreover, several control parameters are needed, which generally must be determined by trial and error, for the code to run smoothly.  An alternative means of capturing the essence of hysteresis, while maintaining continuous slopes and requiring no additional control parameters, is the simple hysteresis algorithm of Patterson and Falta (2012), which is invoked with *IRP* = *ICP* = 13

The Mualem (1976) relative permeability model is used for the non-wetting phase:

$${k\_{rn}} = \sqrt {1 - {{\bar S}*{wn}}} {(1 - {\bar S*{wn}}^{1/m})^{2m}}$$

where

$${\bar S\_{wn}} = \frac{{{S\_w} - {S\_{wr}}}}{{1 - {S\_{wr}} - {S\_{nr}}}}$$

and  $$S\_{wr}$$  and  $$S\_{nr}$$  are residual saturations of the wetting and non-wetting phases, respectively.  Hysteresis is implemented by considering  $$S\_{nr}$$  to be a variable, which is calculated from the maximum historical non-wetting phase saturation in a grid block,  $$S\_{nmax}$$ .  The user has the option to specify *Snr* as a linear function of the historical $$S\_{nmax}$$ :

$${S\_{nr}} = {f\_{snr}}{S\_{n\max }}$$

or  $$S\_{nr}$$  can be calculated using a modified form of the Land (1968) relationship

$${S\_{nr}} = \frac{{{S\_{n\max }}}}{{1 + C{S\_{n\max }}}}$$

with&#x20;

$$C = \frac{1}{{{S\_{nr\max }}}} - \frac{1}{{1 - {S\_{wr}}}}$$

where $$f\_{snr}$$  and $$S\_{nmax}$$ , the maximum residual non-wetting phase saturation, are user-specified material properties.  $$S\_{nr}$$  is calculated during every Newton-Raphson iteration. If  $$S\_{n}$$  drops below   $$S\_{nr}$$   by dissolution or compression,  $$S\_{nmax}$$ is recalculated as

$${S\_{n\max }} = \frac{{{S\_n}}}{{{f\_{snr}}}}$$ or $${S\_{n\max }} = \frac{{{S\_n}}}{{1 - C{S\_n}}}$$

Wetting-phase relative permeability (non-hysteretic) is from van Genuchten (1980)

$${k\_{rw}} = \sqrt {{{\bar S}\_w}} {\left\[ {1 - {{(1 - {{\bar S}\_w}^{1/m})}^m}} \right]^2}$$

where

$${\bar S\_w} = \frac{{{S\_w} - {S\_{wr}}}}{{{S\_{ws}} - {S\_{wr}}}}$$

Parameters:    &#x20;

*RP(1)* = *m* to use in $$k\_{rw}$$

&#x20;*RP(2)* =   $$S\_{wr}$$&#x20;

&#x20;*RP(3)* =   $$S\_{ws}$$  (recommend 1)

&#x20;*RP(4)* If <0 = - $$f\_{snr}$$ in linear trapping model

&#x20;            If >0 =   $$S\_{nr max}$$   in Land trapping model

*RP(5) =* $$m\_{gas}$$*, m* to use in  $$k\_{rn}$$; if zero or blank, use *RP(1)*

*RP(6)* = power to use in first term in   $$k\_{rn}$$ (default ½)

*RP(7)* If = 0 Use ( ) in first term in   $$k\_{rn}$$ (Mualem, 1976)

&#x20;          If > 0 Use $$S\_g$$ in first term in   $$k\_{rn}$$ (Charbeneau, 2007), so that   $$k\_{rn}$$ does not go to 1 when immobile liquid phase is present

&#x20;
