Contenido principal

Interface (2P-TL)

Two-phase fluid and thermal liquid network interface

Libraries:
Simscape / Fluids / Fluid Network Interfaces

Description

The Interface (2P-TL) block represents a flow connection between a two-phase fluid network and a thermal liquid network. Pressure, temperature, and mass flow rate are equal at the interface. The block does not transfer the fluid properties of each fluid network across the interface. To conserve fluid properties, ensure that the Thermal Liquid Properties (TL) block and the Two-Phase Fluid Properties (2P) block have the same settings.

The fluid at the 2P port must remain subcooled. You can use the Two-phase fluid subcooled liquid check parameter to choose what action the block performs if the fluid does not meet this condition.

Mass and Momentum Balance

The block conserves mass such that

m˙TL+m˙2P=0,

where:

  • m˙TL is the mass flow rate into port TL.

  • m˙2P is the mass flow rate into port 2P.

The port pressures are equal:

PTL=P2P.

Energy Balance

The temperature is constant between the two fluid ports. The block calculates the energy balance over the interface as

ΦTL+Φ2P=m˙TLuTL+pTLvTL+wTL22+m˙2Pu2P+p2Pv2P+w2P22,

where:

  • ΦTL is the energy flow rate into port TL.

  • Φ2P is the energy flow rate into port 2P.

  • hTL is the specific internal energy at port TL.

  • h2P is the specific internal energy at port 2P.

  • vTL is the specific volume at port TL.

  • v2P is the specific volume at port 2P.

  • wTL is the flow velocity at port TL

    wTL=m˙TLvTLS,

  • w2P is the flow velocity at port 2P

    w2P=m˙2Pv2PS.

  • S is the value of the Cross-sectional area at ports 2P and TL parameter.

Examples

expand all

This example uses test harnesses to compare the Interface (2P-G), Interface (2P-MA), and Interface (2P-TL) blocks. A test harness is a minimum viable model that you can use to parameterize blocks or isolate dynamics.

This model contains two networks that both use water as the working fluid. In the top network, the water in the Reservoir (2P) block is 385 K and is fully vapor, which allows it to convert to gas or moist air at the respective interface. In the bottom network, the water in the Reservoir (2P) block is 293 K and fully liquid, which allows it to convert to thermal liquid at the interface.

Interface blocks preserve the overall fluid mixture Through and Across variables across the interface. The Scope blocks show that the temperatures of each fluid remain the same on either side of the interfaces.

Ports

Conserving

expand all

Two-phase fluid conserving port associated with the two-phase fluid at the interface.

Thermal liquid conserving port associated with the thermal liquid at the interface.

Parameters

expand all

Cross-sectional area of the thermal liquid and two-phase fluid ports.

Action to perform when the fluid at port 2P does not meet subcooled conditions.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2021a