Block Pipe (MA) simulates the dynamics of the flow of moist air in a pipe. The unit takes into account losses due to viscous friction and convective heat exchange with the pipe wall. There is a constant volume of moist air in the pipe. The pressure and temperature vary depending on the compressibility and heat capacity of this volume of moist air. The flow becomes critical when the velocity of the humid air at the outlet reaches the speed of sound.
Lower indexes , and indicate the properties of dry air, water vapor, and impurity gas, respectively;
Lower index indicates the water vapor saturation level;
Lower indexes , , and specify the appropriate port;
Lower index indicates the properties of the internal volume of humid air.
— mass consumption;
— energy consumption;
— heat consumption;
— pressure;
— density;
— universal gas constant;
— the volume of moist air inside the pipe;
— specific heat capacity at constant volume;
— specific heat capacity at constant pressure;
— specific enthalpy;
— specific internal energy;
— mass fraction ( — specific humidity, which is a synonym for the mass fraction of water vapor);
— molar fraction;
— relative humidity;
— humidity coefficient;
— temperature;
— the time.
Conservation of mass and energy
The net consumption of moist air in the volume of the pipe is equal to:
,
,
,
,
where
— condensation consumption;
— loss of energy by condensed water per unit of time;
— energy per unit of time added by sources of moisture and impurity gases;
and — the mass consumption of water and gas, respectively, through the port S. Values , and They are determined by sources of moisture and impurity gases connected to the S port of the pipe.
The equation of conservation of mass of water vapor relates the mass flow rate of water vapor to the dynamics of the humidity level in the internal volume of humid air:
.
Similarly, the equation of conservation of impurity gas mass relates the mass flow rate of impurity gas to the dynamics of the impurity gas level in the internal volume of humid air.:
.
The equation of mass conservation of a mixture relates the mass flow rate of a mixture to the dynamics of pressure, temperature, and mass fractions of the internal volume of moist air.:
.
Finally, the energy conservation equation relates energy consumption to the dynamics of pressure, temperature, and mass fractions of the internal volume of humid air.:
.
The equation of state relates the density of a mixture to pressure and temperature:
.
The universal gas constant of the mixture is:
.
Momentum Balance
The momentum balance for each half of the pipe simulates a pressure drop due to the momentum of the gas flow and viscous friction:
,
,
where
— gas pressure at port A, port B or internal node I, as indicated by the subscript;
— density at port A, port B, or internal node I, as indicated by the subscript;
— the cross-sectional area of the pipe;
and — pressure loss due to viscous friction.
Pressure loss due to viscous friction and they depend on the flow regime. The Reynolds numbers for each half of the pipe are defined as:
,
,
where
— hydraulic pipe diameter;
— dynamic viscosity in the inner node.
If the Reynolds number is less than the parameter value Laminar flow upper Reynolds number limit, then the flow is in laminar mode. If the Reynolds number is greater than the limit value of the parameter Turbulent flow lower Reynolds number limit, then the current is in a turbulent mode.
In the laminar flow regime, the pressure loss due to viscous friction is:
,
,
where
— parameter value Laminar friction constant for Darcy friction factor;
— parameter value Aggregate equivalent length of local resistances.
In the turbulent flow regime, the pressure loss due to viscous friction is:
,
,
where
— the Darcy coefficient on port A or B, as indicated by the subscript.
The Darcy coefficients are calculated from the Haaland correlation:
,
,
where — parameter value Internal surface absolute roughness.
When the Reynolds number is between the upper limit of the Reynolds number for laminar flow and the parameter values of the lower limit of the Reynolds number for turbulent flow, the flow is in a transition state between laminar and turbulent flow modes. Pressure losses due to viscous friction in the transient mode follow a smooth relationship between losses in the laminar flow mode and losses in the turbulent flow mode.
The 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 pulse balance for each half of the pipe between port A and the inner node and between port B and the inner node is considered an adiabatic process. Adiabatic relations:
,
,
where — specific enthalpy at port A, port B, or internal node I, as indicated by the subscript.
Convective heat exchange
The equation of convective heat transfer between the pipe wall and the internal gas volume:
,
where — pipe surface area, .
If no condensation forms on the wall surface, assuming an exponential temperature distribution along the pipe, the convective heat transfer is:
,
where
— inlet temperature, depending on the flow direction;
— average mass flow rate from port A to port B;
— specific heat capacity calculated at an average temperature.
Heat transfer coefficient depends on the Nusselt number:
,
where — the coefficient of thermal conductivity calculated at an average temperature.
The Nusselt number depends on the flow regime. The Nusselt number in the laminar flow mode is constant and is equal to the value of the parameter Nusselt number for laminar flow heat transfer. The Nusselt number in the turbulent flow regime is calculated from the Gnelinsky equation:
,
where — the Prandtl number calculated at an average temperature.
The average Reynolds number is:
,
where — dynamic viscosity, estimated at an average temperature.
When the average Reynolds number is between the values of the parameters of the upper limit of the Reynolds number for laminar flow and the lower limit of the Reynolds number for turbulent flow, the Nusselt number corresponds to a smooth transition between the values of the Nusselt number for laminar and turbulent flows.
Saturation and condensation
The equations in this section take into account condensation, which occurs when the volume of humid air becomes saturated.
When the volume of humid air reaches saturation, condensation may form. The specific humidity at saturation is:
,
where
— relative humidity at saturation (usually 1);
— water vapor saturation pressure, estimated at .
The condensation consumption is equal to:
τ,
where τ — parameter value Condensation time constant.
Condensed water is subtracted from the volume of moist air, as shown in the equations of conservation of mass. The energy associated with condensed water is:
,
where — specific enthalpy of evaporation, estimated at .
The parameters of changes 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 volume of liquid (such as chambers, transducers, and so on) simulate the condensation of water vapor when this volume of liquid becomes completely saturated with water vapor, that is, at 100% relative humidity. However, water vapor can also condense on a cold surface, even if the air volume as a whole has not yet reached saturation. The possibility of modeling this effect in the block Pipe (MA) It is important because many HVAC systems contain pipes and ducts. If these pipes and ducts are poorly insulated, their surface may cool down and condensation will form on the wall surface. Please note that this effect does not replace condensation that occurs when the volume of humid air reaches 100% relative humidity, both effects can occur simultaneously.
To simulate the effect of condensation on the cold surface of a pipe in contact with a volume of humid air, check the box Condensation on wall surface. In this case, the convective heat transfer equation must take into account both visible and latent heat, and the unit has an additional equation that calculates the condensation rate of water vapor on the surface.
If the check box is Condensation on wall surface if established, then the combined convective heat transfer is:
,
where
— mass consumption of dry air and impurity gases at the inlet;
— the enthalpy of the mixture per unit mass of dry air and impurity gases at the wall;
— the 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 enthalpies of the mixture. Since the enthalpy of the mixture depends on both the temperature and the composition of the humid air, the difference in the enthalpy of the mixture takes into account both the change in temperature and the change in moisture content. The unit captures both explicit and hidden thermal effects. The parts of the equation related to the exponent and correlation, which are used in calculating the heat transfer coefficient, remain the same as before, since the model is derived based on the analogy between thermal and mass exchange.
To simplify the derivation, the equation uses the enthalpy of the mixture per unit mass of dry air and impurity gas, 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 vapor. In order for the equation to remain consistent, the enthalpy difference of the mixture is multiplied by the mass flow rate of dry air and impurity gases.
The enthalpy of the mixture per unit mass of dry air and impurity gases at the inlet is:
,
where
— specific enthalpy of dry air and impurity gases at the inlet;
— specific enthalpy of water vapor at the inlet;
— humidity coefficient at the entrance.
The enthalpy of the mixture per unit mass of dry air and impurity gases at the wall is:
,
where
— specific enthalpy of dry air and impurity gases at the wall;
— specific enthalpy of water vapor at the wall;
— the humidity coefficient at the wall, defined as
,
where — moisture saturation coefficient based on the wall temperature.
Function in the previous equation, provides switching between dry and wet heat transfer:
When the wall temperature is higher than the dew point, then therefore, condensation does not occur, and the unit outputs only the temperature difference. .
When the wall temperature is below the dew point, therefore, condensation occurs and displays the difference in temperature and humidity.
The condensation rate of water vapor on the wall surface is equal to:
.
This equation is similar to the combined equation of convective heat transfer, since the amount of water vapor condensing on the wall is the same as convective mass transfer from moist air to the pipe wall. The exponential component of the equation is also the same because of the analogy used between thermal and mass exchange.
The energy associated with the water condensing on the pipe wall is equal to:
,
where — specific enthalpy of evaporation at wall temperature.
A significant part of the convective heat exchange between the pipe wall and the humid air is:
.
This equation has a plus sign because it is negative when cooling humid air. Thus, adding , which is a positive value, eliminates the hidden part of the heat transfer.
The block then uses this value. in the first convective heat transfer equation for calculating heat transfer at port H.
Current at the speed of sound
The pressure in the subsonic current at port A or B is equal to the value of the corresponding variable:
,
.
However, the variable port pressures used in the momentum balance equations, and , do not necessarily match the pressure in the variables and because the pipe outlet can reach the sound barrier in terms of speed. The sound barrier occurs when the outlet pressure is low enough. At this point, the flow rate depends only on the conditions at the entrance. Therefore, when the sound barrier is reached, the outlet pressure ( or , depending on what the output is) cannot decrease further, even if the pressure is downstream, represented by or , continues to decline.
A sound barrier may be present at the outlet of the pipe, but not at the inlet. Therefore, if port A is an intake port, then . If port A is an outlet, then:
Similarly, if port B is an intake port, then . If port B is an outlet, then:
The pressure at the sound barrier in the openings A and B is determined from the balance of pulses, assuming that the exit velocity is equal to the speed of sound:
,
.
Assumptions and limitations
The pipe wall is absolutely rigid.
The stream is fully developed. Friction losses and heat transfer do not include input effects.
The effect of gravity is negligible.
The inertia of the air is negligible.
This block does not simulate supersonic flow.
The equations of wall condensation are based on the analogy between thermal and mass transfer and, therefore, are valid only when the Lewis number close to 1.
Variables
Use the parameter group Initial Targets to set the priority and initial target values for the block parameter variables before modeling. For more information, see Configuring physical blocks using target values.
Output port that contains the value of the condensation flow rate in the pipe. If the parameter Condensation on wall surface 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.
Data types
Float64.
Complex numbers support
No
# F
—
data on pressure, temperature, humidity and amount of impurity gases
`vector'
Details
An output port representing a vector with the following elements: pressure, temperature, humidity level and number of impurity gases inside the component. The block Measurement Selector (MA) is used to decompress the vector signal.
Data types
Float64.
Complex numbers support
No
Parameters
Main
#Pipe length —
pipe length
m | um | mm | cm | km | in | ft | yd | mi | nmi
Details
The length of the pipe along the direction of flow.
Units
m | um | mm | cm | km | in | ft | yd | mi | nmi
Default value
5.0 m
Program usage name
length
Evaluatable
Yes
#Cross-sectional area —
pipe cross-sectional area
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 pipe in the direction perpendicular to the flow direction.
#Hydraulic diameter —
diameter of an equivalent cylindrical tube with the same cross-sectional area
m | um | mm | cm | km | in | ft | yd | mi | nmi
Details
Diameter of an equivalent cylindrical tube with the same cross-sectional area.
Units
m | um | mm | cm | km | in | ft | yd | mi | nmi
Default value
0.1 m
Program usage name
hydraulic_diameter
Evaluatable
Yes
Friction and Heat Transfer
#Aggregate equivalent length of local resistances —
total length of all local resistances present in the pipe
m | um | mm | cm | km | in | ft | yd | mi | nmi
Details
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, determined by the parameters Pipe length.
Units
m | um | mm | cm | km | in | ft | yd | mi | nmi
Default value
0.1 m
Program usage name
length_add
Evaluatable
Yes
#Internal surface absolute roughness —
average depth of all surface defects on the internal surface of the pipe
m | um | mm | cm | km | in | ft | yd | mi | nmi
Details
The average depth of all surface defects on the inner surface of the pipe affecting pressure losses in turbulent flow regime.
Units
m | um | mm | cm | km | in | ft | yd | mi | nmi
Default value
15.e-6 m
Program usage name
roughness
Evaluatable
Yes
#Laminar flow upper Reynolds number limit —
Reynolds number, above which the flow starts to change from laminar to turbulent flow
Details
The Reynolds number above which the flow begins to change from laminar to turbulent. This number is equal to the maximum Reynolds number corresponding to a fully developed laminar flow.
Default value
2000.0
Program usage name
Re_laminar
Evaluatable
Yes
#Turbulent flow lower Reynolds number limit —
Reynolds number, below which the flow starts to change from turbulent to laminar flow
Details
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.
Default value
4000.0
Program usage name
Re_turbulent
Evaluatable
Yes
#Laminar friction constant for Darcy friction factor —
influence of pipe geometry on viscous friction losses
Details
Dimensionless coefficient determining 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.
Default value
64.0
Program usage name
shape_factor
Evaluatable
Yes
#Nusselt number for laminar flow heat transfer —
convective heat transfer to conductive heat transfer ratio
Details
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 is 3.66 for a circular cross section with constant wall temperature.
Default value
3.66
Program usage name
Nu_laminar
Evaluatable
Yes
Moisture and Trace Gas
#Condensation on wall surface —
effect of condensation on the cold surface of the pipe in contact with a volume of moist air
Details
Checking this box allows you to simulate the effect of condensation on the cold surface of a pipe in contact with a volume of moist air.
Default value
false (switched off)
Program usage name
wall_condensation
Evaluatable
No
#Relative humidity at saturation —
Relative humidity above which condensation occurs
Details
Relative humidity above which condensation occurs.
Default value
1.0
Program usage name
RH_saturation
Evaluatable
Yes
#Condensation time constant —
condensation time constant
s | ns | us | ms | min | hr | d
Details
A time scale factor characterising the time period for the return of the supersaturated volume of moist air to the saturation level due to condensation of excess moisture.
Units
s | ns | us | ms | min | hr | d
Default value
0.001 s
Program usage name
condensation_time_constant
Evaluatable
Yes
#Moisture and trace gas source —
source of moisture and impurity gases
None | Constant | Controlled
Details
This parameter controls the usage of the S port and provides the following options for modelling moisture and impurity 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 unit at a constant flow rate. The S port is not used.
Controlled - Moisture and impurity gases are introduced into or removed from the unit at a time-varying flow rate. Port S is available. Connect blocks (or multiple blocks) from the Moist Air: Sources library to this port.
Values
None | Constant | Controlled
Default value
None
Program usage name
moisture_trace_gas_source
Evaluatable
No
#Moisture added or removed —
adds or removes moisture in the form of water vapour or water
Vapor | Liquid
Details
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
To use this parameter, set the parameter Moisture and trace gas source to . Constant.
Values
Vapor | Liquid
Default value
Vapor
Program usage name
moisture_source_phase
Evaluatable
No
#Rate of added moisture —
constant mass flow rate of moisture
kg/s | kg/hr | kg/min | g/hr | g/min | g/s | t/hr | lbm/hr | lbm/min | lbm/s
Details
The 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
To use this parameter, set the Moisture and trace gas source parameters to . Constant.
#Added moisture temperature specification —
method for determining the temperature of added moisture
Atmospheric temperature | Specified temperature
Details
Select the method for determining the added moisture temperature:
Atmospheric temperature - use the ambient temperature.
Specified temperature - specify the value using the parameters Temperature of added moisture.
Dependencies
To use this parameter, set the Moisture and trace gas source parameters to . Constant.
Values
Atmospheric temperature | Specified temperature
Default value
Atmospheric temperature
Program usage name
moisture_temperature_type
Evaluatable
No
#Temperature of added moisture —
added moisture temperature
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR
Details
Enter the desired temperature of the added moisture. This temperature remains constant during the simulation. The unit only uses this value 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
To use this parameter, set the parameters Added moisture temperature specification. Specified temperature.
#Rate of added trace gas —
mass flow rate of added impurity gas
kg/s | kg/hr | kg/min | g/hr | g/min | g/s | t/hr | lbm/hr | lbm/min | lbm/s
Details
Reflects the mass flow rate of impurity gas added to 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
To use this parameter, set the Moisture and trace gas source parameters to . Constant.
#Added trace gas temperature specification —
method for determining the impurity gas temperature
Atmospheric temperature | Specified temperature
Details
Select the method for determining the impurity gas temperature:
Atmospheric temperature - use ambient temperature.
Specified temperature - specify the value using the parameters Temperature of added trace gas.
Dependencies
To use this parameter, set the Moisture and trace gas source parameters to . Constant.
Values
Atmospheric temperature | Specified temperature
Default value
Atmospheric temperature
Program usage name
trace_gas_temperature_type
Evaluatable
No
#Temperature of added trace gas —
impurity gas temperature
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR
Details
Enter the desired temperature of the impurity gas to be added. This temperature remains constant during the simulation. The unit only uses this value 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
To use this parameter, set the parameters Added trace gas temperature specification. Specified temperature.