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 |
---|---|
Pressure | Ideal pressure sensor |
Density | Ideal one port density sensor |
DensityTwoPort | Ideal two port density sensor |
Temperature | Ideal one port temperature sensor |
TemperatureTwoPort | Ideal two port 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 |
MassFractions | Ideal one port mass fraction sensor |
MassFractionsTwoPort | Ideal two port sensor for mass fraction |
TraceSubstances | Ideal one port trace substances sensor |
TraceSubstancesTwoPort | Ideal two port sensor for trace substance |
MassFlowRate | Ideal sensor for mass flow rate |
VolumeFlowRate | Ideal sensor for volume flow rate |
RelativePressure | Ideal relative pressure sensor |
RelativeTemperature | Ideal relative temperature sensor |
BaseClasses | Base classes used in the Sensors package (only of interest to build new component models) |
This component monitors the absolute pressure at its fluid port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
Name | Description |
---|---|
port | |
p | Pressure at port [Pa] |
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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
Name | Description |
---|---|
port | |
d | Density in port medium [kg/m3] |
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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
m_flow_nominal | Nominal value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
d | Density of the passing fluid [kg/m3] |
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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
Name | Description |
---|---|
port | |
T | Temperature in port medium [K] |
This component monitors the temperature of the passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
m_flow_nominal | Nominal value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
T | Temperature of the passing fluid [K] |
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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
Name | Description |
---|---|
port | |
h_out | Specific enthalpy in port medium [J/kg] |
This component monitors the specific enthalpy of a passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
m_flow_nominal | Nominal value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
h_out | Specific enthalpy of the passing fluid [J/kg] |
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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
Name | Description |
---|---|
port | |
s | Specific entropy in port medium [J/(kg.K)] |
This component monitors the specific entropy of the passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
m_flow_nominal | Nominal value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
s | Specific entropy of the passing fluid [J/(kg.K)] |
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), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
substanceName | Name of mass fraction |
Name | Description |
---|---|
port | |
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), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
substanceName | Name of mass fraction |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
m_flow_nominal | Nominal value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
substanceName | Name of trace substance |
Name | Description |
---|---|
port | |
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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
substanceName | Name of trace substance |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
m_flow_nominal | Nominal value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
m_flow_nominal | Nominal value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
m_flow | Mass flow rate from port_a to port_b [kg/s] |
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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
replaceable package Medium | Medium in the component |
Assumptions | |
allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Advanced | |
m_flow_nominal | Nominal value of m_flow = port_a.m_flow [kg/s] |
m_flow_small | Regularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Name | Description |
---|---|
port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
V_flow | Volume flow rate from port_a to port_b [m3/s] |
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 Sensors.BaseClasses.PartialRelativeSensor (Partial component to model a sensor that measures the difference between two potential variables).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
Name | Description |
---|---|
port_a | |
port_b | |
p_rel | Relative pressure signal [Pa] |
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 Sensors.BaseClasses.PartialRelativeSensor (Partial component to model a sensor that measures the difference between two potential variables).
Name | Description |
---|---|
replaceable package Medium | Medium in the sensor |
Name | Description |
---|---|
port_a | |
port_b | |
T_rel | Relative temperature signal [K] |