modelPipe
Pipe with optional heat exchange
Extends from FluidHeatFlow.BaseClasses.TwoPort (Partial model of two port), FluidHeatFlow.BaseClasses.SimpleFriction (Simple friction model).
Information
Pipe with optional heat exchange.
Thermodynamic equations are defined by BaseClasses.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
| Type | Name | Default | Description |
|---|---|---|---|
| FluidHeatFlow.Media.Medium | medium (from TwoPort) | FluidHeatFlow.Media.Medium() | Medium in the component |
| SI.Mass | m (from TwoPort) | Mass of medium | |
| SI.Temperature | T0 (from TwoPort) | Initial temperature of medium | |
| Boolean | T0fixed (from TwoPort) | false | Initial temperature guess value or fixed |
| Real | tapT (from TwoPort) | 1 | Defines temperature of heatPort between inlet and outlet temperature |
| Boolean | useHeatPort | false | = true, if HeatPort is enabled |
| SI.Length | h_g | Geodetic height (height difference from flowPort_a to flowPort_b) | |
| SI.Acceleration | g | Modelica.Constants.g_n | Gravitation |
| Simple friction | |||
| SI.VolumeFlowRate | V_flowLaminar (from SimpleFriction) | Laminar volume flow | |
| SI.Pressure | dpLaminar (from SimpleFriction) | Laminar pressure drop | |
| SI.VolumeFlowRate | V_flowNominal (from SimpleFriction) | Nominal volume flow | |
| SI.Pressure | dpNominal (from SimpleFriction) | Nominal pressure drop | |
| Real | frictionLoss (from SimpleFriction) | 0 | Part of friction losses fed to medium |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| FluidHeatFlow.Interfaces.FlowPort_a | flowPort_a (from TwoPort) | ||
| FluidHeatFlow.Interfaces.FlowPort_b | flowPort_b (from TwoPort) | ||
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | dp (from TwoPort) | Pressure drop a->b | |
| SI.VolumeFlowRate | V_flow (from TwoPort) | Volume flow a->b | |
| SI.HeatFlowRate | Q_flow (from TwoPort) | Heat exchange with ambient | |
| SI.Temperature | T (from TwoPort) | Outlet temperature of medium | |
| SI.Temperature | T_a (from TwoPort) | Temperature at flowPort_a | |
| SI.Temperature | T_b (from TwoPort) | Temperature at flowPort_b | |
| SI.TemperatureDifference | dT (from TwoPort) | Temperature increase of coolant in flow direction | |
| SI.Temperature | T_q (from TwoPort) | Temperature relevant for heat exchange with ambient | |
| SI.Pressure | pressureDrop (from SimpleFriction) | ||
| SI.VolumeFlowRate | volumeFlow (from SimpleFriction) | ||
| SI.Power | Q_friction (from SimpleFriction) |