modelFlowResistance
Flow resistance model
Extends from Interfaces.SISOFlow.
Information
Implementation of a flow resistance pipe with different selectable flow resistance functions (laminar, laminar-turbulent, linear-quadratic).
The pressure drop can be displayed with the coloring (displayColor in the DropOfCommons). The parameter dp_ref_color can be adjusted depending on expected pressure drop and intensity of coloring. Coloring ranges from 0 to 100 % red, with 100 % red at dp = dp_ref_color.
dp_ref_color needs to be defined according to the use case.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Length | D_h | 4*areaCross/perimeter | Hydraulic diameter |
| SI.Length | perimeter | if shape == ShapeOfResistance.circular then 2*pi*r elseif shape == ShapeOfResistance.rectangle then 2*a + 2*b else perimeterInput | Perimeter |
| SI.Area | areaCross | if shape == ShapeOfResistance.circular then pi*r*r elseif shape == ShapeOfResistance.rectangle then a*b else areaCrossInput | Cross-sectional area |
| SI.Area | areaHydraulic | pi*D_h*D_h*1/4 | Hydraulic cross-sectional area |
| Geometry | |||
| SI.Length | l | Length | |
| ShapeOfResistance | shape | ThermofluidStream.Processes.Internal.ShapeOfResistance.circular | Cross section shape |
| SI.Radius | r | 0 | Radius |
| SI.Length | a | 0 | Rectangle width |
| SI.Length | b | 0 | Rectangle height |
| SI.Area | areaCrossInput | 0 | Cross-sectional area |
| SI.Length | perimeterInput | 0 | Wetted perimeter |
| Advanced › Inertance | |||
| Boolean | computeL | true | = true, if inertance L is computed from the geometry |
| Utilities.Units.Inertance | L_value | dropOfCommons.L | Inertance |
| Advanced | |||
| Medium.Density | rho_min | dropOfCommons.rho_min | Minimal inlet density |
| Layout › Visuals | |||
| SI.Pressure | dp_ref_color | 1e5 | Reference pressure drop value for the intensity of coloring |
| Layout › Display variables | |||
| Boolean | showPressureDrop | true | = true, if pressure drop is displayed |
| ThermofluidStream.Types.PressureUnit | pressureDropUnit | ThermofluidStream.Types.PressureUnit.Pa | Unit used for displaying the pressure drop |
| Integer | pressureDropSignificantDigits | 1 | Number of significant digits used to display the pressure drop |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | phi | Normalized pressure for coloring the flow resistance |
Contents
| Name | Description |
|---|---|
| pLoss |