modelCreateState
Create state signal as output
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.
Information
Create a Thermodynamic state signal from T,p,Xi.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | displayP | displayPressure and not PFromInput | |
| Boolean | displayT | displayTemperature and not TFromInput and not setEnthalpy | |
| String | displayPos1 | if displayP then "p = %p_par" elseif displayT then "T = %T_par" else "" | |
| String | displayPos2 | if displayP and displayT then "T = %T_par" else "" | |
| Pressure | |||
| Boolean | PFromInput | false | = true, if pressure input connector is enabled |
| Medium.AbsolutePressure | p_par | Medium.p_default | Pressure set value |
| Temperature | |||
| Boolean | TFromInput | false | = true, if temperature input connector is enabled |
| Medium.Temperature | T_par | Medium.T_default | Temperature set value |
| Mass fractions | |||
| Boolean | XiFromInput | false | = true, if mass fractions input connector is enabled |
| Medium.MassFraction[Medium.nXi] | Xi_par | Medium.X_default[1:Medium.nXi] | Mass fraction set value |
| Specific enthalpy | |||
| Boolean | setEnthalpy | false | = true to set specific enthalpy, (= false to set temperature) |
| Boolean | hFromInput | 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 |
| Layout › Display parameters | |||
| Boolean | displayPressure | true | = true to display the pressure set value p_par |
| Boolean | displayTemperature | true | = true to display the temperature set value T_par |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.StateOutput | y | ||
| Modelica.Blocks.Interfaces.RealInput | p_inp | Input for pressure [Pa] | |
| Modelica.Blocks.Interfaces.RealInput | T_inp | Input for Temperature [K] | |
| Modelica.Blocks.Interfaces.RealInput | h0_var | Enthalpy input connector [J/kg] | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nXi] | Xi_inp | Vector input for Mass fraction [kg/kg] |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |