modelBoundaryFore
Generic Boundary model (may act as source or sink)
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.
Information
A undirected boundary that can act as source and sink, depending on the rest of the system. The Boundary_fore has to be connected to the fore end of your model and therefore has a rear port.
At positive massflow the rear port acts as an inlet and therefore the boundary_fore is a sink.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | displayP | displayPressure and not pressureFromInput | |
| Boolean | displayT | displayTemperature and not temperatureFromInput and not setEnthalpy | |
| String | displayPos1 | if displayP then "p = %p0_par" elseif displayT then "T = %T0_par" elseif displayInertance then "L = %L" else "" | |
| String | displayPos2 | if displayP and displayT then "T = %T0_par" elseif displayInertance and (displayP or displayT) then "L = %L" else "" | |
| String | displayPos3 | if displayP and displayT and displayInertance then "L = %L" else "" | |
| Pressure | |||
| Boolean | pressureFromInput | false | = true, if pressure input connector is enabled |
| Medium.AbsolutePressure | p0_par | Medium.p_default | Pressure set value |
| Temperature | |||
| Boolean | temperatureFromInput | false | = true, if temperature input connector is enabled |
| Medium.Temperature | T0_par | Medium.T_default | Temperature set value |
| Mass fractions | |||
| Boolean | xiFromInput | false | = true, if mass fractions input connector is enabled |
| Medium.MassFraction[Medium.nXi] | Xi0_par | Medium.X_default[1:Medium.nXi] | Mass fractions set value |
| Specific enthalpy | |||
| Boolean | setEnthalpy | false | = true to set specific enthalpy, (= false to set temperature) |
| Boolean | enthalpyFromInput | false | = true, if specific enthalpy input connector is enabled |
| Medium.SpecificEnthalpy | h0_par | Medium.h_default | Specific enthalpy set value |
| Advanced | |||
| Utilities.Units.Inertance | L | dropOfCommons.L | Inertance |
| SI.MassFlowRate | m_flow_reg | dropOfCommons.m_flow_reg | Regularization threshold of mass flow rate |
| Layout › Display parameters | |||
| Boolean | displayPressure | true | = true, if pressure p0_par is displayed |
| Boolean | displayTemperature | true | = true, if temperature T0_par is displayed |
| Boolean | displayInertance | false | = true, if inertance L is displayed |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | p0_var | Pressure input connector [Pa] | |
| Modelica.Blocks.Interfaces.RealInput | T0_var | Temperature input connector [K] | |
| Modelica.Blocks.Interfaces.RealInput | h0_var | Enthalpy input connector | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nXi] | xi_var | Mass fraction connector [kg/kg] | |
| Interfaces.Rear | rear |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |