modelMultiSensor_Tpm
Undirected sensor for Temperature, pressure and mass flow rate
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.
Information
Undirected sensor for temperature, pressure and mass-flow. Units can be selected.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.Sensors.Internal.Types.TemperatureUnit | temperatureUnit | "K" | Temperature unit (display and output) |
| ThermofluidStream.Sensors.Internal.Types.PressureUnit | pressureUnit | "Pa" | Pressure unit (display and output) |
| ThermofluidStream.Sensors.Internal.Types.MassFlowUnit | massFlowUnit | "(kg/s)" | Mass flow rate unit (display and output) |
| String | temperatureString | if temperatureUnit == "K" then "K" elseif temperatureUnit == "degC" then "°C" else "error" | |
| String | massFlowString | if massFlowUnit == "(kg/s)" then "kg/s" elseif massFlowUnit == "(g/s)" then "g/s" else "error" | |
| Sensor display | |||
| Integer | digits | 3 | Number of significant digits to be displayed |
| Advanced › Regularization | |||
| SI.MassFlowRate | m_flow_reg | dropOfCommons.m_flow_reg | Regularization threshold of mass flow rate |
| Output | |||
| Boolean | outputTemperature | false | = true, if temperature output is enabled |
| Boolean | outputPressure | false | = true, if pressure output is enabled |
| Boolean | outputMassFlowRate | false | = true, if mass flow rate 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 |
| Real | m_flow_0 | 0 | Start value for mass flow rate output |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Rear | rear | ||
| Interfaces.Fore | fore | ||
| Medium.ThermodynamicState | state | Medium.setState_phX(p_reg, h_reg, Xi_reg) | |
| Modelica.Blocks.Interfaces.RealOutput | T_out | T | Temperature output connector |
| Modelica.Blocks.Interfaces.RealOutput | p_out | p | Pressure output connector |
| Modelica.Blocks.Interfaces.RealOutput | m_flow_out | m_flow | Mass flow rate output connector |
| Real | p | ||
| Real | T | ||
| Real | m_flow |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |