Kharon theory manual
Conservation of Mass

Steady one-dimensional conservation of mass (of phase q) is given through the following relation
-
(1)
Equation 1 is discretized for an interior cell, shown in Figure 1, by volume integration over cell P.
-
(2)
The divergence term on the left-hand side of the equation is transformed into a surface integral over the cell faces using the divergence theorem.
-
(3)
Throughout this document upwind discretization is used to evaluate the face mass flow rates, even though any discretization scheme could be chosen. The final discretized form reduces to
-
(4)
where:
volume fraction of phase q [-], volumetric mass transfer rate from phase p to q [kg/m3s], mass transfer rate from phase p to q [kg/s], porosity, fluid fraction of cell volume [-], density of phase q [kg/m3], face area [m2], face mass flow rate [kg/s], face normal pointing out of the cell (1 for east face, -1 for west face), volumetric mass source to phase q [kg/m3s], mass source to phase q [kg/s], velocity of phase q [m/s], subscript e east face (the face in the negative x-direction), subscript w west face (the face in the positive x-direction), subscript q current phase for which the equation is written (1 = primary, 2 = secondary), subscript p the other phase (p = 2 for q = 1 and p = 1 for q = 2), subscript pq indicates exchange between phases (e.g. mass transfer from phase p to q).
Conservation of Momentum

Steady one-dimensional conservation of momentum (of phase q) is solved from the following relation
-
(5)
Equation 5 is discretized for an interior cell, shown in Figure 2, by volume integration over cell P. The diffusion term has been moved to the left-hand side, since it will be developed together with the divergence of momentum.
-
(6)
As with the conservation of mass equation above, the divergence terms on the left-hand side of the equation are transformed into surface integrals over the cell faces using the divergence theorem.
-
(7)
Developing the left-hand side terms first
-
(8)
Adopting upwind discretization for the momentum fluxes on the cell faces
-
(9)
-
(10)
and rearranging terms
-
(11)
Denoting and
and modifying the central coefficient slightly, since
and
, Equation 11 reduces to
-
(12)
Identifying the coefficients of neighboring velocities
-
(13)
-
(14)
leads to a general form
-
(15)
Substituting the results of Equation 15 into Equation 7 and continuing with the development
-
(16)
At this point, the conservation of mass equation times cell velocity, , is subtracted from Equation 16
-
(17)
Splitting the mass source term
-
(18)
-
(19)
Since the right-hand side contains only references to the central cell, subscripts P have been dropped from right-hand side to simplify the notation. Note that the diagonal element of the coefficient matrix contains the split terms, , resulting from the subtraction of the mass equation times cell velocity, while the counterparts,
, remain on the right-hand side. These are not considered as momentum source terms, as such, since they are only artifacts of the derivation procedure.
Finally, denoting the central coefficient by and casting Equation 19 into a vector form (over the phases) the final form, in which the equations are actually solved, is obtained. For simplicity’s sake, the equation is written only for the first 3 cells (c1, c2 and c3).
-
(20)
where:
and
volume fraction of phase q [-], volumetric mass transfer rate from phase p to q [kg/m3s], mass transfer rate from phase p to q [kg/s], distance between two adjacent cell centers [m], porosity, fluid fraction of cell volume [-], effective viscosity of phase q [Ns/m2], density of phase q [kg/m3], face area [m2], inertial loss coefficient [1/m], face mass flow rate [kg/s], acceleration of gravity [m/s2], volumetric interphase drag coefficient [kg/m3s], interphase drag coefficient [kg/s], face normal pointing out of the cell (1 for east face, -1 for west face), pressure [Pa], volumetric mass source to phase q [kg/m3s], mass source to phase q [kg/s], volumetric momentum source to phase q [N/m3], momentum source to phase q [N], velocity of phase q [m/s], cell volume [m3], subscript c1 refers to first cell, subscript c2 refers to second cell, subscript c3 refers to third cell, subscript e east face (the face in the negative x-direction), subscript E east neighbor (the cell in the negative x-direction), subscript w west face (the face in the positive x-direction), subscript W west neighbor (the cell in the positive x-direction), subscript P central cell (the cell for which the equation is written), subscript q current phase for which the equation is written (1 = primary, 2 = secondary), subscript p the other phase (p = 2 for q = 1 and p = 1 for q = 2), subscript pq indicates exchange between phases (e.g. mass transfer from phase p to q).
Conservation of Total Enthalpy

Conservation of total enthalpy (of phase q) can be written as
-
(21)
Disregarding the transient terms and moving the diffusion term to the left-hand side leads to
-
(22)
Total enthalpy is defined as the sum of specific enthalpy, kinetic energy and potential energy
-
(23)
where is the dot product of gravity vector,
, and location vector,
, a vector pointing from the reference level to the evaluated location. The total enthalpies related to phase change can be defined as
-
(24)
In other words, when mass is transferred to phase q (“created”), it brings with it the saturation enthalpy of phase q, , and the kinetic energy of phase p,
. When mass is transferred from phase q (“destroyed”), it leaves with the enthalpy and kinetic energy of phase q,
. It is chosen that the potential energy associated with phase change is evaluated at the center of the cell,
.
Substituting Equation 23 and Equation 24 to Equation 22 and rearranging terms
-
(25)
At this point, an approximation is introduced: the diffusion term is expressed relative to the gradient of enthalpy, instead of temperature, as follows. This approximation is considered to be sufficiently accurate for small enthalpy differences.
-
(26)
Equation 26 is discretized for an interior cell, shown in Figure 3, by volume integration over cell P.
-
(27)
As with the conservation of mass and momentum above, the divergence terms on the left-hand side of the equation are transformed into surface integrals over the cell faces using the divergence theorem.
-
(28)
Developing the left-hand side first.
-
(29)
Adopting upwind discretization for the enthalpy fluxes on the cell faces
-
(30)
and rearranging terms
-
(31)
Denoting and
and modifying the central coefficient slightly, since
and
, Equation 31 reduces to
-
(32)
Identifying the coefficients of neighboring velocities as
-
(33)
leads to a general form
-
(34)
Substituting the results of Equation 34 into Equation 28 and continuing with the development
-
(36)
Integrating the right-hand side term by term. The phase change term reduces to
-
(36)