modelAbruptAdaptor
Extends from Interfaces.TwoFluidPorts (To be used by equipment with two fluid ports.).
Information
The pressure assigned to a flow port is that measured at the pipe end, taking into account the velocity of the flow, as this is the preassure needed for the calculation of physical properties like density. When making connections, we assume equal pressure at all connecting ports, without taking into accound that, if the streams have different velocities, there will be a change in pressure. This makes the balance inexact. If we want to improve the calculation, taking into account the velocity impact, it is necessary to reference pressure and enthalpy to the same velocity. This is the function of the abrupt adapter. It is a frictionless adapter.
If we want to use the adapter, it is necessary to put one adapter at each end of the pipe, except for the connection of two only pipes of the same diameter. In this case the equal velocity is granted at the connection point.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Ports links | |||
| Boolean | useElevDifference (from TwoFluidPorts) | true | introduces, or not, an equation for the ports elevation. Use only in one connector |
| FreeFluids.Types.ElevationOption | elevCalcMethod (from TwoFluidPorts) | FreeFluids.Types.ElevationOption.differential | if useElevDifference==true, selects the equation to use: differential, or absolute for PortB |
| Modelica.Units.SI.Length | elevDifference (from TwoFluidPorts) | 0.0 | used only if previously selected. Positive if PortB higher than PortA |
| Modelica.Units.SI.Length | portBelevation (from TwoFluidPorts) | 0.0 | used only if previously selected. |
| Boolean | calcEnthalpyDifference (from TwoFluidPorts) | true | if true, will calculate the enthalpy difference between ports. Use only in one connector |
| Boolean | passComposition (from TwoFluidPorts) | true | if true, the equation PortA.X=PortB.X will be activated |
| Flow | |||
| SI.Density | rhoStart | 5.0 | start value for RhoA and RhoB calculation |
| Physical data | |||
| Boolean | isCircular | true | the pipe is circular in shape |
| SI.Distance | diA | Modelica.Constants.inf | internal diameter of PortA if path is circular |
| SI.Distance | diB | 0.0 | internal diameter of PortB if path is circular |
| SI.Area | sectionA | 0 | pipe section of PortA if not circular |
| SI.Area | sectionB | 0 | pipe section of PortB if not circular |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| FreeFluids.Interfaces.FluidPortA | PortA (from TwoFluidPorts) | ||
| FreeFluids.Interfaces.FluidPortB | PortB (from TwoFluidPorts) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.SpecificEnthalpy | Hdiff (from TwoFluidPorts) | specific enthalpy difference: Port B - Port A | |
| Modelica.Units.SI.PressureDifference | Pdiff (from TwoFluidPorts) | pressure difference: Port B - Port A | |
| SI.Area | SectionA | ||
| SI.Area | SectionB | ||
| Medium.ThermodynamicState | StateA | ||
| Medium.ThermodynamicState | StateB | ||
| Medium.Density | RhoA | ||
| Medium.Density | RhoB | ||
| SI.Velocity | Va | velocity at PortA | |
| SI.Velocity | Vb | velocity at PortB |