Main Content

Interface (2P-MA)

Two-phase fluid and moist air network interface

Since R2022a

  • Interface (2P-MA) block icon

Libraries:
Simscape / Fluids / Fluid Network Interfaces

Description

The Interface (2P-MA) block represents a flow connection between a two-phase fluid network and moist air 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. When moist air leaves port MA, the block assigns the values of the Interface relative humidity and Interface trace gas mass fraction parameters to the signal. However, when moist air enters port MA, the block retains the upstream values.

You can choose whether to maintain constant moisture and trace gas amounts at the interface or to specify them using the W or Tw and TG ports respectively. The fluid at the 2P port must remain superheated. You can use the Two-phase fluid superheated vapor check parameter to choose what action the block performs if the fluid does not meet this condition.

Equations

The block conserves mass such that

m˙2P+m˙MA=0,

where:

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

  • MA is the mass flow rate into port MA.

The block maintains equal port pressures and temperatures such that

p2P=pMAT2P=TMA

The block calculates the energy balance over the interface as

Φ2P+ΦMA=m˙2P(h2P+w2P22)+m˙MA(hMA+wMA22),

where:

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

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

  • h2P is the specific enthalpy at port 2P.

  • hMA is the specific enthalpy at port MA.

  • v2P is the specific volume at port 2P.

  • vMA is the specific volume at port MA.

  • w2P is the flow velocity at port 2P.

  • wMA is the flow velocity at port MA.

For a given cross-sectional area, S, the block defines w2P as

w2P=m˙2Pv2PS,

and wMA as

wMA=m˙MAvMAS,

where

vMA=RITMApMA.

You specify S using the Cross-sectional area at ports 2P and MA parameter. The block computes the specific gas constant of the interface mixture, RI, as a function of the fluid on either side such that

RI=f(RA,RW,RG,xWI,xGI),

where:

  • RA is the dry air specific gas constant.

  • RW is the water vapor specific gas constant.

  • RG is the trace gas specific gas constant.

  • xWI is the interface specific humidity. The block determines this value when the flow exits port MA, based on your parameter settings:

    • When Moisture and trace gas specification is Constant, the block calculates xWI based on the method specified with the Interface moisture specification parameter.

    • When Moisture and trace gas specification is Controlled, the block bases xWI on the input that you supply at port W or port Tw.

  • xGI is the interface trace gas mass fraction. The block determines this value when the flow exits port MA, based on your parameter settings:

    • When Moisture and trace gas specification is Constant, the block calculates xGI based on the value of the Interface trace gas mass fraction or Interface trace gas mole fraction parameter.

    • When Moisture and trace gas specification is Controlled, the block bases xGI on the input that you supply at port TG.

Ports

Input

expand all

Physical signal port associated with the moisture content at the interface.

Dependencies

To enable this port, set Moisture and trace gas specification to Controlled and Interface moisture specification to Relative humidity, Specific humidity, Mole fraction, or Humidity ratio.

Physical signal port associated with the wet-bulb temperature at the interface, in K.

Dependencies

To enable this port, set Moisture and trace gas specification to Controlled and Interface moisture specification to Wet-bulb temperature.

Physical signal port associated with the trace gas at the interface.

Dependencies

To enable this port, set Moisture and trace gas specification to Controlled.

Conserving

expand all

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

Moist air conserving port associated with the moist air at the interface.

Parameters

expand all

Option to maintain a constant interface or to specify the moisture and trace gas amounts via physical signal ports. When you select Controlled, the block exposes the W and TG ports.

Whether to calculate moisture using relative humidity, specific humidity, mole fraction, humidity ratio, or wet-bulb temperature.

Relative humidity at the interface. The block uses this value to calculate the moisture.

Dependencies

To enable this parameter, set Moisture and trace gas specification to Constant and Interface moisture specification to Relative humidity.

Specific humidity at the interface. The block uses this value to calculate the moisture.

Dependencies

To enable this parameter, set Moisture and trace gas specification to Constant and Interface moisture specification to Specific humidity.

Water vapor mole fraction at the interface. The block uses this value to calculate the moisture.

Dependencies

To enable this parameter, set Moisture and trace gas specification to Constant and Interface moisture specification to Mole fraction.

Humidity ratio at the interface. The block uses this value to calculate the moisture.

Dependencies

To enable this parameter, set Moisture and trace gas specification to Constant and Interface moisture specification to Humidity ratio.

Wet bulb temperature at the interface. The block uses this value to calculate moisture.

Dependencies

To enable this parameter, set Moisture and trace gas specification to Constant and Interface moisture specification to Wet-bulb temperature.

Whether to parameterize the trace gas at the interface using mass fraction or mole fraction.

Mass fraction of trace gas at the interface.

Dependencies

To enable this parameter, set Moisture and trace gas specification to Constant and Interface trace gas specification to Mass fraction.

Mole fraction of trace gas at the interface.

Dependencies

To enable this parameter, set Moisture and trace gas specification to Constant and Interface trace gas specification to Mole fraction.

Relative humidity at the point of saturation.

Cross-sectional area of the two-phase fluid and moist air ports.

Action to perform when the fluid at the interface does not meet superheated conditions.

Monitor or control invalid inputs. When you select Limit to valid values, the block saturates the inputs within the bounds. You can choose to have the block issue a warning when it limits the inputs by selecting Warn and limit to valid values, or you can stop the simulation when the block receives invalid inputs by selecting Error.

Dependencies

To enable this parameter, set Moisture and trace gas specification to Controlled.

Extended Capabilities

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

Version History

Introduced in R2022a

expand all