Engee documentation

Local Resistance (MA)

Resistance in the pipe in the humid air network.

blockType: EngeeFluids.MoistAir.Fittings.LocalResistance

Path in the library:

/Physical Modeling/Fluids/Moist Air/Pipes & Fittings/Local Resistance (MA)

Description

Block Local Resistance (MA) simulates pressure losses related to the resistance of a pipe, which is set by the user, in a humid air network. In the block, you can set different loss coefficients for forward and reverse flows through the pipe section.

The loss coefficient can be set to a constant value determined by the pressure in the pipe, or it can be found from the user table of loss coefficients and the corresponding Reynolds numbers.

Constant loss ratio

If for the parameter Local loss parameterization the value is set Constant, then the resistance coefficients of the sections can be considered constant in a given speed range. The loss coefficient is calculated as follows:

where

  • and — parameter values Forward flow loss coefficient (from A to B) and Reverse flow loss coefficient (from B to A) accordingly;

  • — pressure drop.

Critical pressure drop — this is the pressure difference determined by the critical Reynolds number , which is a transition point between laminar and turbulent flow modes:

where

  • — the loss coefficient determined by the critical pressure and based on the average value of the loss coefficients in the forward and reverse directions;

  • — kinematic viscosity of the liquid;

  • — the average density of the liquid;

  • — the hydraulic diameter of the section, which is the equivalent diameter of a pipe with a non-circular section: , where — parameter value Flow area.

Tabular parameterization method

If for the parameter Local loss parameterization the value is set Tabulated data - loss coefficient vs. Reynolds number The loss coefficient can be determined by interpolating the Reynolds number and loss coefficient data. The vector of Reynolds numbers can have both positive and negative values, which indicates a forward and reverse flow, respectively.:

Conservation of mass

The law of conservation of mass is fulfilled for the pipe section:







where

  • and — the mass flow rate of the mixture in ports A and B, respectively;

  • and — the mass flow rate of water vapor in ports A and B, respectively;

  • and — the mass flow rate of impurity gases in ports A and B, respectively;

  • and — the mass flow rate of water droplets in ports A and B, respectively.

The mass flow rate through the pipe section is

where — the coefficient of flow loss.

Energy conservation

The law of conservation of energy in the block:

where

  • — energy flow in port A;

  • — energy flow in port B.

Ports

Conserving

# B — humid air port
humid air

Details

A non-directional port connected to the inlet or outlet of humid air from a pipe section. When the flow direction is positive, moist air flows from port A to port B.

Program usage name

port_b

# A — humid air port
humid air

Details

A non-directional port connected to the inlet or outlet of humid air from a pipe section. When the flow direction is positive, moist air flows from port A to port B.

Program usage name

port_a

Parameters

Main

# Flow area — the cross-sectional area of the site
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 section.

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

flow_area

Evaluatable

Yes

# Forward flow loss coefficient (from A to B) — loss factor for flow from A to B

Details

The loss coefficient related to pressure loss for flows from port A to port B.

Dependencies

To use this parameter, set for the parameter Local loss parameterization meaning Constant.

Default value

1.0

Program usage name

loss_coefficient_a_b

Evaluatable

Yes

# Local loss parameterization — the method of calculating the loss coefficient
Constant | Tabulated data - loss coefficient vs. Reynolds number

Details

A method for calculating the loss coefficient in a pipe section. The loss coefficient can be set to a constant value determined by the pressure in the pipe, or it can be determined from a custom table of loss coefficients and their corresponding Reynolds numbers.

Values

Constant | Tabulated data - loss coefficient vs. Reynolds number

Default value

Constant

Program usage name

resistance_loss_model

Evaluatable

No

# Loss coefficient vector — vector of loss coefficients

Details

Vector of loss coefficients for tabular parameterization of the loss coefficient. The elements of the vector must correspond exactly to the elements of the parameter. Reynolds number vector. The elements of the vector must be larger 0.

Dependencies

To use this parameter, set for the parameter Local loss parameterization meaning Tabulated data - loss coefficient vs. Reynolds number.

Default value

[0.65, 0.75, 0.9, 1.15, 1.35, 1.65, 2.3, 3.1, 4.0, 2.7, 1.8, 1.46, 1.3, 0.9, 0.65, 0.42, 0.3, 0.2]

Program usage name

loss_coefficient_vector

Evaluatable

Yes

# Reverse flow loss coefficient (from B to A) — loss factor for flow from B to A

Details

The loss coefficient related to pressure loss for flows from port B to port A.

Dependencies

To use this parameter, set for the parameter Local loss parameterization meaning Constant.

Default value

1.0

Program usage name

loss_coefficient_b_a

Evaluatable

Yes

# Reynolds number vector — a vector of Reynolds number values

Details

A vector of Reynolds numbers for tabular parameterization of the loss coefficient. The elements of the vector must correspond exactly to the elements of the parameter. Loss coefficient vector. The elements of the vector must be set in ascending order.

Dependencies

To use this parameter, set for the parameter Local loss parameterization meaning Tabulated data - loss coefficient vs. Reynolds number.

Default value

[-500.0, -200.0, -100.0, -50.0, -40.0, -30.0, -20.0, -10.0, 10.0, 20.0, 30.0, 40.0, 50.0, 100.0, 200.0, 500.0, 1000.0, 2000.0]

Program usage name

Re_vector

Evaluatable

Yes

# Laminar flow pressure ratio — the pressure ratio at which the flow transitions between laminar and turbulent modes

Details

The ratio of outlet pressure to inlet pressure at which the flow transitions between laminar and turbulent flow modes.

Default value

0.999

Program usage name

B_laminar

Evaluatable

Yes