The Pipe (MA) block simulates the dynamics of moist air flow in a pipe. The block takes into account viscous friction losses and convective heat exchange with the pipe wall. There is a constant volume of moist air in the pipe. Pressure and temperature vary with the compressibility and heat capacity of this volume of moist air. Flow becomes critical when the velocity of the moist air at the outlet reaches the speed of sound.
A Mass Flow Rate Source (MA) or Controlled Mass Flow Rate Source (MA) unit connected to a Pipe (MA) unit cannot set a higher mass flow rate than the possible mass flow rate of the unit.
Equations
The block equations use these symbols:
The lower indices , and indicate the properties of dry air, water vapour and impurity gas respectively.
The lower index indicates the saturation level of water vapour.
The lower indices , , and indicate the corresponding port.
The lower index indicates the internal volume properties of the moist air.
- mass flow rate.
- energy flow rate.
- heat input.
- pressure.
- density.
- universal gas constant.
- volume of moist air inside the tube.
- specific heat capacity at constant volume.
- specific heat capacity at constant pressure.
- specific enthalpy.
- specific internal energy.
- mass fraction ( is specific humidity, which is synonymous with mass fraction of water vapour).
- molar fraction.
- relative humidity.
- humidity coefficient.
- temperature.
- time.
Conservation of mass and energy
The net flow rate of moist air in the tube volume is equal to:
Where:
- condensation flow rate.
- is the energy loss by condensed water per unit time.
- energy per unit time added by sources of moisture and impurity gases.
and are the mass flow rates of water and gas, respectively, through the S port. The values
, and are determined by sources of moisture and impurity gases connected to the S port of the pipe.
The water vapour mass conservation equation relates the mass flow rate of water vapour to the dynamics of humidity level in the internal volume of humid air:
Similarly, the equation of conservation of admixture gas mass relates the mass flow rate of admixture gas to the dynamics of the level of admixture gas in the internal volume of humid air:
The mixture mass conservation equation relates the mass flow rate of the mixture to the dynamics of pressure, temperature, and mass fractions of the internal volume of moist air:
Finally, the energy conservation equation relates the energy flow rate to the dynamics of pressure, temperature, and mass fractions of the internal volume of moist air:
The equation of state relates the density of the mixture to pressure and temperature:
The universal gas constant of the mixture is
momentum balance
The momentum balance for each half of the pipe models the pressure drop due to the momentum of gas flow and viscous friction:
Where:
- gas pressure at port A, port B or internal node I, as indicated by the lower index.
- density at port A, port B or internal node I, as indicated by the lower index.
- the cross-sectional area of the pipe.
and - pressure loss due to viscous friction.
The pressure losses due to viscous friction and depend on the flow regime. The Reynolds numbers for each half of the pipe are defined as:
μ
Where:
- hydraulic diameter of the pipe.
μ - dynamic viscosity in the internal node.
If the Reynolds number is less than the Laminar flow upper Reynolds number limit, the flow is in laminar regime. If the Reynolds number is greater than the Turbulent flow lower Reynolds number limit, the flow is in the turbulent regime.
In the laminar flow regime the pressure loss due to viscous friction is:
μρ
μρ
Where:
- Shape factor for laminar flow viscous friction parameter value.
- parameter value Aggregate equivalent length of local resistances.
In turbulent flow regime the pressure losses for viscous friction are:
ρ
ρ
Where:
- Darcy coefficient at port A or B as indicated by the lower index.
Darcy coefficients are calculated from the Haaland correlation:
When the Reynolds number is between the upper Reynolds number limit for laminar flow and the parameter values of the lower Reynolds number limit for turbulent flow, the flow is in a transition state between laminar and turbulent flow regimes. The pressure losses due to viscous friction in the transition state follow a smooth relationship between the losses in the laminar flow regime and the losses in the turbulent flow regime.
Heat exchange with the pipe wall through the H port is added to the energy of the gas represented by the internal node through the energy conservation equation. Therefore, the momentum balance for each half of the pipe between port A and the internal node and between port B and the internal node is considered an adiabatic process. Adiabatic relations:
where is the specific enthalpy at port A, port B, or internal node I, as indicated by the lower index.
Convective heat transfer
Equation of convective heat transfer between the pipe wall and the internal volume of gas:
Where:
- surface area of the pipe, .
If no condensate is formed on the wall surface, assuming an exponential temperature distribution along the pipe, convective heat transfer is equal to
where:
- inlet temperature depending on the direction of flow.
- is the average mass flow rate from port A to port B.
- specific heat capacity calculated at the average temperature.
The heat transfer coefficient depends on the Nusselt number:
Where:
- is the heat transfer coefficient calculated at the average temperature.
Nusselt number depends on the flow regime. Nusselt number in laminar flow regime is constant and is equal to the value of parameter Nusselt number for laminar flow heat transfer. Nusselt number in turbulent flow regime is calculated from Gnelinski equation:
Where:
- Prandtl number calculated at mean temperature.
The average Reynolds number is
μ
where:
μ - dynamic viscosity estimated at mean temperature.
When the average Reynolds number is between the parameter values of the upper Reynolds number limit for laminar flow and the lower Reynolds number limit for turbulent flow, the Nusselt number corresponds to a smooth transition between the Nusselt number values for laminar and turbulent flows.
Saturation and condensation
The equations in this section account for condensation, which occurs when a volume of moist air becomes saturated.
When the volume of moist air reaches saturation, condensation can form. The specific humidity at saturation is equal to
φ
where:
φ - Relative humidity at saturation (usually 1).
- water vapour saturation pressure, estimated at .
The condensation flow rate is equal to:
τρ
where
τ - is the value of the Condensation time constant parameter.
Condensed water is subtracted from the volume of moist air as shown in the mass conservation equations. The energy associated with condensed water is equal to
where
- specific enthalpy of vaporisation, estimated at .
The parameters of change in the amount of moisture and impurity gases are related to each other as follows:
φ
Condensation effects on the wall surface
Humid air units that contain an internal liquid volume (such as chambers, converters and so on) simulate water vapour condensation when that liquid volume becomes fully saturated with water vapour, i.e. at 100% relative humidity. However, water vapour can also condense on a cold surface even if the volume of air as a whole has not yet reached saturation. The ability to model this effect in the Pipe (MA) block is important because many HVAC systems contain pipes and ducts. If these pipes and ducts are poorly insulated, their surfaces can cool and condensation can form on the wall surface. Note that this effect does not replace condensation that occurs when the volume of moist air reaches 100% relative humidity, both effects can occur simultaneously.
To model the effect of condensation on the cold surface of the pipe in contact with the humid air volume, check the Condensation on wall surface box. In this case, the convective heat transfer equation must account for both visible and latent heat, and the unit has an additional equation that calculates the condensation rate of water vapour on the surface.
If the Condensation on wall surface checkbox is checked, the combined convective heat transfer is equal to
Where:
- is the mass flow rate of dry air and impurity gases at the inlet.
- enthalpy of the mixture per unit mass of dry air and impurity gases at the wall.
- enthalpy of the mixture per unit mass of dry air and impurity gases at the inlet.
This equation is similar to the convective heat transfer equation, but the temperature difference has been replaced by the difference in enthalpy of the mixture. Since the enthalpy of the mixture depends on both the temperature and the composition of the moist air, the enthalpy difference of the mixture accounts for both the change in temperature and the change in moisture content. The unit captures both explicit and implicit thermal effects. The exponent and correlation parts of the equation used in calculating the heat transfer coefficient remain the same as before, since the model is derived from the analogy between heat and mass exchange.
To simplify the derivation, the enthalpy of the mixture per unit mass of dry air and impurity gas is used in the equation, as opposed to the enthalpy of the mixture per unit mass of the mixture, since the amount of dry air and impurity gas does not change during the condensation of water vapour. To keep the equation consistent, the difference in enthalpy of the mixture is multiplied by the mass flow rate of dry air and impurity gas.
The enthalpy of the mixture per unit mass of dry air and impurity gases at the inlet is equal to:
where:
- is the specific enthalpy of dry air and impurity gases at the inlet.
- is the specific enthalpy of water vapour at the inlet.
- inlet humidity coefficient.
The enthalpy of the mixture per unit mass of dry air and impurity gases at the wall is equal to
where:
- is the specific enthalpy of dry air and impurity gases at the wall.
- is the specific enthalpy of water vapour at the wall.
- humidity coefficient at the wall, defined as
where
- is the moisture saturation factor based on wall temperature.
The function in the previous equation provides a switch between dry and wet heat transfer:
When the wall temperature is higher than the dew point, , so condensation does not occur and the block outputs only the temperature difference .
When the wall temperature is lower than the dew point, , therefore condensation occurs and outputs the temperature and humidity difference.
The condensation flow rate of water vapour on the wall surface is equal to
This equation is similar to the combined convective heat transfer equation because the amount of water vapour condensing on the wall is the same as the convective mass transfer from the moist air to the pipe wall. The exponential component of the equation is also the same because of the analogy used between heat and mass transfer.
The energy associated with water condensing on the pipe wall is equal to
where
- is the specific enthalpy of vaporisation at wall temperature.
The essential part of convective heat transfer between the pipe wall and humid air is as follows
This equation has a plus sign because is negative when cooling moist air. Thus, adding , which is a positive value, eliminates the latent part of the heat transfer.
The block then uses this value in the first convective heat transfer equation to calculate the heat transfer at port H.
Flow at the speed of sound
The pressure in subsonic flow at port A or B is equal to the value of the corresponding variable:
However, the port pressure variables used in the momentum balance equations, and , are not necessarily the same as the pressures in variables and , because the pipe outlet can reach a sound velocity barrier. The sound barrier occurs when the outlet pressure is low enough. At this point, the flow rate depends only on inlet conditions. Consequently, when the sound barrier is reached, the outlet pressure ( or , whichever is the outlet) cannot decrease further, even if the downstream pressure, represented by or , continues to decrease.
The sound barrier may occur at the outlet of the pipe, but not at the inlet. Hence, if port A is the inlet port, . If port A is the outlet port, then.
Similarly, if port B is an inlet port, then . If port B is an exhaust port, then
The pressure when the sound barrier is reached at ports A and B is determined from the momentum balance, assuming that the velocity at the outlet is equal to the speed of sound:
Assumptions and limitations
The pipe wall is completely rigid.
The flow is fully developed. Friction and heat transfer losses do not include inlet effects.
The effect of gravity is negligible.
The inertia of the air is negligible.
This block does not model supersonic flow.
The equations for wall condensation are based on the analogy between thermal and mass transport and are therefore valid only when the Lewis number is close to 1.
Ports
Non-directional
A - inlet or outlet port `moist air
Moist air port, corresponds to the inlet or outlet of the pipe. This unit has no internal directionality.
B - inlet or outlet port `humid air
Moist air port, corresponds to the inlet or outlet of the pipe. This unit has no internal directionality.
H - pipe wall temperature heat
Heat port associated with the pipe wall temperature. This temperature may be different from the wet air temperature.
S - addition or removal of moisture and impurity gases `moisture and gas impurity'.
Connect this port to the S port of a unit from the Humid Air: Humidity and Gas Impurity Sources library to add or remove moisture and impurity gases.
Dependencies
This port is used when Moisture and trace gas source is set to Controlled.
Output
W - condensation rate scalar
Output port that contains the value of the condensation flow rate in the pipe. If the Condensation on wall surface parameter is enabled, this port reports the total water vapour condensation flow rate, which includes condensation from the saturated moist air volume as well as condensation on the pipe wall.
F - data on pressure, temperature, humidity and amount of impurity gases vector
Output port representing a vector with the following elements: pressure, temperature, humidity level and amount of impurity gases inside the component. The block Measurement Selector (MA) is used to decompress the vector signal.
Parameters
Main
Pipe length - pipe length `5.0 m (by default)
Pipe length along the flow direction.
Cross-sectional area - internal area of the pipe 0.01 m² (by default).
The cross-sectional area of the pipe in the direction perpendicular to the flow direction.
Hydraulic diameter - diameter of an equivalent cylindrical pipe with the same cross-sectional area `0.1 m (by default)
The diameter of an equivalent cylindrical pipe with the same cross-sectional area.
Friction and heat transfer
Aggregate equivalent length of local resistances - total length of all local resistances present in the pipe `0.1 m (By default)
The total length of all local resistances present in the pipe. Local resistances include bends, fittings, fittings, pipe inlets and outlets. The effect of local resistances is to increase the effective length of the pipe segment. This length is added to the geometric length of the pipe for friction calculations only. The volume of moist air depends only on the geometric length of the pipe, defined by the parameter Pipe length.
Internal surface absolute roughness - average depth of all surface defects on the internal surface of the pipe 15e-6 m (By default).
Average depth of all surface defects on the internal surface of the pipe affecting pressure losses in turbulent flow regime.
Laminar flow upper Reynolds number limit - Reynolds number above which the flow starts to change from laminar to turbulent flow mode 2e3 (by default).
The Reynolds number above which the flow starts to change from laminar to turbulent. This number is equal to the maximum Reynolds number corresponding to fully developed laminar flow.
Turbulent flow lower Reynolds number limit - the Reynolds number below which the flow begins to change from turbulent to laminar flow 4e3 (By default).
The Reynolds number below which the flow begins to change from turbulent to laminar. This number is equal to the minimum Reynolds number corresponding to a fully developed turbulent flow.
Shape factor for laminar flow viscous friction - effect of pipe geometry on viscous friction losses `64 (By default).
Dimensionless coefficient encoding the effect of pipe cross-section geometry on viscous friction losses in laminar flow regime. Typical values: 64 for circular cross section, 57 for square cross section, 62 for rectangular cross section with aspect ratio 2 and 96 for thin annular cross section.
Nusselt number for laminar flow heat transfer - ratio of convective to conductive heat transfer `3.66 (by default).
The ratio of convective to conductive heat transfer in laminar flow regime. Its value depends on the geometry of the pipe cross-section and the thermal boundary conditions of the pipe wall, such as constant temperature or constant heat flux. A typical value of 3.66 is for a circular cross-section with constant wall temperature.
Moisture and impurity gas
Condensation on wall surface - the effect of condensation on the cold surface of the pipe in contact with a volume of moist air. off (by default) | on.
Checking this box allows modelling the effect of condensation on the cold surface of the pipe in contact with the humid air volume.
Relative humidity at saturation - relative humidity above which condensation occurs 1.0 (by default).
Relative humidity above which condensation occurs.
Condensation time constant - condensation time constant 1e-3 c (By default).
A time scaling factor characterising the time period for the return of an oversaturated volume of humid air to saturation level due to condensation of excess moisture.
Moisture and trace gas source - moisture and trace gas source None (By default) | Constant | Controlled
This parameter controls the use of the S port and provides the following options for modelling moisture and trace gas levels within the unit:
None - no moisture or impurity gas is introduced into or extracted from the block. The S port is hidden. This value is used by default.
Constant - moisture and impurity gases are introduced into or extracted from the block at a constant flow rate. The S port is not used.
`Controlled' - Moisture and impurity gases are introduced into or removed from the block at a time-varying flow rate. The S port is available. Connect blocks (or multiple blocks) from the Moisture Air: Moisture and Gas Impurity Sources for adding or removing moisture and impurity gases library to this port.
Moisture added or removed - adds or removes moisture in the form of water vapour or water Vapor (By default) | Liquid.
Select whether the unit adds or removes moisture as water vapour or water:
Vapor - the enthalpy of moisture added or removed corresponds to the enthalpy of water vapour, which is greater than the enthalpy of water.
`Liquid' - the enthalpy of moisture added or removed corresponds to the enthalpy of water, which is less than the enthalpy of water vapour.
Dependencies
Used when Moisture and trace gas source is set to `Constant'.
Rate of added moisture - constant mass flow rate of moisture 0.0 (By default).
Mass flow rate of water vapour through the unit. A positive value increases the amount of moisture in the pipe volume. A negative value extracts moisture from this volume.
Dependencies
Used when Moisture and trace gas source is set to `Constant'.
Added moisture temperature specification - method for determining the added moisture temperature Atmospheric temperature (by default) | Specified temperature.
Select the moisture temperature specification method:
Atmospheric temperature - use the ambient temperature.
Specified temperature - specify the value using the Temperature of added moisture parameter.
Dependencies
Used when Moisture and trace gas source is set to `Constant'.
Temperature of added moisture - moisture temperature `293.15 K (by default).
Enter the desired temperature of added moisture. This temperature remains constant during the simulation. The unit uses this value only to estimate the specific enthalpy of added moisture. The specific enthalpy of moisture removed depends on the temperature of the connected volume of moist air.
Dependencies
Used when Added moisture temperature specification is set to Specified temperature.
Rate of added trace gas - mass flow rate of added trace gas 0.0 (By default).
Reflects the mass flow rate of trace gas added or removed from the pipe. A positive value adds impurity gas to the pipe volume. A negative value removes impurity gas from the volume.
Dependencies
Used when Moisture and trace gas source is set to `Constant'.
Added trace gas temperature specification - method for determining the trace gas temperature Atmospheric temperature (by default) | Specified temperature.
Select the method for determining the trace gas temperature:
Atmospheric temperature - use ambient temperature.
Specified temperature - specify the value using the parameter Temperature of added trace gas.
Dependencies
Used if the Moisture and trace gas source parameter is set to Constant.
Temperature of added trace gas - temperature of added trace gas `293.15 K (by default).
Enter the desired temperature of the added trace gas. This temperature remains constant during the simulation. The block uses this value only to estimate the specific enthalpy of the added impurity gas. The specific enthalpy of the removed impurity gas depends on the temperature of the connected wet air volume.
Dependencies
Used when Added trace gas temperature specification is set to Specified temperature.
Initial targets
Initial pressure of moist air volume - initial value of moist air pressure `0.101325 MPa (by default)
Initial value of moist air pressure.
Initial value of temperature of moist air volume - initial value of moist air temperature `293.15 K (by default).
Initial value of temperature of moist air volume.
Initial relative humidity of moist air volume - initial value of relative humidity of moist air volume 0.0 (by default)
Initial value of relative humidity of moist air volume.
Initial specific humidity of moist air volume - initial value of specified humidity of moist air volume 0.0 (By default)
Initial value of specified humidity of moist air volume.
Initial water vapour mole fraction of moist air volume - initial value of water vapour mole fraction of moist air volume 0.0 (By default).
Initial value of water vapour fraction of moist air volume.
Initial humidity ratio of moist air volume - initial value of humidity ratio of moist air volume `0.0 (by default).
Initial value of humidity ratio of moist air volume.
Initial trace gas mass fraction of moist air volume - initial value of impurity gas mass fraction `0.0 (by default).
Initial value of impurity gas mass fraction of moist air volume.
Initial trace gas mole fraction of moist air volume - initial value of impurity gas mole fraction `0.0 (by default).
Initial value of impurity gas mass fraction of moist air volume.
Initial value of density of moist air volume - initial value of density of moist air volume `1.2 (By default).