modelDifferenceSensor_Tp
Sensor for Temperature and pressure difference
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus (Extend this to use 'dropOfCommons', 'instanceName', 'displayInstanceName' and 'displayParameters').
Information
Sensor for measuring difference in temperature and pressure at once.
This sensor can be connected to two fluid streams without a junction.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| Integer | digits | 3 | Number of significant digits to be displayed |
| ThermofluidStream.Sensors.Internal.Types.TemperatureUnit | temperatureUnit | "K" | Temperature unit (display and output) |
| ThermofluidStream.Sensors.Internal.Types.PressureUnit | pressureUnit | "Pa" | Pressure unit (display and output) |
| String | temperatureString | if temperatureUnit == "K" then "K" elseif temperatureUnit == "degC" then "°C" else "error" | |
| 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 |
| Output | |||
| Boolean | outputTemperature | false | =true, if temperature difference output is enabled |
| Boolean | outputPressure | false | =true, if pressure difference output is enabled |
| Boolean | filter_output | false | = true, if sensor output is filtered (to break algebraic loops) |
| SI.Time | TC | 0.1 | Time constant of sensor output filter (PT1) |
| InitMode | init | InitMode.steadyState | Initialization mode for sensor output |
| Real | T_0 | 0 | Start value for temperature difference output |
| Real | p_0 | 0 | Start value for pressure difference output |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Inlet | inletA | ||
| Interfaces.Inlet | inletB | ||
| Modelica.Blocks.Interfaces.RealOutput | T_out | T | Temperature difference output connector |
| Modelica.Blocks.Interfaces.RealOutput | p_out | p | Pressure difference output connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | p | ||
| Real | T |
Contents
| Name | Description |
|---|---|
| Medium model A | |
| Medium model B |