Boundary conditions Directory UMM :Data Elmu:jurnal:A:Advances In Water Resources:Vol21.Issue8.1998:
to DS
w
was always negative so that S
w
þ DS
w
a 1.0. The sign assigned to Dx
ib
was positive unless the mole fraction of either the organic or the alcohol in the wetting phase, or
the water or the alcohol in the non-wetting phase, approached the plait point. This would ensure that the
algorithms for calculating the equations of state received appropriate input compositions.
At the completion of each Newton iteration, the state of each cell is determined. To switch from a state of 1 to a state
of 2, either the composition of the single phase at that node must fall below the binodal curve and a second phase is
precipitated or, as mentioned above, the non-wetting phase invades that node from neighboring nodes. If the
switch is made due to precipitation of a second phase, the two new phases are assumed to be in equilibrium with an
overall composition equivalent to that of the original single phase.
To switch from a state of 2 to a state of 1 at a particular node, either the composition of the two bulk phases at that
node are miscible, or the wetting phase saturation is greater than 1 at the end of an iteration. If the switch is made due to
miscibility of the two phases, the composition of the new single phase is equal to the overall composition of the two
original phases. If the switch is made due to S
w Nþ1
s 1.0, the composition remains equal to the composition of wetting
phase found at the end of the iteration, and the wetting phase saturation is set equal to 1.0.
Adaptive time stepping in a formulation similar to Ref.
56
is used for calculation of the time increment at the present time step, Dt
Nþ1
, given by Dt
N þ 1
¼ Min
Dt
N
DS
T w
DS
max w
, Dt
N
Dx
T
Dx
max b
, C
1
Dt
N
14 where Dt
N
is the previous time step increment, DS
w T
is the target change in wetting phase saturation, DS
w max
is the maximum change in wetting phase saturation in the entire
domain from time step N ¹ 1 to time step N, Dx
T
is the target change in composition, Dx
b max
is the maximum change in composition in the entire domain from time
step N ¹ 1 to time step N expressed as a mole fraction, and C
1
is a constant greater than 1.0 that dictates the rate of time increment increase. Input target changes in saturation
and composition represent the desired maximum changes of these variables in the entire domain from one time step
to the next.