Difference between revisions of "Kharon theory manual"
Ville Hovi (talk | contribs) |
Ville Hovi (talk | contribs) |
||
Line 89: | Line 89: | ||
Steady one-dimensional conservation of momentum (of phase ''q'') is solved from the following relation | Steady one-dimensional conservation of momentum (of phase ''q'') is solved from the following relation | ||
− | :<math> \nabla\cdot(\varepsilon \alpha_q \rho_q u_q u_q) = \nabla\cdot(\varepsilon \alpha_q \mu_{\text{eff},q} \nabla u_q) + [\text{max}(\gamma_{pq},0)u_p - \text{max}(-\gamma_{pq},0)u_q] | + | <equation id="eqn:MomentumConservation"> |
− | + | {{NumBlk|:|<math>\nabla\cdot(\varepsilon \alpha_q \rho_q u_q u_q) = \nabla\cdot(\varepsilon \alpha_q \mu_{\text{eff},q} \nabla u_q)</math>|<xr id="eqn:MomentumConservation" nolink />}} | |
+ | ::::<math>+ [\text{max}(\gamma_{pq},0)u_p - \text{max}(-\gamma_{pq},0)u_q] - \varepsilon \alpha_q \nabla p + \varepsilon \alpha_q \rho_q g</math> | ||
+ | ::::<math>- \frac{1}{2} \varepsilon^3 \alpha_q \rho_q C \left| u_q \right| u_q - k(u_q - u_p) + s_{\text{mom},q}</math> | ||
+ | </equation> | ||
− | + | <xr id="eqn:MomentumConservation"/> is discretized for an interior cell, shown in <xr id="fig:MomentumConservation"/>, 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. | |
− | :<math> \Leftrightarrow \iiint\limits_V [\nabla\cdot(\varepsilon \alpha_q \rho_q u_q u_q) - \nabla\cdot(\varepsilon \alpha_q \mu_{\text{eff},q} \nabla u_q)]\, dV = \iiint\limits_V [\text{max}(\gamma_{pq},0)u_p - \text{max}(-\gamma_{pq},0)u_q]\, dV </math> | + | <equation id="eqn:MomentumConservation2"> |
+ | {{NumBlk|:|<math>\Leftrightarrow \iiint\limits_V [\nabla\cdot(\varepsilon \alpha_q \rho_q u_q u_q) - \nabla\cdot(\varepsilon \alpha_q \mu_{\text{eff},q} \nabla u_q)]\, dV = \iiint\limits_V [\text{max}(\gamma_{pq},0)u_p - \text{max}(-\gamma_{pq},0)u_q]\, dV</math>|<xr id="eqn:MomentumConservation2" nolink />}} | ||
::::<math> + \iiint\limits_V (-\varepsilon \alpha_q \nabla p + \varepsilon \alpha_q \rho_q g - \frac{1}{2} \varepsilon^3 \alpha_q \rho_q C \left| u_q \right| u_q - k(u_q - u_p) + s_{\text{mom},q})\, dV </math> | ::::<math> + \iiint\limits_V (-\varepsilon \alpha_q \nabla p + \varepsilon \alpha_q \rho_q g - \frac{1}{2} \varepsilon^3 \alpha_q \rho_q C \left| u_q \right| u_q - k(u_q - u_p) + s_{\text{mom},q})\, dV </math> | ||
+ | </equation> | ||
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. | 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. | ||
− | :<math> \Leftrightarrow \iint\limits_{A}\!\!\!\!\!\!\!\!\!\!\!\subset\!\supset [(\varepsilon \alpha_q \rho_q u_q u_q)\cdot n - (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x})\cdot n]\, dA = [\text{max}(\Gamma_{pq},0)u_p - \text{max}(-\Gamma_{pq},0)u_q] </math> | + | <equation id="eqn:MomentumConservation3"> |
+ | {{NumBlk|:|<math>\Leftrightarrow \iint\limits_{A}\!\!\!\!\!\!\!\!\!\!\!\subset\!\supset [(\varepsilon \alpha_q \rho_q u_q u_q)\cdot n - (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x})\cdot n]\, dA = [\text{max}(\Gamma_{pq},0)u_p - \text{max}(-\Gamma_{pq},0)u_q]</math>|<xr id="eqn:MomentumConservation3" nolink />}} | ||
::::<math> -\varepsilon \alpha_q V \nabla p + \varepsilon \alpha_q \rho_q V g - \frac{1}{2} \varepsilon^3 \alpha_q \rho_q C V \left| u_q \right| u_q - K(u_q - u_p) + S_{\text{mom},q} </math> | ::::<math> -\varepsilon \alpha_q V \nabla p + \varepsilon \alpha_q \rho_q V g - \frac{1}{2} \varepsilon^3 \alpha_q \rho_q C V \left| u_q \right| u_q - K(u_q - u_p) + S_{\text{mom},q} </math> | ||
+ | </equation> | ||
Developing the left-hand side terms first | Developing the left-hand side terms first | ||
− | :<math> \iint\limits_{A}\!\!\!\!\!\!\!\!\!\!\!\subset\!\supset [(\varepsilon \alpha_q \rho_q u_q u_q)\cdot n - (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x})\cdot n]\, dA </math> | + | <equation id="eqn:MomentumConservation4"> |
+ | {{NumBlk|:|<math>\iint\limits_{A}\!\!\!\!\!\!\!\!\!\!\!\subset\!\supset [(\varepsilon \alpha_q \rho_q u_q u_q)\cdot n - (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x})\cdot n]\, dA</math>|<xr id="eqn:MomentumConservation4" nolink />}} | ||
::::<math> = (\varepsilon \alpha_q \rho_q u_q u_q A)_{\text{e}} - (\varepsilon \alpha_q \rho_q u_q u_q A)_{\text{w}} - (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x} A)_{\text{e}} + (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x} A)_{\text{w}} </math> | ::::<math> = (\varepsilon \alpha_q \rho_q u_q u_q A)_{\text{e}} - (\varepsilon \alpha_q \rho_q u_q u_q A)_{\text{w}} - (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x} A)_{\text{e}} + (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x} A)_{\text{w}} </math> | ||
::::<math> = F_{\text{e},q} u_{\text{e},q} + F_{\text{w},q} u_{\text{w},q} - (\varepsilon \alpha_q A \frac{\mu_{\text{eff},q}}{\delta x})_{\text{e}} (u_{\text{e},q} - u_{\text{P},q}) + (\varepsilon \alpha_q A \frac{\mu_{\text{eff},q}}{\delta x})_{\text{w}} (u_{\text{P},q} - u_{\text{w},q}) </math> | ::::<math> = F_{\text{e},q} u_{\text{e},q} + F_{\text{w},q} u_{\text{w},q} - (\varepsilon \alpha_q A \frac{\mu_{\text{eff},q}}{\delta x})_{\text{e}} (u_{\text{e},q} - u_{\text{P},q}) + (\varepsilon \alpha_q A \frac{\mu_{\text{eff},q}}{\delta x})_{\text{w}} (u_{\text{P},q} - u_{\text{w},q}) </math> | ||
+ | </equation> | ||
+ | |||
Adopting upwind discretization for the momentum fluxes on the cell faces | Adopting upwind discretization for the momentum fluxes on the cell faces | ||
− | :<math> F_{\text{e},q} u_{\text{e},q} = \text{max}(F_{\text{e},q},0)u_{\text{P},q} - \text{max}(-F_{\text{e},q},0)u_{\text{E},q} </math> | + | |
− | :<math> F_{\text{w},q} u_{\text{w},q} = \text{max}(F_{\text{w},q},0)u_{\text{W},q} - \text{max}(-F_{\text{w},q},0)u_{\text{P},q} </math> | + | <equation id="eqn:UpwindMomentumFlux1"> |
+ | {{NumBlk|:|<math>F_{\text{e},q} u_{\text{e},q} = \text{max}(F_{\text{e},q},0)u_{\text{P},q} - \text{max}(-F_{\text{e},q},0)u_{\text{E},q}</math>|<xr id="eqn:UpwindMomentumFlux1" nolink />}} | ||
+ | </equation> | ||
+ | <equation id="eqn:UpwindMomentumFlux2"> | ||
+ | {{NumBlk|:|<math>F_{\text{w},q} u_{\text{w},q} = \text{max}(F_{\text{w},q},0)u_{\text{W},q} - \text{max}(-F_{\text{w},q},0)u_{\text{P},q}</math>|<xr id="eqn:UpwindMomentumFlux2" nolink />}} | ||
+ | </equation> | ||
and rearranging terms | and rearranging terms | ||
− | :<math> \iint\limits_{A}\!\!\!\!\!\!\!\!\!\!\!\subset\!\supset [(\varepsilon \alpha_q \rho_q u_q u_q)\cdot n - (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x})\cdot n]\, dA </math> | + | <equation id="eqn:MomentumConservation5"> |
+ | {{NumBlk|:|<math>\iint\limits_{A}\!\!\!\!\!\!\!\!\!\!\!\subset\!\supset [(\varepsilon \alpha_q \rho_q u_q u_q)\cdot n - (\varepsilon \alpha_q \mu_{\text{eff},q} \frac{\Delta u_q}{\delta x})\cdot n]\, dA</math>|<xr id="eqn:MomentumConservation5" nolink />}} | ||
+ | ::::<math> =[\text{max}(F_{\text{e},q},0) + \text{max}(-F_{\text{w},q},0) + (\varepsilon \alpha_q A \frac{\mu_{\text{eff},q}}{\delta x})_{\text{e}} + (\varepsilon \alpha_q A \frac{\mu_{\text{eff},q}}{\delta x})_{\text{w}}]u_{\text{P},q} </math> | ||
+ | ::::::::<math> -[\text{max}(-F_{\text{e},q},0) + (\varepsilon \alpha_q A \frac{\mu_{\text{eff},q}}{\delta x})_{\text{e}}]u_{\text{E},q} </math> | ||
+ | ::::::::<math> -[\text{max}(F_{\text{w},q},0) + (\varepsilon \alpha_q A \frac{\mu_{\text{eff},q}}{\delta x})_{\text{w}}]u_{\text{W},q} </math> | ||
+ | </equation> | ||
Revision as of 16:01, 17 April 2018
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)
Conservation of Total Enthalpy
