modelDynamicPressureInflow

Extension of (p,T) source to (p,T,velocity)

Extends from Interfaces.SISOFlow (Base Model with basic flow eqautions for SISO).

Information

This inflow boundary is supposed to start an area of the model where dynamic pressure is taken into account. The area is ended with DynamicPressureOutflows.

Components that take dynamic pressure into account (marked with green symbols) should only be used in areas surrounded by DynamicPressureInflows and DynamicPressureOutflows.

The components input velocity can be set to a fixed value or given by a signal. From this reference inflow velocity the medium is accelerated to fit the outflow velocity, that is computed by the area of the component. The sign of the velocity is defined to match the sign of the mass-flow rate at the inlet.

The pressure difference resulting from the velocity difference is based on the total pressure balance, implicitly assuming a nozzle/diffusor of suitable area ratio. When the sign of the velocity does not match the sign of the mass-flow rate, this assumption cannot be upheld. The model then extrapolates the dynamic pressure difference in order to maintain a stable and well-natured behavior but its validity is lost.

The area can be set to a fixed value or given by a signal, representing a variable-area inlet.

By default, the density is assumed to be constant across the component and only the inlet density is used for the calculation of the velocity. This assumption can be reverted by setting assumeConstantDensity = false. This will lead to a non-linear equation system of size 1, as the outlet velocity is calculated based on the outlet density.

Parameters

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
BooleanassumeConstantDensitytrue= true, if incompressibility is assumed (use '= false' for Ma > 0.3)
Booleandv_indisplayParameters and not velocityFromInput and displayInletVelocityDisplay inlet velocity
BooleandisplayAdisplayParameters and displayOutletArea and not areaFromInputDisplay outlet cross section area
StringcompressibilityStringif assumeConstantDensity then "incompressible" else "compressible"
StringdisplayPos1if displayCompressibilityApproach then compressibilityString elseif displayA then "A_out = %A_par" elseif displayInertance then "L = %L" else ""
StringdisplayPos2if displayCompressibilityApproach and displayA then "A_out = %A_par" elseif displayInertance and not displayPos1 == "L = %L" then "L = %L" else ""
StringdisplayPos3if displayCompressibilityApproach and displayA and displayInertance then "L = %L" else ""
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Advanced
BooleanconsiderInertance (from SISOFlow)dropOfCommons.considerInertance=true, if transient momentum (inertance) term is considered; disable only for advanced use
Utilities.Units.InertanceL (from SISOFlow)dropOfCommons.LInertance
StateSelectm_flowStateSelect (from SISOFlow)StateSelect.defaultState selection for mass flow rate
Booleanclip_p_out (from SISOFlow)= false, if dr_corr=0 (correction of inertial pressure difference)
Medium.AbsolutePressurep_min (from SISOFlow)dropOfCommons.p_minMinimum steady-state output pressure
Initialization › Mass flow rate
InitializationMethodsinitM_flow (from SISOFlow)ThermofluidStream.Utilities.Types.InitializationMethods.noneInitialization method for mass flow rate
SI.MassFlowRatem_flow_0 (from SISOFlow)0Initial value for mass flow rate
Utilities.Units.MassFlowAccelerationm_acceleration_0 (from SISOFlow)0Initial value for derivative of mass flow rate
Nozzle / Diffusor definition
BooleanvelocityFromInputfalse= true, if input connector for outlet velocity is enabled
SI.Velocityv_in_par0Inlet velocity
BooleanareaFromInputfalse= true, if input connector for cross section area is enabled
SI.AreaA_par1Outlet cross-section area
Advanced › Regularization
BooleanextrapolateQuadraticfalse= true, if extrapolating negative velocities purely quadratic
SI.MassFlowRatem_flow_regdropOfCommons.m_flow_regRegularization threshold of mass flow rate
Layout › Display parameters
BooleandisplayCompressibilityApproachtrue= true, if assumeConstantDensity is displayed
BooleandisplayInletVelocitytrue= true, if inlet velocity v_in_par is displayed
BooleandisplayOutletAreatrue= true, if outlet cross section area A_par is displayed
BooleandisplayInertancefalse= true, if inertance L is displayed

Connectors

TypeNameDefaultDescription
Inletinlet (from SISOFlow)
Outletoutlet (from SISOFlow)
Modelica.Blocks.Interfaces.RealInputA_varOutlet cross section area input connector [m2]
Modelica.Blocks.Interfaces.RealInputv_in_varInlet velocity input connector [m/s]

Components

TypeNameDefaultDescription
SI.MassFlowRatem_flow (from SISOFlow)inlet.m_flowMass flow rate
SI.Pressuredr_corr (from SISOFlow)Correction of inertial pressure difference
SI.Pressuredp (from SISOFlow)Pressure difference
Medium.AbsolutePressurep_in (from SISOFlow)Medium.pressure(inlet.state)Inlet pressure
Medium.SpecificEnthalpyh_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.AbsolutePressurep_out (from SISOFlow)Outlet pressure
Medium.SpecificEnthalpyh_out (from SISOFlow)Outlet specific enthalpy
Medium.MassFraction[Medium.nXi]Xi_out (from SISOFlow)Outlet mass fractions