Main Content

Local Resistance (TL)

Pipe resistance in a thermal liquid network

Since R2022a

Libraries:
Simscape / Fluids / Thermal Liquid / Pipes & Fittings

Description

The Local Resistance (TL) block represents pressure loss due to user-defined pipe resistance in a thermal liquid network. You can specify different loss coefficients for forward and reversed flows through the pipe segment. For pipe bends, you can also choose to use the Thermal Liquid library blocks Pipe Bend (TL) and Elbow (TL) or, for area changes, the Sudden Area Change (TL) block.

The loss factor is parameterized by either a constant relationship based on the pipe pressure or by user-supplied tabular data for loss coefficients based on the Reynolds number.

Constant Loss Factor

Segments with loss factors that remain constant over a range of flow velocities are calculated as:

kloss=kloss,BA+(kloss,ABkloss,BA)2[tanh(3ΔpΔpcrit)+1],

where:

  • kloss,AB and kloss,BA are the Forward flow loss coefficient (from A to B) and Reverse flow loss coefficient (from B to A) parameters, respectively.

  • Δp is the pressure difference pApB.

The critical pressure difference, Δpcrit, is the pressure differential associated with the Critical Reynolds number, Recrit, which is the flow regime transition point between laminar and turbulent flow:

Δpcrit=ρ¯2kloss,crit(νRecritDh)2,

where:

  • kloss,crit is the loss factor associated with the critical pressure, and is based on an average of the forward and reverse loss coefficients.

  • ν is the fluid kinematic viscosity.

  • ρ¯ is the average fluid density.

  • Dh is the segment hydraulic diameter, which is the equivalent diameter of a pipe with a non-circular cross-section: Dh=4πAflow., where Aflow is the Flow area.

Tabulated Loss Coefficient

The loss coefficient can alternatively be interpolated from user-provided Reynolds number and loss coefficient data. The vector of Reynolds numbers can have both positive and negative values, indicating forward and reverse flow, respectively: kloss=TLU(Re).

Mass Flow Rate

Mass is conserved through the valve:

m˙A+m˙B=0.

The mass flow rate through the valve is calculated as:

m˙=Aflow2ρ¯klossΔp[Δp2+Δpcrit2]1/4,

where kloss is the flow loss coefficient, which is selected between the Forward flow loss coefficient (from A to B) and Reverse flow loss coefficient (from B to A) based on the block flow direction.

Energy Balance

The block balances energy such that

ΦA+ΦB=0,

where:

  • ϕA is the energy flow rate at port A.

  • ϕB is the energy flow rate at port B.

Ports

Conserving

expand all

Thermal liquid conserving port associated with the entry or exit port to the pipe segment. Flow is positive from port A to port B.

Thermal liquid conserving port associated with the entry or exit port to the pipe segment. Flow is positive from port A to port B.

Parameters

expand all

Method of calculating the pipe segment loss factor. The loss factor is parameterized by either a linear relationship between the segment pressure drop and constant loss factor or by interpolation of user-provided loss factor and Reynolds number data.

Loss coefficient associated with pressure loss for flows from port A to port B.

Dependencies

To enable this parameter, set Local loss parameterization to Constant.

Loss coefficient associated with pressure loss for flows from port B to port A.

Dependencies

To enable this parameter, set Local loss parameterization to Constant.

Vector of Reynolds numbers for the tabular parameterization of the loss coefficient. The vector elements must correspond one-to-one with the elements in the Loss coefficient vector parameter. The elements are listed in ascending order.

Dependencies

To enable this parameter, set Local loss parameterization to Tabulated data - loss coefficient vs. Reynolds number.

Vector of loss coefficients for the tabular parameterization of the loss coefficient. The vector elements must correspond one-to-one with the elements in the Reynolds number vector parameter. The elements must be greater than 0.

Dependencies

To enable this parameter, set Local loss parameterization to Tabulated data - loss coefficient vs. Reynolds number.

Cross-sectional area of the pipe segment.

Upper Reynolds number limit for laminar flow through the valve.

Extended Capabilities

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

Version History

Introduced in R2022a