PipeExt
Partial model of two port
Library
Thermal/FluidHeatFlow
Description
Pipe with geometric parameters, temperature-dependent viscosity, and optional heat exchange.
Thermodynamic equations are defined by Partials.TwoPort. Q_flow is defined by heatPort.Q_flow (useHeatPort=true) or zero (useHeatPort=false).
Note: Setting parameter m (mass of medium within pipe) to zero leads to neglect of temperature transient cv * m * der(T).
Note: Injecting heat into a pipe with zero mass flow causes temperature rise defined by storing heat in medium's mass.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_diameter | diameter | Pipe diameter | Scalar | |
mo_length | length | Pipe length | Scalar | |
mo_h_g | h_g | Geodetic height (height difference from flowPort_a to flowPort_b) | Scalar | |
mo_relRoughness | relRoughness | Relative roughness | Scalar | |
mo_sumZeta | sumZeta | Sum of loss factors (bends, elbows) | Scalar | |
mo_frictionLoss | frictionLoss | Part of friction losses fed to medium | Scalar | |
mo_nueT | nueT | Table kin. viscosity(T) | Matrix | |
mo_useHeatPort | useHeatPort | enable HeatPort | Number | 0 |
mo_g | g | Gravitation | Scalar | |
mo_medium | medium | Medium in the component | FromModelica('Modelica.Thermal.FluidHeatFlow.Media.Medium') | |
mo_m | m | Mass of medium | Scalar | |
mo_T0 | T0 | Initial temperature of medium | Scalar | |
mo_T0fixed | T0fixed | Initial temperature guess value or fixed | Scalar | true |
mo_tapT | tapT | Defines temperature of heatPort between inlet and outlet temperature | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_pressureDrop | pressureDrop | pressureDrop | Structure | |
mo_pressureDrop/fixed | fixed | Cell of scalars | true | |
mo_pressureDrop/start | start | Cell of scalars | ||
mo_Q_friction | Q_friction | Q_friction | Structure | |
mo_Q_friction/fixed | fixed | Cell of scalars | true | |
mo_Q_friction/start | start | Cell of scalars | ||
mo_dp | dp | dp | Structure | |
mo_dp/fixed | fixed | Cell of scalars | true | |
mo_dp/start | start | Cell of scalars | ||
mo_V_flow | V_flow | V_flow | Structure | |
mo_V_flow/fixed | fixed | Cell of scalars | true | |
mo_V_flow/start | start | Cell of scalars | ||
mo_Q_flow | Q_flow | Q_flow | Structure | |
mo_Q_flow/fixed | fixed | Cell of scalars | true | |
mo_Q_flow/start | start | Cell of scalars | ||
mo_T | T | T | Structure | |
mo_T/fixed | fixed | Cell of scalars | true | |
mo_T/start | start | Cell of scalars | ||
mo_T_a | T_a | T_a | Structure | |
mo_T_a/fixed | fixed | Cell of scalars | true | |
mo_T_a/start | start | Cell of scalars | ||
mo_T_b | T_b | T_b | Structure | |
mo_T_b/fixed | fixed | Cell of scalars | true | |
mo_T_b/start | start | Cell of scalars | ||
mo_dT | dT | dT | Structure | |
mo_dT/fixed | fixed | Cell of scalars | true | |
mo_dT/start | start | Cell of scalars | ||
mo_T_q | T_q | T_q | Structure | |
mo_T_q/fixed | fixed | Cell of scalars | true | |
mo_T_q/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
flowPort_a | implicit | output | 1 | |
flowPort_b | implicit | output | 2 | |
Port 3 | implicit | Heat port | input | mo_useHeatPort |