Package with sensor models
Package Sensors
consists of idealized sensor components that
provide variables of a medium as
output signals. These signals can be, e.g., further processed
with components of the
Modelica.Blocks
library.
Extends from Modelica.Icons.SensorsPackage (Icon for packages containing sensors).
Name | Description |
---|---|
UsersGuide | User's Guide |
Conversions | Package with conversions for sensor models |
Density | Ideal one port density sensor |
DensityTwoPort | Ideal two port density sensor |
EnthalpyFlowRate | Ideal enthalphy flow rate sensor |
LatentEnthalpyFlowRate | Ideal enthalphy flow rate sensor that outputs the latent enthalpy flow rate only |
MassFlowRate | Ideal sensor for mass flow rate |
MassFraction | Ideal one port mass fraction sensor |
MassFractionTwoPort | Ideal two port mass fraction sensor |
Pressure | Ideal pressure sensor |
RelativeHumidity | Ideal one port relative humidity sensor |
RelativeHumidityTwoPort | Ideal two port relative humidity sensor |
RelativePressure | Ideal relative pressure sensor |
RelativeTemperature | Ideal relative temperature sensor |
SensibleEnthalpyFlowRate | Ideal enthalphy flow rate sensor that outputs the sensible enthalpy flow rate only |
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 |
TemperatureWetBulbTwoPort | Ideal wet bulb temperature sensor |
TraceSubstances | Ideal one port trace substances sensor |
TraceSubstancesTwoPort | Ideal two port sensor for trace substance |
VolumeFlowRate | Ideal sensor for volume flow rate |
Examples | Collection of models that illustrate model use and test models |
BaseClasses | Package with base classes for Buildings.Fluid.Sensors |
Ideal one port density sensor
This model outputs the density of the fluid connected to its port. The sensor is ideal, i.e. it does not influence the fluid.
Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model with one fluid port.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the sensor |
Type | Name | Description |
---|---|---|
FluidPort_a | port | |
output RealOutput | d | Density in port medium [kg/m3] |
Ideal two port density sensor
This model outputs the density of the fluid flowing from
port_a
to port_b
.
The sensor is ideal, i.e., it does not influence the fluid.
If the parameter tau
is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
Density | d_start | Medium.density(state=Medium.... | Initial or guess value of output (=state) [kg/m3] |
Temperature | T_start | Medium.T_default | Temperature used to compute d_start [K] |
Pressure | p_start | Medium.p_default | Pressure used to compute d_start [Pa] |
MassFraction | X_start[Medium.nX] | Medium.X_default | Mass fraction used to compute d_start [1] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 [kg/m3] |
Ideal enthalphy flow rate sensor
This model outputs the enthalphy flow rate of the medium in the flow between fluid ports. The sensor is ideal, i.e., it does not influence the fluid.
If the parameter tau
is non-zero, then the measured
specific enthalpy hout that is used to
compute the enthalpy flow rate
Ḣ = ṁ hout
is computed using a first order differential equation.
See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
For a sensor that measures the latent enthalpy flow rate, use Buildings.Fluid.Sensors.LatentEnthalpyFlowRate.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
SpecificEnthalpy | h_out_start | Medium.specificEnthalpy_pTX(... | Initial or guess value of measured specific enthalpy [J/kg] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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_flow | Enthalpy flow rate, positive if from port_a to port_b [W] |
Ideal enthalphy flow rate sensor that outputs the latent enthalpy flow rate only
This model outputs the latent enthalphy flow rate of the medium in the flow between its fluid ports. In particular, if the total enthalpy flow rate is
Ḣtot = Ḣsen + Ḣlat,
where Ḣsen = ṁ (1-Xw) cp,air, then this sensor outputs Ḣ = Ḣlat.
If the parameter tau
is non-zero, then the measured
specific latent enthalpy hout that is used to
compute the latent enthalpy flow rate
Ḣlat = ṁ hout
is computed using a first order differential equation.
See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
For a sensor that measures
Ḣtot, use
Buildings.Fluid.Sensors.EnthalpyFlowRate.
For a sensor that measures
Ḣsen, use
Buildings.Fluid.Sensors.SensibleEnthalpyFlowRate.
The sensor is ideal, i.e., it does not influence the fluid.
The sensor can only be used with medium models that implement the function
enthalpyOfNonCondensingGas(T)
.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Buildings.Fluid.BaseClasses.IndexMassFraction (Computes the index of a substance in the mass fraction vector Xi), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
String | substanceName | "water" | Name of species substance |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
SpecificEnthalpy | h_out_start | Medium.specificEnthalpy_pTX(... | Initial or guess value of measured specific latent enthalpy [J/kg] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the component | |
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_flow | Latent enthalpy flow rate, positive if from port_a to port_b [W] |
Ideal sensor for mass flow rate
This model outputs 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 Buildings.Fluid.Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Nominal condition | |||
MassFlowRate | m_flow_nominal | 0 | Nominal mass flow rate, used for regularization near zero flow [kg/s] |
Advanced | |||
MassFlowRate | m_flow_small | 0 | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 [kg/s] |
Ideal one port mass fraction sensor
This model outputs the mass fraction of the fluid connected to its port. The sensor is ideal, i.e., it does not influence the fluid.
Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model with one fluid port.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Buildings.Fluid.BaseClasses.IndexMassFraction (Computes the index of a substance in the mass fraction vector Xi), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the sensor | |
String | substanceName | "water" | Name of species substance |
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the sensor | |
FluidPort_a | port | |
output RealOutput | X | Mass fraction in port [1] |
Ideal two port mass fraction sensor
This model outputs the mass fraction of the passing fluid.
The sensor is ideal, i.e. it does not influence the fluid.
If the parameter tau
is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Buildings.Fluid.BaseClasses.IndexMassFraction (Computes the index of a substance in the mass fraction vector Xi), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
String | substanceName | "water" | Name of species substance |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
MassFraction | X_start | Medium.X_default[i_x] | Initial or guess value of output (= state) [kg/kg] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the component | |
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 | X | Mass fraction of the passing fluid [1] |
Ideal pressure sensor
This model outputs the absolute pressure of the fluid connected to its port. The sensor is ideal, i.e., it does not influence the fluid.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the sensor |
Type | Name | Description |
---|---|---|
FluidPort_a | port | |
output RealOutput | p | Pressure at port [Pa] |
Ideal one port relative humidity sensor
This model outputs the relative humidity of the fluid connected to its port. The sensor is ideal, i.e. it does not influence the fluid.
Note that this sensor can only be used with media that contain the variable phi
,
which is typically the case for moist air models.
Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model with one fluid port.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the sensor |
Type | Name | Description |
---|---|---|
FluidPort_a | port | |
output RealOutput | phi | Relative humidity in port medium [1] |
Ideal two port relative humidity sensor
This model outputs the relative humidity of the fluid flowing from
port_a
to port_b
.
The sensor is ideal, i.e., it does not influence the fluid.
Note that this sensor can only be used with media that contain the variable phi
,
which is typically the case for moist air models.
If the parameter tau
is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
Real | phi_start | 0.5 | Initial or guess value of output (= state) [1] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 | phi | Relative humidity of the passing fluid [1] |
Ideal relative pressure sensor
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.Icons.TranslationalSensor (Icon representing a linear measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | Modelica.Media.Interfaces.Pa... | Medium in the sensor |
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the sensor | |
FluidPort_a | port_a | Fluid connector of stream a |
FluidPort_b | port_b | Fluid connector of stream b |
output RealOutput | p_rel | Relative pressure of port_a minus port_b [Pa] |
Ideal relative temperature sensor
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.
There is no flow through the sensor.
Note that this sensor should only be connected to fluid volumes, such as Buildings.Fluid.MixingVolumes.MixingVolume. Otherwise, numerical problems may occur if one of the mass flow rates are close to zero. See Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Modelica.Icons.TranslationalSensor (Icon representing a linear measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | Modelica.Media.Interfaces.Pa... | Medium in the sensor |
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the sensor | |
FluidPort_a | port_a | Fluid connector of stream a |
FluidPort_b | port_b | Fluid connector of stream b |
output RealOutput | T_rel | Temperature difference of port_a minus port_b [K] |
Ideal enthalphy flow rate sensor that outputs the sensible enthalpy flow rate only
This model outputs the sensible enthalphy flow rate of the medium in the flow between its fluid ports. In particular, if the total enthalpy flow rate is
Ḣtot = Ḣsen + Ḣlat,
where Ḣsen = ṁ (1-Xw) cp,air, then this sensor outputs Ḣ = Ḣsen.
If the parameter tau
is non-zero, then the measured
specific sensible enthalpy hout that is used to
compute the sensible enthalpy flow rate
Ḣsen = ṁ hout
is computed using a first order differential equation.
See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
For a sensor that measures
Ḣtot, use
Buildings.Fluid.Sensors.EnthalpyFlowRate.
For a sensor that measures
Ḣlat, use
Buildings.Fluid.Sensors.LatentEnthalpyFlowRate.
The sensor is ideal, i.e., it does not influence the fluid.
The sensor can only be used with medium models that implement the function
enthalpyOfNonCondensingGas(T)
.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Buildings.Fluid.BaseClasses.IndexMassFraction (Computes the index of a substance in the mass fraction vector Xi), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
String | substanceName | "water" | Name of species substance |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
SpecificEnthalpy | h_out_start | Medium.enthalpyOfNonCondensi... | Initial or guess value of measured specific sensible enthalpy [J/kg] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the component | |
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_flow | Sensible enthalpy flow rate, positive if from port_a to port_b [W] |
Ideal one port specific enthalpy sensor
This model outputs the specific enthalpy of the fluid connected to its port. The sensor is ideal, i.e. it does not influence the fluid.
Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model with one fluid port.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the sensor |
Type | Name | Description |
---|---|---|
FluidPort_a | port | |
output RealOutput | h_out | Specific enthalpy in port medium [J/kg] |
Ideal two port sensor for the specific enthalpy
This model outputs the specific enthalpy of a passing fluid.
The sensor is ideal, i.e. it does not influence the fluid.
If the parameter tau
is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
SpecificEnthalpy | h_out_start | Medium.specificEnthalpy_pTX(... | Initial or guess value of output (= state) [J/kg] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 [J/kg] |
Ideal one port specific entropy sensor
This model outputs the specific entropy of the fluid connected to its port. The sensor is ideal, i.e., it does not influence the fluid.
Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model with one fluid port.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the sensor |
Type | Name | Description |
---|---|---|
FluidPort_a | port | |
output RealOutput | s | Specific entropy in port medium [J/(kg.K)] |
Ideal two port sensor for the specific entropy
This model outputs the specific entropy of the passing fluid.
The sensor is ideal, i.e., it does not influence the fluid.
If the parameter tau
is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
SpecificEntropy | s_start | Medium.specificEntropy_pTX(p... | Initial or guess value of output (= state) [J/(kg.K)] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 [J/(kg.K)] |
Ideal one port temperature sensor
This model outputs the temperature of the fluid connected to its port. The sensor is ideal, i.e., it does not influence the fluid.
Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model with one fluid port.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the sensor |
Type | Name | Description |
---|---|---|
FluidPort_a | port | |
output RealOutput | T | Temperature in port medium [K] |
Ideal two port temperature sensor
This model outputs the temperature of the medium in the flow
between its fluid ports. The sensor does not influence the fluid.
If the parameter tau
is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
Temperature | T_start | Medium.T_default | Initial or guess value of output (= state) [K] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 [K] |
Ideal wet bulb temperature sensor
This sensor outputs the wet bulb temperature of the medium in the flow
between its fluid ports. The sensor is ideal, i.e., it does not influence the fluid.
If the parameter tau
is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
Temperature | TWetBul_start | Medium.T_default | Initial or guess value of wet bulb temperature (used to compute initial output signal)) [K] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 | Wet bulb temperature in port medium [K] |
Ideal one port trace substances sensor
This model outputs the trace substances contained in the fluid connected to its port. The sensor is ideal, i.e., it does not influence the fluid.
Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model with one fluid port.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the sensor | |
String | substanceName | "CO2" | Name of trace substance |
Type | Name | Description |
---|---|---|
FluidPort_a | port | |
output RealOutput | C | Trace substance in port medium |
Ideal two port sensor for trace substance
This model outputs the trace substance of the passing fluid.
The sensor is ideal, i.e., it does not influence the fluid.
If the parameter tau
is non-zero, then its output
is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
String | substanceName | "CO2" | Name of trace substance |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
Real | C_start | 0 | Initial or guess value of output (= state) |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 |
Ideal sensor for volume flow rate
This model outputs the volume flow rate flowing from
port_a
to port_b
.
The sensor is ideal, i.e., it does not influence the fluid.
If the parameter tau
is non-zero, then the measured
density that is used to convert the mass flow rate into
volumetric flow rate is computed using a first order differential equation.
Setting tau=0
is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Time | tau | 1 | Time constant at nominal flow rate [s] |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate, used for regularization near zero flow [kg/s] | |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) [kg/s] |
Initialization | |||
Init | initType | Modelica.Blocks.Types.Init.I... | Type of initialization (InitialState and InitialOutput are identical) |
Density | d_start | Medium.density(Medium.setSta... | Initial or guess value of density [kg/m3] |
Temperature | T_start | Medium.T_default | Temperature used to compute d_start [K] |
Pressure | p_start | Medium.p_default | Pressure used to compute d_start [Pa] |
MassFraction | X_start[Medium.nX] | Medium.X_default | Mass fraction used to compute d_start [1] |
Assumptions | |||
Boolean | allowFlowReversal | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
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 [m3/s] |