Engee documentation

Interface (G-MA)

The boundary between the gas and humid air networks.

blockType: EngeeFluids.Interfaces.GasMoistAir

Path in the library:

/Physical Modeling/Fluids/Fluid Network Interfaces/Interface (G-MA)

Description

Block Interface (G-MA) It is a connection between the flows of a gas network and a humid air network. The pressure, temperature, and mass flow rate at the boundary are equal. The block does not transfer the properties of the liquid to each network across the border. To preserve the properties of the liquid, make sure that the unit Gas Properties (G) and the block Moist Air Properties (MA) they have the same settings. When moist air exits the MA port, the unit assigns parameter values to it. Interface relative humidity and Interface trace gas mass fraction or the values of the input signals. However, when humid air enters the MA port, the unit stores the values of the variables in the humid air flow.

You can choose whether to maintain constant humidity and the amount of impurity gas at the boundary or set them using the ports W, Tw and TG, respectively.

Conservation of mass and momentum

The mass flow rate is maintained:

where

  • — mass flow of gas to the port G;

  • — the mass flow of moist air into the port MA.

The unit maintains equal pressures and temperatures in the ports, such that:

Energy conservation

Saving energy at the border:

where

  • — energy flow to port G;

  • — energy flow to the port MA;

  • — specific enthalpy in the port G;

  • — specific enthalpy in the port MA;

  • — the flow rate in the port G;

  • — the flow rate in the port MA.

For a given cross-sectional area of the hole , the block defines and how:

where

  • — specific volume in the port G;

  • — specific volume in the port MA:

Universal gas mixture constant At the boundary, it is a function of the fluid on both sides:

where

  • — specific gas constant of dry air;

  • — specific gas constant of water vapor;

  • — specific gas constant of impurity gases;

  • — specific humidity at the border. The block determines this value when the stream exits the MA port based on the parameter settings.:

    • When the check box Controlled moisture and trace gas removed, the block calculates based on the method specified in the parameter Interface moisture specification.

    • When the checkbox is selected Controlled moisture and trace gas installed, the block calculates based on the input value on port W or on port Tw.

  • — the mass fraction of impurity gas at the boundary. The block determines this value when the stream exits the MA port based on the parameter settings.:

    • When the checkbox is selected Controlled moisture and trace gas removed, the block calculates based on the parameter value Interface trace gas mass fraction or Interface trace gas mole fraction.

    • When the checkbox is selected Controlled moisture and trace gas installed, the block calculates based on the input value on the TG port.

Ports

Conserving

# G — gas port
gas

Details

A non-directional port associated with gas at the border.

Program usage name

gas_port

# MA — humid air port
`humid air

Details

A non-directional port associated with moist air at the boundary.

Program usage name

moist_air_port

Input

# T_wb_indescription missing

Details

Description missing

Data types

Description missing

Complex numbers support

Description missing

# trace_gas_indescription missing

Details

Description missing

Data types

Description missing

Complex numbers support

Description missing

# moisture_indescription missing

Details

Description missing

Data types

Description missing

Complex numbers support

Description missing

# r_d_indescription missing

Details

Description missing

Data types

Description missing

Complex numbers support

Description missing

Parameters

Main

# Inputs outside valid range — option for monitoring or controlling input data outside the permissible range
Limit to valid values | Error

Details

Monitor or control invalid inputs. If the value is selected `Limit to valid values`is selected, the unit saturates the input values within the set limits. If the value is selected `Error`is selected, the simulation stops when the block receives invalid input values.

Values

Limit to valid values | Error

Default value

Limit to valid values

Program usage name

assert_action

Evaluatable

No

# Provide input signal for interface trace gasdescription missing

Details

description missing

Default value

false (switched off)

Program usage name

controlled_trace_gas

Evaluatable

No

# Interface specific humiditydescription missing

Details

description missing

Default value

0.01

Program usage name

x_w_const

Evaluatable

Yes

# Provide input signal for interface humiditydescription missing

Details

description missing

Default value

false (switched off)

Program usage name

controlled_humidity

Evaluatable

No

# Interface mass ratio of water droplets to moist airdescription missing

Details

description missing

Default value

0.0

Program usage name

r_d_const

Evaluatable

Yes

# Interface water vapor mole fractiondescription missing

Details

description missing

Default value

0.01

Program usage name

y_w_const

Evaluatable

Yes

# Interface relative humidity — relative humidity at the boundary

Details

The relative humidity at the boundary. The block uses this value to calculate the humidity.

Dependencies

To use this parameter, uncheck Controlled moisture and trace gas, and for the parameter Interface moisture specification on the Relative humidity.

Default value

0.5

Program usage name

RH_const

Evaluatable

Yes

# Interface wet-bulb temperaturedescription missing
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR

Details

description missing

Units

K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR

Default value

287 K

Program usage name

T_wb_const

Evaluatable

Yes

# Cross-sectional area at ports G and MA — cross-sectional area of the openings for gas and moist air
m^2 | um^2 | mm^2 | cm^2 | km^2 | in^2 | ft^2 | yd^2 | mi^2 | ha | ac

Details

Cross-sectional area of the gas and moist air openings.

Units

m^2 | um^2 | mm^2 | cm^2 | km^2 | in^2 | ft^2 | yd^2 | mi^2 | ha | ac

Default value

0.01 m^2

Program usage name

port_area

Evaluatable

Yes

# Interface humidity ratiodescription missing

Details

description missing

Default value

0.01

Program usage name

HR_const

Evaluatable

Yes

# Interface humidity specification — moisture parameterization
Relative humidity | Specific humidity | Mole fraction | Humidity ratio | Wet-bulb temperature

Details

Choose how to calculate humidity: using relative humidity, specific humidity, molar fraction, humidity coefficient or wet-bulb temperature.

Values

Relative humidity | Specific humidity | Mole fraction | Humidity ratio | Wet-bulb temperature

Default value

Relative humidity

Program usage name

moisture_type

Evaluatable

No

# Relative humidity at saturationdescription missing

Details

description missing

Default value

1.0

Program usage name

RH_ws

Evaluatable

Yes

# Interface trace gas mole fractiondescription missing

Details

description missing

Default value

0.001

Program usage name

y_g_const

Evaluatable

Yes

# Interface trace gas specification — impurity gas parameterization
Mass fraction | Mole fraction

Details

Choose how to parameterise the impurity gas at the boundary: using mass fraction or molar fraction.

Values

Mass fraction | Mole fraction

Default value

Mass fraction

Program usage name

trace_gas_type

Evaluatable

No

# Provide input signal for interface water dropletsdescription missing

Details

description missing

Default value

false (switched off)

Program usage name

controlled_droplets

Evaluatable

No

# Interface trace gas mass fraction — mass fraction of impurity gas at the boundary

Details

Mass fraction of impurity gas at the boundary.

Dependencies

To use this parameter, uncheck Controlled moisture and trace gas and set the Interface trace gas specification parameters to . Mass fraction.

Default value

0.001

Program usage name

x_g_const

Evaluatable

Yes