modelpartialJunctionY
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]
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| Boolean | assumeConstantDensity | true | = true, if mixture states are determined by mass flow rates |
| 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 | |||
| SI.MassFlowRate | m_flow_eps | dropOfCommons.m_flow_reg | Regularization threshold for small mass flows |
| ThermofluidStream.Utilities.Units.Inertance | L | dropOfCommons.L | Inertance on each Branch of Component |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.Interfaces.Outlet | outlet | Outlet | |
| ThermofluidStream.Interfaces.Inlet | inlet_straight | Inlet A | |
| ThermofluidStream.Interfaces.Inlet | inlet_branching | Inlet B |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | w_straight | Regularized weighting factor for specific enthalpy inlet straight | |
| Real | w_branching | Regularized weighting factor for specific enthalpy inlet branching | |
| Medium.Density | rho_straight | Medium.density(inlet_straight.state) | Density at straight inlet |
| Medium.Density | rho_branching | Medium.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.AbsolutePressure | p_in_straight | Medium.pressure(inlet_straight.state) | (steady mass-flow) pressure straight inlet |
| Medium.AbsolutePressure | p_in_branching | Medium.pressure(inlet_branching.state) | (steady mass-flow) pressure branching inlet |
| Medium.AbsolutePressure | p_straight | Total pressure straight inlet | |
| Medium.AbsolutePressure | p_branching | Total pressure branching inlet | |
| Medium.AbsolutePressure[2] | p | {p_straight, p_branching} | Total pressure inlets [straight branching] |
| SI.Pressure | dq_straight | Dynamic pressure difference straight inlet - outlet | |
| SI.Pressure | dq_branching | Dynamic pressure difference straight inlet - outlet | |
| SI.Pressure | dp_straight | Pressure difference straight inlet - outlet | |
| SI.Pressure | dp_branching | Pressure difference branching inlet - outlet | |
| SI.Pressure[2] | dp | {dp_straight, dp_branching} | Pressure differences inlets [straight branching] |
| Medium.SpecificEnthalpy | h_straight | Medium.specificEnthalpy(inlet_straight.state) | Specific enthapy inlet straight |
| Medium.SpecificEnthalpy | h_branching | Medium.specificEnthalpy(inlet_branching.state) | Specific enthapy inlet branching |
| Medium.SpecificEnthalpy[2] | h | {h_straight, h_branching} | Specific enthapy inlets [straight branching] |
| Medium.SpecificEnthalpy | h_mix | Outlet specific enthalpy | |
| Medium.MassFraction[Medium.nXi,2] | Xi | Mass factions inlets [straight branching] | |
| Medium.MassFraction[Medium.nXi] | Xi_mix | Mass fractions outlet | |
| Medium.AbsolutePressure | p_mix | Outlet (steady mass-flow) pressure | |
| SI.Pressure | r_mix | Outlet inertial pressure | |
| SI.Velocity | c_straight | Velocity straight inlet | |
| SI.Velocity | c_branching | Velocity branching inlet | |
| SI.Velocity | c_mix | Velocity outlet | |
| Real | w2_straight | Regularized weighting factor for steady mass flow pressure (straight inlet) | |
| Real | w2_branching | Regularized 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_in | Inertal pressure inlet [straight branching] |
Contents
| Name | Description |
|---|---|
| Medium model | |