modelDualPipe
Extends from DisHeatLib.BaseClasses.PartialFourPortVectorInterface (Partial model transporting fluid between two ports without storing mass or energy).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| DisHeatLib.Pipes.BaseClasses.BasePipe | pipeType | Pipe type | |
| Modelica.SIunits.Length | L | Length of the pipes | |
| Assumptions | |||
| Boolean | allowFlowReversal1 (from PartialFourPortVector) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal for medium 1 |
| Boolean | allowFlowReversal2 (from PartialFourPortVector) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal for medium 2 |
| Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
| General › Ports | |||
| Integer | nPorts1 (from PartialFourPortVector) | Number of ports 1 | |
| Integer | nPorts2 (from PartialFourPortVector) | Number of ports 2 | |
| Nominal condition | |||
| Modelica.SIunits.MassFlowRate | m1_flow_nominal (from PartialFourPortVectorInterface) | Nominal mass flow rate | |
| Modelica.SIunits.MassFlowRate | m2_flow_nominal (from PartialFourPortVectorInterface) | Nominal mass flow rate | |
| Advanced | |||
| Medium1.MassFlowRate | m1_flow_small (from PartialFourPortVectorInterface) | 1E-4*abs(m1_flow_nominal) | Small mass flow rate for regularization of zero flow |
| Medium2.MassFlowRate | m2_flow_small (from PartialFourPortVectorInterface) | 1E-4*abs(m2_flow_nominal) | Small mass flow rate for regularization of zero flow |
| Medium.MassFlowRate | m_flow_small | 1E-4*abs(pipeType.m_flow_nominal) | Small mass flow rate for regularization of zero flow |
| Advanced › Diagnostics | |||
| Boolean | show_T (from PartialFourPortVectorInterface) | false | = true, if actual temperature at port is computed |
| Flow resistance | |||
| Boolean | from_dp | false | = true, use m_flow = f(dp) else dp = f(m_flow) |
| Boolean | linearizeFlowResistance | false | = true, use linear relation between m_flow and dp for any flow rate |
| Additional parameters | |||
| Real | ReC | 4000 | Reynolds number where transition to turbulent starts |
| Real | fac | 1 | Factor to take into account flow resistance of bends etc., fac=dp_nominal/dpStraightPipe_nominal |
| Real | cf | 1.0 | Correction factor of heat losses (needed for aggregation) |
| Initialization | |||
| Modelica.SIunits.Temperature | T_sl_init | Medium.T_default | Initial temperature of supply pipe |
| Modelica.SIunits.Temperature | T_rl_init | Medium.T_default | Initial temperature of return pipe |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a1 (from PartialFourPortVector) | Fluid connector a1 (positive design flow direction is from port_a1 to port_b1) | |
| Modelica.Fluid.Interfaces.FluidPort_a | port_a2 (from PartialFourPortVector) | Fluid connector a2 (positive design flow direction is from port_a2 to port_b2) | |
| Modelica.Fluid.Interfaces.FluidPorts_b[nPorts1] | ports_b1 (from PartialFourPortVector) | Fluid connectors b1 (positive design flow direction is from port_a1 to ports_b1) | |
| Modelica.Fluid.Interfaces.FluidPorts_b[nPorts2] | ports_b2 (from PartialFourPortVector) | Fluid connectors b2 (positive design flow direction is from port_a2 to ports_b2) | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | port_ht |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium1.MassFlowRate | m1_flow (from PartialFourPortVectorInterface) | port_a1.m_flow | Mass flow rate from port_a1 to ports_b1 (m1_flow > 0 is design flow direction) |
| Modelica.SIunits.PressureDifference | dp1 (from PartialFourPortVectorInterface) | port_a1.p - ports_b1[1].p | Pressure difference between port_a1 and ports_b1[1] |
| Medium2.MassFlowRate | m2_flow (from PartialFourPortVectorInterface) | port_a2.m_flow | Mass flow rate from port_a2 to ports_b2 (m2_flow > 0 is design flow direction) |
| Modelica.SIunits.PressureDifference | dp2 (from PartialFourPortVectorInterface) | port_a2.p - ports_b2[1].p | Pressure difference between port_a2 and ports_b2[1] |
| Medium1.ThermodynamicState | sta_a1 (from PartialFourPortVectorInterface) | Medium1.setState_phX(port_a1.p, noEvent(actualStream(port_a1.h_outflow)), noEvent(actualStream(port_a1.Xi_outflow))) | Medium properties in port_a1 |
| Medium1.ThermodynamicState[nPorts1] | sta_b1 (from PartialFourPortVectorInterface) | Medium1.setState_phX(ports_b1.p, noEvent(actualStream(ports_b1.h_outflow)), noEvent(actualStream(ports_b1.Xi_outflow))) | Medium properties in ports_b1 |
| Medium2.ThermodynamicState | sta_a2 (from PartialFourPortVectorInterface) | Medium2.setState_phX(port_a2.p, noEvent(actualStream(port_a2.h_outflow)), noEvent(actualStream(port_a2.Xi_outflow))) | Medium properties in port_a2 |
| Medium2.ThermodynamicState[nPorts2] | sta_b2 (from PartialFourPortVectorInterface) | Medium2.setState_phX(ports_b2.p, noEvent(actualStream(ports_b2.h_outflow)), noEvent(actualStream(ports_b2.Xi_outflow))) | Medium properties in ports_b2 |
| Modelica.SIunits.Power | Q_flow | Heat flow to soil (i.e., losses) |
Contents
| Name | Description |
|---|---|
| Medium in the component |
Revisions
- Feburary 27, 2019, by Benedikt Leitner:
Implementation and added User's guide.