Main Content

Pipe (TL)

R2026b

Pipe that transports fluid in thermal liquid networks

  • Pipe (TL) block

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

Description

The Pipe (TL) block represents thermal liquid flow through a pipe. The block finds the temperature across the pipe from the differential between ports, pipe elevation, and any additional heat transfer at port H.

The pipe can have a constant or varying elevation between ports A and B. For a constant elevation differential, use the Elevation gain from port A to port B parameter. You can specify a variable elevation by setting Elevation gain specification to Variable. This exposes physical signal port EL.

You can choose to include the effects of fluid dynamic compressibility, inertia, and wall flexibility. When the block includes these phenomena, it calculates the flow properties for each number of pipe segments that you specify.

Pipe Geometry

Use the Cross-sectional geometry parameter to specify the shape of the pipe.

Circular

The nominal hydraulic diameter, DN, and the pipe diameter, dcircle, are both equal to the is the value of the Pipe diameter parameter. The pipe cross-sectional area is SN=π4dcircle2.

Annular

The nominal hydraulic diameter is the difference between the Pipe outer diameter and Pipe inner diameter parameters DN = douter – dinner. The pipe cross-sectional area is SN=π4(douter2−dinner2).

Rectangular

The nominal hydraulic diameter is

DN=2hwh+w,

where:

  • h is the is the value of the Pipe height parameter.

  • w is the is the value of the Pipe width parameter.

The pipe cross-sectional area is SN=wh.

Elliptical

The nominal hydraulic diameter is

DN=2amajbmin(64-16(amaj-bminamaj+bmin)2)(amaj+bmin)(64-3(amaj-bminamaj+bmin)4),

where:

  • amaj is the is the value of the Pipe major axis parameter.

  • bmin is the is the value of the Pipe minor axis parameter.

The pipe cross-sectional area is SN=π4amajbmin.

Isosceles Triangular

The nominal hydraulic diameter is

DN=lsidesin(θ)1+sin(θ2),

where:

  • lside is the is the value of the Pipe side length parameter.

  • θ is the is the value of the Pipe vertex angle parameter.

The pipe cross-sectional area is SN=lside22sin(θ).

Custom

When the Cross-sectional geometry parameter is Custom, you can specify the pipe cross-sectional area with the Cross-sectional area parameter. The nominal hydraulic diameter is the value of the Hydraulic diameter parameter.

Pipe Flexibility

You can model flexible walls for all cross-sectional geometries. When you set Pipe wall specification to Flexible, the block assumes uniform expansion along all directions and preserves the defined cross-sectional shape. This setting may not result in physical results for noncircular cross-sectional areas undergoing high pressure relative to atmospheric pressure. When you model flexible walls, you can use the Volumetric expansion specification parameter to specify the volumetric expansion of the pipe cross-sectional area.

When the Volumetric expansion specification parameter is Cross-sectional area vs. pressure, the change in volume is

V˙=L(A−Sτ),

where:

  • A=SN+Kps(p−patm).

  • L is the Pipe length parameter.

  • SN is the nominal pipe cross-sectional area defined for each shape.

  • S is the current pipe cross-sectional area.

  • p is the internal pipe pressure.

  • patm is either the atmospheric pressure or the value of the Environment pressure parameter, depending on the value of the Environment pressure specification parameter.

  • Kps is the Static gauge pressure to cross-sectional area gain parameter.

    To calculate Kps assuming uniform elastic deformation of a thin-walled, open-ended cylindrical pipe, use

    Kps=ΔDΔp=πDN34tE,

    where t is the pipe wall thickness and E is Young's modulus.

  • τ is the Volumetric expansion time constant.

When the Volumetric expansion specification parameter is Cross-sectional area vs. pressure - Tabulated, the block uses the same equation for V˙ as the Cross-sectional area vs. pressure setting. The block calculates A with the table lookup function

A=SN+tablelookup(pps,Aps,(p−patm),interpolation=linear,extrapolation=linear),

where pps is the Static gauge pressure vector parameter and Aps is the Cross sectional area gain vector parameter.

When the Volumetric expansion specification parameter is Hydraulic diameter vs. pressure, the change in volume is

V˙=π2DL(Dstatic−Dτ),

where:

  • Dstatic=DN+Kpd(p−patm).

  • DN is the nominal hydraulic diameter defined for each shape.

  • D is the current pipe hydraulic diameter.

  • Kpd is the Static gauge pressure to hydraulic diameter gain parameter. To calculate Kps assuming uniform elastic deformation of a thin-walled, open-ended cylindrical pipe, use

    Kpd=ΔDΔp=DN22tE.

When the Volumetric expansion specification parameter is Based on material properties, the block uses the same equation for V˙ as the Hydraulic diameter vs. pressure setting but calculates Dstatic depending on the value of the Material behavior parameter

Dstatic=DN(1+ϵhoop).

This parameterization assumes a cylindrical thin-walled pressure vessel where σradial=0.

When the Material behavior parameter is Linear elastic,

ϵhoop=1E[σhoop−vσlongitudinal],

where:

  • E is the value of the Young's modulus parameter.

  • v is the value of the Poisson's ratio parameter.

  • σhoop=pD2t, where t is the value of the Pipe wall thickness parameter.

  • σlongitudinal=pD4t.

When the Material behavior parameter is Multilinear elastic, the block calculates the von Mises stress, σv, which simplifies to σv=34pD2t, to determine the equivalent strain. The hoop strain is

ϵhoop=ϵhoopelastic+ϵhoopplastic

ϵhoopelastic=1E[σhoop−vσlongitudinal]ϵhoopi,jplastic=32(1Es−1E)Si,j

where:

  • The block calculates the Young's Modulus, E, from the first elements of the Stress vector and Strain vector parameters.

  • ES=σtotalϵtotal, where σtotal and εtotal are the equivalent total stress and the equivalent total strain, respectively. The block calculates the equivalent total strain from the von Mises stress and the stress-strain curve.

  • Si,j=σi,j−[σhoop+σlongitudinal+σradial3]δi,j, where σi,j are the elements of the Cauchy stress tensor.

If you do not model flexible walls, SN = S and DN = D.

Pipe Wall Thermal Expansion

If you select Enable pipe thermal expansion, the block models the thermal expansion of the pipe wall using these assumptions:

  • The pipe material is isotropic.

  • The Biot number of the pipe is less than 0.1 and the pipe can be modeled with lumped thermal capacitance.

  • The temperature change and pipe deformations are small enough that a first order approximation for area expansion is accurate.

When the Material behavior parameter is Cross-sectional area vs. pressure, Cross-sectional area vs. pressure - Tabulated, or Hydraulic diameter vs. pressure and you select Enable pipe thermal expansion, the block adds a thermal expansion term when calculating area or diameter.

When Material behavior is Cross-sectional area vs. pressure,

A=SN+Kps(p−patm)+SN2αΔT,

where:

  • ɑ is the value of the Coefficient of thermal expansion parameter.

  • ΔT=TI−Tref.

  • TI is the fluid temperature at the internal node of the block.

  • Tref is the value of the Thermal expansion reference temperature parameter.

When Material behavior is Cross-sectional area vs. pressure - Tabulated,

A=SN+tablelookup(pps,Aps,(p−patm),interpolation=linear,extrapolation=linear)+SN2αΔT.

When Material behavior is Hydraulic diameter vs. pressure,

Dstatic=DN+Kpd(p−patm)+DNαΔT.

When the Material behavior parameter is Multilinear elastic and you select Enable pipe thermal expansion, the block calculates Dstatic as

Dstatic=DN(1+ϵhoop+ϵthermal),

where ϵthermal=αΔT.

Heat Transfer at the Pipe Wall

Heat transfer between the fluid and pipe wall occurs through convection, QConv and conduction, QCond, where the net heat flow rate, QH is QH=QConv+QCond.

Heat transfer due to conduction is:

QCond=kISHD(TH−TI),

where:

  • D is the nominal hydraulic diameter, DN, if the pipe walls are rigid, and is the pipe steady-state diameter, DS, if the pipe walls are flexible.

  • kI is the thermal conductivity of the thermal liquid, defined internally for each pipe segment.

  • SH is the surface area of the pipe wall.

  • TH is the pipe wall temperature.

  • TI is the fluid temperature at the internal node of the block.

Heat transfer due to convection is:

QConv=cp,Avg|m˙Avg|(TH−TIn)[1−exp(−hSHcp,Avg|m˙Avg|)],

where:

  • cp, Avg is the average fluid specific heat which the block calculates using a lookup table.

  • m˙Avg is the average mass flow rate through the pipe.

  • TIn is the fluid inlet port temperature.

  • h is the pipe heat transfer coefficient.

The heat transfer coefficient h is:

h=NukAvgD,

except when parameterizing by Nominal temperature differential vs. nominal mass flow rate, where kAvg is the average thermal conductivity of the thermal liquid over the entire pipe and Nu is the average Nusselt number in the pipe.

Nusselt Number Parameterizations by Correlations

The block calculates the Nusselt number depending on the flow and the setting of Heat transfer parameterization. When Heat transfer parameterization is

  • Gnielinski correlation

  • Nominal temperature differential vs. nominal mass flow rate

  • Dittus-Boelter correlation - Nusselt = a * Re^b * Pr^c

and the flow is laminar, the block uses Nusselt number data and lookup tables to determine the Nusselt number. For the Nusselt number data that the block uses, see Algorithms. When the flow is turbulent, the block calculates the Nusselt number by using equations that depends on the correlation.

When Heat transfer parameterization is Gnielinski correlation and the flow is turbulent, the average Nusselt number is

Nu=f8(Re−1000)Pr1+12.7( f8)1/2(Pr2/3−1),

where:

  • f is the average Darcy friction factor, according to the Haaland correlation,

    f={−1.8log10[6.9Re+(ϵR3.7D)1.11]}-2,

    where εR is the pipe value of the Internal surface absolute roughness parameter.

  • Re is the Reynolds number.

  • Pr is the Prandtl number.

When Heat transfer parameterization is Dittus-Boelter correlation - Nusselt = a * Re^b * Pr^c and the flow is turbulent, the average Nusselt number is

Nu=aRebPrc,

where:

  • a is the value of the Coefficient a parameter.

  • b is the value of the Exponent b parameter.

  • c is the value of the Exponent c parameter.

When Heat transfer parameterization is Nominal temperature difference vs. nominal mass flow rate and the flow is turbulent, the heat transfer coefficient is

h=hNDN1.8m˙N0.8m˙Avg0.8D1.8,

where:

  • m˙N is the value of the Nominal mass flow rate parameter.

  • m˙Avg is the average mass flow rate,

    m˙Avg=m˙A−m˙B2.

  • hN is the nominal heat transfer coefficient,

    hN=m˙Ncp,NSH,Nln(TH,N−TIn, NTH,N−TOut,N),

    where:

    • SH,N is the nominal wall surface area.

    • TH,N is the value of the Nominal wall temperature parameter.

    • TIn,N is the value of the Nominal inflow temperature parameter.

    • TOut,N is the value of the Nominal outflow temperature parameter.

This relationship assumes that the Nusselt number is proportional to the Reynolds number:

hDk∝(m˙DSμ)0.8.

If the pipe walls are rigid, the expression for the heat transfer coefficient is

h=hNm˙N0.8m˙Avg0.8.

When the flow is turbulent, Cross-sectional geometry is Annular, and Heat transfer walls is Inner wall or Outer wall, you can use the Nusselt number correction factor parameter to specify a Nusselt number correction term. When you set Nusselt number correction factor to

  • None, the correction factor is 1.

  • Petukhov and Roizen factor, the correction factor is Finner=0.86(DinnerDouter)-0.16. [8]

  • Gnielinski, the correction factor is Finner=0.75(PrPrw)0.11(DinnerDouter)-0.17, where Prw is the Prandtl number based on the wall temperature. [9]

Nusselt Number Parameterization By Tabulated Data

When Heat transfer parameterizationis Tabulated data - Colburn factor vs. Reynolds number, the average Nusselt number is

Nu=JM(Re)RePr1/3,

where JM is the Colburn-Chilton factor.

When Heat transfer parameterization is Tabulated data - Nusselt number vs. Reynolds number & Prandtl number, the block interpolates the Nusselt number from the three-dimensional array of average Nusselt numbers as a function of both the average Reynolds number and average Prandtl number,

Nu=Nu(Re,Pr).

Pipe Effects

The block lets you include dynamic compressibility and fluid inertia effects. Turning on each of these effects can improve model fidelity at the cost of increased equation complexity and potentially increased simulation cost:

  • When you disable dynamic compressibility, the liquid is assumed to spend negligible time in the pipe volume. Therefore, there is no accumulation of mass in the pipe, and mass inflow equals mass outflow. This is the simplest option. It is appropriate when the liquid mass in the pipe is a negligible fraction of the total liquid mass in the system.

  • When you enable dynamic compressibility, an imbalance of mass inflow and mass outflow can cause liquid to accumulate or diminish in the pipe. As a result, pressure in the pipe volume can rise and fall dynamically, which provides some compliance to the system and modulates rapid pressure changes. This is the default option.

  • If dynamic compressibility is enabled, you can also turn on fluid inertia. This effect results in additional flow resistance, besides the resistance due to friction. This additional resistance is proportional to the rate of change of mass flow rate. Accounting for fluid inertia slows down rapid changes in flow rate but can also cause the flow rate to overshoot and oscillate. This option is appropriate in a very long pipe. Turn on fluid inertia and connect multiple pipe segments in series to model the propagation of pressure waves along the pipe, such as in the water hammer phenomenon.

Pressure Loss Due to Friction

Haaland Correlation

The analytical Haaland correlation models losses due to wall friction either by aggregate equivalent length, which accounts for resistances due to nonuniformities as an added straight-pipe length that results in equivalent losses, or by local loss coefficient, which directly applies a loss coefficient for pipe nonuniformities.

When the Local resistances specification parameter is set to Aggregate equivalent length and the flow in the pipe is lower than the Laminar flow upper Reynolds number limit, the pressure loss over all pipe segments is:

Δpf,A=υλ2D2SL+Ladd2m˙A,

Δpf,B=υλ2D2SL+Ladd2m˙B,

where:

  • ν is the fluid kinematic viscosity.

  • λ is the value of the Laminar friction constant for Darcy friction factor parameter, which you can define when the Cross-sectional geometry parameter is Custom and is otherwise equal to 64.

  • D is the pipe hydraulic diameter.

  • Ladd is the value of the Aggregate equivalent length of local resistances parameter.

  • m˙A is the mass flow rate at port A.

  • m˙B is the mass flow rate at port B.

When the Reynolds number is greater than the Turbulent flow lower Reynolds number limit, the pressure loss in the pipe is:

Δpf,A=f2ρIDS2L+Ladd2m˙A|m˙A|,

Δpf,B=f2ρIDS2L+Ladd2m˙B|m˙B|,

where:

  • f is the Darcy friction factor. This is approximated by the empirical Haaland equation and is based on the Surface roughness specification, ε, and pipe hydraulic diameter:

    f={−1.8log10[6.9Re+(ε3.7Dh)1.11]}−2,

    Pipe roughness for brass, lead, copper, plastic, steel, wrought iron, and galvanized steel or iron are provided as ASHRAE standard values. You can also supply your own Internal surface absolute roughness with the Custom setting.

  • ρI is the internal fluid density.

When the Local resistances specification parameter is set to Local loss coefficient and the flow in the pipe is lower than the Laminar flow upper Reynolds number limit, the pressure loss over all pipe segments is:

Δpf,A=υλ2D2SL2m˙A.

Δpf,B=υλ2D2SL2m˙B.

When the Reynolds number is greater than the Turbulent flow lower Reynolds number limit, the pressure loss in the pipe is:

Δpf,A=(fL2D+Closs,total)12ρIS2m˙A|m˙A|,

Δpf,B=(fL2D+Closs,total)12ρIS2m˙B|m˙B|,

where Closs,total is the loss coefficient, which can be defined in the Total local loss coefficient parameter as either a single coefficient or the sum of all loss coefficients along the pipe.

Nominal Pressure Drop vs. Nominal Mass Flow Rate

The Nominal Pressure Drop vs. Nominal Mass Flow Rate parameterization characterizes losses with a loss coefficient for rigid or flexible walls. When the fluid is incompressible, the pressure loss over the entire pipe due to wall friction is:

Δpf,A=Kpm˙Am˙A2+m˙th2,

where Kp is:

Kp=ΔpNm˙N2,

where:

  • ΔpN is the Nominal pressure drop, which can be defined either as a scalar or a vector.

  • m˙N is the Nominal mass flow rate, which can be defined either as a scalar or a vector.

When you supply the Nominal pressure drop and Nominal mass flow rate parameters as vectors, the scalar value Kp is determined from a least-squares fit of the vector elements.

Tabulated Data – Darcy Friction Factor vs. Reynolds Number

Pressure losses due to viscous friction can also be determined from user-provided tabulated data of the Darcy friction factor vector and the Reynolds number vector for turbulent Darcy friction factor parameters. Linear interpolation is employed between data points.

Momentum Balance

The pressure differential over the pipe is due to the pressure at the pipe ports, friction at the pipe walls, and hydrostatic changes due to any change in elevation:

pA−pB=Δpf+ρIgΔz,

where:

  • pA is the pressure at a port A.

  • pB is the pressure at a port B.

  • Δpf is the pressure differential due to viscous friction, Δpf,A+Δpf,B.

  • g is the value of the Gravitational acceleration parameter or the signal at port G.

  • Δz the elevation differential between port A and port B.

  • ρI is the internal fluid density, which is measured at each pipe segment. If fluid dynamic compressibility is not modeled, this is:

    pI=pA+pB2.

When fluid inertia is not modeled, the momentum balance between port A and internal node I is:

pA−pI=Δpf,A+ρIgΔz2.

When fluid inertia is not modeled, the momentum balance between port B and internal node I is:

pB−pI=Δpf,B−ρIgΔz2.

When fluid inertia is modeled, the momentum balance between port A and internal node I is:

pA−pI=Δpf,A+ρIgΔz2+m¨ASL2,

where:

  • m¨A is the fluid inertia at port A.

  • L is the value of the Pipe length parameter.

  • S is the value of the Nominal cross-sectional area parameter.

When fluid inertia is modeled, the momentum balance between port B and internal node I is:

pB−pI=Δpf,B−ρIgΔz2+m¨BSL2,

where

m¨B is the fluid inertia at port B.

Pipe Discretization

You can divide the pipe into multiple segments. If a pipe has more than one segment, the mass flow, energy flow, and momentum balance equations are calculated for each segment. Having multiple pipe segments can allow you to track changes to variables such as fluid density when fluid dynamic compressibility is modeled.

If you would like to capture specific phenomena in your application, such as water hammer, choose a number of segments that provides sufficient resolution of the transient. The following formula, from the Nyquist sampling theorem, provides a rule of thumb for pipe discretization into a minimum of N segments:

N=2Lfc,

where:

  • L is the Pipe length.

  • f is the transient frequency.

  • c is the speed of sound.

For some applications, you may need to connect Pipe (TL) blocks in series. For example, you may require multiple pipe segments to define a thermal boundary condition along the length of a pipe. In this case, model the pipe segments by using a Pipe (TL) block for each segment and use the thermal ports to set the thermal boundary condition.

Mass Balance

For a rigid pipe with an incompressible fluid, the pipe mass conversation equation is:

m˙A+m˙B=0,

where:

  • m˙A is the mass flow rate at port A.

  • m˙B is the mass flow rate at port B.

For a flexible pipe with an incompressible fluid, the pipe mass conservation equation is:

m˙A+m˙B=ρIV˙,

where:

  • ρI is the thermal liquid density at internal node I. Each pipe segment has an internal node.

  • V˙ is the rate of deformation of the pipe volume.

For a flexible pipe with a compressible fluid, the mass within the pipe can change with pressure and temperature. The bulk modulus and thermal expansion coefficient of the thermal liquid account for this dependence and the pipe mass conservation equation is:

m˙A+m˙B=ρIV˙+ρIV(p˙IβI+αIT˙I),

where:

  • pI is the thermal liquid pressure at the internal node I.

  • T˙I is the rate of change of the thermal liquid temperature at the internal node I.

  • βI is the thermal liquid bulk modulus.

  • αI is the liquid thermal expansion coefficient.

Energy Balance

The energy accumulation rate in the pipe at internal node I is defined as:

E.=ϕA+ϕB+QH−m˙AvggΔz,

where:

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

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

  • QH is the heat transfer through the pipe wall.

If the fluid is incompressible, the expression for energy accumulation rate is

E˙=ρ0cpIVdTIdt,

where:

  • cpI is the fluid specific heat at the internal node of the block.

  • V is the pipe volume.

  • ρ0 is the constant fluid density. The block calculates this value from the Nominal liquid temperature and Nominal liquid pressure parameters.

If the fluid is compressible, the expression for energy accumulation rate is

E˙=∂(ρIuI)∂p|TdpIdtV+∂(ρIuI)∂T|pdTIdtV,

where:

∂(ρIuI)∂p|T=(ρIhIβI−TIαI)V∂(ρIuI)∂T|p=(cpI−hIαI)V

and hI is the specific enthalpy at the internal node of the block.

If the fluid is compressible and the pipe walls are flexible, the expression for energy accumulation rate is

E˙=∂(ρIuI)∂p|TdpIdtV+∂(ρIuI)∂T|pdTIdtV+ρIhIdVdt.

Examples

Ports

Input

expand all

Variable elevation differential between port A and B, specified as a physical signal.

Dependencies

To enable this port, set Elevation gain specification to Variable.

Programmatic Use

Port: EL

Variable gravitational acceleration, specified as a physical signal.

Dependencies

To enable this port, set Gravitational acceleration specification to Variable.

Programmatic Use

Port: G

Conserving

expand all

Liquid entry or exit port to the pipe.

Programmatic Use

Port: A

Liquid entry or exit port to the pipe.

Programmatic Use

Port: B

Pipe wall temperature.

Dependencies

To enable this port, set Cross-sectional geometry to either Circular, Rectangular, Elliptical, Isosceles triangular, or Custom.

Programmatic Use

Port: H

Temperature of the inner pipe wall.

Dependencies

To enable this port, set Cross-sectional geometry to Annular and Heat transfer walls to Inner wall or Inner and outer walls.

Programmatic Use

Port: Hi

Temperature of the outer pipe wall.

Dependencies

To enable this port, set Cross-sectional geometry to Annular and Heat transfer walls to Outer wall or Inner and outer walls.

Programmatic Use

Port: Ho

Parameters

expand all

Configuration

Whether to model the dynamic compressibility of the liquid. Dynamic compressibility affects the transient response of the system at small timescales. If you select this parameter, the pressure responds dynamically based on the accumulation of fluid mass in the volume. If you clear this parameter, the volume does not accumulate mass and the pressure response is instantaneous. Clearing this setting can improve simulation performance, but may have a negative effect on the simulation robustness. Only clear this setting for small fluid volumes or models with long simulation times.

Programmatic Use

Parameter: dynamic_compressibility
Values: "true" | "false"

Whether to account for acceleration in the mass flow rate due to the mass of the fluid.

Dependencies

To enable this parameter, select Enable dynamic compressibility.

Programmatic Use

Parameter: inertia
Values: "true" | "false"

Number of pipe divisions. Each division represents an individual segment over which pressure is calculated, depending on the pipe inlet pressure, fluid compressibility, and wall flexibility, if applicable. The fluid volume in each segment remains fixed.

Dependencies

To enable this parameter, select Enable dynamic compressibility.

Programmatic Use

Parameter: num_segments

Total pipe length across all pipe segments.

Programmatic Use

Parameter: pipe_length

Cross-sectional pipe geometry. A nominal hydraulic diameter and nominal cross-sectional area is calculated based on the cross-sectional geometry.

Programmatic Use

Parameter: cross_section_geometry
Values: "fluids.thermal_liquid.pipes_fittings.enum.CrossSectionGeometry.Circular" | "fluids.thermal_liquid.pipes_fittings.enum.CrossSectionGeometry.Annular" | "fluids.thermal_liquid.pipes_fittings.enum.CrossSectionGeometry.Rectangular" | "fluids.thermal_liquid.pipes_fittings.enum.CrossSectionGeometry.Elliptical" | "fluids.thermal_liquid.pipes_fittings.enum.CrossSectionGeometry.Triangular" | "fluids.thermal_liquid.pipes_fittings.enum.CrossSectionGeometry.Custom"

Diameter for circular cross-sectional pipes.

Dependencies

To enable this parameter, set Cross-sectional geometry to Circular.

Programmatic Use

Parameter: pipe_diameter

Parameter: diameter_bend

Inner diameter for annular pipe flow, or flow between two concentric pipes.

Dependencies

To enable this parameter, set Cross-sectional geometry to Annular.

Programmatic Use

Parameter: pipe_inner_diameter

Outer diameter for annular pipe flow, or flow between two concentric pipes.

Dependencies

To enable this parameter, set Cross-sectional geometry to Annular.

Programmatic Use

Parameter: pipe_outer_diameter

Width of rectangular pipe.

Dependencies

To enable this parameter, set Cross-sectional geometry to Rectangular.

Programmatic Use

Parameter: pipe_width

Height of rectangular pipe.

Dependencies

To enable this parameter, set Cross-sectional geometry to Rectangular.

Programmatic Use

Parameter: pipe_height

Major axis for elliptical pipes.

Dependencies

To enable this parameter, set Cross-sectional geometry to Elliptical.

Programmatic Use

Parameter: pipe_major_axis

Minor axis for elliptical pipes.

Dependencies

To enable this parameter, set Cross-sectional geometry to Elliptical.

Programmatic Use

Parameter: pipe_minor_axis

Length of the two equal sides of isosceles-triangular pipes.

Dependencies

To enable this parameter, set Cross-sectional geometry to Isosceles triangular.

Programmatic Use

Parameter: pipe_side

Vertex angle for triangular pipes. The value must be less than 180 degrees.

Dependencies

To enable this parameter, set Cross-sectional geometry to Isosceles triangular.

Programmatic Use

Parameter: pipe_angle

Cross-sectional area of the pipe without deformations.

Dependencies

To enable this parameter, set Cross-sectional geometry to Custom.

Programmatic Use

Parameter: area

Effective diameter used in heat transfer, momentum balance, and pipe flexibility equations. For noncircular pipes, the hydraulic diameter is the effective diameter of the fluid in the pipe. For circular pipes, the hydraulic diameter and pipe diameter are the same.

Dependencies

To enable this parameter, either:

  • Clear the Enable dynamic compressibility check box and set Cross-sectional geometry to Custom.

  • Select Enable dynamic compressibility, set the Pipe wall specification parameter to Rigid and set Cross-sectional geometry to Custom.

Programmatic Use

Parameter: Dh

Wall at which to model heat transfer when the pipe cross section is annular.

Dependencies

To enable this parameter, set Cross-sectional geometry to Annular.

Programmatic Use

Parameter: annular_heat_transfer_walls
Values: "fluids.thermal_liquid.pipes_fittings.enum.AnnularPipeWalls.AnnularInner" | "fluids.thermal_liquid.pipes_fittings.enum.AnnularPipeWalls.AnnularOuter" | "fluids.thermal_liquid.pipes_fittings.enum.AnnularPipeWalls.AnnularInnerAndOuter"

Set the pipe elevation as either Constant or Variable. Selecting Variable exposes the physical signal port EL.

Programmatic Use

Parameter: elevation_spec
Values: "foundation.enum.constant_variable.constant" | "foundation.enum.constant_variable.variable"

Elevation differential for constant-elevation pipes.

Dependencies

To enable this parameter, set Elevation gain specification to Constant.

Programmatic Use

Parameter: elevation_gain

Whether the gravitational acceleration is constant or variable.

Programmatic Use

Parameter: gravity_spec
Values: "foundation.enum.constant_variable.constant" | "foundation.enum.constant_variable.variable"

Constant of the gravitational acceleration at the mean elevation of the pipe.

Dependencies

To enable this parameter, set Gravitational acceleration specification to Constant.

Programmatic Use

Parameter: g

Viscous Friction

Parameterization of pressure losses due to wall friction. Both analytical and tabular formulations are available.

Programmatic Use

Parameter: pressure_loss_spec
Values: "fluids.thermal_liquid.pipes_fittings.enum.PressureLossSpec.Haaland" | "fluids.thermal_liquid.pipes_fittings.enum.PressureLossSpec.Nominal" | "fluids.thermal_liquid.pipes_fittings.enum.PressureLossSpec.Tabulated"

Method for quantifying pressure losses due to pipe nonuniformities.

Dependencies

To enable this parameter, set Viscous friction parameterization to Haaland correlation.

Programmatic Use

Parameter: local_pressure_loss_spec
Values: "fluids.thermal_liquid.pipes_fittings.enum.LocalLossSpec.AggregateLength" | "fluids.thermal_liquid.pipes_fittings.enum.LocalLossSpec.LossCoefficient"

Loss coefficient associated with each pipe nonuniformity. You can input a single loss coefficient or the sum of all loss coefficients along the pipe.

Dependencies

To enable this parameter, set Viscous friction parameterization to Haaland correlation and Local resistance specifications to Local loss coefficient.

Programmatic Use

Parameter: loss_coefficient

Length of pipe that would produce the equivalent hydraulic losses as would a pipe with bends, area changes, or other nonuniformities. The effective length of the pipe is the sum of the Pipe length and the Aggregate equivalent length of local resistances.

Dependencies

To enable this parameter, set Viscous friction parameterization to Haaland correlation and Local resistances specification to Aggregate equivalent length.

Programmatic Use

Parameter: length_add

Absolute surface roughness based on pipe material. The provided values are ASHRAE standard roughness values. You can also input your own value by setting Surface roughness specification to Custom.

Dependencies

To enable this parameter, set Viscous friction parameterization to Haaland correlation.

Programmatic Use

Parameter: roughness_spec
Values: "fluids.thermal_liquid.pipes_fittings.enum.RoughnessSpec.SteelWroughtIron" | "fluids.thermal_liquid.pipes_fittings.enum.RoughnessSpec.GalvanizedSteelIron" | "fluids.thermal_liquid.pipes_fittings.enum.RoughnessSpec.CastIron" | "fluids.thermal_liquid.pipes_fittings.enum.RoughnessSpec.Custom" | "fluids.thermal_liquid.pipes_fittings.enum.RoughnessSpec.CommercialPipe"

Pipe wall absolute roughness. This parameter is used to determine the Darcy friction factor, which contributes to pressure loss in the pipe.

Dependencies

To enable this parameter, set Viscous friction parameterization to Haaland correlation and Surface roughness specification Custom.

Programmatic Use

Parameter: roughness

Friction constant for laminar flows. The Darcy friction factor captures the contribution of wall friction in pressure loss calculations. If Cross-sectional geometry is not set to Custom, this parameter is internally set to 64.

Dependencies

To enable this parameter, set Cross-sectional geometry to Custom.

Programmatic Use

Parameter: shape_factor

Reynolds number below which the flow is laminar. Above this threshold, the flow transitions to turbulent, reaching the turbulent regime at the Turbulent flow lower Reynolds number limit setting.

Programmatic Use

Parameter: Re_lam

Reynolds number above which the flow is turbulent. Below this threshold, the flow gradually transitions to laminar, reaching the laminar regime at the Laminar flow upper Reynolds number limit setting.

Programmatic Use

Parameter: Re_tur

Pipe nominal mass flow rate used to calculate the pressure loss coefficient, specified as a scalar or a vector. All nominal values must be greater than 0 and have the same number of elements as the Nominal pressure drop parameter. When this parameter is supplied as a vector, the scalar value Kp is determined as a least-squares fit of the vector elements.

Dependencies

To enable this parameter, set Viscous friction parameterization to Nominal pressure drop vs. nominal mass flow rate.

Programmatic Use

Parameter: mdot_nominal

Pipe nominal pressure drop used to calculate the pressure loss coefficient, specified as a scalar or a vector. All nominal values must be greater than 0 and have the same number of elements as the Nominal mass flow rate parameter. When this parameter is supplied as a vector, the scalar value Kp is determined as a least-squares fit of the vector elements.

Dependencies

To enable this parameter, set Viscous friction parameterization to Nominal pressure drop vs. nominal mass flow rate.

Programmatic Use

Parameter: p_diff_nominal

Mass flow rate threshold for reversed flow. A transition region is defined around 0 kg/s between the positive and negative values of the mass flow rate threshold. Within this transition region, numerical smoothing is applied to the flow response. The threshold value must be greater than 0.

Dependencies

To enable this parameter, set Viscous friction parameterization to Nominal pressure drop vs. nominal mass flow rate.

Programmatic Use

Parameter: mdot_threshold

Vector of Reynolds numbers for the tabular parameterization of the Darcy friction factor. The vector elements form an independent axis with the Darcy friction factor vector parameter. The vector elements must be listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Viscous friction parameterization to Tabulated data - Darcy friction factor vs. Reynolds number.

Programmatic Use

Parameter: Re_friction_TLU

Vector of Darcy friction factors for the tabular parameterization of the Darcy friction factor. The vector elements must correspond one-to-one with the elements in the Reynolds number vector for turbulent Darcy friction factor parameter, and must be unique and greater than or equal to 0.

Dependencies

To enable this parameter, set Viscous friction parameterization to Tabulated data - Darcy friction factor vs. Reynolds number.

Programmatic Use

Parameter: friction_factor_TLU

Pipe Wall

Wall flexibility of the pipe. This parameter is independent of pipe cross-sectional geometry. The Flexible setting preserves the initial pipe shape and applies equal expansion of the cross-sectional area. The Flexible setting may not be accurate for non-circular cross-sectional geometry under high deformation.

Dependencies

To enable this parameter, select Enable dynamic compressibility.

Programmatic Use

Parameter: wall_spec
Values: "fluids.thermal_liquid.pipes_fittings.enum.wall_spec.rigid" | "fluids.thermal_liquid.pipes_fittings.enum.wall_spec.flexible"

Linear expansion correlation. The settings correlate the new cross-sectional area or hydraulic diameter to the pipe pressure.

Dependencies

To enable this parameter, select Enable dynamic compressibility and set Pipe wall specification to Flexible.

Programmatic Use

Parameter: vol_expansion_spec
Values: "fluids.thermal_liquid.pipes_fittings.enum.VolumeExpansionSpec.Area" | "fluids.thermal_liquid.pipes_fittings.enum.VolumeExpansionSpec.AreaTLU" | "fluids.thermal_liquid.pipes_fittings.enum.VolumeExpansionSpec.Diameter" | "fluids.thermal_liquid.pipes_fittings.enum.VolumeExpansionSpec.Material"

Coefficient for calculating pipe deformation. The block multiplies the value of this parameter by the pressure differential between the segment pressure and atmospheric pressure.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and set Volumetric expansion specification to Cross-sectional area vs. pressure.

Programmatic Use

Parameter: area_pressure_gain

Vector that contains the gauge pressures. The block uses this vector in a table lookup to calculate the pipe cross-sectional area. The vector entries must be strictly positive and monotonically increasing and the vector must be the same length as the Cross sectional area gain vector parameter.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and set Volumetric expansion specification to Cross-sectional area vs. pressure - Tabulated.

Programmatic Use

Parameter: static_pressure_TLU

Vector that contains the pipe cross-sectional areas. The block uses this vector in a table lookup to calculate the pipe cross sectional-area at other pressures. The vector entries must be strictly positive and monotonically increasing and the vector must be the same length as the Static gauge pressure vector parameter.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and set Volumetric expansion specification to Cross-sectional area vs. pressure - Tabulated.

Programmatic Use

Parameter: area_pressure_gain_TLU

Coefficient for calculating the pipe deformation. The block multiplies the value of this parameter by the pressure differential between the segment pressure and atmospheric pressure.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and set Volumetric expansion specification to Hydraulic diameter vs. pressure.

Programmatic Use

Parameter: diameter_pressure_gain

Method the block uses to calculate the material behavior.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and set Volumetric expansion specification to Based on material properties.

Programmatic Use

Parameter: material_behavior_spec
Values: "fluids.thermal_liquid.pipes_fittings.enum.PipeMaterialBehavior.Linear" | "fluids.thermal_liquid.pipes_fittings.enum.PipeMaterialBehavior.Multilinear"

Thickness of the pipe wall. The block uses this value to calculate stress.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and set Volumetric expansion specification to Based on material properties.

Programmatic Use

Parameter: wall_thickness

Young's modulus of the material that makes up the pipe wall.

Dependencies

To enable this parameter, select Enable dynamic compressibility, and set Pipe wall specification to Flexible, Volumetric expansion specification to Based on material properties, and Material behavior to Linear Elastic.

Programmatic Use

Parameter: elastic_modulus

Poisson's ratio of the material that makes up the pipe wall.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and set Volumetric expansion specification to Based on material properties.

Programmatic Use

Parameter: poisson_ratio

Vector containing the stress values for the material that makes up the pipe wall.

Dependencies

To enable this parameter, select Enable dynamic compressibility and set Pipe wall specification to Flexible, Volumetric expansion specification to Based on material properties, and Material behavior to Multilinear Elastic.

Programmatic Use

Parameter: stress_TLU

Vector containing the strain values for the material that makes up the pipe wall.

Dependencies

To enable this parameter, select Enable dynamic compressibility and set Pipe wall specification to Flexible, Volumetric expansion specification to Based on material properties, and Material behavior to Multilinear Elastic.

Programmatic Use

Parameter: strain_TLU

Whether the block does nothing, generates a warning, or generates an error when the stress is above the maximum stress specified by the Maximum allowable stress parameter.

Dependencies

To enable this parameter, select Enable dynamic compressibility and set Pipe wall specification to Flexible, Volumetric expansion specification to Based on material properties, and Material behavior to Multilinear Elastic.

Programmatic Use

Parameter: stress_assert_action
Values: "simscape.enum.assert.action.none" | "simscape.enum.assert.action.warn" | "simscape.enum.assert.action.error"

Maximum stress the block allows on the pipe wall. Control what the block does if the stress exceeds this value with the Check if stress exceeds allowable level parameter.

Dependencies

To enable this parameter, select Enable dynamic compressibility and set Pipe wall specification to Flexible, Volumetric expansion specification to Based on material properties, Material behavior to Multilinear Elastic and Check if stress exceeds allowable level to Warning or Error.

Programmatic Use

Parameter: stress_max

Time required for the wall to reach steady-state after pipe deformation. This parameter impacts the dynamic change in pipe volume.

Dependencies

To enable this parameter, select Enable dynamic compressibility and set Pipe wall specification to Flexible.

Programmatic Use

Parameter: wall_time_constant

Whether to account for expansion in the pipe due to temperature changes.

Dependencies

To enable this parameter, select Enable dynamic compressibility and set Pipe wall specification to Flexible.

Programmatic Use

Parameter: thermal_expansion
Values: "true" | "false"

Coefficient of linear thermal expansion for the pipe material. This value is the fractional change in size per degree change in temperature at a constant pressure.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and select Enable pipe thermal expansion.

Programmatic Use

Parameter: alpha_L_wall

Reference temperature the block uses when calculating the thermal expansion of the pipe.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and select Enable pipe thermal expansion.

Programmatic Use

Parameter: thermal_expansion_Tref

Method to specify the pressure of the environment outside of the pipe. To use atmospheric pressure, set this parameter to Atmospheric pressure. To specify a custom pressure, set this parameter to Specified pressure.

Dependencies

To enable this parameter, select Enable dynamic compressibility and set Pipe wall specification to Flexible.

Programmatic Use

Parameter: environment_spec
Values: "foundation.enum.pressure_spec.atmospheric" | "foundation.enum.pressure_spec.specified"

Pressure in the environment surrounding the pipe.

Dependencies

To enable this parameter, select Enable dynamic compressibility, set Pipe wall specification to Flexible, and set Environment pressure specification to Specified pressure.

Programmatic Use

Parameter: environment_pressure

Heat Transfer

Method of calculating the heat transfer coefficient between the fluid and the pipe wall. Analytical and tabulated data parameterizations are available.

Programmatic Use

Parameter: heat_transfer_spec
Values: "fluids.thermal_liquid.pipes_fittings.enum.HeatTransferSpec.Gnielinski" | "fluids.thermal_liquid.pipes_fittings.enum.HeatTransferSpec.Nominal" | "fluids.thermal_liquid.pipes_fittings.enum.HeatTransferSpec.DittusBoelter" | "fluids.thermal_liquid.pipes_fittings.enum.HeatTransferSpec.TabulatedColburn" | "fluids.thermal_liquid.pipes_fittings.enum.HeatTransferSpec.TabulatedNusselt"

Ratio of convective to conductive heat transfer in the laminar flow regime. The fluid Nusselt number influences the heat transfer rate.

Dependencies

To enable this parameter, set Cross-sectional geometry to Custom and set Heat transfer parameterization to either:

  • Gnielinski correlation.

  • Nominal temperature differential vs. nominal mass flow rate.

  • Dittus-Boelter correlation - Nusselt = a * Re^b * Pr^c.

Programmatic Use

Parameter: Nu_lam

Pipe nominal mass flow rate used to calculate the heat transfer coefficient, specified as a scalar or a vector. All nominal values must be greater than 0 and have the same number of elements as the Nominal inflow temperature parameter. When this parameter is supplied as a vector, the scalar value hp is determined as a least-squares fit of the vector elements.

Dependencies

To enable this parameter, set Heat transfer parameterization to Nominal temperature differential vs. nominal mass flow rate.

Programmatic Use

Parameter: mdot_nominal_heat

Nominal fluid inlet temperature used to calculate the heat transfer coefficient, specified as a scalar or a vector. All nominal values must be greater than 0 and have the same number of elements as the Nominal mass flow rate parameter. When this parameter is supplied as a vector, the scalar value h is determined as a least-squares fit of the vector elements.

Dependencies

To enable this parameter, set Heat transfer parameterization to Nominal temperature differential vs. nominal mass flow rate.

Programmatic Use

Parameter: T_in_nominal

Nominal fluid outlet temperature used to calculate the heat transfer coefficient, specified as a scalar or a vector. All nominal values must be greater than 0 and have the same number of elements as the Nominal mass flow rate parameter. When this parameter is supplied as a vector, the scalar value h is determined as a least-squares fit of the vector elements.

Dependencies

To enable this parameter, set Heat transfer parameterization to Nominal temperature differential vs. nominal mass flow rate.

Programmatic Use

Parameter: T_out_nominal

Nominal fluid inlet pressure used to calculate the heat transfer coefficient, specified as a scalar or a vector. All nominal values must be greater than 0 and have the same number of elements as the Nominal mass flow rate parameter. When this parameter is supplied as a vector, the scalar value h is determined as a least-squares fit of the vector elements.

Dependencies

To enable this parameter, set Heat transfer parameterization to Nominal temperature differential vs. nominal mass flow rate.

Programmatic Use

Parameter: p_in_nominal_heat

Pipe wall temperature used to calculate the heat transfer coefficient, specified as a scalar or a vector. All nominal values must be greater than 0 and have the same number of elements as the Nominal mass flow rate parameter. When this parameter is supplied as a vector, the scalar value h is determined as a least-squares fit of the vector elements.

Dependencies

To enable this temperature, set Heat transfer parameterization to Nominal temperature differential vs. nominal mass flow rate and any selection of parameters except setting Cross-sectional geometry to Annular and Heat transfer walls to Inner and outer walls.

Programmatic Use

Parameter: T_wall_nominal

Nominal effective pipe wall temperature that the block uses to calculate the heat transfer coefficient. Calculate the value of this parameter as weighted average temperature across the outer and inner walls

Teffective=UiAiTi+UoAoToUiAi+UoAo

where U, A, and T are heat transfer coefficient, surface area, and wall temperature, respectively. The subscripts i and o denote the inner and outer walls.

The value of this parameter must be greater than 0 and have the same number of elements as the Nominal mass flow rate parameter.

Dependencies

To enable this temperature, set Cross-sectional geometry to Annular, Heat transfer walls to Inner and outer walls, and Heat transfer parameterization to Nominal temperature differential vs. nominal mass flow rate.

Programmatic Use

Parameter: T_wall_eff_nominal

Empirical constant a to use in the Dittus-Boelter correlation. The correlation relates the Nusselt number in turbulent flows to the heat transfer coefficient.

Dependencies

To enable this parameter, set Heat transfer parameterization to Dittus-Boelter correlation - Nusselt = a * Re^b * Pr^c.

Programmatic Use

Parameter: a_coeff

Empirical constant b to use in the Dittus-Boelter correlation. The correlation relates the Nusselt number in turbulent flows to the heat transfer coefficient.

Dependencies

To enable this parameter, set Heat transfer parameterization to Dittus-Boelter correlation - Nusselt = a * Re^b * Pr^c.

Programmatic Use

Parameter: b_Re_power

Empirical constant c to use in the Dittus-Boelter correlation. The correlation relates the Nusselt number in turbulent flows to the heat transfer coefficient. The default value reflects heat transfer to the fluid.

Dependencies

To enable this parameter, set Heat transfer parameterization to Dittus-Boelter correlation - Nusselt = a * Re^b * Pr^c.

Programmatic Use

Parameter: c_Pr_power

Vector of Reynolds numbers for the tabular parameterization of the Colburn factor. The vector elements form an independent axis with the Colburn factor vector parameter. The vector elements must be listed in ascending order and must be greater than 0. This parameter must have the same number of elements as the Colburn factor vector. For reversed flows, or flows from B to A, the same data is applied in the opposite direction.

Dependencies

To enable this parameter, set Heat transfer parameterization to Tabulated data - Colburn factor vs. Reynolds number.

Programmatic Use

Parameter: Re_Colburn_TLU

Vector of Colbrun factors for the tabular parameterization of the Colburn factor. The vector elements form an independent axis with the Reynolds number vector for Colburn factor parameter. This parameter must have the same number of elements as the Reynolds number vector for Colburn factor.

Dependencies

This parameter is active when the Heat transfer parameterization block parameter is set to Tabulated data - Colburn factor vs. Reynolds number.

Programmatic Use

Parameter: Colburn_factor_TLU

Vector of Reynolds numbers for the tabular parameterization of Nusselt number. This vector forms an independent axis with the Prandtl number vector for Nusselt number parameter for the 2-D dependent Nusselt number table, Nu(Re,Pr). The vector elements must be listed in ascending order and must be greater than 0.

Dependencies

To enable this parameter, set Heat transfer parameterization to Tabulated data - Nusselt number vs. Reynolds number & Prandtl number.

Programmatic Use

Parameter: Re_Nu_TLU

Vector of Prandtl numbers for the tabular parameterization of Nusselt number. This vector forms an independent axis with the Reynolds number vector for Nusselt number parameter for the 2-D dependent Nusselt number table, Nu(Re,Pr). The vector elements must be listed in ascending order.

Dependencies

To enable this parameter, set Heat transfer parameterization to Tabulated data - Nusselt number vs. Reynolds number & Prandtl number.

Programmatic Use

Parameter: Pr_Nu_TLU

M-by-N matrix of Nusselt numbers at the specified Reynolds and Prandtl numbers. Linear interpolation is employed between table elements. M and N are the sizes of the corresponding vectors:

  • M is the number of vector elements in the Reynolds number vector for Nusselt number parameter.

  • N is the number of vector elements in the Prandtl number vector for Nusselt number parameter.

Dependencies

To enable this parameter, Heat transfer parameterization to Tabulated data - Nusselt number vs. Reynolds number & Prandtl number.

Programmatic Use

Parameter: Nu_TLU

Correction factor that the block applies to the Nusselt number when the pipe cross section is annular.

Dependencies

To enable this parameter, set:

  • Cross-sectional geometry to Annular

  • Heat transfer walls to either Outer wall or Inner wall

  • Heat transfer parameterization to Gnielinski correlation, Nominal temperature differential vs. nominal mass flow rate, or Dittus-Boelter correlation - Nusselt = a * Re^b * Pr^c

Programmatic Use

Parameter: annular_correction
Values: "fluids.thermal_liquid.pipes_fittings.enum.AnnularPipeCorrectionFactor.Gnielinski" | "fluids.thermal_liquid.pipes_fittings.enum.AnnularPipeCorrectionFactor.None" | "fluids.thermal_liquid.pipes_fittings.enum.AnnularPipeCorrectionFactor.Petukhov"

Initial Conditions

Liquid temperature at the beginning of the simulation.

Programmatic Use

Parameter: T0_vec

Parameter: T0

Pipe pressure at the beginning of the simulation.

Dependencies

To enable this parameter, set select Enable dynamic compressibility.

Programmatic Use

Parameter: p0_vec

Parameter: p0

Liquid temperature at nominal operating conditions. The block uses this value to calculate the nominal density to use in the mass and energy conservation equation when dynamic compressibility is disabled.

Dependencies

To enable this parameter, clear the Enable dynamic compressibility checkbox.

Programmatic Use

Parameter: T_nominal

Liquid pressure at nominal operating conditions. The block uses this value to calculate the nominal density to use in the mass and energy conservation equation when dynamic compressibility is disabled.

Dependencies

To enable this parameter, clear the Enable dynamic compressibility checkbox.

Programmatic Use

Parameter: p_nominal

Initial mass flow rate for pipes with simulated fluid inertia.

Dependencies

To enable this parameter, select Enable dynamic compressibility and Enable fluid inertia.

Programmatic Use

Parameter: mdot0

Algorithms

When the flow is laminar and Heat transfer parameterization is Gnielinski correlation, Nominal temperature differential vs. nominal mass flow rate, or Dittus-Boelter correlation - Nusselt = a * Re^b * Pr^c, the block determines the Nusselt number by using a lookup table and Nusselt number data from [1], [6], and [7]. When the block uses a lookup table, it uses linear interpolation and nearest extrapolation to determine the Nusselt number.

The data that the block uses depends on the Cross-sectional geometry setting:

  • When Cross-sectional geometry is Circular, the Nusselt number is 3.66.

  • When Cross-sectional geometry is Annular, the block calculates the Nusselt number from tabulated data.

    • If Heat transfer walls is Inner wall:

      DinnerDouterNusselt number
      0.0232.337
      0.0517.46
      0.111.56
      0.257.371
      0.55.738
      14.861
    • If Heat transfer walls is Outer wall:

      DinnerDouterNusselt number
      03.657
      0.023.993
      0.054.056
      0.14.113
      0.254.232
      0.54.429
      14.861

    • If Heat transfer walls is Inner and outer walls:

      DinnerDouterNusselt Number Inner WallNusselt Number Outer Wall
      0.00012355.32.779
      0.001322.2542.823
      0.0150.4542.908
      0.0230.1792.948
      0.0418.6142.999
      0.0516.0583.019
      0.0614.283.036
      0.0811.9433.068
      0.110.4593.095
      0.158.3423.157
      0.27.1973.213
      0.256.4713.267
      0.35.9663.319
      0.45.3053.421
      0.54.8893.52
      0.64.6023.619
      0.74.3913.715
      0.84.233.811
      0.94.1033.906
      144

  • When Cross-sectional geometry is Rectangular, the block calculates the Nusselt number from tabulated data.

    min(h,w)max(h,w)Nusselt number
    07.54
    1/85.60
    1/65.14
    1/44.44
    1/33.96
    1/23.39
    12.98

  • When Cross-sectional geometry is Elliptical, the block calculates the Nusselt number from tabulated data.

    bminamajNusselt number
    1/163.65
    1/83.72
    1/43.79
    1/23.74
    13.66

  • When Cross-sectional geometry is Isosceles triangular, the block calculates the Nusselt number from tabulated data.

    θNusselt number
    10π/1801.61
    30π/1802.26
    60π/1802.47
    90π/1802.34
    120π/1802.00

  • When Cross-sectional geometry is Custom, the Nusselt number is the value of the Nusselt number for laminar flow heat transfer parameter.

References

[1] Budynas R. G. Nisbett J. K. and Shigley J. E., 2004. Shigley's mechanical engineering design (7th ed.). McGraw-Hill.

[2] Cengel, Y.A. Heat and Mass Transfer: A Practical Approach (3rd edition). New York, McGraw-Hill, 2007

[3] Ju, Frederick D., and Thomas A. Butler. Review of proposed failure criteria for ductile materials. No. NUREG/CR-3644; LA-10007-MS. Los Alamos National Lab., NM (USA), 1984.

[4] Hencky, Heinrich. "Zur Theorie plastischer Deformationen und der hierdurch im Material hervorgerufenen Nachspannungen." ZAMM‐Journal of Applied Mathematics and Mechanics/Zeitschrift für Angewandte Mathematik und Mechanik 4, no. 4 (1924): 323-334.

[5] Jahed H., 1997. "A Variable Material Property Approach for Elastic-Plastic Analysis of Proportional and Non-proportional Loading". University of Waterloo

[6] Shah, Ramesh K., and Alexander Louis London. Laminar flow forced convection in ducts: a source book for compact heat exchanger analytical data. Academic press, 2014.

[7] Hirbodi, Kamran, Mahmood Yaghoubi, and David Martin Warsinger. "New Nusselt number correlations for developing and fully developed laminar flows in concentric circular annular ducts." International Communications in Heat and Mass Transfer 134 (2022): 105936.

[8] Petukhov, Boris Sergeevich, and Lev Ionovich Roizen. "Generalized relationships for heat transfer in turbulent flow of gas in tubes of annular section." Teplofizika vysokikh temperatur 2, no. 1 (1964): 78-81.

[9] Gnielinski, Volker. "Heat transfer coefficients for turbulent flow in concentric annular ducts." Heat transfer engineering 30, no. 6 (2009): 431-436.

Extended Capabilities

expand all

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

Version History

Introduced in R2016a

expand all