modelDifferenceSensor_Tp
Sensor for Temperature and pressure difference
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.
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 |
|---|---|---|---|
| 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" | |
| 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 |
Components
| 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 |
| Real | p | ||
| Real | T |
Contents
| Name | Description |
|---|---|
| MediumA | Medium model A |
| MediumB | Medium model B |