12.6. Vapor Pressure Gradient Model: Large Vapor Bubbles

As mentioned above, whenever a bubble grows to a length greater than a user-specified value (usually 5-50 cm), the vapor bubble calculation is switched from the uniform-vapor-pressure model to a vapor-pressure-gradient model. Saturation conditions are assumed in this model, so the vapor energy equation can be combined with the mass continuity equation. The vapor continuity and momentum equations are solved simultaneously for each node in a bubble using a fully implicit finite differencing scheme.

The equations described in this section are only for the vapor. Any liquid in a bubble region is assumed to be a film on the cladding and structure, and this film is treated separately, as described at the beginning of Section 12.1. The vapor calculation is influenced by the liquid film in only two ways: heat flow through the film provides the vapor source for the vapor calculations; and if a two-phase friction factor multiplier for the friction between the vapor and the film is used, then the film thickness determines the value of this multiplier.

12.6.1. Continuity and Momentum Equations

The vapor continuity equation can be written as

(12.6-1)Wz+(ρvAc)t=QλAC

while the vapor momentum equation is given by

(12.6-2)pz=1AczW2ρvAcfvW|W|2ρvDhA2c+Fc1AcWtW|W|2ρvA2ckorz

The symbols used in Eq. (12.6-1) and Eq. (12.6-2) are defined as follows:

W= vapor mass flow rate

z= axial height

ρv= sodium vapor density

Ac= coolant flow area

t= time

Q= heat flow rate per unit volume

λ= heat of vaporization

p= pressure

fv= friction factor

Dh= hydraulic diameter

Fc= condensation momentum loss term

kor= orifice pressure drop term

Note that, because the flow area Ac is included in the mass and momentum equations as a function of both space and time, the model is able to treat problems involving variable flow areas.

The heat flow rate per unit volume is given by

(12.6-3)Q=γ[TeTRec+γ2TsTRsc]

where

λ= ratio of cladding surface area to coolant volume

Te= cladding temperature

Ts= structure temperature

T= vapor temperature

Rec= thermal resistance between the cladding and the vapor

Rsc= thermal resistance between the structure and the vapor

γ2= ratio of structure surface are to cladding surface area

The thermal resistances Rec and Rsc account for the resistance to heat flow of the cladding, liquid film, and vapor and are computed according to the expressions discussed in Section 12.5.1.

The expression for the heat flow rate Q can be rewritten as the sum of the heat flow rate through the cladding, Qe, and the heat flow rate through the structure, Qs, where

(12.6-4)Qe=γTeTRec

and

(12.6-5)Qs=γγ2TsTRsc

These two quantities are used to compute the condensation momentum loss term Fc. This term accounts for momentum lost from the system when flowing sodium vapor condenses on cladding or structure that is colder than the vapor. Only a momentum loss term is included, since it is assumed that the system does not gain momentum when vaporization occurs from cladding or structure that is hotter than the sodium film. The condensation momentum loss is simply the product of the rate of mass condensing per unit volume, Qλ, times the average velocity, W2ρvAc. Splitting the condensation momentum loss term into separate contributions from the cladding and structure then gives.

(12.6-6)Fc=Fce+Fcs

where

(12.6-7)Fce={0Qe0,QeW2ρvAcλQe<0

and

(12.6-8)Fcs={0Qs0,QsW2ρvAcλQs<0

These definitions reflect the assumption that momentum is lost when condensation of vapor occurs (Qe, Qs negative) but that no momentum change occurs when liquid is vaporized (Qe, Qs positive).

The friction factor, fv is expressed as

(12.6-9)fv=Afr(Dh|W|μAc)bfrftp

where μ is the vapor viscosity and Afr and bfr are input constants. The quantity in parentheses, Dh|W|/(μAc), is just the Reynolds number of the sodium vapor. The two-phase friction factor multiplier, ftp, is based on a correlation by Wallis [12-10]:

(12.6-10)ftp=1+300f2ϕ(wfe+γ2wfs)/[(1+γ2)Dh]

where f2ϕ is set to 1.0 when the two-phase multiplier is used and is set to 0 by the user if a smooth tube friction factor is described.

Two approximations are made to Eq. (12.6-1) and Eq. (12.6-2) before finite differencing. First, in the continuity equation, the term

(12.6-11)(ρvAc)t=ρvAct+Acρvt

is taken to be

(12.6-12)(ρvAc)t=Acρvt

So that Ac is assumed constant in time (but not space) over the time step for purposes fo solving the mass and momentum equations for the vapor pressures and mass flow rates. This assumption is also made with the variables Dh, γ, and γ2. This simplification is a reasonable one, since one of these four quantities changes rapidly with time. Second, in the momentum equations, the momentum convection term can be expanded as

(12.6-13)z(W2ρvAc)=1Acz(W2ρv)+W2ρvz(1Ac)

Any changes in area over a spatial node are incorporated into the orifice term, and so W2ρvz(1Ac) is included in the korz term. Therefore,

(12.6-14)z(W2ρvAc)=1Acz(W2ρv)

so Ac appears piecewise constant in space. This is also true for Dh, γ, and γ2.

Therefore, the continuity and momentum equations to be differenced are

(12.6-15)Wz+Acρvt=QλAc

and

(12.6-16)pz=1A2cz(W2ρv)AfrW|W|1+bfr2ρvD1bfrhA2+bfrc+Fc1AcWtW|W|2ρvA2ckorz

12.6.2. Finite Differencing

The mass and momentum equations must now be reduced to algebraic equations that can be coded into SASSYS-1. This is accomplished in three steps: (1) the equations are discretized using finite differences, (2) the advanced time terms are linearized, and (3) saturation conditions are imposed to limit the independent variables to the change in mass flow rate and the change in pressure. The details of these three steps are presented below. The result is the set of algebraic equations Eq. (12.6-45), Eq. (12.6-79), Eq. (12.6-87) (discretized form of the continuity equation at an interior node, lower interface, and upper interface of a bubble, respectively), Eq. (12.6-132), Eq. (12.6-147), and Eq. (12.6-153) (discretized form of the momentum equation in the interior, the lower interface, and the upper interface). These equations are then solved according to the procedure discussed in Section 12.6.3.

As indicated in Figure 12.6.1, some of the variables in the mass and momentum equations are calculated at node boundaries, whereas others are calculated at node mid-points. In general, midpoint quantities are used as if they were constant over the node. The quantities defined at node boundaries are z, T, p, W, ρv, μ, and the velocity V. At liquid-vapor interfaces, these quantities are defined at the interface, and the vapor velocity is set to the value of the interface velocity.

Midpoint quantities include Te, Ts, Rec, Ac, Dh, γ, γ2, kor, γ, Q, Fe, and the spatially averaged coolant temperature ¯T. With all variables, a subscript 1 indicates that the variable is evaluated at the beginning of the time step; a subscript 2 means the variable is taken to be at the end of the time step.

../../_images/Figure12.6-1.png

Figure 12.6.1 SASSYS-1 Voiding Model Axial Coolant Mesh Variable Placement

12.6.2.1. Finite Differencing of the Continuity Equation for a Mesh Segment Contained Entirely in One Bubble

This section gives a detailed explanation of how the continuity equation is expressed in finite difference form. The extra factors required to model bubble-liquid interfaces correctly are not included here; they will be discussed in Section 12.6.2.2. Therefore, the equations to be developed in this section apply as they stand only to axial mesh segments which are entirely contained within the bubble.

12.6.2.1.1. Differencing of the Continuity Equation

The terms making up the continuity equation are differenced as follows:

(12.6-17)Wz|J+1/2=W2(J+1)W2(J)z(J+1)z(J)

and

(12.6-18)Acρvt|J+1/2=Ac(J)ρ2(J)ρ1(J)+ρ2(J+1)ρ1(J+1)2Δt

These differencing schemes are illustrated in Figure 12.6.2. Also,

(12.6-19)Q2(J)=γ(J)[Te2(J)¯T2(J)Rec2+γ2(J)Ts2(J)¯T2(J)Rsc2(J)]=Qe2(J)+Qs2(J)

Therefore, the differenced continuity equation becomes

(12.6-20)W2(J+1)W2(J)z(J+1)z(J)+Ac(J)ρ2(J)ρ1(J)+ρ2(J+1)ρ1(J+1)2Δt=Ac(J)Q2(J)λ2(J)
../../_images/Figure12.6-2.jpeg

Figure 12.6.2 Evaluation of Derivatives at an Interior Node in the SASSYS-1 Voiding Model

12.6.2.1.2. Linearization of Advanced Time Terms

Eq. (12.6-20) can be linearized by expressing the advanced time terms in the form

(12.6-21)x2(J)=x1(J)+Δx(J)

where x is any quantity. This produces

(12.6-22)ρ2(J)=ρ1(J)+Δρ(J)
(12.6-23)λ2(J)=λ1(J)+Δλ(J)
(12.6-24)W2(J)=W1(J)+ΔW(J)
(12.6-25)T2(J)=T1(J)+ΔT(J)

Since

(12.6-26)¯T2(J)=12(T2(J)+T2(J+1))=12(T1(J)+ΔT(J)+T1(J+1)+ΔT(J+1))=¯T1(J)+12(ΔT(J)+ΔT(J+1))

then

(12.6-27)Δ¯T(J)=12(ΔT(J)+ΔT(J+1))

The heat flux then becomes

(12.6-28)Q2(J)=γ(J)[Te2(J)¯T1(J)Δ¯T(J)Rec2(J)+γ2(J)Ts2(J)¯T1(J)Δ¯T(J)Rsc2(J)]=γ(J)[Te2(J)¯T1(J)Rec2(J)+γ2(J)Ts2(J)¯T1(J)Rsc2(J)(ΔT(J)+ΔT(J+1))2[1Rec2(J)+γ2(J)Rsc2(J)]]

The heat flux expression can be written in a more compact form by defining the variable Qo(J)

(12.6-29)Q0(J)=γ(J)[Te2(J)¯T(J)Rec2(J)+γ2(J)Ts2(J)¯T1(J)Rsc2(J)]

The derivative with respect to vapor temperature of Qo is then

(12.6-30)dQ0dTJ=γ(J)[1Rec2(J)+γ2(J)Rsc2(J)]

These can be substituted into the above equation for Q2(J) to give

(12.6-31)Q2(J)=Q0(J)+12dQ0dTJ(ΔT(J)+ΔT(J+1))

Substituting Eq. (12.6-22) through Eq. (12.6-25) and Eq. (12.6-31) for the advanced time terms in the differenced continuity equation, Eq. (12.6-20) gives

(12.6-32)W1(J+1)W1(J)+ΔW(J+1)ΔW(J)z(J+1)z(J)+Ac(J)Δρ(J)+Δρ(J+1)2Δt=Ac(J)λ1(J)+Δλ(J)(Q0(J)+12dQ0dTJ(ΔT(J)+ΔT(J+1)))

If Δλ(J)λ1(J),

(12.6-33)1λ1(J)+Δλ(J)1λ1(J)[1Δλ(J)λ1(J)]

which changes Eq. (12.6-32) to

(12.6-34)W1(J+1)W1(J)+ΔW(J+1)ΔW(J)z(J+1)z(J)+Ac(J)Δρ(J)+Δρ(J+1)2Δt=Ac(J)Q0(J)λ1(J)(1+ΔT(J)+ΔT(J+1)2Q0(J)dQ0dTJ)(1Δλ(J)λ1(J))

Eliminating second-order terms gives the linearized differenced continuity equation

(12.6-35)W1(J+1)W1(J)+ΔW(J+1)ΔW(J)z(J+1)z(J)+Ac(J)Δρ(J)+Δρ(J+1)2Δt=Ac(J)Q0(J)λ1(J)(1+Δt(J)+ΔT(J+1)2Q0(J)dQ0dTJΔλ(J)λ1(J))

12.6.2.1.3. Utilization of Saturation Conditions to Limit the Independent Variables to ΔW and Δp

Since saturation conditions are assumed, ρ, T, and λ are all functions of p only. Therefore, the difference terms can be expressed in terms of Δp as follows:

(12.6-36)ΔT(J)=Δp(J)dTdpJ
(12.6-37)Δρ(J)=Δp(J)dρdpJ
(12.6-38)Δλ(J)=12(Δp(J)+Δp(J+1))dλdpJ

with Δp(J)=p2(J)p1(J). All derivatives are evaluated at the start of the time step. When Eq. (12.6-36) through Eq. (12.6-38). are inserted into Eq. (12.6-35) the result is a differenced continuity equation which is linear in ΔW and Δp:

(12.6-39)W1(J+1)W1(J)+ΔW(J+1)ΔW(J)z(J+1)z(J)+Ac(J)12Δt(Δp(J)dρdpJ+Δp(J+1)dρdp(J+1))=Ac(J)Q0(J)λ1(J)[1+(Δp(J)dTdpJ+Δp(J+1)dTdpJ+1)12Q0(J)dQ0dTJ(Δp(J)+Δp(J+1))12λ1(J)dλdpJ]

Multiply through by (z(J+1)z(J))Δt and define the coefficients

(12.6-40)c1,j=(z(J+1)z(J))Ac(J)[12dρdpJΔt2λ1(J)dTdpJdQ0dTJ+Q0(J)Δt2λ21(J)dλdpJ]
(12.6-41)c2,j=Δt
(12.6-42)c3,j=(z(J+1)z(J))Ac(J)[12dρdpJ+1Δt2λ1(J)dTdpJ+1dQ0dTJ+Q0(J)Δt2λ21(J)dλdpJ]
(12.6-43)c4,J=Δt

Also, define the source term

(12.6-44)hJ=W1(J)W1(J+1)+(z(J+1)z(J))Ac(J)Q0(J)λ1(J)Δt

Then the differenced mass equation becomes

(12.6-45)c1,JΔp(J)+c2,JΔW(J)+c3,JΔp(J+1)+c4,JΔW(J+1)=hj

12.6.2.2. Finite Differencing of the Continuity Equation for a Mesh Segment Which Contains a Bubble Interface

12.6.2.2.1. Adjustment of the Form of the Continuity Equation to Account for Interface Motion

The representation of the partial derivative with respect to time is not as straightforward at an interface as it is at an interior node. Referring to Figure 12.6.3, in which node boundary J is the interface, the partial derivative of the density ρ is still calculated as

(12.6-46)ρt|J+1/2=12[ρt|J+ρt|J+1]

The partial derivatives at J and J+1 are computed just as they are for an interior node; in particular,

(12.6-47)ρt|J=ρ(z(J,t),t+Δt)ρ(z(J,t),t)Δt
../../_images/Figure12.6-3.jpeg

Figure 12.6.3 Evaluation of the total Derivative at a Liquid-Vapor Interface

so the partial derivative at J is differenced as though the interface were stationary at z(J,t). However, the interface is moving at a velocity vi and moves a distance viΔt from z(J,t) to z(J,t+Δt) during the time step, so the spatial derivative in the continuity equation must be differenced from z(J+1,t+Δt) to z(J,t+Δt), rather than to z(J,t). Thus, the continuity equation for an interface node will involve advanced time quantities at three spatial points (z(J,t), z(J,t+Δt), and z(J+1,t+Δt)) rather than at two. This difficulty can be resolved if the partial derivative with respect to time is expressed in terms of ρ(z(J,t+Δt),t+Δt) rather than ρ(z(J,t),t+Δt) by introducing the Lagrangian total derivative, dρdt.

(12.6-48)dρdt=ρt+vρz

or

(12.6-49)ρt=dρdtvρz

with

(12.6-50)dρdt=ρ(z(J,t+Δt),t+Δt)ρ(z(J,t),t)+ρ(z(J+1),t+Δt)ρ(z(J+1),t)2Δt
(12.6-51)v=vi2

and

(12.6-52)ρz=ρ(z(J,t+Δt),t+Δt)ρ(z(J+1),t+Δt)z(J,t+Δt)z(J+1,t+Δt)

The factor of (1/2) appears in the velocity term to represent the average of the velocity of the interface point J (which is vi) and that of the point J+1 (which is zero). This formulation is equivalent to expressing ρ(z(J,t),t+Δt) as an interpolated value between ρ(z(J,t+Δt)) and ρ(z(J+1),t+Δt). The continuity equation now takes the form

(12.6-53)Wz+Acdρdtvρz=AcQλ

Let a node boundary quantity x be represented at the lower interface by xij(J1) and at the upper interface by xij(J2) where j=1 or 2 to designate the beginning or end of the time step. A node midpoint quantity y is represented at the lower interface by yj(J1) (since it is contained in node J1) and at the upper interface by yj(J21) (since it is located in node J21). As shown in Fig. 12.6-4, J1 is the number of the fixed mesh node boundary below the lower interface, while J2 is the fixed node boundary number above the upper interface. Looking first at the lower interface, the total time derivative of the density is then

(12.6-54)dρdt=ρ2(J1+1)ρ1(J1+1)+ρi2(J1)ρi1(J1)2Δt

or, using Eq. (12.6-22) and Eq. (12.6-37) to express dρdt in terms of the change in vapor pressure,

(12.6-55)dρdt=12Δt(Δρ(J1+1)dρdpJ1+1+Δρi(J1)dρidpJ1)

The spatial derivative term becomes

(12.6-56)vρz=vi2(J1)2(ρ2(J1+1)ρi2(J1))(z(J1+1)zi2(J1))

The advanced time velocity is expressed in the linearized form of Eq. (12.6-21) as

(12.6-57)vi2(J1)=vi1(J1)+Δvi(J1)

It is apparent from Eq. (12.6-56) and Eq. (12.6-57) that the added complication of treating the bubble interface introduces two extra unknowns beyond those described in Section 12.6.2.1, namely, the change in interface velocity Δvi and the advanced time interface position zi2 (the current time interface velocity, vi1, is assumed known). As will be shown in Section 12.6.2.2.2 and Section 12.6.2.2.3, both of these quantities can be expressed as functions of Δp and of known terms, so that their effect on the final differenced equation is to add terms to the coefficients c1,J and c3,J and to the source term hJ in Eq. (12.6-45).

../../_images/Figure12.6-4.jpeg

Figure 12.6.4 Placement of a Bubble in the SASSYS-1 Axial Coolant Mesh

12.6.2.2.2. Formulation of Δvi as a Function of Δp

If the bubble under consideration is labeled bubble K, the change in interface velocity is calculated from the change in mass flow rate ΔWl(K) in liquid slug K, which is the slug below bubble K:

(12.6-58)Δvi(J1)=ΔWl(K)ρil(J1)Ac(J1)frwt(K)

where frwt(K) is the liquid film rewetting factor at the top of slug K and ρil(J1) is the liquid sodium density at the interface. The film rewetting factor accounts for the effect of liquid film on the cladding and structure on the interface velocity; this has already been discussed in Section 12.3. From Eq. (12.3-6) of Section 12.3, the liquid film rewetting factor is

(12.6-59)frwt=vivl=1Pe(wfevfe+γ2wfsvfs)/(vlAc)1Pe(wfe+γ2wfs)/Ac

The change in mass flow rate is computed from the liquid slug momentum equation given in Eq. (12.2-38):

(12.6-60)ΔWl(K)=(AA0(K)+θ2(Δpb(K)Δpt(K)))ΔtI1(K)+θ2ΔI1(K)+BB0(K)θ2Δt

with θ1=θ2=1/2 for the semi-implicit method and θ1=0, θ2=1 for the fully implicit formulation. The pressure changes are defined as

Δpb(K)= change in pressure at lower end of liquid slug K.

Δpt(K)= change in pressure at upper end of liquid slug K.

Since Δpt(K) is the pressure change at the bubble interface,

(12.6-61)Δpt(K)=Δpi(J1)

Therefore, Δvi(J1) can be split into two parts as

(12.6-62)Δvi(J1)=Δvi0(J1)+Δpi(J1)dvidpJ1

with

(12.6-63)Δvi0(J1)=ffwt(K)ρil(J1)A(J1)(AA0(K)+θ2Δpb(K))ΔtI1(K)+θ2ΔI1(K)+BB0(K)θ2Δt

being the change in interface velocity with no change in interface pressure and

(12.6-64)dvidpJ1=frwt(K)ρil(J1)A(J1)θ2ΔtI1(K)+θ2ΔI1(K)+BB0(K)θ2Δt

being the velocity change with respect to the change in interface pressure. With the change in interface velocity now expressed as a linear function of the change in interface pressure Eq. (12.6-62), the advanced time interface velocity in the expression for the spatial derivative term vρz Eq. (12.6-56) can be replaced using Eq. (12.6-57) and Eq. (12.6-62). In addition, the advanced time densities in Eq. (12.6-56) can be linearized through Eq. (12.6-22) and written in terms of pressure changes form Eq. (12.6-37). This gives vρz as

(12.6-65)vρz=12(vi1(J1)+Δvi0(J1)+Δpi(J1)dvidpJ1)×ρi(J1+1)+Δp(J1+1)dρdpJ1+1ρi1(J1)Δpi(J1)dρidpJ1z(J1+1)zi2(J1)

Now, all that remains is to express the interface position zi2 as a function of the change in pressure; this will be done in the next subsection.

12.6.2.2.3. Formulation of zi2 as a Function of Δp

The function height can be written as

(12.6-66)zi2(J1)=zi1(J1)+Δt2(vi1(J1)+vi2(J1))

which, substituting Eq. (12.6-57) and Eq. (12.6-62) for vi2, becomes

(12.6-67)zi2(J1)=zi1(J1)+Δt2vi1(J1)+(vi1(J1)+Δvi0(J)+Δpi(J1)dvidpJ1)=zi1(J1)+vi1(J1)Δt+Δt2vi0(J1)+Δpi(J1)Δt2dvidpJ1

Define

(12.6-68)zi0(J1)=zi1(J1)+vi1(J1)Δt+Δt2Δvi0(J1)

as the interface height with no pressure change at the interface and

(12.6-69)dzidpJ1=12ΔtdvidpJ1

as the change in interface height with respect to the change in interface pressure. Then zi2 is the linear function

(12.6-70)zi2(J1)=zi0(J1)+Δpi(J1)dzidpJ1

Using Eq. (12.6-70) in Eq. (12.6-65), vρz can be expressed as a function of only Δp,

(12.6-71)vρz=12(vi1(J1)+Δvi0(J1)+Δpi(J1)dvidpJ1)×ρ1(J1+1)+Δp(J1+1)dρdpJ1+1ρi1(J1)ΔpidρidpJ1z(J1+1)zi0(J1)Δpi(J1)dzidpJ1

12.6.2.2.4. Final Differenced Form of the Continuity Equation at the Lower Interface as a Function of Only Δp and ΔW

With dρdt in the interface continuity equation, Eq. (12.6-53), written in the form in Eq. (12.6-55) and vρz given by Eq. (12.6-71) and all other terms in Eq. (12.6-53) treated as in Section 12.6.2.1, the differenced form of the continuity equation at the lower interface is, after multiplication by (z(J1+1)zi2(J1)) and substitution of Eq. (12.6-70) for zi2,

(12.6-72)Δt(W1(J1+1)Wi1(J1)+ΔW(J1+1)ΔWi(J1))+Ac(J1)2(Δρ(J1+1)dρdpJ1+1+Δρi(J1)dρidpJ1)(z(J1+1)zi0(J1)Δpi(J1)dzidpJ1)Ac(J1)Δt2(vi1(J1)+Δvi0(J1)+Δpi(J1)dvidpJ1)×(ρ1(J1+1)+Δp(J1+1)dρdpJ1+1ρi1(J1)Δpi(J1)dρidpJ1)=Ac(J1)ΔtQ0(J1)λ1(J1)[1+(Δpi(J1)dTidpJ1+Δp(J1+1)dTdpJ1+1)12Q0(J1)dQ0dTJ1(Δpi(J1)+Δp(J1+1)12λ1(J1)dλdpJ1)](z(J1+1)zi0(J1)+Δpi(J1)dzidpJ1)

Setting Δz0(J1)=z(J1+1)zi0(J1) and eliminating second-order terms gives a differenced interface continuity equation which is linear in the pressure and mass flow rate changes:

(12.6-73)Δt(W1(J+1)Wi1(J1)+ΔW(J1+1)ΔWi(J1))+Ac(J1)2Δz0(J1)(Δp(J1+1)dρdpJ1+1+Δpi(J1)dρidpJ1)Ac(J1)Δt2{[vi1(J1)+Δvi0(J1)][ρ1(J1+1)ρi1(J1)]+[vi1(J1)+Δvi0(J1)][Δp(J1+1)dρdpJ1+1Δpi(J1)dρidpJ1]+Δpi(J1)dvidpJ1[ρ1(J1+1)ρi1(J1)]}Ac(J1)ΔtQ0(J1)λ1(J1){Δz0(J1)Δpi(J1)dzidpJ1+Δz0(J)[Δpi(J1)dTidpJ1+Δp(J1+1)dTdpJ1+1]12Q0(J1)dQ0dTJ1Δz0(J1)12λ1(J1)[Δpi(J1)+Δp(J1+1)]dλdpJ1}=0

Eq. (12.6-73) can be simplified by defining the coefficients

(12.6-74)c1,J1=Ac(J1)2{Δz0(J1)dρidpJ1+Δt[(vi1(J1)+Δvi0(J1))dρidpJ1(ρ1(J1+1)ρi1(J1))dvidpJ]+Δt[2Q0(J1)λ1(J1)dzidpJ1Δz0(J1)λ1(J1)dQ0dTJ1dTidpJ1+Q0(J1)Δz0(J1)λ21(J1)dλdpJ1]}
(12.6-75)c2,J1=Δt
(12.6-76)c3,J1=Ac(J1)2{Δz0(J1)dρdpJ1+1Δt(vi1(J1)+Δvi0(J1))dρdpJ1+1ΔtΔz0(J1)λ1(J1)[dQ0dTJ1dTdpJ1+1Q0(J1)λ1(J1)dλdpJ1]}
(12.6-77)c4,J1=Δt

and the source term

(12.6-78)hJ1=Δt{Wi1(J1)W1(J1+1)+Ac(J1)[12(vi1(J1)+Δvi0(J1))(ρ1(J1+1)ρi1(J1))+Q0(J1)Δz0(J1)λ1(J1)]}

Then the differenced continuity equation at the lower interface can be written as

(12.6-79)c1,J1Δpi(J1)+c2,J1ΔWi(J1)+c3,J1Δp(J1+1)+c4,J1ΔW(J1+1)=hJ1

Note that with vi1, Δvi0, dvidp, and dzidp set to zero, the expressions for the coefficients c1,J1, and the source term hJ1 reduce to the forms given at the end of Section 12.6.2.1 for the continuity equation for a mesh segment which lies entirely within the bubble.

12.6.2.2.5. Differenced Form of the Continuity Equation at the Upper Interface

The derivation of the differenced continuity equation at the upper interface is nearly identical to that for the lower interface, and so just a brief explanation will be given here. The terms in the interface continuity equation of Eq. (12.6-53) are now expressed as follows:

The time derivative is

(12.6-80)dρdt=ρi2(J2)ρi1(J2)+ρ2(J21)ρ1(J21)2Δt=12Δt(Δpi(J2)dρidpJ2+Δp(J21)dρdpJ21)

The vρz term is

(12.6-81)vρz=vi1(J2)+Δvi(J2)2ρi2(J2)ρ2(J21)zi2(J2)z(J21)

where

(12.6-82)Δvi(J2)=ΔWl(K+1)ρil(J2)Ac(J21)frwb(K+1)

and

(12.6-83)ΔWl(K+1)=(AA0(K+1)+θ2(Δpi(J2)Δpi(K+1)))ΔtI1(K+1)+θ2ΔI1(K+1)+BB0(K+1)θ2Δt

The rewetting factor at the bottom of liquid slug K+1, frwb(K+1), is computed as in Eq. (12.6-59). The expression for Δvi(J2) then reduces to

(12.6-84)Δvi(J2)=Δvi0(J2)+Δpi(J2)dvidpJ2

with the definitions of Δvi0(J2) and dvidpJ2 being set as were those for Δvi0(J1) and dvidpJ1. Also,

(12.6-85)zi2(J2)=zi0(J2)+Δpi(J2)dzidpJ2

can be derived in exactly the same fashion as was Eq. (12.6-70). Therefore,

(12.6-86)vρz=12(vi1(J2)+Δvi0(J2)+Δpi(J2)dvidpJ2)×(ρi1(J2)+Δpi(J2)dρidpJ2ρi1(J21)Δp(J21)dρdpJ21zi0(J2)+Δpi(J2)dzidpJ2z(J21))

Substituting Eq. (12.6-80) and Eq. (12.6-86) into Eq. (12.6-53) and expressing Wz and AcQλ as in Section 12.6.2.1 gives the differenced upper interface continuity equation

(12.6-87)c1,J21Δp(J21)+c2,J21ΔW(J21)+c3,J21Δpi(J2)+c4,J21ΔWi(J2)=hJ21

where

(12.6-88)c1,J21=Ac(J21)2{Δz0(J21)dρdpJ21+Δt[(vi1(J2)+Δvi0(J2))dρdpJ21+Δz0(J21)λ1(J21)(dQ0dTJ21dTdpJ21Q0(J21)λ(J21)dλdpJ2)]}
(12.6-89)c2,J21=Δt
(12.6-90)c3,J21=Ac(J21)2{Δz0(J21)dρidpJ2Δt[(vi1(J2)+Δvi0(J2))dρidpJ2+[ρi1(J2)ρ1(J21)]dvidpJ2][Δt2Q0(J21)λ1(J21)dzidpJ2+Δz0(J21)λ1(J21)(dQ0dTJ21dTidpJ2Q0(J21)λ1(J21)dλdpJ2)]}
(12.6-91)c4,J21=Δt
(12.6-92)hJ21=Δt{W1(J21)Wi1(J2)+Ac(J21)[12(vi1(J2)+Δvi0(J2))(ρi1(J2)ρ1(J21))+Q0(J21)Δz0(J21)λ1(J21)]}

and

(12.6-93)Δz0(J21)=zi1(J2)z(J21)

12.6.2.3. Finite Differencing of the Momentum Equation for a Mesh Segment Contained Entirely in One Bubble

Now that differenced forms of the continuity equation both within the bubble and at liquid-vapor interfaces have been derived, a similar process must be applied in the momentum equation. The differencing of the momentum equation is accomplished in essentially the same way as that of the continuity equation. Once again, bubble interface will be ignored for the sake of simplicity until the equations for an interior node have been developed.

12.6.2.3.1. Differencing of the Momentum Equation

The differenced forms of the terms in the momentum equation, Eq. (12.6-2), are a follows. The channel pressure drop is given by

(12.6-94)pz|J+12=p2(J+1)p2(J)z(J+1)z(J)

The momentum convection takes the form

(12.6-95)1Acz(W2ρAc)|J+12=1A2c(J)(z(J+1)z(J))(W22(J+1)ρ2(J+1)W22(J)ρ2(J))

The condensation term is expressed in terms of the contributions from cladding and structure as

(12.6-96)Fc(J)=Fce(J)+Fcs(J)

where the functions for Fce and Fcs are linearly approximated as follows:

(12.6-97)if Qe2(J)0, Fce(J)=0
(12.6-98)if Qe2(J)<0, Fce(J)=Qe2(J)2λ2(J)Ac(J)(W2(J)ρ2(J)+W2(J+1)ρ2(J+1))

and

(12.6-99)if Qs2(J)0, Fcs(J)=0
(12.6-100)if Qs2(J)0, Fcs(J)=Qs2(J)2λ2(J)Ac(J)(W2(J)ρ2(J)+W2(J+1)ρ2(J+1))

Qe2(J) and Qs2(J) are defined in Eq. (12.6-19). Now, linearize Qe2 and Qs2 by defining

(12.6-101)Qoe(J)=γ(J)Te2(J)¯T1(1)Rec2(J)
(12.6-102)dQoedTJ=γ(J)Rec2(J)
(12.6-103)Qos(J)=γ(J)γ2(J)Ts2(J)¯T1(J)Rsc2(J)
(12.6-104)dQosdTJ=γ(J)γ2(J)Rsc2(J)

These expressions are related to Qo(J), defined in Section 12.6.2.1.2, by

(12.6-105)Qo(J)=Qoe(J)+Qos(J)

and

(12.6-106)dQodTJ=dQoedTJ+dQosdTJ

Substituting these functions into the above formulations of Fce and Fcs gives

(12.6-107)if Qe2(J)0, Fce(J)=0
(12.6-108)if Qe2(J)<0, Fce(J)=12λ2(J)Ac(J)(W2(J)ρ2(J)+W2(J+1)ρ2(J+1))×[Qoe(J)+12dQoedTJ(ΔT(J)+ΔT(J+1))]
(12.6-109)if Qs2(J)0, Fcs(J)=0
(12.6-110)if Qs2(J)<0, Fcs(J)=12λ2(J)Ac(J)(W2(J)ρ2(J)+W2(J+1)ρ2(J+1))×[Qos(J)+12dQosdTJ(ΔT(J)+ΔT(J+1))]

If the definitions

(12.6-111)Foe(J)={0Qe20Qoe(J)Qe2(J)<0
(12.6-112)Fos(J)={0Qs20,Qos(J)Qs2(J)<0
(12.6-113)Fo(J)=Foe(J)+Fos(J)

are used in the expressions for Fce and Fcs, the condensation term becomes

(12.6-114)Fc(J)=Fo(J)2Ac(J)λ2(J)[1+(Foc(J)2Qoe(J)Fo(J)dQoedTJ+Fos(J)2Qos(J)Fo(J)dQosdTJ)×(Δt(J)+ΔT(J+1))](W2(J)ρ2(J)+W2(J+1)ρ2(J+1))

This expression can be simplified by setting

(12.6-115)dFoedTJ={{0Qe2(J)0dQoedTJQe2(J)<0

which can be stated more compactly as

(12.6-116)dFoedTJ=Foe(J)Qoe(J)dQoedTJ

Similarly,

(12.6-117)dFosdTJ=Fos(J)Qos(J)dQosdTJ

so that the definition

(12.6-118)dFodTJ=dFoedTJ+dFosdTJ

can be made. This gives

(12.6-119)Fc(J)=Fo(J)2Ac(J)λ2(J)[1+dFo2Fo(J)dFodTJ(ΔT(J)+ΔT(J+1))]×(W2(J)ρ2(J)+W2(J+1)ρ2(J+1))

as the differenced form of the condensation term.

The change in mass flow rate with time is

(12.6-120)Wt=W2(J)+W2(J+1)W1(J)W1(J+1)2Δt

The orifice pressure drop becomes

(12.6-121)W|W|2ρvA2ckorz=14A2c(J)(W2(J)|W2(J)|ρ2(J)+W2(J+1)|W2(J+1)|ρ2(J+1))×kor(J)z(J+1)z(J)

Finally, if the friction factor

(12.6-122)fv=Afr(DhWμAc)bfr

is considered in the differencing, the friction term may be written as

(12.6-123)fvW|W|2ρA2cDh=AfrW|W|1+bfr2ρμbfrD1bfrhA2+bfrc=Afr4D1bfrh(J)A2+bfrc(J)[W2(J+1)|W2(J+1)|1+bfrρ2(J+1)μbfr2(J+1)+W2(J)|W2(J)|1+bfrρ2(J)μbfr2(J)]

Using Eq. (12.6-94), Eq. (12.6-95), Eq. (12.6-119), Eq. (12.6-120), Eq. (12.6-121), and Eq. (12.6-123) results in a differenced momentum equation as follows:

(12.6-124)p2(J+1)p2(J)z(J+1)z(J)+1A2c(J)(z(J+1)z(J))(W22(J+1)ρ2(J+1)W22(J)ρ2(J))+Afr4D1bfrh(J)A2+bfrc(J)[W2(J+1)|W2(J+1)|1+bfrρ2(J+1)μbfr2(J+1)+W2(J)|W2(J)|1+bfrρ2(J)μbfr2(J)]Fo(J)2Ac(J)λ2(J)[1+12Fo(J)dFodTJ(ΔT(J)+ΔT(J+1))](W2(J)ρ2(J)+W2(J+1)ρ2(J+1))+W2(J)+W2(J+1)W1(J)W1(J+1)2Ac(J)Δt+14A2c(J)(W2(J)|W2(J)|ρ2(J)+W2(J+1)|W2(J+1)|ρ2(J+1))kor(J)z(J+1)z(J)=0

The equation must now be linearized and reduced to a linear function of Δp and ΔW; this procedure will be discussed in the next subsection.

12.6.2.3.2. Linearization of Advanced Time Quantities and Introduction of Saturation Conditions

Eq. (12.6-124) is made linear by expressing the advanced time variables in linearized form as in Eq. (12.6-21). This means that, in addition to using the expressions in Eq. (12.6-22) through Eq. (12.6-25) for density, heat of vaporization, mass flow rate, and temperature, the linearized form of Eq. (12.6-124) must include the following representations of pressure and viscosity:

(12.6-125)p2(J)=p1(J)+Δp(J)
(12.6-126)μ2(J)=μ1(J)+Δμ(J)

The differenced momentum equation therefore becomes

(12.6-127)p1(J+1)+Δp(J+1)p1(J)Δp(J)z(J+1)z(J)+1A2c(J)(z(J+1)z(J))×((W1(J+1)+ΔW(J+1))2ρ1(J+1)+Δρ(J+1)(W1(J)+ΔW(J))2ρ1(J)+Δρ(J))+Afr4D1bfrh(J)A2+bfrc(J)((W1(J+1)+ΔW(J+1))|W1(J+1)+ΔW(J+1)|1+bfr(ρ1(J+1)+Δρ(J+1))(μ1(J+1)+Δμ(J+1))bfr+(W1(J)+ΔW(J))|W1(J)+ΔW(J)|1+bfr(ρ1(J)+Δρ(J)(μ1(J)+Δμ(J))bfr)Fo(J)2Ac(J)(λ1(J)+Δλ(J))×(1+12Fo(J)dFodTJ(ΔT(J)+ΔT(J+1)))(W1(J)+ΔW(J)ρ1(J)+Δρ(J)+W1(J+1)+ΔW(J+1)ρ1(J+1)+Δρ(J+1))+ΔW(J)+ΔW(J+1)2Ac(J)Δt+14A2c(J)((W1+ΔW(J))|W1(J)+ΔW(J)|ρ1(J)+Δρ(J)+(W1(J+1)+ΔW(J+1))|W1(J+1)+ΔW(J+1)|ρ1(J+1)+Δρ(J+1))kor(J)z(J+1)z(J)=0

Note that the orifice coefficient kor and the hydraulic diameter Dh are, like the channel area Ac, considered to be constant over the time step. Now, Eq. (12.6-127) can be expressed in terms of only two independent variables, Δp and ΔW, by imposing the restriction that ρ, T, λ, and μ be functions of p only, i.e., by imposing saturation conditions. This is accomplished by substituting Eq. (12.6-36) through Eq. (12.6-38), as well as the expression

(12.6-128)Δμ(J)=Δp(J)dμdpJ

into Eq. (12.6-127). The resulting equation, after multiplying by Δt(z(J+1)z(J)) and letting Δz(J)=z(J+1)z(J), is the very long expression

(12.6-129)(p1(J+1)p1(J))Δt+ΔtΔp(J+1)ΔtΔp(J)+ΔtA2c(J)[W21(J+1)+2W1(J+1)ΔW(J+1)+(ΔW(J+1))2ρ1(J+1)(1Δp(J+1)ρ1(J+1)dρdpJ+1)W21(J)+2W1(J)ΔW(J)+(ΔW(J))2ρ1(J)(1Δp(J)ρ1(J)dρdpJ)]+AfrΔtΔz(J)4D1bfrh(J)A2+bfrc(J)[W1(J+1)|W1(J+1)|1+bfr(1+(2+bfr)ΔW(J+1)W1(J+1))ρ1(J+1)μbfr1(J+1)×(1Δp(J+1)ρ1(J+1)dρdpJ+1bfrΔp(J+1)μ1(J+1)dμdpJ+1)+W1(J)|W1(J)|1+bfr(1+(2+bfr)ΔW(J)W1(J))ρ1(J)μbfr1(J)(1Δp(J)ρ1(J)dρdpJbfrΔp(J)μ1(J)dμdpJ)]Fo(J)ΔtΔz(J)2Ac(J)λ1(J)(1Δp(J)+Δp(J+1)2λ1(J)dλdpJ)×[1+12Fo(J)dFodTJ(Δp(J)dTdpJ+Δp(J+1)dTdpJ+1)]×[W1(J+1)ρ1(J)(1+ΔW(J)W1(J))(1Δp(J)ρ1(J)dρdpJ)+W1(J+1)ρ1(J+1)(1+ΔW(J+1)W1(J+1))(1Δp(J+1)ρ1(J+1)dρdpJ+1)]+Δz(J)2Ac(J)ΔW(J)+Δz(J)2Ac(J)ΔW(J+1)+Δt4A2c(J)[W1(J)|W1(J)|(1+2ΔW(J)W1(J))ρ1(J)(1Δp(J)ρ1(J)dρdpJ)+W1(J+1)|W1(J+1)|(1+2ΔW(J+1)W1(J+1))ρ1(J+1)(1Δp(J+1)ρ1(J+1)dρdpJ+1)]×kor(J)=0

where it is assumed that \Delta \mu \ll \mu_{1} and \Delta \rho \ll \rho_{1}, so that

(12.6-130)\frac{1}{\rho_{1}(J) + \Delta\rho(J)} = \frac{1}{\rho_{1}(J)}\left( 1 - \frac{\Delta\rho(J)}{\rho_{1}(J)} \right)

and

(12.6-131)\frac{1}{\left( \mu_{1}(J) + \Delta\mu(J) \right)^{b_{fr}}} = \frac{1}{\mu_{1}^{b_{fr}}(J)}\left( 1 - b_{fr}\frac{\Delta\mu(J)}{\mu_{1}(J)} \right)

Eliminating second-order terms produces the final linearized form of the differenced momentum equation:

(12.6-132)b_{1,J}\Delta p(J) + b_{2,J}\Delta W(J) + b_{3,J}\Delta p(J + 1) + b_{4,J}\Delta W(J + 1) = g_{J}

with

(12.6-133)\begin{split}b_{1,J} = - \Delta t + \frac{\Delta t}{A_{c}^{2}(J)}\frac{W_{1}^{2}(J)}{\rho_{1}^{2}(J)}\frac{d\rho}{dp_{J}} - \frac{A_{fr}\Delta t\Delta z(J)}{4D_{h}^{1 - b_{fr}}(J)A_{c}^{2 + b_{fr}}(J)}\frac{W_{1}(J)\left| W_{1}(J) \right|^{1 + b_{fr}}}{\rho_{1}(J)\mu_{1}^{b_{fr}}(J)} \\ \times \left( \frac{1}{\rho_{1}(J)}\frac{d\rho}{dp_{J}} + \frac{b_{fr}}{\mu_{1}(J)}\frac{d\mu}{dp_{J}} \right) \\ + \frac{F_{o}(J)\Delta t\Delta z(J)}{4A_{c}(J)\lambda_{1}(J)}\Bigg[ \frac{1}{\lambda_{1}(J)}\frac{d\lambda}{dp_{J}}\left( \frac{W_{1}(J)}{\rho_{1}(J)} + \frac{W_{1}(J + 1)}{\rho_{1}(J + 1)} \right) \\ - \frac{1}{F_{o}(J)}\frac{dF_{o}}{dT_{J}}\frac{dT}{dp_{J}}\left( \frac{W_{1}(J)}{\rho_{1}(J)} + \frac{W_{1}(J + 1)}{\rho_{1}(J + 1)} \right) + \frac{2W_{1}(J)}{\rho_{1}^{2}(J)}\frac{d\rho}{dp_J} \Bigg] \\ - \frac{W_{1}(J)\left| W_{1}(J) \right|\Delta t}{4A_{c}^{2}(J)\rho_{1}^{2}(J)}\frac{d\rho}{dp_{J}}k_{or}(J)\end{split}
(12.6-134)\begin{split}b_{2,J} = - \frac{2W_{1}(J)\Delta t}{\rho_{1}(J)A_{c}^{2}(J)} + \frac{A_{fr}\Delta t\Delta z(J)}{4D_{h}^{1 - b_{fr}}(J)A_{c}^{2 + b_{fr}}(J)}\frac{\left( 2 + b_{fr} \right)\left| W_{1}(J) \right|^{1 + b_{fr}}}{\rho_{1}(J)\mu_{1}^{b_{fr}}(J)} \\ - \frac{F_{o}(J)\Delta t\Delta z(J)}{2A_{c}(J)\lambda_{1}(J)\rho_{1}(J)} + \frac{\Delta z(J)}{2A_{c}(J)} + \frac{\Delta t\left| W_{1}(J) \right|}{2A_{c}^{2}(J)\rho_{1}(J)}k_{or}(J)\end{split}
(12.6-135)\begin{split}b_{3,J} = \Delta t - \frac{\Delta t}{A_{c}^{2}(J)}\frac{W_{1}^{2}(J+1)}{\rho_{1}^{2}(J+1)}\frac{d\rho}{dp_{J + 1}} - \frac{A_{fr}\Delta t\Delta z(J)}{4D_{h}^{1 - b_{fr}}(J)A_{c}^{2 + b_{fr}}(J)}\frac{W_{1}(J + 1)\left| W_{1}(J + 1) \right|^{1 + b_{fr}}}{\rho_{1}(J + 1)\mu_{1}^{b_{fr}}(J + 1)} \\ \times \left( \frac{1}{\rho_{1}(J + 1)}\frac{d\rho}{dp_{J + 1}} + \frac{b_{fr}}{\mu_{1}(J + 1)} \right)\frac{d\mu}{dp_{J + 1}} + \frac{F_{o}(J)\Delta t\Delta z(J)}{4A_{c}(J)\lambda_{1}(J)} \\ \times \Bigg[ \frac{1}{\lambda_{1}(J)}\frac{d\lambda}{dp_{J}}\left( \frac{W_{1}(J)}{\rho_{1}(J)} + \frac{W_{1}(J + 1)}{\rho_{1}(J + 1)} \right) \\ - \frac{1}{F_{o}(J)}\frac{dF_{o}}{dT_{J}}\frac{dT}{dp_{J+1}}\left( \frac{W_{1}(J)}{\rho_{1}(J)} + \frac{W_{1}(J + 1)}{\rho_{1}(J + 1)} \right) - \frac{2W_{1}(J + 1)}{\rho_{1}^{2}(J + 1)}\frac{d\rho}{dp_{J+1}} \Bigg] \\ - \frac{W_{1}(J + 1)\left| W_{1}(J + 1) \right|\Delta t}{4A_{c}^{2}(J)\rho_{1}^{2}(J + 1)}\frac{d\rho}{dp_{J + 1}}k_{or}(J)\end{split}
(12.6-136)\begin{split}b_{4,J} = - \frac{2W_{1}(J + 1)\Delta t}{\rho_{1}(J + 1)A_{c}^{2}(J)} + \frac{A_{fr}\Delta t\Delta z(J)}{4D_{h}^{1 - b_{fr}}(J)A_{c}^{2 + b_{fr}}(J)}\frac{\left( 2 + b_{fr} \right)\left| W_{1}(J + 1) \right|^{1 + b_{fr}}}{\rho_{1}(J + 1)\mu_{1}^{b_{fr}}(J + 1)} \\ - \frac{F_{o}(J)\Delta t\Delta z(J)}{2A_{c}(J)\lambda_{1}(J)\rho_{1}(J + 1)} + \frac{\Delta z(J)}{2A_{c}(J)} + \frac{\Delta t\left| W_{1}(J + 1) \right|}{2A_{c}^{2}(J)\rho_{1}(J + 1)}k_{or}(J)\end{split}
(12.6-137)\begin{split}g_{J} = \left( p_{1}(J) - p_{1}(J + 1) \right)\Delta t - \frac{\Delta t}{A_{c}^{2}(J)}\left( \frac{W_{1}^{2}(J + 1)}{\rho_{1}(J + 1)} - \frac{W_{1}^{2}(J)}{\rho_{1}(J)} \right) \\ - \frac{A_{fr}\Delta t\Delta z(J)}{4D_{h}^{1 - b_{fr}}(J)A_{c}^{2 + b_{fr}}(J)}\left( \frac{W_{1}(J + 1)\left| W_{1}(J + 1) \right|^{1 + b_{fr}}}{\rho_{1}(J + 1)\mu_{1}^{b_{fr}}(J + 1)} + \frac{W_{1}(J)\left| W_{1}(J) \right|^{1 + b_{fr}}}{\rho_{1}(J1)\mu_{1}^{b_{fr}}(J1)} \right) \\ + \frac{F_{o}(J)\Delta t\Delta z(J)}{2A_{c}(J)\lambda_{1}(J)}\left( \frac{W_{1}(J)}{\rho_{1}(J)} + \frac{W_{1}(J + 1)}{\rho_{1}(J + 1)} \right) \\ - \frac{\Delta tk_{or}(J)}{4A_{c}^{2}(J)}\left( \frac{W_{1}(J)\left| W_{1}(J) \right|}{\rho_{1}(J)} + \frac{W_{1}(J + 1)\left| W_{1}(J + 1) \right|}{\rho_{1}(J + 1)} \right)\end{split}

12.6.2.4. Finite Differencing of the Momentum Equation for a Mesh Segment Which Contains a Bubble Interface

The inclusion of a bubble interface in node J introduces the Lagrangian total derivative, as described in Section 12.6.2.2.1. The momentum equation then becomes

(12.6-138)\frac{\partial p}{\partial z} + \frac{1}{A_{c}^{2}}\frac{\partial}{\partial z}\frac{W^{2}}{\rho_{v}} + \frac{f_{v}W|W|}{2\rho_{v}D_{h}A_{c}^{2}} - F_{c} + \frac{1}{A_{c}}\frac{dW}{dt} - v\frac{\partial W}{\partial z} + \frac{W\left| W \right|}{2\rho_{v}A_{c}^{2}}\frac{\partial k_{or}}{\partial z} = 0

As in the case of the continuity equation, the impact of the bubble interface on the differenced equation is transmitted via the interface velocity v^{i} and the interface position z^{i}. Therefore, only those terms in Eq. (12.6-138) which include either v^{i} or z^{i} will alter the coefficient b_{i} or the source term g in Eq. (12.6-132).

12.6.2.4.1. Differenced Form of the Momentum equation at the Lower Interface

The terms of Eq. (12.6-138) can be differenced as in Section 12.6.2.3; in addition, the term v\frac{\partial W}{\partial z} can be expressed as

(12.6-139)v\frac{\partial W}{\partial z} = \frac{v_{2}^{i}(J1)}{2}\frac{W_{2}(J1 + 1) - W_{2}^{i}(J1)}{\Delta z^{i}(J1)}

where \Delta z^{i}(J1) = z (J1 + 1) - z_{2}^{i}(J). Therefore, the differenced form of Eq. (12.6-138) is

(12.6-140)\begin{split}\frac{p_{2}(J1 + 1) - p_{2}^{i}(J1)}{\Delta z^{i}(J1)} + \frac{1}{A_{c}^{2}(J1)\Delta z^i(J1)}\left( \frac{W_{2}^{2}(J1 + 1)}{\rho_{2}(J1 + 1)} - \frac{W_{2}^{2}(J1)}{\rho_{2}(J1)} \right) \\ + \frac{A_{fr}}{4D_{h}^{1 - b_{fr}}(J1)A_{c}^{2 + b_{fr}}(J1)}\left( \frac{W_{2}(J1 + 1)\left| W_{2}(J1 + 1) \right|^{1 + b_{fr}}}{\rho_{2}(J1 + 1)\mu_{2}^{b_{fr}}(J1 + 1)} + \frac{W_{2}^{i}(J1)\left| W_{2}^{i}(J1)^{1 + b_{fr}} \right|}{\rho_{2}(J1)\mu_{2}^{b_{fr}}(J1)} \right) - F_{e}(J1) \\ + \frac{W_{2}(J1 + 1) + W_{2}^{i}(J1) - W_{1}(J1 + 1) - W_{1}^{i}(J1)}{2A_{c}(J1)\Delta t} - \frac{v_{2}^{i}(J1)}{2A_{c}(J1)}\frac{W_{2}^{i}(J1 + 1) - W_{2}^{i}(J1)}{\Delta z^{i}(J1)} \\ + \frac{1}{4A_{c}^{2}(J1)}\left( \frac{W_{2}^{i}(J1)\left| W_{2}^{i}(J1) \right|}{\rho_{2}(J1)} + \frac{W_{2}(J1 + 1)\left| W_{2}(J1 + 1) \right|}{\rho_{2}(J1 + 1)} \right)\frac{k_{or}^{i}(J1)}{\Delta z(J1)} = 0\end{split}

Multiplying Eq. (12.6-140) by \Delta t\Delta z^{i}(J1) eliminates z_{2}^{i}(J1) from all but the third, fourth, and fifth terms. The sixth term is the only one which includes v_{2}^{i}(J1). Thus, only these four terms need to be examined to determine the contribution of the bubble interface to the final differenced momentum equation.

12.6.2.4.2. Specification of Bubble Interface Terms

Of the four terms, all but the one involving v_{2}^{i} (J1) are present in the momentum equation as derived in Section 12.6.2.3. They affect the interface contribution only because they involve the factor z\Delta^{i}(J1). For example, consider the condensation term:

(12.6-141)\Delta t\Delta z^{i}(J1)F_{c}(J1) = \Delta tF_{c}(J1)\Delta z_{0}^{i}(J1) - \Delta p^{i}(J1)\frac{dz^{i}}{dp_{J1}}\Delta tF_{c}(J1)

The first term on the right-hand side is identical to the condensation term as expressed in the differenced momentum equation, Eq. (12.6-132). Therefore, the condensation term contribution to the momentum equation is modified to account for the bubble interface simply by adding the second term on the right-hand side of Eq. (12.6-140) to Eq. (12.6-132). Written out in full, this term is, after linearization of advanced time quantities and substitution of the saturation condition relations,

(12.6-142)\begin{split}\Delta p^{i}(J1)\frac{dz^{i}}{dp_{J1}}\Delta tF_{c}(J1) = \Delta p^{i}(J1)\frac{dz^{i}}{dp_{J1}}\frac{F_{o}(J1)\Delta t}{2A_{c}(J1)\lambda_{1}(J1)} \\ \times\left( 1 - \frac{\Delta p^{i}(J1) + \Delta p(J1 + 1)}{2\lambda_{i}(J1)}\frac{d\lambda}{dp_{J1}} \right) \\ \times\left( 1 + \frac{2}{F_{o}(J1)}\frac{dF_{o}}{dT_{J1}}\left( \Delta p(J1)\frac{dT^{i}}{dp_{J1}} + \Delta p(J1 + 1)\frac{dT}{dp_{J1 + 1}} \right) \right) \\ \times \Bigg( \frac{W_{1}(J1)}{\rho_{1}(J1)} \left( 1 + \frac{\Delta W^{i}(J1)}{W_{1}^{i}(J1)} \right)\left( 1 - \frac{\Delta p^{i}(J1)}{\rho_{1}(J1 + 1)}\frac{d\rho}{dp_{J1 + 1}} \right) \\ + \frac{W_{1}(J1 + 1)}{\rho_{1}(J1 + 1)}\left( 1 + \frac{\Delta W(J1 + 1)}{W_{1}(J1 + 1)} \right)\left( 1 - \frac{\Delta p(J1 + 1)}{\rho_{1}(J1 + 1)}\frac{d\rho}{dp_{J1 + 1}} \right) \Bigg)\end{split}

Neglecting second-order terms, this reduces to

(12.6-143)\Delta p^{i}(J1)\frac{dz^{i}}{dp_{J1}}\Delta tF_{c}(J1) = \Delta p^{i}(J1)\frac{dz^{i}}{dp_{J1}}\frac{F_{o}(J1)\Delta t}{2A_{c}(J1)\lambda_{1}(J1)}\left( \frac{W_{1}^{i}(J1)}{\rho_{1}(J1)} + \frac{W_{1}(J1 + 1)}{\rho_{1}(J1 + 1)} \right)

Similarly, the friction term contribution comes from

(12.6-144)\begin{split}\Delta p^{i}(J1)\frac{dz^{i}}{dp_{J1}}\Delta t\frac{A_{fr}}{4D_{h}^{1 - b_{fr}}(J1)A_{c}^{2 + b_{fr}}(J1)}\Bigg( \frac{W_{2}(J1 + 1)\left| W_{2}(J1 + 1) \right|^{1 + b_{fr}}}{\rho_{2}(J1 + 1)\mu_{2}^{b_{fr}}(J1 + 1)} \\ + \frac{W_{2}^{i}(J1)\left| W_{2}^{i}(J1) \right|^{1 + b_{fr}}}{\rho_{1}(J1)\mu_{2}^{b_{fr}(J1)}} \Bigg) = \Delta p^{i}(J1)\frac{dz^{i}}{dp_{J1}}\frac{A_{fr}\Delta t}{4D_{h}^{1 - b_{fr}}(J1)A_{c}^{2 + b_{fr}}(J1)} \\ \times \left( \frac{W_{1}(J1 + 1)\left| W_{1}(J1 + 1) \right|^{1 + b_{fr}}}{\rho_{1}(J1 + 1)\mu_{2}^{b_{fr}}(J1 + 1)} + \frac{W_{1}^{i}(J1)\left| W_{1}^{i}(J1) \right|^{1 + b_{fr}}}{\rho_{1}(J1)\mu_{1}^{b_{fr}}(J1)} \right)\end{split}

if second-order terms are dropped. The time derivative of the mass flow rate is

(12.6-145) \begin{align}\begin{aligned}\begin{split}\Delta t\Delta z^{i}(J1)\frac{\Delta W(J1 + 1) - \Delta W^{i}(J1)}{2A_{c}(J1)\Delta t} \\ &= \left( \Delta z_{o}^{i}(J1) - \Delta p^{i}(J1)\frac{dz^{i}}{dp_{J1}} \right)\frac{\Delta W(J1 + 1) + \Delta W^{i}(J1)}{2A_{c}(J1)}\end{split}\\&= \frac{\Delta z_{o}^{i}(J1)}{2A_{c}(J1)}\left( \Delta W(J1 + 1) + \Delta W^{i}(J1) \right)\end{aligned}\end{align}

if second-order terms are dropped. This is identical to the differenced form of \frac{1}{A_{c}}\frac{\partial W}{\partial t} for mesh segments which are contained within the bubble and so this term actually makes no contribution with respect to the bubble interface.

The last term to analyze is v\frac{\partial W}{\partial z}. This reduces to

(12.6-146)\begin{split}\frac{v_{2}^{i}(J1)\Delta t}{2A_{c}(J1)}\left( W_{2}^{i}(J1 + 1) - W_{2}^{i}(J1) \right) \\ = \frac{\Delta t}{2A_{c}(J1)}\left( v_{1}^{i}(J1) + \Delta v_{0}^{i}(J1) + \Delta p^{i}(J1)\frac{dv_{i}}{dp_{J1}} \right) \\ \times \left( W_{1}(J1 + 1) + \Delta W(J1 + 1) - W_{1}^{i}(J1) - \Delta W^{i}(J1) \right) \\ = \frac{\Delta t}{2A_{c}(J1)}\left( v_{1}^{i}(J1) + \Delta v_{0}^{i}(J1) \right)\left( W_{1}(J1 + 1) - W_{1}^{i}(J1) \right) \\ + {(v}_{1}^{i}(J1) + \Delta v_{0}^{i}(J1))\Delta W(J1 + 1) - (v_{1}^{i}(J1) + \Delta v_{0}^{i}(J1))\Delta W^{i}(J1) \\ + \Delta p^{i}(J1)\frac{dv^{i}}{dp_{J1}}{(W}_{1}(J1 + 1) - W_{1}^{i}(J1))\end{split}

Adding Eq. (12.6-143), Eq. (12.6-144) and Eq. (12.6-146) to Eq. (12.6-132) produces the final differenced momentum equation at the lower interface:

(12.6-147){\widetilde{b}}_{1,J1}\Delta p^{i}(J1) + {\widetilde{b}}_{2,J1}\Delta W^{i}(J1) + {\widetilde{b}}_{3,J1}\Delta p(J1 + 1) + {\widetilde{b}}_{4,J1}\Delta W(J1 + 1) = {\widetilde{g}}_{J1}

where

(12.6-148)\begin{split}{\widetilde{b}}_{1,J1} = b_{1,J1} + \frac{dz^{i}}{dp_{J1}}\Bigg[ \frac{F_{o}(J1)\Delta t}{2A_{c}(J1)\lambda_{1}(J1)}\left( \frac{W_{1}^{i}(J1)}{\rho_{1}(J1)} + \frac{W_{1}(J1 + 1)}{\rho_{1}(J1 + 1)} \right) \\ - \frac{A_{fr}\Delta t}{4D_{h}^{1 - b_{fr}}(J1)A_{c}^{2 + b_{fr}}(J1)}\Bigg(\frac{W_{1}(J1 + 1)\left| W_{1}(J1 + 1) \right|^{1 + b_{fr}}}{\rho_{1}(J1 + 1)\mu_{1}^{b_{fr}}(J1 + 1)} \\ + \frac{W_{1}^{i}(J1)\left| W_{1}^{i}(J1) \right|^{1 + b_{fr}}}{\rho_{1}(J1)\mu_{1}^{b_{fr}}(J1)} \Bigg)\Bigg] \\ - \frac{dv^{i}}{dp_{J1}}\frac{\Delta t}{2A_{c}(J1)}\left(W_{1}(J1 + 1) - W_{1}^{i}(J1) \right)\end{split}
(12.6-149){\widetilde{b}}_{2,J1} = b_{2,J1} + \frac{\Delta t}{2A_{c}(J1)}\left( v_{1}^{i}(J1) + \Delta v_{0}^{i}(J1) \right)
(12.6-150){\widetilde{b}}_{3,J1} = b_{3,J1}
(12.6-151){\widetilde{b}}_{4,J1} = b_{4,J1} - \frac{\Delta t}{2A_{c}(J1)}\left( v_{1}^{i}(J1) + \Delta v_{0}^{i}(J1) \right)
(12.6-152){\widetilde{g}}_{J1} = g_{J1} + \frac{\Delta t}{2A_{c}(J1)}\left( v_{1}^{i}(J1) + \Delta v_{0}^{i}(J1) \right)\left( W_{1}(J1 + 1) - W_{1}^{i}(J1) \right)

with b_{1,J1}, b_{2,J1}, b_{3,J1}, b_{4,J1}, and g_{J1} being defined as in Eq. (12.6-132).

12.6.2.4.3. Differenced Form of the Momentum Equation at the Upper Interface

The development of the momentum equation at the upper interface is identical to that explained in Section 12.6.2.4.1 and Section 12.6.2.4.2 for the lower interface, and so only the final equation will be given here:

(12.6-153)\begin{split}{\widetilde{b}}_{1,J2 - 1}\Delta p(J2 - 1) + {\widetilde{b}}_{2,J2 - 1}\Delta W(J2 - 1) + {\widetilde{b}}_{3,J2 - 1}\Delta p^{i}(J2) \\ {} + {\widetilde{b}}_{4,J2 - 1}\Delta W^{i}(J2) = {\widetilde{g}}_{J2 - 1}\end{split}

with

(12.6-154){\widetilde{b}}_{1,J2 - 1} = b_{1,J2 - 1}
(12.6-155){\widetilde{b}}_{2,J2 - 1} = b_{2,J2 - 1} + \frac{\Delta t}{2A_{c}(J2 - 1)}\left( v_{1}^{i}(J2) + \Delta v_{0}^{i}(J2) \right)
(12.6-156)\begin{split}{\widetilde{b}}_{3,J2 - 1} = b_{3,J2 - 1} - \frac{\Delta t}{2A_{c}(J2 - 1)}\frac{dv^{i}}{dp_{J2}}\left( W_{1}^{i}(J2) - W_{1}(J2 - 1) \right) \\ + \frac{A_{fr}\Delta t}{4D_{h}^{1 - b_{fr}}(J2 - 1)A_{c}^{2 + b_{fr}}(J2 - 1)}\frac{dz^{i}}{dp_{J2}}\Bigg( \frac{W_{1}^{i}(J2)\left| W_{1}^{i}(J2) \right|^{1 + b_{fr}}}{\rho_{1}(J2)\mu_{1}^{b_{fr}}(J2)} \\ + \frac{W_{1}(J2 - 1)\left| W_{1}(J2 - 1) \right|^{1 + b_{fr}}}{\rho_{1}(J2)\mu_{1}^{b_{fr}}(J2)} \Bigg) \\ - \frac{\Delta t}{2A_{c}(J2 - 1)}\frac{dz^{i}}{dp_{J2}}\frac{F_{o}(J2 - 1)}{\lambda_{1}(J2 - 1)}\left( \frac{W_{1}^{i}(J2)}{\rho_{1}(J2)} + \frac{W_{1}(J2 - 1)}{\rho_{1}(J2 - 1)} \right)\end{split}
(12.6-157){\widetilde{b}}_{4,J2 - 1} = b_{4,J2 - 1} - \frac{\Delta t}{2A_{c}(J2 - 1)}v_{1}^{i}(J2) + \Delta v_{0}^{i}(J2)
(12.6-158){\widetilde{g}}_{J2 - 1} = g_{J2 - 1} + \frac{\Delta t}{2A_{c}(J2 - 1)}\left( v_{1}^{i}(J2) + \Delta v_{0}^{i}(J2) \right)\left( W_{1}^{i}(J2) - W_{1}^{i}\left( J - 2 \right) \right)

12.6.2.5. Additional Details Concerning Interface Nodes

Because at least one of the boundaries of an interface mesh segment is not usually aligned with the fixed segment boundaries of the axial mesh, variables defined at the interface segment midpoint must be handled somewhat differently from what they are for a segment located in the interior of a bubble. Midpoint quantities such as A_c and D_{h}, which are considered to be piecewise constant over the fixed mesh segments, are assigned the values of the fixes mesh segment in which the bubble interface lies. Thus, for example, the flow area at the upper interface is taken as A_{c}(J2 - 1) because the upper interface lies in axial mesh segment J2 - 1. This convention has been used throughout the equations in Section 12.6.2.2 and Section 12.6.2.4. However, three midpoint variables are exceptions to this rule: the cladding temperature T_{e}, the structure temperature T_{s}, and the average coolant temperature \overline{T}. T_{e} and T_{s} are calculated outside the two-phase flow model once every heat-transfer time step. As used in the boiling calculation, both temperatures are extrapolated values calculated using the temperatures at the beginning and the end of the last heat-transfer time step and extrapolated to the end of the current coolant time step. All three temperatures are taken to be located at the midpoints of the Eulerian grid intervals, whereas the boiling calculation needs them at the midpoints of the interface vapor mesh segments (for example, T_{e}, T_{s}, and \overline{T} are needed at a point halfway between z (J2 - 1) and the upper interface). Therefore, T_{e} and T_{s} are interpolated in space to the center of the interface segments using the values in the interface fixed mesh segments and the adjacent vapor segments, while \overline{T} is interpolated to the points using the temperatures at the interfaces and at the nearest fixed mesh boundaries contained in the bubble.

Special considerations must be given to any mesh boundary that is crossed by a liquid-vapor interface during a time step. When setting up the interior segments for the pressure-drop calculation, any segment which is outside the bubble at either the beginning or the end of the time step is bypassed and treated as part of the interface segment. Also, if at the end of the step the interface is within \varepsilon of a segment boundary (\varepsilon = .002) then the segment is also bypassed. These tests are all made on the basis of z_{1}^{i}(J) and z_{0}^{i}(J) as given by Eq. (12.6-68). Therefore, a segment JC is included as an interior segment only if

z_{1}^{i}(J1) < z(JC)
z_{0}^{i}(J1) < z\left( JC \right) - \varepsilon
z_{1}^{i}(J2) > z(JC + 1)

and

z_{0}^{i}(J2) > z\left( JC + 1 \right) + \varepsilon

After the calculations of \Delta p and \Delta W for segments inside the bubble are completed, p_{2} and W_{2} for bypassed segments are obtained by linear interpolation between the interface and the first segment inside the interface.

If an interface segment, JT = J1 or JT = J2, represents parts of more than one fixed Eulerian mesh segment, then A_{c}(JT) and D_{h}(JT) for the interface segment are obtained as weighted averages over the Eulerian segment values. The weighting factors are proportional to the \Delta z within the bubble. Also, 1/D_{h} is averaged:

(12.6-159)\frac{1}{D_{h}(JT)} = \frac{\sum_{\text{JC}}^{}\frac{\Delta z(JC)}{D_{h}(JC)}}{\sum_{\text{JC}}^{}{\Delta z(JC)}}

The \Delta z(JC)s are based on z_0^i(JT).

12.6.3. Simultaneous Solution of the Differenced, Linearized Mass and Momentum Equations

If the discretized mass and momentum equations derived in Section 12.6.2 (Eq. (12.6-45) and Eq. (12.6-132)) are applied to each axial segment in the bubble, the result is a set of simultaneous linear equations which have as independent variables only the changes in vapor pressure and in mass flow rate. To this set must be added the equations at the upper and lower bubble interfaces ( Eq. (12.6-79), Eq. (12.6-87), Eq. (12.6-43), and Eq. (12.6-153)), giving a set of 2 \left( J2 - J1 \right) equations in 2 \left( J2 - J1 + 1 \right) unknowns. To complete the set, a boundary condition must be imposed at both interfaces. This requirement is satisfied by expressing the interface mass flow rate as

(12.6-160)W_{1}^{i}\left( JT \right) = v_{1}^{i}\left( JT \right)\rho_{1}^{i}\left( JT \right)A_{c}(JX)

which can be differenced to give

(12.6-161)\Delta W^{i}\left( JT \right) = \left( v_{1}^{i}\left( JT \right)\Delta\rho^{i}\left( JT \right) + \rho_1^{i}\left( JT \right)\Delta v^{i}\left( JT \right) \right)A_{c}(JX)

The index JT is J1 for the lower interface and J2 for the upper interface, while JX is J1 for the lower interface and J2-1 at the upper one. Using the expressions derived earlier for \Delta \rho^{i}\left( JT \right) and \Delta v^{i}\left( JT \right) (Eq. (12.6-37) and Eq. (12.6-62)) produces

(12.6-162)\begin{split}\Delta W^{i}\left( JT \right) = \left( v_{1}^{i}\left( JT \right)\frac{d\rho^{i}}{dp_{JT}} + \rho_{1}^{i}\left( JT \right)\frac{dv^{i}}{dp_{JT}} \right)A_{c}\left( JX \right)\Delta p^{i}\left( JT \right) \\ + \Delta v_{0}^{i}\left( JT \right)A_{c}\left( JX \right)\rho_{1}^{i}(JT)\end{split}

which can be rearranged to give

(12.6-163)\begin{split}- \left( v_{1}^{i}\left( JT \right)\frac{d\rho^{i}}{dp_{JT}} + \rho_{1}^{i}\left( JT \right)\frac{dv^{i}}{dp_{JT}} \right)A_{c}\left( JX \right)\Delta p^{i}\left( JT \right) + \Delta W^{i}\left( JT \right) \\ = \rho_{1}^{i}\left( JT \right)\Delta v_{0}^{i}\left( JT \right)A_{c}(JX)\end{split}

Define

(12.6-164)a_{1,JX} = - \left( v_{1}^{i}\left( JT \right)\frac{d\rho^{i}}{dp_{JT}} + \rho_{1}^{i}\left( JT \right)\frac{dv^{i}}{dp_{JT}} \right)A_{c}(JX)
(12.6-165)a_{2,JX} = 1.0

and

(12.6-166)d_{JX} = \rho_{1}^{i}\left( JT \right)\Delta v_{0}^{i}\left( JT \right)A_{c}(JX)

Then Eq. (12.6-163) becomes

(12.6-167)a_{1,JX}\Delta p^{i}\left( JT \right) + a_{2,JX}\Delta W^{i}\left( JT \right) = d_{JX}

If Eq. (12.6-167) is applied to both upper and lower interfaces and the resulting two equations are added to the set of mass and momentum equations, a set of 2 \left( J2 - J1 + 1 \right) equations in 2 \left( J2 - J1 + 1 \right) unknowns will result. This set can be written in matrix form as

(12.6-168)\mathbf{AX} = \mathbf{B}

where the form of matrix \mathbf{A} is given by Eq. (12.6-169) and the \mathbf{X} and \mathbf{B} vectors are given by Eq. (12.6-170) and Eq. (12.6-171).

(12.6-169)\begin{split} \mathbf{A} = \begin{bmatrix} a_{1,J1} & a_{2,J1} & 0 & 0 & 0 & 0 & \cdots & 0 & 0 & 0 & 0 \\ \widetilde{b}_{1,J1} & \widetilde{b}_{2,J1} & \widetilde{b}_{3,J1} & \widetilde{b}_{4,J1} & 0 & 0 & \cdots & 0 & 0 & 0 & 0 \\ c_{1,J1} & c_{2,J1} & c_{3,J1} & c_{4,J1} & 0 & 0 & \cdots & 0 & 0 & 0 & 0 \\ 0 & 0 & b_{1,J1+1} & b_{2,J1+1} & b_{3,J1+1} & b_{4,J1+1} & \cdots & 0 & 0 & 0 & 0 \\ 0 & 0 & c_{1,J1+1} & c_{2,J1+1} & c_{3,J1+1} & c_{4,J1+1} & \cdots & 0 & 0 & 0 & 0 \\ & & & & \ddots & \ddots & \ddots & \ddots & \ddots & & \\ 0 & 0 & 0 & 0 & 0 & 0 & \cdots & \widetilde{b}_{1,J2-1} & \widetilde{b}_{2,J2-1} & \widetilde{b}_{3,J2-1} & \widetilde{b}_{4,J2-1} \\ 0 & 0 & 0 & 0 & 0 & 0 & \cdots & c_{1,J2-1} & c_{2,J2-1} & c_{3,J2-1} & c_{4,J2-1} \\ 0 & 0 & 0 & 0 & 0 & 0 & \cdots & 0 & 0 & a_{1,J2-1} & a_{2,J2-1} \\ \end{bmatrix}\end{split}
(12.6-170)\begin{split}\mathbf{X} = \begin{bmatrix} \begin{matrix} \Delta p^{i}(J1) \\ \Delta W^{i}(J1) \\ \Delta p(J1 + 1) \\ \end{matrix} \\ \Delta W(J1 + 1) \\ \vdots \\ \Delta p(J2 - 1) \\ \Delta W(J2 - 1) \\ \Delta p^{i}(J2) \\ \Delta W^{i}(J2) \\ \end{bmatrix}\end{split}

and

(12.6-171)\begin{split}B = \begin{bmatrix} \begin{matrix} d_{J1} \\ {\widetilde{g}}_{J1} \\ h_{J1} \\ \end{matrix} \\ g_{J1 + 1} \\ h_{J1 + 1} \\ \vdots \\ {\widetilde{g}}_{J2 - 1} \\ h_{J2 - 1} \\ d_{J2 - 1} \\ \end{bmatrix}\end{split}

This matrix equation can be solved using Gaussian elimination to give the changes in vapor pressure and mass flow rate at all nodes in the bubble. Section 12.16 presents a step-by-step description of how Eq. (12.6-168) is solved using Gaussian elimination. Once the new vapor pressures are known, the vapor temperatures and all thermodynamic sodium properties can be calculated.