Difference between revisions of "Kharon theory manual"
Ville Hovi (talk | contribs) |
Ville Hovi (talk | contribs) |
||
Line 506: | Line 506: | ||
<equation id="eqn:TotalEnthalpyConservation10"> | <equation id="eqn:TotalEnthalpyConservation10"> | ||
− | {{NumBlk|:|<math>\Rightarrow \left[ a_{\text{e},q} + a_{\text{w},q} + \left( F_{\text{e},q} - F_{\text{w},q} \right) \right] h_{\text{P},q} - a_{\text{e},q} h_{\text{E},q} - a_{\text{w},q} h_{\text{W},q} | + | {{NumBlk|:|<math>\Rightarrow \left[ a_{\text{e},q} + a_{\text{w},q} + \left( F_{\text{e},q} - F_{\text{w},q} \right) \right] h_{\text{P},q} - a_{\text{e},q} h_{\text{E},q} - a_{\text{w},q} h_{\text{W},q}</math>|<xr id="eqn:TotalEnthalpyConservation10" nolink />}} |
::::<math>= \iiint\limits_V \Big\{ \left[\text{max}\left(\gamma_{pq},0\right) \left(h_{\text{P,sat,}q} + \tfrac{1}{2} \left| u_p \right|^2_{\text{P}} - \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}}\right) - \text{max}\left(-\gamma_{pq},0\right) \left(h_{\text{P,}q} + \tfrac{1}{2} \left| u_q \right|^2_{\text{P}} - \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}}\right)\right]</math> | ::::<math>= \iiint\limits_V \Big\{ \left[\text{max}\left(\gamma_{pq},0\right) \left(h_{\text{P,sat,}q} + \tfrac{1}{2} \left| u_p \right|^2_{\text{P}} - \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}}\right) - \text{max}\left(-\gamma_{pq},0\right) \left(h_{\text{P,}q} + \tfrac{1}{2} \left| u_q \right|^2_{\text{P}} - \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}}\right)\right]</math> | ||
::::<math> -\nabla\cdot\left(\tfrac{1}{2}\varepsilon \alpha_q \rho_q \left| u_q \right|^2 u_q\right) | ::::<math> -\nabla\cdot\left(\tfrac{1}{2}\varepsilon \alpha_q \rho_q \left| u_q \right|^2 u_q\right) | ||
Line 554: | Line 554: | ||
Combining equations <xr id="eqn:TotalEnthalpyConservation10"/>, <xr id="eqn:TotalEnthalpyPhaseChangeTerms"/>, <xr id="eqn:TotalEnthalpyDivergenceTerms"/>, <xr id="eqn:TotalEnthalpyFrictionWork"/> and <xr id="eqn:TotalEnthalpySource"/> leads to | Combining equations <xr id="eqn:TotalEnthalpyConservation10"/>, <xr id="eqn:TotalEnthalpyPhaseChangeTerms"/>, <xr id="eqn:TotalEnthalpyDivergenceTerms"/>, <xr id="eqn:TotalEnthalpyFrictionWork"/> and <xr id="eqn:TotalEnthalpySource"/> leads to | ||
+ | |||
+ | <equation id="eqn:TotalEnthalpyConservation11"> | ||
+ | {{NumBlk|:|<math>\Rightarrow \left[ a_{\text{e},q} + a_{\text{w},q} + \left( F_{\text{e},q} - F_{\text{w},q} \right) \right] h_{\text{P},q} - a_{\text{e},q} h_{\text{E},q} - a_{\text{w},q} h_{\text{W},q}</math>|<xr id="eqn:TotalEnthalpyConservation11" nolink />}} | ||
+ | ::::<math> = \left[\text{max}\left(\Gamma_{pq},0\right) \left(h_{\text{P,sat,}q} + \tfrac{1}{2} \left| u_p \right|^2_{\text{P}} - \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}}\right) - \text{max}\left(-\Gamma_{pq},0\right) \left(h_{\text{P,}q} + \tfrac{1}{2} \left| u_q \right|^2_{\text{P}} - \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}}\right)\right] </math> | ||
+ | ::::<math> -\tfrac{1}{2}\left( F_{\text{e},q} \left| u_q \right|^2_{\text{e}} - F_{\text{w},q} \left| u_q \right|^2_{\text{w}}\right) | ||
+ | + \left[ F_{\text{e},q} \left( \mathbf{g} \cdot \mathbf{r} \right)_{\text{e}} - F_{\text{w},q} \left( \mathbf{g} \cdot \mathbf{r} \right)_{\text{w}}\right] - \left( F_{\text{D}} + F_{\text{IPD}} \right) u_{\text{P},q} + S_{h,q} </math> | ||
+ | </equation> | ||
+ | |||
+ | Rearranging terms | ||
+ | |||
+ | <equation id="eqn:TotalEnthalpyConservation12"> | ||
+ | {{NumBlk|:|<math> \Leftrightarrow \left[ a_{\text{e},q} + a_{\text{w},q} + \left( F_{\text{e},q} - F_{\text{w},q} \right) \right] h_{\text{P},q} - a_{\text{e},q} h_{\text{E},q} - a_{\text{w},q} h_{\text{W},q}</math>|<xr id="eqn:TotalEnthalpyConservation12" nolink />}} | ||
+ | ::::<math> = -\tfrac{1}{2} \left[ F_{\text{e},q} \left| u_q \right|^2_{\text{e}} - F_{\text{w},q} \left| u_q \right|^2_{\text{w}} + \text{max}\left(-\Gamma_{pq},0\right) \left| u_q \right|^2_{\text{P}} - \text{max}\left(\Gamma_{pq},0\right) \left| u_p \right|^2_{\text{P}} \right] </math> | ||
+ | ::::<math> + \left[ F_{\text{e},q} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{e}} - F_{\text{w},q} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{w}} - \Gamma_{pq} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}} \right] + \left[ \text{max}\left(\Gamma_{pq},0\right) h_{\text{P,sat,}q} - \text{max}\left(-\Gamma_{pq},0\right) h_{\text{P},q}\right] </math> | ||
+ | ::::<math> - \left( F_{\text{D}} + F_{\text{IPD}} \right) u_{\text{P},q} + S_{h,q} </math> | ||
+ | </equation> | ||
+ | |||
+ | At this point, the conservation of mass equation times cell specific enthalpy, <math>h_{\text{P},q}</math>, is subtracted from <xr id="eqn:TotalEnthalpyConservation12"/> | ||
+ | |||
+ | <equation id="eqn:TotalEnthalpyConservation13"> | ||
+ | {{NumBlk|:|<math> \Rightarrow \left[ a_{\text{e},q} + a_{\text{w},q} + \left( F_{\text{e},q} - F_{\text{w},q} \right) - \left( F_{\text{e},q} - F_{\text{w},q} \right) \right] h_{\text{P},q} - a_{\text{e},q} h_{\text{E},q} - a_{\text{w},q} h_{\text{W},q} </math>|<xr id="eqn:TotalEnthalpyConservation13" nolink />}} | ||
+ | ::::<math> = -\tfrac{1}{2} \left[ F_{\text{e},q} \left| u_q \right|^2_{\text{e}} - F_{\text{w},q} \left| u_q \right|^2_{\text{w}} + \text{max}\left(-\Gamma_{pq},0\right) \left| u_q \right|^2_{\text{P}} - \text{max}\left(\Gamma_{pq},0\right) \left| u_p \right|^2_{\text{P}} \right] </math> | ||
+ | ::::<math> + \left[ F_{\text{e},q} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{e}} - F_{\text{w},q} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{w}} - \Gamma_{pq} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}} \right] + \left[ \text{max}\left(\Gamma_{pq},0\right) h_{\text{P,sat,}q} - \text{max}\left(-\Gamma_{pq},0\right) h_{\text{P},q}\right] </math> | ||
+ | ::::<math> - \left( F_{\text{D}} + F_{\text{IPD}} \right) u_{\text{P},q} + S_{h,q} - \left( \Gamma_{pq} + S_{\text{mass},q} \right) h_{\text{P},q} </math> | ||
+ | </equation> | ||
+ | |||
+ | Splitting the mass source terms into negative and positive parts | ||
+ | |||
+ | <equation id="eqn:TotalEnthalpyConservation14"> | ||
+ | {{NumBlk|:|<math> \Leftrightarrow \left[ a_{\text{e},q} + a_{\text{w},q} + \left( F_{\text{e},q} - F_{\text{w},q} \right) - \left( F_{\text{e},q} - F_{\text{w},q} \right) \right] h_{\text{P},q} - a_{\text{e},q} h_{\text{E},q} - a_{\text{w},q} h_{\text{W},q} </math>|<xr id="eqn:TotalEnthalpyConservation14" nolink />}} | ||
+ | ::::<math> = -\tfrac{1}{2} \left[ F_{\text{e},q} \left| u_q \right|^2_{\text{e}} - F_{\text{w},q} \left| u_q \right|^2_{\text{w}} + \text{max}\left(-\Gamma_{pq},0\right) \left| u_q \right|^2_{\text{P}} - \text{max}\left(\Gamma_{pq},0\right) \left| u_p \right|^2_{\text{P}} \right] </math> | ||
+ | ::::<math> + \left[ F_{\text{e},q} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{e}} - F_{\text{w},q} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{w}} - \Gamma_{pq} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}} \right] + \left[ \text{max}\left(\Gamma_{pq},0\right) h_{\text{P,sat,}q} - \text{max}\left(-\Gamma_{pq},0\right) h_{\text{P},q}\right] </math> | ||
+ | ::::<math> - \left( F_{\text{D}} + F_{\text{IPD}} \right) u_{\text{P},q} + S_{h,q} - \left[ \text{max}\left(\Gamma_{pq},0\right) - \text{max}\left(-\Gamma_{pq},0\right) \right] h_{\text{P},q} - \left[ \text{max}\left(S_{\text{mass},q},0\right) - \text{max}\left(-S_{\text{mass},q},0\right)\right] h_{\text{P},q} </math> | ||
+ | </equation> | ||
+ | |||
+ | and rearranging the terms leads to the final form | ||
+ | |||
+ | <equation id="eqn:DiscretizedTotalEnthalpyConservation"> | ||
+ | {{NumBlk|:|<math> \Leftrightarrow \left[ a_{\text{e},q} + a_{\text{w},q} + \text{max}\left(\Gamma_{pq},0\right) + \text{max}\left(S_{\text{mass},q},0\right) + \text{max}\left(-\Gamma_{pq},0\right) \right] h_{\text{P},q} - a_{\text{e},q} h_{\text{E},q} - a_{\text{w},q} h_{\text{W},q} </math>|<xr id="eqn:DiscretizedTotalEnthalpyConservation" nolink />}} | ||
+ | ::::<math> = \left[ \text{max}\left(-\Gamma_{pq},0\right) + \text{max}\left(-S_{\text{mass},q},0\right) \right] h_{\text{P},q} + \text{max}\left(\Gamma_{pq},0\right) h_{\text{P,sat},q} </math> | ||
+ | ::::<math> - \tfrac{1}{2} \left[ F_{\text{e},q} \left| u_q \right|^2_{\text{e}} - F_{\text{w},q} \left| u_q \right|^2_{\text{w}} + \text{max}\left(-\Gamma_{pq},0\right) \left| u_q \right|^2_{\text{P}} - \text{max}\left(\Gamma_{pq},0\right) \left| u_p \right|^2_{\text{P}} \right] </math> | ||
+ | ::::<math> + \left[ F_{\text{e},q} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{e}} - F_{\text{w},q} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{w}} - \Gamma_{pq} \left(\mathbf{g} \cdot \mathbf{r}\right)_{\text{P}} \right] - \left( F_{\text{D}} + F_{\text{IPD}} \right) u_{\text{P},q} + S_{h,q} </math> | ||
+ | </equation> | ||
+ | |||
+ | where: | ||
+ | :{| | ||
+ | |<math> \alpha_q </math> | ||
+ | | | ||
+ | |volume fraction of phase ''q'' [-], | ||
+ | |- | ||
+ | |<math> \gamma_{pq} </math> | ||
+ | | | ||
+ | |volumetric mass transfer rate from phase ''p'' to ''q'' [kg/m<sup>3</sup>s], | ||
+ | |- | ||
+ | |<math> \Gamma_{pq} </math> | ||
+ | | | ||
+ | |mass transfer rate from phase ''p'' to ''q'' [kg/s], | ||
+ | |- | ||
+ | |<math> \delta x </math> | ||
+ | | | ||
+ | |distance between two adjacent cell centers [m], | ||
+ | |- | ||
+ | |<math> \varepsilon </math> | ||
+ | | | ||
+ | |porosity, fluid fraction of cell volume [-], | ||
+ | |- | ||
+ | |<math> \lambda_{\text{eff},q} </math> | ||
+ | | | ||
+ | |effective thermal conductivity of phase ''q'' [W/mK], | ||
+ | |- | ||
+ | |<math> \rho_q </math> | ||
+ | | | ||
+ | |density of phase ''q'' [kg/m<sup>3</sup>], | ||
+ | |- | ||
+ | |<math> A </math> | ||
+ | | | ||
+ | |face area [m<sup>2</sup>], | ||
+ | |- | ||
+ | |<math> C </math> | ||
+ | | | ||
+ | |inertial loss coefficient [1/m], | ||
+ | |- | ||
+ | |<math> F </math> | ||
+ | | | ||
+ | |face mass flow rate [kg/s], | ||
+ | |- | ||
+ | |<math> F_{\text{D}} </math> | ||
+ | | | ||
+ | |drag force [N], | ||
+ | |- | ||
+ | |<math> F_{\text{IPD}} </math> | ||
+ | | | ||
+ | |interphase drag force [N], | ||
+ | |- | ||
+ | |<math> \mathbf{g} </math> | ||
+ | | | ||
+ | |acceleration of gravity (vector) [m/s<sup>2</sup>], | ||
+ | |- | ||
+ | |<math> h_q </math> | ||
+ | | | ||
+ | |specific enthalpy of phase ''q'' [J/kg], | ||
+ | |- | ||
+ | |<math> h_{0,q} </math> | ||
+ | | | ||
+ | |total enthalpy of phase ''q'' [J/kg], | ||
+ | |- | ||
+ | |<math> K </math> | ||
+ | | | ||
+ | |interphase drag coefficient [kg/s], | ||
+ | |- | ||
+ | |<math> n </math> | ||
+ | | | ||
+ | |face normal pointing out of the cell (1 for east face, -1 for west face), | ||
+ | |- | ||
+ | |<math> p </math> | ||
+ | | | ||
+ | |pressure [Pa], | ||
+ | |- | ||
+ | |<math> \mathbf{r} </math> | ||
+ | | | ||
+ | |location vector [m], | ||
+ | |- | ||
+ | |<math> s_{h,q} </math> | ||
+ | | | ||
+ | |volumetric energy source to phase ''q'' [W/m<sup>3</sup>], | ||
+ | |- | ||
+ | |<math> S_{h,q} </math> | ||
+ | | | ||
+ | |energy source to phase ''q'' [W], | ||
+ | |- | ||
+ | |<math> s_{\text{mass},q} </math> | ||
+ | | | ||
+ | |volumetric mass source to phase ''q'' [kg/m<sup>3</sup>s], | ||
+ | |- | ||
+ | |<math> S_{\text{mass},q} </math> | ||
+ | | | ||
+ | |mass source to phase ''q'' [kg/s], | ||
+ | |- | ||
+ | |<math> u_q </math> | ||
+ | | | ||
+ | |velocity of phase ''q'' [m/s], | ||
+ | |- | ||
+ | |<math> V </math> | ||
+ | | | ||
+ | |cell volume [m<sup>3</sup>], | ||
+ | |- | ||
+ | |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. <math> \Gamma_{pq} </math> mass transfer from phase ''p'' to ''q''). | ||
+ | |} | ||
+ | |||
+ | Same as the conservation of momentum equations above, <xr id="eqn:DiscretizedTotalEnthalpyConservation"/> is solved in a phase-coupled manner, even though, due to the chosen interphase heat and mass transfer concept, the phase coupling coefficients are zero. As a reminder, the terms <math> \left[ \text{max}\left(\Gamma_{pq},0\right) + \text{max}\left(S_{\text{mass},q},0\right) \right] h_{\text{P},q} </math> on the left-hand side and <math> \left[ \text{max}\left(-\Gamma_{pq},0\right) + \text{max}\left(-S_{\text{mass},q},0\right) \right] h_{\text{P},q} </math> on the right-hand side result from the derivation procedure and are not considered as source terms. The terms <math> \text{max}\left(-\Gamma_{pq},0\right) h_{\text{P},q} </math> on the left-hand side and <math> \text{max}\left(\Gamma_{pq},0\right) h_{\text{P,sat},q} </math> on the right-hand side constitute the enthalpy source due to phase change. Note, however, that in the event of mass transfer from phase ''q'', the terms <math> \text{max}\left(-\Gamma_{pq},0\right) h_{\text{P},q} </math> on both sides of the equation cancel out. | ||
+ | |||
+ | == Face Velocity Equation == | ||
+ | |||
+ | The basic intent here is to find a relation for the face velocities, <math> u_{f,q} </math>, that depend on the momentum solution of the adjacent cells and the pressure difference over the face in question. The importance of this formulation is paramount, for it determines whether a solution that satisfies continuity can coexist with a monotonous velocity field or not. The first attempts at a solution algorithm based on a collocated formulation (both pressures and velocities are stored at cell centers) were found to produce highly oscillatory pressure and velocity fields. One of the first remedies, at least the most widely known, was proposed by Rhie & Chow. However, they did not provide a proper derivation for their formulation. The following aims to provide such a derivation. In addition, although not directly evident, the results are under-relaxation factor independent. | ||
+ | |||
+ | Starting from a compacted form of <xr id="eqn:MomentumConservation11"/>, where all the other source terms, except the pressure gradient, are included in <math> S_{\text{mom,P},q} </math>. | ||
+ | |||
+ | <equation id="eqn:CompactedMomentumEquation"> | ||
+ | {{NumBlk|:|<math> a_{\text{P}} u_{\text{P},q} = \sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + S_{\text{mom,P},q} - \left( \varepsilon \alpha_q V \nabla p \right)_{\text{P}} </math>|<xr id="eqn:CompactedMomentumEquation" nolink />}} | ||
+ | </equation> | ||
+ | |||
+ | Under-relax | ||
+ | |||
+ | <equation id="eqn:CompactedMomentumEquation2"> | ||
+ | {{NumBlk|:|<math> \frac{1}{\alpha_u} a_{\text{P}} u_{\text{P},q} = \sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + S_{\text{mom,P},q} - \left( \varepsilon \alpha_q V \nabla p \right)_{\text{P}} + \left( 1 - \alpha_u \right) \frac{1}{\alpha_u} a_{\text{P}} u_{\text{P},q}^* </math>|<xr id="eqn:CompactedMomentumEquation2" nolink />}} | ||
+ | </equation> | ||
+ | |||
+ | Multiply by <math> \alpha_u </math> | ||
+ | |||
+ | <equation id="eqn:CompactedMomentumEquation3"> | ||
+ | {{NumBlk|:|<math> a_{\text{P}} u_{\text{P},q} = \alpha_u \sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + \alpha_u S_{\text{mom,P},q} - \alpha_u \left( \varepsilon \alpha_q V \nabla p \right)_{\text{P}} + \left( 1 - \alpha_u \right) a_{\text{P}} u_{\text{P},q}^* </math>|<xr id="eqn:CompactedMomentumEquation3" nolink />}} | ||
+ | </equation> | ||
+ | |||
+ | Divide by <math> a_{\text{P}} </math> | ||
+ | |||
+ | <equation id="eqn:CompactedMomentumEquation4"> | ||
+ | {{NumBlk|:|<math> u_{\text{P},q} = \alpha_u \frac{\sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + S_{\text{mom,P},q}} {a_{\text{P}}} - \alpha_u \frac{\left( \varepsilon \alpha_q V \nabla p \right)_{\text{P}}} {a_{\text{P}}} + \left( 1 - \alpha_u \right) u_{\text{P},q}^* </math>|<xr id="eqn:CompactedMomentumEquation4" nolink />}} | ||
+ | </equation> | ||
+ | |||
+ | Writing a fictional momentum equation for face f that is identical in form to <xr id="eqn:CompactedMomentumEquation4"/> | ||
+ | |||
+ | <equation id="eqn:FaceMomentumEquation"> | ||
+ | {{NumBlk|:|<math> u_{f,q} = \alpha_u \frac{\sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + S_{\text{mom},f,q}} {a_f} - \alpha_u \frac{\left( \varepsilon \alpha_q V \nabla p \right)_f} {a_f} + \left( 1 - \alpha_u \right) u_{f,q}^* </math>|<xr id="eqn:FaceMomentumEquation" nolink />}} | ||
+ | </equation> | ||
+ | |||
+ | and for momentum interpolated over face f | ||
+ | |||
+ | <equation id="eqn:InterpolatedFaceMomentumEquation"> | ||
+ | {{NumBlk|:|<math> \overline{u_{f,q}} = \alpha_u \frac{\overline{\sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + S_{\text{mom},f,q}}} {a_f} - \alpha_u \frac{\overline{\left( \varepsilon \alpha_q V \nabla p \right)_f}} {a_f} + \left( 1 - \alpha_u \right) \overline{u_{f,q}^*} </math>|<xr id="eqn:InterpolatedFaceMomentumEquation" nolink />}} | ||
+ | </equation> | ||
+ | |||
+ | Pressure Weighted Interpolation Method (PWIM): | ||
+ | |||
+ | <equation id="eqn:PWIM"> | ||
+ | {{NumBlk|:|<math> \frac{\sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + S_{\text{mom},f,q}} {a_f} = \frac{\overline{\sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + S_{\text{mom},f,q}}} {a_f} </math>|<xr id="eqn:PWIM" nolink />}} | ||
+ | </equation> | ||
+ | |||
+ | Solving <math> \frac{\overline{\sum_{nb=1}^N a_{\text{nb}} u_{\text{nb},q} + S_{\text{mom},f,q}}} {a_f} </math> from <xr id="eqn:InterpolatedFaceMomentumEquation"/> and substituting it to <xr id="eqn:FaceMomentumEquation"/> leads to: | ||
+ | |||
+ | <equation id="eqn:FinalFaceMomentumEquation"> | ||
+ | {{NumBlk|:|<math> u_{f,q} = \overline{u_{f,q}} + \alpha_u \left[ \frac{\overline{\left( \varepsilon \alpha_q V \nabla p \right)_f}} {a_f} - \frac{\left( \varepsilon \alpha_q V \nabla p \right)_f} {a_f} \right] - \left( 1 - \alpha_u \right) \left( \overline{u_{f,q}^*} - u_{f,q}^* \right) </math>|<xr id="eqn:FinalFaceMomentumEquation" nolink />}} | ||
+ | </equation> |
Revision as of 14:35, 20 April 2018
Contents
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
-
(35)
Integrating the right-hand side term by term. The phase change term reduces to
-
(36)
The divergence terms, , are handled equivalently to the divergence terms on the left-hand side of the equation
-
(37)
Heat source due to heat fluxes at the cell faces, , are dropped out. Heat sources from an external source, such as neutronics solver, will be implemented later.
Friction work is replaced with the following simplified formulation
-
(38)
where the drag force, , and the interphase drag force,
, are calculated from the following relations
-
(39)
-
(40)
Volume integral of volumetric enthalpy source to phase q is simply
-
(41)
Combining equations Equation 35, Equation 36, Equation 37, Equation 38 and Equation 41 leads to
-
(42)
Rearranging terms
-
(43)
At this point, the conservation of mass equation times cell specific enthalpy, , is subtracted from Equation 43
-
(44)
Splitting the mass source terms into negative and positive parts
-
(45)
and rearranging the terms leads to the final form
-
(46)
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], distance between two adjacent cell centers [m], porosity, fluid fraction of cell volume [-], effective thermal conductivity of phase q [W/mK], density of phase q [kg/m3], face area [m2], inertial loss coefficient [1/m], face mass flow rate [kg/s], drag force [N], interphase drag force [N], acceleration of gravity (vector) [m/s2], specific enthalpy of phase q [J/kg], total enthalpy of phase q [J/kg], interphase drag coefficient [kg/s], face normal pointing out of the cell (1 for east face, -1 for west face), pressure [Pa], location vector [m], volumetric energy source to phase q [W/m3], energy source to phase q [W], volumetric mass source to phase q [kg/m3s], mass source to phase q [kg/s], 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).
Same as the conservation of momentum equations above, Equation 46 is solved in a phase-coupled manner, even though, due to the chosen interphase heat and mass transfer concept, the phase coupling coefficients are zero. As a reminder, the terms on the left-hand side and
on the right-hand side result from the derivation procedure and are not considered as source terms. The terms
on the left-hand side and
on the right-hand side constitute the enthalpy source due to phase change. Note, however, that in the event of mass transfer from phase q, the terms
on both sides of the equation cancel out.
Face Velocity Equation
The basic intent here is to find a relation for the face velocities, , that depend on the momentum solution of the adjacent cells and the pressure difference over the face in question. The importance of this formulation is paramount, for it determines whether a solution that satisfies continuity can coexist with a monotonous velocity field or not. The first attempts at a solution algorithm based on a collocated formulation (both pressures and velocities are stored at cell centers) were found to produce highly oscillatory pressure and velocity fields. One of the first remedies, at least the most widely known, was proposed by Rhie & Chow. However, they did not provide a proper derivation for their formulation. The following aims to provide such a derivation. In addition, although not directly evident, the results are under-relaxation factor independent.
Starting from a compacted form of Equation 19, where all the other source terms, except the pressure gradient, are included in .
-
(47)
Under-relax
-
(48)
Multiply by
-
(49)
Divide by
-
(50)
Writing a fictional momentum equation for face f that is identical in form to Equation 50
-
(51)
and for momentum interpolated over face f
-
(52)
Pressure Weighted Interpolation Method (PWIM):
-
(53)
Solving from Equation 52 and substituting it to Equation 51 leads to:
-
(54)