modelTransportDelayPipe
Extends from TRANSFORM.Fluid.Pipes.BaseClasses.PartialTwoPortPipe.
Information
Transport delay of enthalpy, species, and trace substances using the spatialDistriubtion() function which supports flow reversal. This is an ideal transport with no diffusion (i.e., step change in the input will see a step change in the outlet once the wave has propagated through the pipe).
Currently the initialization is set by the inStream() properties of the connected port. Future edits may change this to allow more user control.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Area | crossArea | ||
| SI.Length | length | ||
| SI.Acceleration | g_n | Modelica.Constants.g_n | |
| SI.Height | dheight | 0 | |
| SI.Height | roughness | 2.5e-5 | |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPortPipe) | true | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Advanced › Model Structure | |||
| Boolean | exposeState_a (from PartialTwoPortPipe) | true | = true then the component sets p internally else m_flow |
| Boolean | exposeState_b (from PartialTwoPortPipe) | false | = true then the component sets p internally else m_flow |
| Visualization | |||
| Boolean | showDesignFlowDirection (from PartialTwoPortPipe) | true | = false to hide the flow direction arrow |
| Boolean | showName (from PartialTwoPortPipe) | true | = false to hide component name |
| Advanced | |||
| SI.MassFlowRate | m_flow_smooth | 0.001 | Smoothing tolerance around zero flow rate |
| SI.ReynoldsNumber | Re_lam | 2300 | Laminar transition Reynolds number |
| SI.ReynoldsNumber | Re_turb | 4000 | Turbulent transition Reynolds number |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TRANSFORM.Fluid.Interfaces.FluidPort_Flow | port_a (from PartialTwoPortPipe) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| TRANSFORM.Fluid.Interfaces.FluidPort_Flow | port_b (from PartialTwoPortPipe) | Fluid connector b (positive design flow direction is from port_a to port_b) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.NusseltNumber | fRe2_lam | TRANSFORM.Fluid.ClosureRelations.PressureLoss.Functions.TubesAndConduits.SinglePhase.fRe2_Laminar_Local_Developed_Circular(Re) | Laminar Friction factor |
| SI.NusseltNumber | fRe2_turb | TRANSFORM.Fluid.ClosureRelations.PressureLoss.Functions.TubesAndConduits.SinglePhase.fRe2_Turbulent_Local_Developed_SwameeJain(Re, dimension, roughness) | Turbulent Friction factor |
| TRANSFORM.Units.NonDim | K_ab | 0 | Minor loss coefficients. Flow in direction a -> b |
| TRANSFORM.Units.NonDim | K_ba | 0 | Minor loss coefficients. Flow in direction b -> a |
| SI.PressureDifference | dp_add_ab | 0 | Additional pressure losses. Flow in direction a -> b |
| SI.PressureDifference | dp_add_ba | 0 | Additional pressure losses. Flow in direction b -> a |
| SI.Volume | V | crossArea*length | |
| Real | u | ||
| Real | x | ||
| SI.PressureDifference | dp | ||
| SI.Velocity | v | ||
| SI.MassFlowRate | m_flow | ||
| Medium.ThermodynamicState | state_a | ||
| Medium.ThermodynamicState | state_b | ||
| Medium.ThermodynamicState | state | ||
| SI.Length | dimension | 2*(crossArea/Modelica.Constants.pi)^0.5 | |
| SI.PressureDifference | dp_fg | Pressure drop between states | |
| SI.PressureDifference | dp_f | Frictional pressure drop | |
| SI.PressureDifference | dp_g | Gravitational pressure drop | |
| SI.ReynoldsNumber | Re | ||
| TRANSFORM.Units.NonDim | fRe2 | ||
| SI.Time | tau | length/max(1e-3, v) |