modelFlowResistance
Flow resistance model
Extends from Interfaces.SISOFlow (Base Model with basic flow eqautions for SISO).
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 |
|---|---|---|---|
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| 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 |
| Layout | |||
| Boolean | displayInstanceName (from DropOfCommonsPlus) | dropOfCommons.displayInstanceNames | = true, if instance name is displayed |
| Boolean | displayParameters (from DropOfCommonsPlus) | dropOfCommons.displayParameters | = true, if displaying parameters is enabled |
| Advanced | |||
| Boolean | considerInertance (from SISOFlow) | dropOfCommons.considerInertance | =true, if transient momentum (inertance) term is considered; disable only for advanced use |
| Utilities.Units.Inertance | L (from SISOFlow) | dropOfCommons.L | Inertance |
| StateSelect | m_flowStateSelect (from SISOFlow) | StateSelect.default | State selection for mass flow rate |
| Boolean | clip_p_out (from SISOFlow) | = false, if dr_corr=0 (correction of inertial pressure difference) | |
| Medium.AbsolutePressure | p_min (from SISOFlow) | dropOfCommons.p_min | Minimum steady-state output pressure |
| Medium.Density | rho_min | dropOfCommons.rho_min | Minimal inlet density |
| Initialization › Mass flow rate | |||
| InitializationMethods | initM_flow (from SISOFlow) | ThermofluidStream.Utilities.Types.InitializationMethods.none | Initialization method for mass flow rate |
| SI.MassFlowRate | m_flow_0 (from SISOFlow) | 0 | Initial value for mass flow rate |
| Utilities.Units.MassFlowAcceleration | m_acceleration_0 (from SISOFlow) | 0 | Initial value for derivative of mass flow rate |
| 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 |
| 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 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Inlet | inlet (from SISOFlow) | ||
| Outlet | outlet (from SISOFlow) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow (from SISOFlow) | inlet.m_flow | Mass flow rate |
| SI.Pressure | dr_corr (from SISOFlow) | Correction of inertial pressure difference | |
| SI.Pressure | dp (from SISOFlow) | Pressure difference | |
| Medium.AbsolutePressure | p_in (from SISOFlow) | Medium.pressure(inlet.state) | Inlet pressure |
| Medium.SpecificEnthalpy | h_in (from SISOFlow) | Medium.specificEnthalpy(inlet.state) | Inlet specific enthalpy |
| Medium.MassFraction[Medium.nXi] | Xi_in (from SISOFlow) | Medium.massFraction(inlet.state) | Inlet mass fractions |
| Medium.AbsolutePressure | p_out (from SISOFlow) | Outlet pressure | |
| Medium.SpecificEnthalpy | h_out (from SISOFlow) | Outlet specific enthalpy | |
| Medium.MassFraction[Medium.nXi] | Xi_out (from SISOFlow) | Outlet mass fractions | |
| Real | phi | Normalized pressure for coloring the flow resistance |
Contents
| Name | Description |
|---|---|