Receiver Accumulator (2P)
Tank with liquid and vapor volumes of variable proportion
Libraries:
Simscape /
Fluids /
Two-Phase Fluid /
Tanks & Accumulators
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 temperature of the tank walls are set at port H.
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:
The portion of the heat transfer that goes to the liquid volume, QL, accounts for the heat transfer between the liquid and the wall and between the liquid and the vapor,
where:
zL is the liquid volume fraction of the tank.
Sc is the Tank cross sectional area parameter.
Ss is surface area of the tank side, which the block calculates from the volume and tank cross-sectional area, assuming that the tank is cylindrical.
αL is the Liquid heat transfer coefficient parameter.
TH is the temperature of the tank wall.
TL is the temperature of the liquid.
The block calculates the heat transfer coefficient between the liquid and the vapor as
The portion of the heat transfer that goes to the vapor volume, QV, accounts for the heat transfer between the vapor and the wall and between the liquid and the vapor,
where:
αV is the Vapor heat transfer coefficient.
TV is the temperature of the vapor.
The liquid volume fraction is determined from the liquid mass fraction:
where:
fM,L is the mass fraction of the liquid.
νL is the specific volume of the liquid.
νV is the specific volume of the vapor.
Energy Flow Rates Due To Phase Change
When the liquid specific enthalpy is greater than or equal to the saturated liquid specific enthalpy, the mass flow rate of the vaporizing fluid is:
where:
ML is the total liquid mass.
τ is the Vaporization and condensation time constant parameter.
hL is the specific enthalpy of the liquid at the internal node.
hL,Sat is the saturated liquid specific enthalpy at the internal node.
hV is the specific enthalpy of the vapor.
hV,Sat is the saturated vapor specific enthalpy.
The energy flow associated with vaporization is:
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:
where MV is the total vapor mass.
The energy flow associated with condensation is:
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:
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.
The mass balance in the vapor zone is:
where:
MV 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.
The energy balance in the liquid zone is:
where:
uL is the specific internal energy of the liquid.
ϕL,In is the inlet liquid energy flow rate at all L and V ports.
ϕL,Out is the outlet liquid energy flow rate:
ϕCon is the energy flow rate of the condensing vapor.
ϕVap is the energy flow rate of the vaporizing liquid.
QL is the heat transfer between the tank wall and the liquid.
The energy balance in the vapor zone is:
uV is the specific internal energy of the vapor.
ϕV,In is the inlet vapor energy flow rate at all L and V ports.
ϕV,Out is the outlet vapor energy flow rate:
QV 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 Receiver Accumulator block models the vapor and liquid volumes separately. If you input vapor or liquid quickly, the block may compress the vapor volume and the pressure may rise faster than expected. The pressure rises because when there is a high vapor or liquid mass flow rate input, the temperature rise due to compression is faster than the heat transfer that cools the vapor. If you add the vapor slowly, the heat transfer between the vapor and the liquid brings the vapor temperature down, which allows it to condense into liquid, and the pressure will not spike. Additionally, if you wait until the block achieves equilibrium, adding vapor or liquid shifts the mass fraction and does not cause pressure spikes.
Assumptions and Limitations
Pressure must remain below the critical pressure.
Hydrostatic pressure is not modeled.
The container wall is rigid, therefore the total volume of fluid is constant.
The thermal mass of the tank wall is not modeled.
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.
A liquid-vapor mixture is not modeled.