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 Content

NameDescription
Modelica.Fluid.Sensors.Pressure Pressure Ideal pressure sensor
Modelica.Fluid.Sensors.Density Density Ideal one port density sensor
Modelica.Fluid.Sensors.DensityTwoPort DensityTwoPort Ideal two port density sensor
Modelica.Fluid.Sensors.Temperature Temperature Ideal one port temperature sensor
Modelica.Fluid.Sensors.TemperatureTwoPort TemperatureTwoPort Ideal two port temperature sensor
Modelica.Fluid.Sensors.SpecificEnthalpy SpecificEnthalpy Ideal one port specific enthalpy sensor
Modelica.Fluid.Sensors.SpecificEnthalpyTwoPort SpecificEnthalpyTwoPort Ideal two port sensor for the specific enthalpy
Modelica.Fluid.Sensors.SpecificEntropy SpecificEntropy Ideal one port specific entropy sensor
Modelica.Fluid.Sensors.SpecificEntropyTwoPort SpecificEntropyTwoPort Ideal two port sensor for the specific entropy
Modelica.Fluid.Sensors.MassFractions MassFractions Ideal one port mass fraction sensor
Modelica.Fluid.Sensors.MassFractionsTwoPort MassFractionsTwoPort Ideal two port sensor for mass fraction
Modelica.Fluid.Sensors.TraceSubstances TraceSubstances Ideal one port trace substances sensor
Modelica.Fluid.Sensors.TraceSubstancesTwoPort TraceSubstancesTwoPort Ideal two port sensor for trace substance
Modelica.Fluid.Sensors.MassFlowRate MassFlowRate Ideal sensor for mass flow rate
Modelica.Fluid.Sensors.VolumeFlowRate VolumeFlowRate Ideal sensor for volume flow rate
Modelica.Fluid.Sensors.RelativePressure RelativePressure Ideal relative pressure sensor
Modelica.Fluid.Sensors.RelativeTemperature RelativeTemperature Ideal relative temperature sensor
Modelica.Fluid.Sensors.BaseClasses BaseClasses Base classes used in the Sensors package (only of interest to build new component models)

Modelica.Fluid.Sensors.Pressure 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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the sensor

Connectors

NameDescription
port 
pPressure at port [Pa]

Modelica.Fluid.Sensors.Density 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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the sensor

Connectors

NameDescription
port 
dDensity in port medium [kg/m3]

Modelica.Fluid.Sensors.DensityTwoPort 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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the component
Assumptions
allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
m_flow_nominalNominal value of m_flow = port_a.m_flow [kg/s]
m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s]

Connectors

NameDescription
port_aFluid connector a (positive design flow direction is from port_a to port_b)
port_bFluid connector b (positive design flow direction is from port_a to port_b)
dDensity of the passing fluid [kg/m3]

Modelica.Fluid.Sensors.Temperature 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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable).

Parameters

NameDescription
replaceable package MediumMedium in the sensor

Connectors

NameDescription
port 
TTemperature in port medium [K]

Modelica.Fluid.Sensors.TemperatureTwoPort 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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties).

Parameters

NameDescription
replaceable package MediumMedium in the component
Assumptions
allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
m_flow_nominalNominal value of m_flow = port_a.m_flow [kg/s]
m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s]

Connectors

NameDescription
port_aFluid connector a (positive design flow direction is from port_a to port_b)
port_bFluid connector b (positive design flow direction is from port_a to port_b)
TTemperature of the passing fluid [K]

Modelica.Fluid.Sensors.SpecificEnthalpy 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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the sensor

Connectors

NameDescription
port 
h_outSpecific enthalpy in port medium [J/kg]

Modelica.Fluid.Sensors.SpecificEnthalpyTwoPort 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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the component
Assumptions
allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
m_flow_nominalNominal value of m_flow = port_a.m_flow [kg/s]
m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s]

Connectors

NameDescription
port_aFluid connector a (positive design flow direction is from port_a to port_b)
port_bFluid connector b (positive design flow direction is from port_a to port_b)
h_outSpecific enthalpy of the passing fluid [J/kg]

Modelica.Fluid.Sensors.SpecificEntropy 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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the sensor

Connectors

NameDescription
port 
sSpecific entropy in port medium [J/(kg.K)]

Modelica.Fluid.Sensors.SpecificEntropyTwoPort 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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the component
Assumptions
allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
m_flow_nominalNominal value of m_flow = port_a.m_flow [kg/s]
m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s]

Connectors

NameDescription
port_aFluid connector a (positive design flow direction is from port_a to port_b)
port_bFluid connector b (positive design flow direction is from port_a to port_b)
sSpecific entropy of the passing fluid [J/(kg.K)]

Modelica.Fluid.Sensors.MassFractions 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), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the sensor
substanceNameName of mass fraction

Connectors

NameDescription
port 
XiMass fraction in port medium

Modelica.Fluid.Sensors.MassFractionsTwoPort 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), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the component
substanceNameName of mass fraction
Assumptions
allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
m_flow_nominalNominal value of m_flow = port_a.m_flow [kg/s]
m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s]

Connectors

NameDescription
port_aFluid connector a (positive design flow direction is from port_a to port_b)
port_bFluid connector b (positive design flow direction is from port_a to port_b)
XiMass fraction in port medium

Modelica.Fluid.Sensors.TraceSubstances 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 Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the sensor
substanceNameName of trace substance

Connectors

NameDescription
port 
CTrace substance in port medium

Modelica.Fluid.Sensors.TraceSubstancesTwoPort 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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the component
substanceNameName of trace substance
Assumptions
allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
m_flow_nominalNominal value of m_flow = port_a.m_flow [kg/s]
m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s]

Connectors

NameDescription
port_aFluid connector a (positive design flow direction is from port_a to port_b)
port_bFluid connector b (positive design flow direction is from port_a to port_b)
CTrace substance of the passing fluid

Modelica.Fluid.Sensors.MassFlowRate 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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the component
Assumptions
allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
m_flow_nominalNominal value of m_flow = port_a.m_flow [kg/s]
m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s]

Connectors

NameDescription
port_aFluid connector a (positive design flow direction is from port_a to port_b)
port_bFluid connector b (positive design flow direction is from port_a to port_b)
m_flowMass flow rate from port_a to port_b [kg/s]

Modelica.Fluid.Sensors.VolumeFlowRate 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 Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Parameters

NameDescription
replaceable package MediumMedium in the component
Assumptions
allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
m_flow_nominalNominal value of m_flow = port_a.m_flow [kg/s]
m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s]

Connectors

NameDescription
port_aFluid connector a (positive design flow direction is from port_a to port_b)
port_bFluid connector b (positive design flow direction is from port_a to port_b)
V_flowVolume flow rate from port_a to port_b [m3/s]

Modelica.Fluid.Sensors.RelativePressure 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 Sensors.BaseClasses.PartialRelativeSensor (Partial component to model a sensor that measures the difference between two potential variables).

Parameters

NameDescription
replaceable package MediumMedium in the sensor

Connectors

NameDescription
port_a 
port_b 
p_relRelative pressure signal [Pa]

Modelica.Fluid.Sensors.RelativeTemperature 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 Sensors.BaseClasses.PartialRelativeSensor (Partial component to model a sensor that measures the difference between two potential variables).

Parameters

NameDescription
replaceable package MediumMedium in the sensor

Connectors

NameDescription
port_a 
port_b 
T_relRelative temperature signal [K]

Automatically generated Mon Sep 23 17:20:49 2013.