Package Modelica.​Fluid.​Sensors
Ideal sensor components to extract signals from a fluid connector

Information

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).

Package Contents

NameDescription
BaseClassesBase classes used in the Sensors package (only of interest to build new component models)
DensityIdeal one port density sensor
DensityTwoPortIdeal two port density sensor
MassFlowRateIdeal sensor for mass flow rate
MassFractionsIdeal one port mass fraction sensor
MassFractionsTwoPortIdeal two port sensor for mass fraction
PressureIdeal pressure sensor
RelativePressureIdeal relative pressure sensor
RelativeTemperatureIdeal relative temperature sensor
SpecificEnthalpyIdeal one port specific enthalpy sensor
SpecificEnthalpyTwoPortIdeal two port sensor for the specific enthalpy
SpecificEntropyIdeal one port specific entropy sensor
SpecificEntropyTwoPortIdeal two port sensor for the specific entropy
TemperatureIdeal one port temperature sensor
TemperatureTwoPortIdeal two port temperature sensor
TraceSubstancesIdeal one port trace substances sensor
TraceSubstancesTwoPortIdeal two port sensor for trace substance
VolumeFlowRateIdeal sensor for volume flow rate

Model Modelica.​Fluid.​Sensors.​Pressure
Ideal pressure sensor

Information

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).

Connectors

TypeNameDescription
FluidPort_aport 
output RealOutputpPressure at port

Model Modelica.​Fluid.​Sensors.​Density
Ideal one port density sensor

Information

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).

Connectors

TypeNameDescription
FluidPort_aport 
output RealOutputdDensity in port medium

Model Modelica.​Fluid.​Sensors.​DensityTwoPort
Ideal two port density sensor

Information

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).

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalsystem.​allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
MassFlowRatem_flow_nominalsystem.​m_flow_nominalNominal value of m_flow = port_a.m_flow
MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)

Connectors

TypeNameDescription
FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
FluidPort_bport_bFluid connector b (positive design flow direction is from port_a to port_b)
output RealOutputdDensity of the passing fluid

Model Modelica.​Fluid.​Sensors.​Temperature
Ideal one port temperature sensor

Information

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).

Connectors

TypeNameDescription
FluidPort_aport 
output RealOutputTTemperature in port medium

Model Modelica.​Fluid.​Sensors.​TemperatureTwoPort
Ideal two port temperature sensor

Information

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).

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalsystem.​allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
MassFlowRatem_flow_nominalsystem.​m_flow_nominalNominal value of m_flow = port_a.m_flow
MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)

Connectors

TypeNameDescription
FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
FluidPort_bport_bFluid connector b (positive design flow direction is from port_a to port_b)
output RealOutputTTemperature of the passing fluid

Model Modelica.​Fluid.​Sensors.​SpecificEnthalpy
Ideal one port specific enthalpy sensor

Information

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).

Connectors

TypeNameDescription
FluidPort_aport 
output RealOutputh_outSpecific enthalpy in port medium

Model Modelica.​Fluid.​Sensors.​SpecificEnthalpyTwoPort
Ideal two port sensor for the specific enthalpy

Information

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).

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalsystem.​allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
MassFlowRatem_flow_nominalsystem.​m_flow_nominalNominal value of m_flow = port_a.m_flow
MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)

Connectors

TypeNameDescription
FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
FluidPort_bport_bFluid connector b (positive design flow direction is from port_a to port_b)
output RealOutputh_outSpecific enthalpy of the passing fluid

Model Modelica.​Fluid.​Sensors.​SpecificEntropy
Ideal one port specific entropy sensor

Information

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).

Connectors

TypeNameDescription
FluidPort_aport 
output RealOutputsSpecific entropy in port medium

Model Modelica.​Fluid.​Sensors.​SpecificEntropyTwoPort
Ideal two port sensor for the specific entropy

Information

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).

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalsystem.​allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
MassFlowRatem_flow_nominalsystem.​m_flow_nominalNominal value of m_flow = port_a.m_flow
MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)

Connectors

TypeNameDescription
FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
FluidPort_bport_bFluid connector b (positive design flow direction is from port_a to port_b)
output RealOutputsSpecific entropy of the passing fluid

Model Modelica.​Fluid.​Sensors.​MassFractions
Ideal one port mass fraction sensor

Information

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).

Parameters

TypeNameDefaultDescription
StringsubstanceName"water"Name of mass fraction

Connectors

TypeNameDescription
FluidPort_aport 
output RealOutputXiMass fraction in port medium

Model Modelica.​Fluid.​Sensors.​MassFractionsTwoPort
Ideal two port sensor for mass fraction

Information

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).

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalsystem.​allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
MassFlowRatem_flow_nominalsystem.​m_flow_nominalNominal value of m_flow = port_a.m_flow
MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)
StringsubstanceName"water"Name of mass fraction

Connectors

TypeNameDescription
FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
FluidPort_bport_bFluid connector b (positive design flow direction is from port_a to port_b)
output RealOutputXiMass fraction in port medium

Model Modelica.​Fluid.​Sensors.​TraceSubstances
Ideal one port trace substances sensor

Information

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).

Parameters

TypeNameDefaultDescription
StringsubstanceName"CO2"Name of trace substance

Connectors

TypeNameDescription
FluidPort_aport 
output RealOutputCTrace substance in port medium

Model Modelica.​Fluid.​Sensors.​TraceSubstancesTwoPort
Ideal two port sensor for trace substance

Information

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).

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalsystem.​allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
MassFlowRatem_flow_nominalsystem.​m_flow_nominalNominal value of m_flow = port_a.m_flow
MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)
StringsubstanceName"CO2"Name of trace substance

Connectors

TypeNameDescription
FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
FluidPort_bport_bFluid connector b (positive design flow direction is from port_a to port_b)
output RealOutputCTrace substance of the passing fluid

Model Modelica.​Fluid.​Sensors.​MassFlowRate
Ideal sensor for mass flow rate

Information

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).

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalsystem.​allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
MassFlowRatem_flow_nominalsystem.​m_flow_nominalNominal value of m_flow = port_a.m_flow
MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)

Connectors

TypeNameDescription
FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
FluidPort_bport_bFluid connector b (positive design flow direction is from port_a to port_b)
output RealOutputm_flowMass flow rate from port_a to port_b

Model Modelica.​Fluid.​Sensors.​VolumeFlowRate
Ideal sensor for volume flow rate

Information

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).

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalsystem.​allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
MassFlowRatem_flow_nominalsystem.​m_flow_nominalNominal value of m_flow = port_a.m_flow
MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow * m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)

Connectors

TypeNameDescription
FluidPort_aport_aFluid connector a (positive design flow direction is from port_a to port_b)
FluidPort_bport_bFluid connector b (positive design flow direction is from port_a to port_b)
output RealOutputV_flowVolume flow rate from port_a to port_b

Model Modelica.​Fluid.​Sensors.​RelativePressure
Ideal relative pressure sensor

Information

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).

Connectors

TypeNameDescription
FluidPort_aport_a 
FluidPort_bport_b 
output RealOutputp_relRelative pressure signal

Model Modelica.​Fluid.​Sensors.​RelativeTemperature
Ideal relative temperature sensor

Information

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).

Connectors

TypeNameDescription
FluidPort_aport_a 
FluidPort_bport_b 
output RealOutputT_relRelative temperature signal

Generated 2018-12-12 12:13:28 EST by MapleSim.