modelNozzle
Model for dynamic pressure difference
Extends from ThermofluidStream.Interfaces.SISOFlow (Base Model with basic flow eqautions for SISO).
Information
Implementation of a nozzle taking gas dynamic effects into account.
By default, the density is assumed to be constant across the component. This assumption can be reverted by setting assumeConstantDensity = false and hence the outlet velocity is computed by the outlet density. Beware that this will lead to a non-linear equation system in the component.
By definition, the sign of the velocity matches the sign of the mass-flow rate at the inlet.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| Boolean | assumeConstantDensity | true | = true, if incompressibility is assumed (use '= false' for Ma > 0.3) |
| Boolean | dA_in | displayParameters and displayInletArea and not area_in_FromInput | Display inlet area |
| Boolean | dA_out | displayParameters and displayOutletArea and not area_out_FromInput | Display outlet area |
| Boolean | displayA | dA_in or dA_out | Display inlet area or display outlet area |
| String | AreaString | if dA_in and dA_out then "A_in=%A_in, A_out=%A_out" elseif dA_in and not dA_out then "A_in = %A_in" elseif not dA_in and dA_out then "A_out = %A_out" else "" | |
| String | compressibilityString | if assumeConstantDensity then "incompressible" else "compressible" | |
| String | displayPos1 | if displayCompressibilityApproach then compressibilityString elseif displayA then AreaString elseif displayInertance then "L = %L_value" else "" | |
| String | displayPos2 | if displayCompressibilityApproach and displayA then AreaString elseif displayInertance and not displayPos1 == "L = %L" then "L = %L_value" else "" | |
| String | displayPos3 | if displayCompressibilityApproach and displayA and displayInertance then "L = %L_value" else "" | |
| Layout | |||
| Boolean | displayInstanceName (from DropOfCommonsPlus) | dropOfCommons.displayInstanceNames | = true, if instance name is displayed |
| Boolean | displayParameters (from DropOfCommonsPlus) | dropOfCommons.displayParameters | = true, if displaying parameters is enabled |
| Advanced | |||
| Boolean | considerInertance (from SISOFlow) | dropOfCommons.considerInertance | =true, if transient momentum (inertance) term is considered; disable only for advanced use |
| Utilities.Units.Inertance | L (from SISOFlow) | dropOfCommons.L | Inertance |
| StateSelect | m_flowStateSelect (from SISOFlow) | StateSelect.default | State selection for mass flow rate |
| Boolean | clip_p_out (from SISOFlow) | = false, if dr_corr=0 (correction of inertial pressure difference) | |
| Medium.AbsolutePressure | p_min (from SISOFlow) | dropOfCommons.p_min | Minimum steady-state output pressure |
| ThermofluidStream.Utilities.Units.Inertance | L_value | dropOfCommons.L | Inertance |
| Initialization › Mass flow rate | |||
| InitializationMethods | initM_flow (from SISOFlow) | ThermofluidStream.Utilities.Types.InitializationMethods.none | Initialization method for mass flow rate |
| SI.MassFlowRate | m_flow_0 (from SISOFlow) | 0 | Initial value for mass flow rate |
| Utilities.Units.MassFlowAcceleration | m_acceleration_0 (from SISOFlow) | 0 | Initial value for derivative of mass flow rate |
| Nozzle / Diffusor definition | |||
| Boolean | area_in_FromInput | false | = true, if input connector for inlet cross section area is enabled |
| SI.Area | A_in | 1 | Inlet cross-sectional area |
| Boolean | area_out_FromInput | false | = true, if input connector for outlet cross section area is enabled |
| SI.Area | A_out | 1 | Outlet cross-sectional area |
| Layout › Display parameters | |||
| Boolean | displayCompressibilityApproach | true | = true, if assumeConstantDensity is displayed |
| Boolean | displayInletArea | true | = true, if inlet area A_in is displayed |
| Boolean | displayOutletArea | true | = true, if outlet area A_out is displayed |
| Boolean | displayInertance | false | =true, if inertance L is displayed |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Inlet | inlet (from SISOFlow) | ||
| Outlet | outlet (from SISOFlow) | ||
| Modelica.Blocks.Interfaces.RealInput | A_in_var | Inlet cross-sectional area input connector [m2] | |
| Modelica.Blocks.Interfaces.RealInput | A_out_var | Outlet cross-sectional area input connector [m2] |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow (from SISOFlow) | inlet.m_flow | Mass flow rate |
| SI.Pressure | dr_corr (from SISOFlow) | Correction of inertial pressure difference | |
| SI.Pressure | dp (from SISOFlow) | Pressure difference | |
| Medium.AbsolutePressure | p_in (from SISOFlow) | Medium.pressure(inlet.state) | Inlet pressure |
| Medium.SpecificEnthalpy | h_in (from SISOFlow) | Medium.specificEnthalpy(inlet.state) | Inlet specific enthalpy |
| Medium.MassFraction[Medium.nXi] | Xi_in (from SISOFlow) | Medium.massFraction(inlet.state) | Inlet mass fractions |
| Medium.AbsolutePressure | p_out (from SISOFlow) | Outlet pressure | |
| Medium.SpecificEnthalpy | h_out (from SISOFlow) | Outlet specific enthalpy | |
| Medium.MassFraction[Medium.nXi] | Xi_out (from SISOFlow) | Outlet mass fractions |