modelSource
Source (p,T,Xi) or (p,h,Xi)
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.
Information
Source of a Thermofluid Stream. The state can be given as fix values or as a real signal.
Before its inertance the source has an inertial pressure of 0 by definition.
considerInertance
For the parameter considerInertance, refer to Idealized.UsersGuide.InertanceNeglect.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | displayP | displayPressure and not pressureFromInput | |
| Boolean | displayT | displayTemperature and not temperatureFromInput and not setEnthalpy | |
| Boolean | displayH | displayTemperature and not enthalpyFromInput and setEnthalpy | |
| Boolean | displayXi | displayMassFractions and not xiFromInput | |
| String | displayPos1 | if displayP then "p = %p0_par" elseif displayT then "T = %T0_par" elseif displayH then "h = %h0_par" elseif displayXi then "Xi = %Xi0_par" elseif displayInertance then "L = %L" else "" | |
| String | displayPos2 | if displayP and displayT then "T = %T0_par" elseif displayP and displayH then "h = %h0_par" elseif displayXi and (displayP or displayT or displayH) then "Xi = %Xi0_par" elseif displayInertance and (displayP or displayT or displayH or displayXi) then "L = %L" else "" | |
| String | displayPos3 | if displayXi and displayP and (displayT or displayH) then "Xi = %Xi0_par" elseif displayInertance and not displayPos2 == "L = %L" and not displayPos1 == "L = %L" then "L = %L" else "" | |
| String | displayPos4 | if displayP and (displayT or displayH) and displayXi 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, if specific enthalpy is set, (= 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 | |||
| Boolean | considerInertance | dropOfCommons.considerInertance | =true, if transient momentum (inertance) term is considered; disable only for advanced use |
| Utilities.Units.Inertance | L | dropOfCommons.L | Inertance |
| Layout › Display parameters | |||
| Boolean | displayPressure | true | = true, if pressure p0_par is displayed |
| Boolean | displayTemperature | true | = true, if temperature T0_par or specific enthalpy h0_par is displayed |
| Boolean | displayMassFractions | false | = true, if mass fractions Xi0_par are 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 [J/kg] | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nXi] | xi_var | Mass fractions connector [kg/kg] | |
| Interfaces.Outlet | outlet |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |
Revisions
-
Mai 2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Added theconsiderInertanceparameter, including conditional visual highlighting on the icon layer when it is set to false.