Package Sensors consists of idealized sensor components that provide variables of a medium model and/or fluid ports as output signals. These signals can be, e.g., further processed with components of the Modelica.Blocks library. Also more realistic sensor models can be built, by further processing (e.g., by attaching block Modelica.Blocks.FirstOrder to model the time constant of the sensor).
For the thermodynamic state variables temperature, specific enthalpy, specific entropy and density the fluid library provides two different types of sensors: regular one port and two port sensors.
Modelica.Fluid.Examples.Explanatory.MeasuringTemperature demonstrates the differences between one- and two-port sensor at hand of a simple example.
Extends from Modelica.Icons.SensorsPackage
(Icon for packages containing sensors).
Name | Description |
---|---|
BaseClasses … | Base classes used in the Sensors package (only of interest to build new component models) |
Density | Ideal one port density sensor |
DensityTwoPort | Ideal two port density sensor |
MassFlowRate | Ideal sensor for mass flow rate |
MassFractions | Ideal one port mass fraction sensor |
MassFractionsTwoPort | Ideal two port sensor for mass fraction |
Pressure | Ideal pressure sensor |
RelativePressure | Ideal relative pressure sensor |
RelativeTemperature | Ideal relative temperature sensor |
SpecificEnthalpy | Ideal one port specific enthalpy sensor |
SpecificEnthalpyTwoPort | Ideal two port sensor for the specific enthalpy |
SpecificEntropy | Ideal one port specific entropy sensor |
SpecificEntropyTwoPort | Ideal two port sensor for the specific entropy |
Temperature | Ideal one port temperature sensor |
TemperatureTwoPort | Ideal two port temperature sensor |
TraceSubstances | Ideal one port trace substances sensor |
TraceSubstancesTwoPort | Ideal two port sensor for trace substance |
VolumeFlowRate | Ideal sensor for volume flow rate |
This component monitors the absolute pressure at its fluid port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor
(Partial component to model a sensor that measures a potential variable) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Description |
---|---|---|
FluidPort_a | port |   |
output RealOutput | p | Pressure at port |
This component monitors the density of the fluid passing its port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor
(Partial component to model a sensor that measures a potential variable) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Description |
---|---|---|
FluidPort_a | port |   |
output RealOutput | d | Density in port medium |
This component monitors the density of the fluid flowing from port_a to port_b. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor
(Partial component to model sensors that measure flow properties) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
MassFlowRate | m_flow_nominal | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
MassFlowRate | m_flow_small | if system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | d | Density of the passing fluid |
This component monitors the temperature of the fluid passing its port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor
(Partial component to model a sensor that measures a potential variable).
Type | Name | Description |
---|---|---|
FluidPort_a | port |   |
output RealOutput | T | Temperature in port medium |
This component monitors the temperature of the passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor
(Partial component to model sensors that measure flow properties).
Type | Name | Default | Description |
---|---|---|---|
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
MassFlowRate | m_flow_nominal | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
MassFlowRate | m_flow_small | if system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | T | Temperature of the passing fluid |
This component monitors the specific enthalpy of the fluid passing its port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor
(Partial component to model a sensor that measures a potential variable) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Description |
---|---|---|
FluidPort_a | port |   |
output RealOutput | h_out | Specific enthalpy in port medium |
This component monitors the specific enthalpy of a passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor
(Partial component to model sensors that measure flow properties) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
MassFlowRate | m_flow_nominal | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
MassFlowRate | m_flow_small | if system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | h_out | Specific enthalpy of the passing fluid |
This component monitors the specific entropy of the fluid passing its port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor
(Partial component to model a sensor that measures a potential variable) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Description |
---|---|---|
FluidPort_a | port |   |
output RealOutput | s | Specific entropy in port medium |
This component monitors the specific entropy of the passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor
(Partial component to model sensors that measure flow properties) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
MassFlowRate | m_flow_nominal | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
MassFlowRate | m_flow_small | if system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | s | Specific entropy of the passing fluid |
This component monitors the mass fraction contained in the fluid passing its port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor
(Partial component to model a sensor that measures a potential variable) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
String | substanceName | "water" | Name of mass fraction |
Type | Name | Description |
---|---|---|
FluidPort_a | port |   |
output RealOutput | Xi | Mass fraction in port medium |
This component monitors the mass fraction of the passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor
(Partial component to model sensors that measure flow properties) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
MassFlowRate | m_flow_nominal | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
MassFlowRate | m_flow_small | if system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
String | substanceName | "water" | Name of mass fraction |
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | Xi | Mass fraction in port medium |
This component monitors the trace substances contained in the fluid passing its port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor
(Partial component to model a sensor that measures a potential variable) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
String | substanceName | "CO2" | Name of trace substance |
Type | Name | Description |
---|---|---|
FluidPort_a | port |   |
output RealOutput | C | Trace substance in port medium |
This component monitors the trace substance of the passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor
(Partial component to model sensors that measure flow properties) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
MassFlowRate | m_flow_nominal | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
MassFlowRate | m_flow_small | if system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
String | substanceName | "CO2" | Name of trace substance |
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | C | Trace substance of the passing fluid |
This component monitors the mass flow rate flowing from port_a to port_b. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor
(Partial component to model sensors that measure flow properties) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
MassFlowRate | m_flow_nominal | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
MassFlowRate | m_flow_small | if system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | m_flow | Mass flow rate from port_a to port_b |
This component monitors the volume flow rate flowing from port_a to port_b. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor
(Partial component to model sensors that measure flow properties) and Modelica.Icons.RotationalSensor
(Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
MassFlowRate | m_flow_nominal | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
MassFlowRate | m_flow_small | if system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | V_flow | Volume flow rate from port_a to port_b |
The relative pressure "port_a.p - port_b.p" is determined between the two ports of this component and is provided as output signal. The sensor should be connected in parallel with other equipment, no flow through the sensor is allowed.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialRelativeSensor
(Partial component to model a sensor that measures the difference between two potential variables).
Type | Name | Description |
---|---|---|
FluidPort_a | port_a |   |
FluidPort_b | port_b |   |
output RealOutput | p_rel | Relative pressure signal |
The relative temperature "T(port_a) - T(port_b)" is determined between the two ports of this component and is provided as output signal. The sensor should be connected in parallel with other equipment, no flow through the sensor is allowed.
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialRelativeSensor
(Partial component to model a sensor that measures the difference between two potential variables).
Type | Name | Description |
---|---|---|
FluidPort_a | port_a |   |
FluidPort_b | port_b |   |
output RealOutput | T_rel | Relative temperature signal |
Generated 2018-12-12 12:13:28 EST by MapleSim.