Buildings.Templates.Components.Sensors
Sensor models
Information
This package contains models for sensors.
Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).
Package Content
Name | Description |
---|---|
DifferentialPressure | Differential pressure sensor |
HumidityRatio | Humidity ratio sensor |
SpecificEnthalpy | Specific enthalpy sensor |
Temperature | Temperature sensor |
VolumeFlowRate | Volume flow rate sensor |
Buildings.Templates.Components.Sensors.DifferentialPressure
Differential pressure sensor
Information
This is a model for a differential pressure sensor that can be
enabled or disabled with the Boolean parameter have_sen
.
If disabled, the control input variable y
is removed
and the model simply consists of two fluid ports that are not connected
to each other and for which the following equations are used.
So the model must still be provided with pressure conditions
at each port.
// Zero flow equations
port_(a|b).m_flow = 0;
// No contribution of specific quantities
port_(a|b).h_outflow = 0;
port_(a|b).Xi_outflow = zeros(Medium.nXi);
port_(a|b).C_outflow = zeros(Medium.nC);
Extends from Buildings.Templates.Components.Interfaces.PartialSensor (Interface class for sensor).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Nominal condition | |||
MassFlowRate | m_flow_nominal | 0 | Nominal mass flow rate [kg/s] |
Configuration | |||
Boolean | have_sen | true | Set to true for sensor, false for direct pass through |
Boolean | isDifPreSen | true | Set to true for differential pressure sensor, false for any other sensor |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
IconPipe | icon_pipe | Buildings.Templates.Componen... | Pipe symbol |
Connectors
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 | y | Connector for measured value [Pa] |
Modelica definition
Buildings.Templates.Components.Sensors.HumidityRatio
Humidity ratio sensor
Information
This is a model for a humidity ratio (in kg/kg dry air) sensor that can be
enabled or disabled with the Boolean parameter have_sen
.
If disabled, the control input variable y
is removed
and the model is a direct fluid pass-through.
Extends from Buildings.Templates.Components.Interfaces.PartialSensor (Interface class for sensor).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Configuration | |||
Boolean | have_sen | true | Set to true for sensor, false for direct pass through |
Boolean | isDifPreSen | false | Set to true for differential pressure sensor, false for any other sensor |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
IconPipe | icon_pipe | Buildings.Templates.Componen... | Pipe symbol |
Connectors
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 | y | Connector for measured value [kg/kg] |
Modelica definition
Buildings.Templates.Components.Sensors.SpecificEnthalpy
Specific enthalpy sensor
Information
This is a model for a specific enthalpy sensor that can be
enabled or disabled with the Boolean parameter have_sen
.
If disabled, the control input variable y
is removed
and the model is a direct fluid pass-through.
Extends from Buildings.Templates.Components.Interfaces.PartialSensor (Interface class for sensor).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Configuration | |||
Boolean | have_sen | true | Set to true for sensor, false for direct pass through |
Boolean | isDifPreSen | false | Set to true for differential pressure sensor, false for any other sensor |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
IconPipe | icon_pipe | Buildings.Templates.Componen... | Pipe symbol |
Connectors
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 | y | Connector for measured value [J/kg] |
Modelica definition
Buildings.Templates.Components.Sensors.Temperature
Temperature sensor
Information
This is a model for a dry bulb temperature sensor that can be
enabled or disabled with the Boolean parameter have_sen
.
If disabled, the control input variable y
is removed
and the model is a direct fluid pass-through.
Extends from Buildings.Templates.Components.Interfaces.PartialSensor (Interface class for sensor).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
SensorTemperature | typ | Buildings.Templates.Componen... | Type of temperature sensor |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Configuration | |||
Boolean | have_sen | true | Set to true for sensor, false for direct pass through |
Boolean | isDifPreSen | false | Set to true for differential pressure sensor, false for any other sensor |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
IconPipe | icon_pipe | Buildings.Templates.Componen... | Pipe symbol |
Connectors
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 | y | Connector for measured value [K] |
Modelica definition
Buildings.Templates.Components.Sensors.VolumeFlowRate
Volume flow rate sensor
Information
This is a model for a volume flow rate sensor that can be
enabled or disabled with the Boolean parameter have_sen
.
If disabled, the control input variable y
is removed
and the model is a direct fluid pass-through.
Extends from Buildings.Templates.Components.Interfaces.PartialSensor (Interface class for sensor).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
SensorVolumeFlowRate | typ | Type of volume flow rate sensor | |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Configuration | |||
Boolean | have_sen | true | Set to true for sensor, false for direct pass through |
Boolean | isDifPreSen | false | Set to true for differential pressure sensor, false for any other sensor |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
IconPipe | icon_pipe | Buildings.Templates.Componen... | Pipe symbol |
Connectors
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 | y | Connector for measured value [m3/s] |