Professional Documents
Culture Documents
Description
The Receiver-Accumulator (2P) block represents a tank with fluid that can undergo phase change.
The liquid and vapor phases, referred to as zones, are modeled as distinct volumes that can change
in size during simulation, but do not mix. The relative amount of space a zone occupies in the
system is called a zone fraction, which ranges from 0 to 1. The vapor-liquid mixture phase is not
modeled.
In an HVAC system, when this tank is placed between a condenser and an expansion valve, it acts as
a receiver. Liquid connections to the block are made at ports AL and BL. When the tank is placed
between an evaporator and a compressor, it acts as an accumulator. Vapor connections to the block
are made at ports AV and BV. A fluid of either phase can be connected to either port, however the
fluid exiting from a V port is in the vapor zone and an L port is in the liquid zone. There is no mass
flow through unconnected ports.
The liquid level of the tank is reported as a zone fraction at port L. If the liquid level reports 0, the
tank is fully filled with vapor. The tank is never empty.
Heat Transfer
The total heat transfer, QH, is the sum of the heat transfer in the liquid and vapor phases:
QH = QL + QV.
The heat transfer between the liquid and the wall is:
where:
z
L
is the liquid volume fraction of the tank.
S
c
is the Tank cross sectional area parameter.
S
s
is surface area of the tank side, which the block calculates from the volume and tank cross-
sectional area.
α
L
is the Liquid heat transfer coefficient parameter.
https://ww2.mathworks.cn/help/releases/R2022a/physmod/hydro/ref/receiveraccumulator2p.html 1/10
2023/10/18 18:15 Tank with liquid and vapor volumes of variable proportion - MATLAB - MathWorks 中国
The block calculates the heat transfer coefficient between the liquid and the vapor as
1
α LV = .
1 1
+
αL αV
The heat transfer between the vapor and the wall is:
where:
α
V
is the Vapor heat transfer coefficient.
T
V
is the temperature of the vapor.
The liquid volume fraction is determined from the liquid mass fraction:
fM,LνL
zL = ,
fM,LνL + (1 − fM,L)νV
where:
f
M,L
is the mass fraction of the liquid.
where:
M
L
is the total liquid mass.
h
L,Sat
is the saturated liquid specific enthalpy at the internal node.
h
V
is the specific enthalpy of the vapor.
When the liquid specific enthalpy is lower than the saturated liquid specific enthalpy, no
vaporization occurs, and ṁVap = 0.
Similarly, when the vapor specific enthalpy is less than or equal to the saturated vapor specific
enthalpy, the mass flow rate of the condensing fluid is:
https://ww2.mathworks.cn/help/releases/R2022a/physmod/hydro/ref/receiveraccumulator2p.html 2/10
2023/10/18 18:15 Tank with liquid and vapor volumes of variable proportion - MATLAB - MathWorks 中国
MV (hV − hV ,Sat )/(hV − h L ,Sat )
ṁCon = .
τ
When the vapor specific enthalpy is higher than the saturated vapor specific enthalpy, no
condensation occurs, and ṁCon = 0.
Mass Balance
The total tank volume is constant. Due to phase change, the volume fraction and mass of the fluid
changes. The mass balance in the liquid zone is:
dML
= ṁL,In − ṁL,Out + ṁCon − ṁVap,
dt
where:
ṁ
L,In
is the inlet liquid mass flow rate at all L and V ports.
ṁ
L,Out
is the outlet liquid mass flow rate:
ṁ
Con
is the mass flow rate of the condensing fluid.
ṁ
Vap
is the mass flow rate of the vaporizing fluid.
dMV
= ṁV,In − ṁV,Out − ṁCon + ṁVap,
dt
where:
M
V
is the total vapor mass.
ṁ
V,In
is the inlet vapor mass flow rate at all L and V ports.
ṁ
V,Out
is the outlet vapor mass flow rate:
If there is only one zone present in the tank, the outlet mass flow rate of the fluid is the sum of the
flow rate through all of the ports:
where ṁ
phase,Out
is ṁ
L,Out
if the fluid is entirely liquid, and ṁ
V,Out
if the fluid is entirely vapor.
Energy Balance
The fluid can heat or cool depending on the heat transfer between the tank and wall, which is set by
the temperature at port H.
https://ww2.mathworks.cn/help/releases/R2022a/physmod/hydro/ref/receiveraccumulator2p.html 3/10
2023/10/18 18:15 Tank with liquid and vapor volumes of variable proportion - MATLAB - MathWorks 中国
duL dML
ML + uL = ϕL,In − ϕL,Out + ϕCon − ϕVap + QL.
dt dt
where:
ϕL,In is the inlet liquid energy flow rate at all L and V ports.
ϕ
L,Out
is the outlet liquid energy flow rate:
ϕ
Vap
is the energy flow rate of the vaporizing liquid.
Q
L
is the heat transfer between the tank wall and the liquid.
duV dMV
MV + uV = ϕV,In − ϕV,Out − ϕCon + ϕVap + QV.
dt dt
ϕ
V,In
is the inlet vapor energy flow rate at all L and V ports.
Q
V
is the heat transfer between the tank wall and the vapor.
If there is only one zone present in the tank, the outlet energy flow rate is the sum of the flow rate
through all of the ports:
where ϕphase,Out is ϕL,Out if the fluid is entirely liquid, and ϕV,Out if the fluid is entirely vapor.
Momentum Balance
There are no pressure changes modeled in the tank, including hydrostatic pressure. The pressure at
any port is equal to the internal tank pressure.
The container wall is rigid, therefore the total volume of fluid is constant.
Flow resistance through the outlets is not modeled. To model pressure losses associated with the
outlets, connect a Local Restriction (2P) block or a Flow Resistance (2P) block to the ports of the
Receiver-Accumulator (2P) block.
https://ww2.mathworks.cn/help/releases/R2022a/physmod/hydro/ref/receiveraccumulator2p.html 4/10