5.11. Interaction With Other Models

5.11.1. Information Received by PRIMAR from Other Models

PRIMAR-1 receives no information from other routines. It is driven entirely by the input regardless of what happens elsewhere in the code. Three kinds of input can be supplied: a pressure drop as a function of time, a normalized channel flow rate as a function of time, or the parameters for an exponentially decreasing pressure drop. These are described in Section 5.10 and mentioned in the input listing in Chapter 3.

PRIMAR-4 receives C0, C1, C2, and C3 and also the inlet and outlet temperatures for each core channel from the coolant dynamics routines. These are the variables described in Section 5.2.2. The coolant dynamics routines also supply PRIMAR with the net mass flow and the net mass flow times temperature from all of the core channels to each outlet plenum, as well as the net mass flow and the net mass flow times temperature into all of the core channels from each inlet plenum during the last PRIMAR time step. The PRIMAR model then adjusts the inlet and outlet plenum mass, pressure, and cover-gas interface to account for differences between the estimated channel flows (PRIMAR) and the computed channel flows (coolant dynamics routines) for the last PRIMAR time step. Symbolically,

(5.11-1)Δm=wcdtwedt

where

Δm = the mass adjustment

wc = the total calculated mass flow rate from all the core channels

we = the total estimated mass flow rate from all the core channels

The integration is over the time step. Then

ml=m+Δm

Vl=ml/ρl

zinter=zref+Vl/Ainter

where

ml = the adjusted liquid mass in the plenum

m = the liquid mass in the plenum before adjustment

Vl = the liquid volume in the plenum

ρl = the liquid density in the plenum

zinter = the liquid interface height in the plenum

zref = the reference height input for the plenum

Ainter = the area of the liquid interface input for the plenum

The coefficients C0, C1, C2, and C3, supplied to the PRIMAR model by the coolant dynamics routines, are used to estimate the rate of change in the mass flow rate for each channel, as indicated in Eq. (5.2-21) and written more simply for a particular channel as

(5.11-2)dwdt=C0+C1(pin+θ2Δpin)+C2(px+θ2Δpx)+2θ2C3wΔw

where the symbols have the same meaning as in Eq. (5.2-26). Before boiling begins in a core channel, dw/dt depends on pinpx, and C1 is set equal to C2. After boiling starts, the inlet flow is independent of px, and depends on pinpb, where pb is the bubble pressure. Also after boiling starts, the outlet flow is independent of pin, and depends on pbpx. The bubble pressure pb is included in C0.

5.11.2. Information Supplied by PRIMAR to Other Models

PRIMAR supplies information to the pre-voiding coolant dynamics routines, the boiling model, LEVITATE and PLUTO-2. Both PRIMAR-1 and PRIMAR-4 supply the same information, but it is arrived at differently by the two options. The information supplied is

pin(tP1) = the inlet plenum pressure at the beginning of the PRIMAR time step

pout(tP1) = the outlet plenum pressure at the beginning of the PRIMAR time step

dpindt, dpoutdt = the time derivatives of the inlet and outlet plenum pressures

TinTout = the inlet and outlet plenum temperatures

At any time t during the PRIMAR time step, the inlet and outlet plenum pressures are taken as

(5.11-3)pin(t)=pin(tP1)+(ttP1)dpin/dt

and

(5.11-4)pout(t)=pout(tP1)+(ttP1)dpout/dt

The plenum pressures pin and pout that PRIMAR supplies to the coolant routines are at the plenum reference heights zPLENL and zPLENU, and the coolant routines compute the core channel inlet and outlet pressures from these by the formula:

(5.11-5)p(zci)=pin+ρing(zPLENLzci)

and

(5.11-6)p(zco)=pout+poutg(zPLENUzco)

It should be noticed that in the PRIMAR-4 input (ZCVL) a reference height is entered for each compressible volume, including the compressible volumes that are the inlet and outlet plenums. In addition, inlet and outlet plenum reference heights, zPLENL and zPLENU, are also entered as input (ZPLENL and ZPLENU, or ZPLENC). If these two sets of reference are different, the PRIMAR-4 code calculates the appropriate adjustments and passes the inlet and outlet plenum pressures at zPLENL and zPLENU to the coolant routines.

The inlet and outlet plenum temperatures are discussed in Section 3.3.6 of Chapter 3.