Package Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe
Package for pressure loss calculation of straight pipes

Information

Straight Pipe

Laminar flow

Calculation of pressure loss in a straight pipe for laminar flow regime of single-phase fluid flow only. See more information.

Turbulent flow

Calculation of pressure loss in a straight pipe for turbulent flow regime of single-phase fluid flow only considering surface roughness. See more information.

Overall flow

Calculation of pressure loss in a straight pipe for laminar or turbulent flow regime of single-phase fluid flow only considering surface roughness. See more information.

Two phase overall flow

Calculation of pressure loss for two phase flow in a horizontal or vertical straight pipe for an overall flow regime considering frictional, momentum and geodetic pressure loss. See more information.

Extends from Modelica.​Icons.​VariantsPackage (Icon for package containing variants).

Package Contents

NameDescription
dp_laminar_DPPressure loss of straight pipe | calculate pressure loss| laminar flow regime (Hagen-Poiseuille)
dp_laminar_IN_conInput record for function dp_laminar_DP and dp_laminar_MFLOW
dp_laminar_IN_varInput record for function dp_laminar_DP and dp_laminar_MFLOW
dp_laminar_MFLOWPressure loss of straight pipe | calculate mass flow rate | laminar flow regime (Hagen-Poiseuille)
dp_overall_DPPressure loss of straight pipe | calculate pressure loss | overall flow regime | surface roughness
dp_overall_IN_conInput record for function dp_overall_DP and dp_overall_MFLOW
dp_overall_IN_varInput record for function dp_overall_DP and dp_overall_MFLOW
dp_overall_MFLOWPressure loss of straight pipe | calculate mass flow rate | overall flow regime | surface roughness
dp_turbulent_DPPressure loss of straight pipe | calculate pressure loss | turbulent flow regime | surface roughness
dp_turbulent_IN_conInput record for function dp_turbulent_DP and dp_turbulent_MFLOW
dp_turbulent_IN_varInput record for function dp_turbulent_DP and dp_turbulent_MFLOW
dp_turbulent_MFLOWPressure loss of straight pipe | calculate mass flow rate | turbulent flow regime | surface roughness
dp_twoPhaseOverall_DPPressure loss of straight pipe for two phase flow | calculate (frictional, momentum, geodetic) pressure loss
dp_twoPhaseOverall_IN_conInput record for function dp_twoPhaseOverall_DP
dp_twoPhaseOverall_IN_varInput record for function dp_twoPhaseOverall_DP

Function Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_laminar_DP
Pressure loss of straight pipe | calculate pressure loss| laminar flow regime (Hagen-Poiseuille)

Information

Calculation of pressure loss in a straight pipe for laminar flow regime of an incompressible and single-phase fluid flow only.

Generally this function is numerically best used for the incompressible case , where the mass flow rate (m_flow) is known (as state variable) in the used model and the corresponding pressure loss (DP) has to be calculated. On the other hand the function dp_laminar_MFLOW is numerically best used for the compressible case if the pressure loss (dp) is known (out of pressures as state variable) and the mass flow rate (M_FLOW) has to be calculated. See more information.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
dp_laminar_IN_conIN_conInput record for function dp_laminar_DP
dp_laminar_IN_varIN_varInput record for function dp_laminar_DP
MassFlowRatem_flowMass flow rate

Outputs

TypeNameDescription
PressureDPOutput for function dp_laminar_DP

Function Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_laminar_MFLOW
Pressure loss of straight pipe | calculate mass flow rate | laminar flow regime (Hagen-Poiseuille)

Information

Calculation of pressure loss in a straight pipe for laminar flow regime of an incompressible and single-phase fluid flow only.

Generally this function is numerically best used for the compressible case , where the pressure loss (dp) is known (out of pressures as state variable) in the used model and the corresponding mass flow rate (M_FLOW) has to be calculated. On the other hand the function dp_laminar_DP is numerically best used for the incompressible case if the mass flow rate (m_flow) is known (as state variable) and the pressure loss (DP) has to be calculated. See more information.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
dp_laminar_IN_conIN_conInput record for function dp_laminar_MFLOW
dp_laminar_IN_varIN_varInput record for function dp_laminar_MFLOW
PressuredpPressure loss

Outputs

TypeNameDescription
MassFlowRateM_FLOWOutput for function dp_laminar_MFLOW

Record Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_laminar_IN_con
Input record for function dp_laminar_DP and dp_laminar_MFLOW

Information

This record is used as input record for the pressure loss function dp_laminar_DP and dp_laminar_MFLOW.

Extends from Modelica.​Fluid.​Dissipation.​Utilities.​Records.​PressureLoss.​StraightPipe (Input for straight pipe).

Fields

TypeNameDescription
Diameterd_hydHydraulic diameter
LengthLLength

Record Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_laminar_IN_var
Input record for function dp_laminar_DP and dp_laminar_MFLOW

Information

This record is used as input record for the pressure loss function dp_laminar_DP and dp_laminar_MFLOW.

Extends from Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_overall_IN_var (Input record for function dp_overall_DP and dp_overall_MFLOW).

Fields

TypeNameDescription
DynamicViscosityetaDynamic viscosity of fluid
DensityrhoDensity of fluid

Function Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_overall_DP
Pressure loss of straight pipe | calculate pressure loss | overall flow regime | surface roughness

Information

Calculation of pressure loss in a straight pipe for overall flow regime of an incompressible and single-phase fluid flow only considering surface roughness.

Generally this function is numerically best used for the incompressible case , where the mass flow rate (m_flow) is known (as state variable) in the used model and the corresponding pressure loss (DP) has to be calculated. On the other hand the function dp_overall_MFLOW is numerically best used for the compressible case if the pressure loss (dp) is known (out of pressures as state variable) and the mass flow rate (M_FLOW) has to be calculated. See more information.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
dp_overall_IN_conIN_conInput record for function dp_overall_DP
dp_overall_IN_varIN_varInput record for function dp_overall_DP
MassFlowRatem_flowMass flow rate

Outputs

TypeNameDescription
PressureDPOutput for function dp_overall_DP

Function Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_overall_MFLOW
Pressure loss of straight pipe | calculate mass flow rate | overall flow regime | surface roughness

Information

Calculation of pressure loss in a straight pipe for overall flow regime of an incompressible and single-phase fluid flow only considering surface roughness.

Generally this function is numerically best used for the compressible case , where the pressure loss (dp) is known (out of pressures as state variable) in the used model and the corresponding mass flow rate (M_FLOW) has to be calculated. On the other hand the function dp_overall_DP is numerically best used for the incompressible case if the mass flow rate (m_flow) is known (as state variable) and the pressure loss (DP) has to be calculated. See more information.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
dp_overall_IN_conIN_conInput record for function dp_overall_MFLOW
dp_overall_IN_varIN_varInput record for function dp_overall_MFLOW
PressuredpPressure loss

Outputs

TypeNameDescription
MassFlowRateM_FLOWOutput of function dp_overall_MFLOW

Record Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_overall_IN_con
Input record for function dp_overall_DP and dp_overall_MFLOW

Information

This record is used as input record for the pressure loss function dp_overall_DP and dp_overall_MFLOW.

Extends from Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_turbulent_IN_con (Input record for function dp_turbulent_DP and dp_turbulent_MFLOW).

Fields

TypeNameDescription
RoughnessroughnessChoice of considering surface roughness
Diameterd_hydHydraulic diameter
LengthLLength
LengthKRoughness (average height of surface asperities)

Record Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_overall_IN_var
Input record for function dp_overall_DP and dp_overall_MFLOW

Information

This record is used as input record for the pressure loss function dp_overall_DP and dp_overall_MFLOW.

Extends from Modelica.​Fluid.​Dissipation.​Utilities.​Records.​General.​PressureLoss (Base record for fluid properties for pressure loss).

Fields

TypeNameDescription
DynamicViscosityetaDynamic viscosity of fluid
DensityrhoDensity of fluid

Function Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_turbulent_DP
Pressure loss of straight pipe | calculate pressure loss | turbulent flow regime | surface roughness

Information

Calculation of pressure loss in a straight pipe for turbulent flow regime of an incompressible and single-phase fluid flow only considering surface roughness.

Generally this function is numerically best used for the incompressible case , where the mass flow rate (m_flow) is known (as state variable) in the used model and the corresponding pressure loss (DP) has to be calculated. On the other hand the function dp_turbulent_MFLOW is numerically best used for the compressible case if the pressure loss (dp) is known (out of pressures as state variable) and the mass flow rate (M_FLOW) has to be calculated. See more information.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
dp_turbulent_IN_conIN_conInput record for function dp_turbulent_DP
dp_turbulent_IN_varIN_varInput record for function dp_turbulent_DP
MassFlowRatem_flowMass flow rate

Outputs

TypeNameDescription
PressureDPOutput for function dp_turbulent_DP

Function Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_turbulent_MFLOW
Pressure loss of straight pipe | calculate mass flow rate | turbulent flow regime | surface roughness

Information

Calculation of pressure loss in a straight pipe for turbulent flow regime of an incompressible and single-phase fluid flow only considering surface roughness.

Generally this function is numerically best used for the compressible case if the pressure loss (dp) is known (out of pressures as state variable) and the mass flow rate (M_FLOW) has to be calculated. On the other hand the function dp_turbulent_DP is numerically best used for the incompressible case , where the mass flow rate (m_flow) is known (as state variable) in the used model and the corresponding pressure loss (DP) has to be calculated. See more information.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
dp_turbulent_IN_conIN_conInput record for function dp_turbulent_MFLOW
dp_turbulent_IN_varIN_varInput record for function dp_turbulent_MFLOW
PressuredpPressure loss

Outputs

TypeNameDescription
MassFlowRateM_FLOWMass flow rate

Record Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_turbulent_IN_con
Input record for function dp_turbulent_DP and dp_turbulent_MFLOW

Information

This record is used as input record for the pressure loss function dp_turbulent_DP and dp_turbulent_MFLOW.

Extends from Modelica.​Fluid.​Dissipation.​Utilities.​Records.​PressureLoss.​StraightPipe (Input for straight pipe).

Fields

TypeNameDescription
RoughnessroughnessChoice of considering surface roughness
Diameterd_hydHydraulic diameter
LengthLLength
LengthKRoughness (average height of surface asperities)

Record Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_turbulent_IN_var
Input record for function dp_turbulent_DP and dp_turbulent_MFLOW

Information

This record is used as input record for the pressure loss function dp_turbulent_DP and dp_turbulent_MFLOW.

Extends from Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_overall_IN_var (Input record for function dp_overall_DP and dp_overall_MFLOW).

Fields

TypeNameDescription
DynamicViscosityetaDynamic viscosity of fluid
DensityrhoDensity of fluid

Function Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_twoPhaseOverall_DP
Pressure loss of straight pipe for two phase flow | calculate (frictional, momentum, geodetic) pressure loss

Information

Calculation of pressure loss for two phase flow in a horizontal or vertical straight pipe for an overall flow regime considering frictional, momentum and geodetic pressure loss.

Generally the pressure loss for two phase flow in a horizontal or a vertical straight pipe can be calculated for the following fluid flow regimes:

Horizontal fluid flow [(a) bubble flow, (b) stratified flow, (c) wavy flow, (d) slug flow, (e) annular flow]:

pic_twoPhaseFlowRegimes_horizontal

Vertical fluid flow [(a) bubble flow, (b) plug slug flow, (c) foam flow, (d) annular streak flow, (e) annular flow]:

pic_twoPhaseFlowRegimes_vertical

See more information.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
dp_twoPhaseOverall_IN_conIN_conInput record for function dp_twoPhaseOverall_DP
dp_twoPhaseOverall_IN_varIN_varInput record for function dp_twoPhaseOverall_DP
MassFlowRatem_flowMass flow rate

Outputs

TypeNameDescription
PressureDPTwo phase pressure loss

Record Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_twoPhaseOverall_IN_con
Input record for function dp_twoPhaseOverall_DP

Information

This record is used as input record for the pressure loss function dp_twoPhaseOverall_DP.

Extends from Modelica.​Fluid.​Dissipation.​Utilities.​Records.​General.​TwoPhaseFlow_con (Base record for two phase Flow).

Fields

TypeNameDescription
TwoPhaseFrictionalPressureLossfrictionalPressureLossChoice of frictional pressure loss approach
VoidFractionApproachvoidFractionApproachChoice of void fraction approach
BooleanmomentumPressureLossConsidering momentum pressure loss
BooleanmassFlowRateCorrectionConsider heterogeneous mass flow rate correction
BooleangeodeticPressureLossConsidering geodetic pressure loss
AreaA_crossCross sectional area
LengthperimeterWetted perimeter
LengthlengthLength in fluid flow direction
AnglephiTilt angle to horizontal

Record Modelica.​Fluid.​Dissipation.​PressureLoss.​StraightPipe.​dp_twoPhaseOverall_IN_var
Input record for function dp_twoPhaseOverall_DP

Information

This record is used as input record for the pressure loss function dp_twoPhaseOverall_DP.

Extends from Modelica.​Fluid.​Dissipation.​Utilities.​Records.​General.​TwoPhaseFlow_var (Base record for two phase flow).

Fields

TypeNameDescription
Realx_flow_endMass flow rate quality at end of length
Realx_flow_staMass flow rate quality at start of length
Densityrho_gDensity of gas
Densityrho_lDensity of liquid
DynamicViscosityeta_gDynamic viscosity of gas
DynamicViscosityeta_lDynamic viscosity of liquid
SurfaceTensionsigmaSurface tension
Realx_flowMean mass flow rate quality over length