modelpartialJunctionY

Duplicate of JunctionN considering dynamic effects

Extends from ThermofluidStream.Utilities.DropOfCommonsPlus (Extend this to use 'dropOfCommons', 'instanceName', 'displayInstanceName' and 'displayParameters').

Information

Extension of JunctionN. The inlets vector is replaced with two independent inlets and Bernuolli's principle (change of static pressure due to change of velocity dq) as well as pressure loss variables dp for each branch (pressure loss of branch and straight channel are computed in the extending model) are added.

Each inlet pressure p_in and the associated pressure changes dp and dq are added together and equated with the mixing pressure and the inertial pressure used by ThermofluidStream.

The other state properties mass fraction and specific enthalpy are massflow averaged and defined as outlet state quantities as well.

For implementation of other junction configurations it is suggested to copy the code and adjust the icon positioning as needed.

[P. Jordan; HTWG Konstanz; 01/24]

HTWG Konstanz

Parameters

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
BooleanassumeConstantDensitytrue= true, if mixture states are determined by mass flow rates
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Advanced
SI.MassFlowRatem_flow_epsdropOfCommons.m_flow_regRegularization threshold for small mass flows
ThermofluidStream.Utilities.Units.InertanceLdropOfCommons.LInertance on each Branch of Component

Connectors

TypeNameDefaultDescription
ThermofluidStream.Interfaces.OutletoutletOutlet
ThermofluidStream.Interfaces.Inletinlet_straightInlet A
ThermofluidStream.Interfaces.Inletinlet_branchingInlet B

Components

TypeNameDefaultDescription
Realw_straightRegularized weighting factor for specific enthalpy inlet straight
Realw_branchingRegularized weighting factor for specific enthalpy inlet branching
Medium.Densityrho_straightMedium.density(inlet_straight.state)Density at straight inlet
Medium.Densityrho_branchingMedium.density(inlet_branching.state)Density at branching inlet
Medium.Density[2]rho{rho_straight, rho_branching}Density at inlet [straight branching]
Real[2]w{w_straight, w_branching}Regularized weighting factor for specific enthalpy
Medium.AbsolutePressurep_in_straightMedium.pressure(inlet_straight.state)(steady mass-flow) pressure straight inlet
Medium.AbsolutePressurep_in_branchingMedium.pressure(inlet_branching.state)(steady mass-flow) pressure branching inlet
Medium.AbsolutePressurep_straightTotal pressure straight inlet
Medium.AbsolutePressurep_branchingTotal pressure branching inlet
Medium.AbsolutePressure[2]p{p_straight, p_branching}Total pressure inlets [straight branching]
SI.Pressuredq_straightDynamic pressure difference straight inlet - outlet
SI.Pressuredq_branchingDynamic pressure difference straight inlet - outlet
SI.Pressuredp_straightPressure difference straight inlet - outlet
SI.Pressuredp_branchingPressure difference branching inlet - outlet
SI.Pressure[2]dp{dp_straight, dp_branching}Pressure differences inlets [straight branching]
Medium.SpecificEnthalpyh_straightMedium.specificEnthalpy(inlet_straight.state)Specific enthapy inlet straight
Medium.SpecificEnthalpyh_branchingMedium.specificEnthalpy(inlet_branching.state)Specific enthapy inlet branching
Medium.SpecificEnthalpy[2]h{h_straight, h_branching}Specific enthapy inlets [straight branching]
Medium.SpecificEnthalpyh_mixOutlet specific enthalpy
Medium.MassFraction[Medium.nXi,2]XiMass factions inlets [straight branching]
Medium.MassFraction[Medium.nXi]Xi_mixMass fractions outlet
Medium.AbsolutePressurep_mixOutlet (steady mass-flow) pressure
SI.Pressurer_mixOutlet inertial pressure
SI.Velocityc_straightVelocity straight inlet
SI.Velocityc_branchingVelocity branching inlet
SI.Velocityc_mixVelocity outlet
Realw2_straightRegularized weighting factor for steady mass flow pressure (straight inlet)
Realw2_branchingRegularized weighting factor for steady mass flow pressure (branching inlet)
Real[2]w2{w2_straight, w2_branching}Regularized weighting factor for steady mass flow pressure [straight branching]
SI.Pressure[2]r_inInertal pressure inlet [straight branching]

Contents

NameDescription
MediumMedium model
mfk