modelMultiSensor_Tp
Temperature and pressure sensor
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus (Extend this to use 'dropOfCommons', 'instanceName', 'displayInstanceName' and 'displayParameters').
Information
Sensor for measuring temperature and pressure at once.
This sensor can be connected to a fluid stream 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 output is enabled |
| Boolean | outputPressure | false | = true, if pressure 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 output |
| Real | p_0 | 0 | Start value for pressure output |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Inlet | inlet | ||
| Modelica.Blocks.Interfaces.RealOutput | T_out | T | Temperature output connector |
| Modelica.Blocks.Interfaces.RealOutput | p_out | p | Pressure output connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | p | ||
| Real | T | ||
| Real | direct_p | ||
| Real | direct_T |
Contents
| Name | Description |
|---|---|
| Medium model |