Engee documentation

Unresolved include directive in modules/ROOT/pages/fmod-ma-elements/controlled-reservoir-ma.adoc - include::ROOT:partial$localization-en/blocks/AcausalFoundation.MoistAir.Elements.ControlledReservoir.adoc[]

{blockLibraryPP_blocksPP_FF_PhysicalSS_ModelingFF_FundamentalFF_MoistSS_AirFF_ElementsFF_ControlledSS_ReservoirSS_OO_MALL_PP_label}

Boundary conditions for a humid air network with time-varying pressure, temperature, humidity, and level of impurity gases.

blockType: AcausalFoundation.MoistAir.Elements.ControlledReservoir

Path in the library:

/Physical Modeling/Fundamental/Moist Air/Elements/Controlled Reservoir (MA)

Description

Block {blockLibraryPP_blocksPP_FF_PhysicalSS_ModelingFF_FundamentalFF_MoistSS_AirFF_ElementsFF_ControlledSS_ReservoirSS_OO_MALL_PP_label} sets controlled boundary conditions in the humid air network. The volume of moist air inside the tank is assumed to be infinite. Therefore, the flow is considered quasi-stationary. Moist air leaves the tank at the specified pressure, temperature, specific humidity and mass fraction of impurity gas. The humid air enters the tank with the pressure of the tank, but the temperature, specific humidity and mass fraction of the impurity gas are determined by the humid air network located upstream.

The pressure, temperature, amount of moisture and impurity gas in the tank are set by control signals on the ports P, T, W/Tw and G, respectively. The input signals are limited by their permissible ranges. For the amount of moisture, the permissible range is from zero to saturation or 100% water vapor. For the amount of impurity gas, the permissible range is from zero to either the fraction remaining after water vapor or 100% of the impurity gas.

You can specify humidity as one of the options:

  • Relative humidity, ;

  • Specific humidity, ;

  • Molar fraction of water vapor, ;

  • Humidity coefficient, ;

  • Wet thermometer temperature, .

You can specify impurity gas as one of the options:

  • Mass fraction of impurity gases, ;

  • Molar fraction of impurity gases, .

The amount of moisture and impurity gases are related to each other as follows:

,

,

,

,

,

,

Where

  • — pressure;

  • — universal gas constant.

Indexes , and indicate the properties of dry air, water vapor and residual gases, respectively. Lower index indicates the level of saturation with water vapor.

The unit implicitly calculates the temperature of the wet thermometer using the following equation:

,

Where

  • — temperature;

  • — the temperature of the wet thermometer;

  • — specific humidity;

  • — mass fraction of impurity gases;

  • — specific saturation humidity at the temperature of a wet thermometer;

  • — specific enthalpy of dry air;

  • — specific enthalpy of dry air at the temperature of a wet thermometer;

  • — specific enthalpy of impurity gas;

  • — specific enthalpy of impurity gases at the temperature of a wet thermometer;

  • — specific enthalpy of water vapor;

  • — specific enthalpy of water vapor at the temperature of a wet thermometer;

  • — specific enthalpy of evaporation of water vapor at the temperature of a wet thermometer.

Ports

Input

# r_d_indescription missing

Details

Description missing

Data types

Description missing

Complex numbers support

Description missing

# 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

# P — pressure, Pa
scalar

Details

An input port that determines the pressure value in the tank.

Data types

Float64.

Complex numbers support

No

# moisture_indescription missing

Details

Description missing

Data types

Description missing

Complex numbers support

Description missing

# T — temperature, K
scalar

Details

An input port that determines the temperature value in the tank.

Data types

Float64.

Complex numbers support

No

Conserving

# A — humid air port
humid air

Details

Moist air port, corresponds to the tank inlet.

Program usage name

port

Parameters

Main

# Inputs outside valid rangedescription missing
Limit to valid values | Error

Details

description missing

Values

Limit to valid values | Error

Default value

Error

Program usage name

assert_action

Evaluatable

No

# Reservoir temperature specificationdescription missing
Atmospheric temperature | Specified temperature

Details

description missing

Values

Atmospheric temperature | Specified temperature

Default value

Atmospheric temperature

Program usage name

temperature_type

Evaluatable

No

# Provide input signal for trace gasdescription missing

Details

description missing

Default value

true (switched on)

Program usage name

controlled_trace_gas

Evaluatable

No

# Reservoir specific humiditydescription missing

Details

description missing

Default value

0.01

Program usage name

x_w_const

Evaluatable

Yes

# Provide input signal for humiditydescription missing

Details

description missing

Default value

true (switched on)

Program usage name

controlled_humidity

Evaluatable

No

# Reservoir mass ratio of water droplets to moist airdescription missing

Details

description missing

Default value

0

Program usage name

r_d_const

Evaluatable

Yes

# Reservoir water vapor mole fractiondescription missing

Details

description missing

Default value

0.01

Program usage name

y_w_const

Evaluatable

Yes

# Reservoir relative humiditydescription missing

Details

description missing

Default value

0.5

Program usage name

RH_const

Evaluatable

Yes

# Reservoir 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 port A — area normal to the flow direction at the tank inlet
m^2 | um^2 | mm^2 | cm^2 | km^2 | in^2 | ft^2 | yd^2 | mi^2 | ha | ac

Details

The cross-sectional area of the tank inlet in the direction normal to the wet air flow path.

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

# Reservoir humidity ratiodescription missing

Details

description missing

Default value

0.01

Program usage name

HR_const

Evaluatable

Yes

# Provide input signal for pressuredescription missing

Details

description missing

Default value

true (switched on)

Program usage name

controlled_pressure

Evaluatable

No

# Reservoir humidity specification — moisture measurement method
Relative humidity | Specific humidity | Mole fraction | Humidity ratio | Wet-bulb temperature

Details

Sets the measurement method:

  • {blockLibraryPP_blockTypesPP_AcausalFoundationBB_PP_MoistAirBB_PP_ElementsBB_PP_ControlledReservoirPP_BasePP_paramsPP_PP_ParametersPP_moisture_typePP_optionsPP_RelativeSS_humidity} - W port signal equals relative humidity.

  • {blockLibraryPP_blockTypesPP_AcausalFoundationBB_PP_MoistAirBB_PP_ElementsBB_PP_ControlledReservoirPP_BasePP_paramsPP_PP_ParametersPP_moisture_typePP_optionsPP_SpecificSS_humidity} - The signal on the W port equals the specific humidity.

  • {blockLibraryPP_blockTypesPP_AcausalFoundationBB_PP_MoistAirBB_PP_ElementsBB_PP_ControlledReservoirPP_BasePP_paramsPP_PP_ParametersPP_moisture_typePP_optionsPP_WaterSS_vaporSS_moleSS_fraction} - signal at port W is equal to molar fraction of humidity.

  • {blockLibraryPP_blockTypesPP_AcausalFoundationBB_PP_MoistAirBB_PP_ElementsBB_PP_ControlledReservoirPP_BasePP_paramsPP_PP_ParametersPP_moisture_typePP_optionsPP_HumiditySS_ratio} - the signal on the W port is equal to the moisture content ratio.

  • {blockLibraryPP_blockTypesPP_AcausalFoundationBB_PP_MoistAirBB_PP_ElementsBB_PP_ControlledReservoirPP_BasePP_paramsPP_PP_ParametersPP_moisture_typePP_optionsPP_Wet-bulbSS_temperature} - signal on the W port sets the temperature of the moisture thermometer.

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

Program usage name

RH_ws

Evaluatable

Yes

# Provide input signal for temperaturedescription missing

Details

description missing

Default value

true (switched on)

Program usage name

controlled_temperature

Evaluatable

No

# Reservoir trace gas mole fractiondescription missing

Details

description missing

Default value

0.001

Program usage name

y_g_const

Evaluatable

Yes

# Reservoir pressuredescription missing
Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Details

description missing

Units

Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Default value

0.101325 MPa

Program usage name

p_const

Evaluatable

Yes

# Reservoir temperaturedescription missing
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR

Details

description missing

Units

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

Default value

293.15 K

Program usage name

T_const

Evaluatable

Yes

# Reservoir trace gas specification — method of measuring the amount of impurity gases
Mass fraction | Mole fraction

Details

Sets the method for measuring the composition of impurity gases:

  • {blockLibraryPP_blockTypesPP_AcausalFoundationBB_PP_MoistAirBB_PP_ElementsBB_PP_ControlledReservoirPP_BasePP_paramsPP_PP_ParametersPP_trace_gas_typePP_optionsPP_MassSS_fraction} - the signal on the G port is equal to the mass fraction of impurity gases.

  • {blockLibraryPP_blockTypesPP_AcausalFoundationBB_PP_MoistAirBB_PP_ElementsBB_PP_ControlledReservoirPP_BasePP_paramsPP_PP_ParametersPP_trace_gas_typePP_optionsPP_MoleSS_fraction} - The signal on the G port is equal to the molar fraction of impurity gases.

Values

Mass fraction | Mole fraction

Default value

Mass fraction

Program usage name

trace_gas_type

Evaluatable

No

# Reservoir pressure specificationdescription missing
Atmospheric pressure | Specified pressure

Details

description missing

Values

Atmospheric pressure | Specified pressure

Default value

Atmospheric pressure

Program usage name

pressure_type

Evaluatable

No

# Provide input signal for water dropletsdescription missing

Details

description missing

Default value

true (switched on)

Program usage name

controlled_droplets

Evaluatable

No

# Reservoir trace gas mass fractiondescription missing

Details

description missing

Default value

0.001

Program usage name

x_g_const

Evaluatable

Yes