modelSingleSensorX
Sensor for mass fraction
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus (Extend this to use 'dropOfCommons', 'instanceName', 'displayInstanceName' and 'displayParameters').
Information
Sensor for measuring mass fraction X. Which row from X to display can be selected by the row parameter.
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 |
| Integer | row | 1 | Row of meassured mass fraction |
| 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 | outputValue | false | = true, if sensor 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 | value_0 | Medium.X_default | Start value of mass fraction output |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Inlet | inlet | ||
| Modelica.Blocks.Interfaces.RealOutput[Medium.nX] | value_out | value | Mass fraction output connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real[Medium.nX] | value | Computed value of the selected quantity | |
| Real | display_value | value[row] | Row of the value vector to display |
Contents
| Name | Description |
|---|---|
| Medium model | |