主要内容

Flow Rate Source (MA)

R2026b

Generate constant or time-varying mass flow rate or volumetric flow rate in moist air network

Since R2023b

  • Flow Rate Source (MA) block

Libraries:
Simscape / Foundation Library / Moist Air / Sources

Description

The Flow Rate Source (MA) block represents an ideal mechanical energy source in a moist air network. The source can maintain the specified mass flow rate or volumetric flow rate regardless of the pressure differential. There is no flow resistance and no heat exchange with the environment. You specify the flow rate type by using the Flow rate type parameter.

The block icon changes depending on the values of the Source type and Flow rate type parameters.

Ports A and B represent the source inlet and outlet. The input physical signal at port M or V, depending on the flow rate type, specifies the flow rate. Alternatively, you can specify a fixed flow rate as a block parameter. A positive flow rate causes gas to flow from port A to port B.

The volumetric flow rate and mass flow rate are related through the expression

m˙={ρBV˙for V˙≥0ρAV˙for V˙<0

where:

  • m˙ is the mass flow rate from port A to port B.

  • ρA and ρB are densities at ports A and B, respectively.

  • V˙ is the volumetric flow rate.

The equations describing the source use these symbols.

cpSpecific heat at constant pressure
hSpecific enthalpy
htSpecific total enthalpy
m˙Mass flow rate (flow rate associated with a port is positive when it flows into the block)
pPressure
ρDensity
RSpecific gas constant
sSpecific entropy
TTemperature
ΦworkPower delivered to the moist air flow through the source

Subscripts A and B indicate the appropriate port. Subscripts a, w, d, and g indicate the properties of dry air, water vapor, water droplets, and trace gas, respectively.

Mass balance:

m˙A+m˙B=0m˙wA+m˙wB=0m˙gA+m˙gB=0m˙dA+m˙dB=0

Energy balance:

ΦA+ΦB+Φwork=0

If the source performs no work (Power added parameter is set to None), then Φwork=0.

If the source is isentropic (Power added parameter is set to Isentropic), then

Φwork=m˙A(htB−htA)

where

htA=hA+12(m˙AρASA)2htB=hB+12(m˙BρBSB)2

The mixture-specific enthalpies, hA = h(TA) and hB = h(TB), are constrained by the isentropic relation, that is, there is no change in entropy:

∫TATB1Tdh(T)=Rln(pBpA)

When you set the Flow rate type parameter to Mass flow rate, the quantity specified by the Mixture mass flow rate parameter or the input signal at port M is

m˙A=m˙specified

Assumptions and Limitations

  • There are no irreversible losses.

  • There is no heat exchange with the environment.

Ports

Input

expand all

Input physical signal that specifies the mass flow rate of the moist air through the source.

Dependencies

To enable this port, set the Source type parameter to Controlled and Flow rate type to Mass flow rate.

Programmatic Use

Port: M

Input physical signal that specifies the volumetric flow rate of moist air through the source.

Dependencies

To enable this port, set the Source type parameter to Controlled and Flow rate type to Volumetric flow rate.

Programmatic Use

Port: V

Conserving

expand all

Moist air conserving port. A positive flow rate causes moist air to flow from port A to port B.

Programmatic Use

Port: A

Moist air conserving port. A positive flow rate causes moist air to flow from port A to port B.

Programmatic Use

Port: B

Parameters

expand all

Select whether the flow rate generated by the source can change during simulation:

  • Controlled — The flow rate is variable, controlled by an input physical signal. Selecting this option exposes the input port M or V, depending on the value of the Flow rate type parameter.

  • Constant — The flow rate is constant during simulation, specified by a block parameter. Selecting this option enables the Mass flow rate or Volumetric flow rate parameter, depending on the value of the Flow rate type parameter.

Programmatic Use

Parameter: source_type
Values: "foundation.enum.constant_controlled.controlled" | "foundation.enum.constant_controlled.constant"

Select the type of flow rate, Mass flow rate or Volumetric flow rate.

Programmatic Use

Parameter: flow_type
Values: "foundation.enum.mass_volumetric_flow.mass" | "foundation.enum.mass_volumetric_flow.volumetric"

Desired mass flow rate of the moist air mixture through the source.

Dependencies

To enable this parameter, set Source type to Constant and Flow rate type to Mass flow rate.

Programmatic Use

Parameter: mass_flow

Desired volumetric flow rate of the moist air mixture through the source.

Dependencies

To enable this parameter, set Source type to Constant and Flow rate type to Volumetric flow rate.

Programmatic Use

Parameter: volumetric_flow

Select whether the source calculates flow rate at actual working conditions or at a standard pressure and temperature:

  • Standard conditions — The source calculates the volumetric flow rate by using the moist air density at standard conditions. When you select this option, additional parameters let you specify the standard pressure, temperature, humidity, and trace gas amount.

  • Actual conditions — The source calculates the volumetric flow rate by using the moist air density at the actual working conditions of the system.

Dependencies

To enable this parameter, set Flow rate type to Volumetric flow rate.

Programmatic Use

Parameter: volumetric_flow_conditions
Values: "foundation.enum.volumetric_flow_conditions.standard" | "foundation.enum.volumetric_flow_conditions.actual"

Moist air pressure at standard conditions.

Dependencies

To enable this parameter, set Specified flow rate conditions to Standard conditions.

Programmatic Use

Parameter: p_std

Moist air temperature at standard conditions.

Dependencies

To enable this parameter, set Specified flow rate conditions to Standard conditions.

Programmatic Use

Parameter: T_std

Method to specify the initial moist air humidity.

Dependencies

To enable this parameter, set Specified flow rate conditions to Standard conditions.

Programmatic Use

Parameter: humidity_spec
Values: "foundation.enum.HumiditySpec.RelativeHumidity" | "foundation.enum.HumiditySpec.SpecificHumidity" | "foundation.enum.HumiditySpec.MoleFraction" | "foundation.enum.HumiditySpec.HumidityRatio" | "foundation.enum.HumiditySpec.WetBulbTemperature"

Moist air relative humidity at standard conditions.

Dependencies

To enable this parameter, set Standard humidity specification to Relative humidity.

Programmatic Use

Parameter: RH_std

Specific humidity in the moist air at standard conditions. The specific humidity is the mass fraction of water vapor to the combined total mass of water vapor, trace gas, and dry air.

Dependencies

To enable this parameter, set Standard humidity specification to Specific humidity.

Programmatic Use

Parameter: x_w_std

Mole fraction of the water vapor in the moist air channel at standard conditions. The water vapor mole fraction is relative to the combined molar quantity of water vapor, trace species, and dry air.

Dependencies

To enable this parameter, set Standard humidity specification to Mole fraction.

Programmatic Use

Parameter: y_w_std

Humidity ratio in the moist air channel at standard conditions. The humidity ratio is the ratio of the mass of water vapor to the mass of dry air and trace gas.

Dependencies

To enable this parameter, set Standard humidity specification to Humidity ratio.

Programmatic Use

Parameter: HR_std

Wet-bulb temperature at standard conditions. The block uses this value to calculate humidity.

Dependencies

To enable this parameter, set Standard humidity specification to Wet-bulb temperature.

Programmatic Use

Parameter: Tw_std

Measurement type of trace gas.

Dependencies

To enable this parameter, set Specified flow rate conditions to Standard conditions.

Programmatic Use

Parameter: trace_gas_spec
Values: "foundation.enum.trace_gas_spec.mass_fraction" | "foundation.enum.trace_gas_spec.mole_fraction"

Amount of trace gas in the moist air by mass fraction at standard conditions. The mass fraction is relative to the combined total mass of water vapor, trace gas, and dry air.

The block ignores this parameter if the Trace gas model parameter in the Moist Air Properties (MA) block is None.

Dependencies

To enable this parameter, set Standard trace gas specification to Mass fraction.

Programmatic Use

Parameter: x_g_std

Amount of trace gas in the moist air by mole fraction at standard conditions. The mole fraction is relative to the combined molar total of water vapor, trace gas, and dry air.

The block ignores this parameter if the Trace gas model parameter in the Moist Air Properties (MA) block is None.

Dependencies

To enable this parameter, set Standard trace gas specification to Mole fraction.

Programmatic Use

Parameter: y_g_std

Relative humidity above which condensation occurs.

Dependencies

To enable this parameter, set Specified flow rate conditions to Standard conditions.

Programmatic Use

Parameter: RH_ws

Select whether the source performs work on the moist air flow:

  • Isentropic — The source performs isentropic work on the moist air to maintain the specified mass flow rate. Use this option to represent an idealized pump or compressor and properly account for the energy input and output, especially in closed-loop systems.

  • None — The source performs no work on the flow, neither adding nor removing power, regardless of the mass flow rate produced by the source. Use this option to set up the desired flow condition upstream of the system, without affecting the enthalpy of the flow.

Programmatic Use

Parameter: power_spec
Values: "foundation.enum.power_spec.isentropic" | "foundation.enum.power_spec.none"

Area normal to flow path at port A.

Programmatic Use

Parameter: area_A

Area normal to flow path at port B.

Programmatic Use

Parameter: area_B

Extended Capabilities

expand all

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

Version History

Introduced in R2023b

expand all