Engee documentation

Absolute Pressure & Temperature Sensor (G)

Pressure and temperature sensor.

blockType: AcausalFoundation.Gas.Sensors.PressureAndTemperature

Absolute Pressure & Temperature Sensor (G)

Path in the library:

/Physical Modeling/Fundamental/Gas/Sensors/Absolute Pressure & Temperature Sensor (G)

Pressure & Temperature Difference Sensor (G)

Path in the library:

/Physical Modeling/Fundamental/Gas/Sensors/Pressure & Temperature Difference Sensor (G)

Description

Block Absolute Pressure & Temperature Sensor (G) It is an ideal sensor for pressure and temperature in the gas network. There is no mass or energy flow through the sensor.

The block operates in two modes, depending on the value of the Measurement type parameter.:

  • Absolute — the block is in operation mode Absolute Pressure & Temperature Sensor (G) measures the absolute values of temperature and pressure. Only one port A is needed to measure absolute values.

  • Difference — the block is in Pressure mode & Temperature Difference Sensor (G) measures temperature or pressure differences. In this mode, the unit has two input ports A and B. The measurements are positive when the values on port A are greater than the values on port B.

Temperature measurements are different from pressure measurements because the rate of energy flow depends on the direction of flow. The temperature measurement represents the temperature in front of the node being measured. For example, if the port A of the Pressure block is & Temperature Sensor (G) is connected to the node between pipe 1 and pipe 2, and gas flows from pipe 1 to pipe 2, then the temperature measured at port A represents the temperature of the volume of gas in pipe 1. If the gas then changes direction and flows from pipe 2 to pipe 1, then the temperature measured at port A is the temperature of the volume of gas in pipe 2. If the temperatures of the two volumes of gas differ, this will manifest itself as a change in the measured temperature when switching the flow direction. If two or more streams merge in a node, then the temperature measurement in the node represents a weighted average value based on the ideal mixing of the streams.

Four ports are provided for the output of measurement data:

  • The Pa port outputs the absolute pressure.

  • The Pg port outputs excess pressure.

  • The P port outputs the pressure difference through the sensor.

  • The T port outputs the temperature or temperature difference.

These ports have conditional visibility on the block icon. Use the block parameters to use only those ports that are needed for measurements in a particular model.

Ports

Output

Pa — absolute pressure value, Pa
scalar

An output port for measuring the absolute pressure value.

Dependencies

To use this port, set the Measurement type parameter to Absolute, for the Pressure parameter, the value is Enabled, and for the Pressure type parameter , the value Absolute pressure.

Pg — overpressure, Pa
scalar

An output port for measuring overpressure.

Dependencies

To use this port, set the Measurement type parameter to Absolute, for the Pressure parameter, the value is Enabled, and for the Pressure type parameter , the value Gauge pressure.

P — pressure difference, Pa
scalar

Output port for measuring pressure difference.

Dependencies

To use this port, set the Measurement type parameter to Difference, and for the Pressure parameter , the value Enabled.

T is the temperature value, K
scalar

Output port for temperature measurement.

Dependencies

To use this port, set the Temperature parameter to Enabled.

Non-directional

A — gas inlet to the pass sensor:q[<br>] gas

The gas port corresponds to the sensor input.

B — gas outlet from the pass sensor:q[<br>] gas

The gas port corresponds to the outlet of the sensor.

Parameters

Measurement type — choose between absolute and relative measurements
Absolute (by default) | Difference

Choose between absolute and relative measurements:

  • Absolute — The sensor measures the pressure and temperature at port A. Only one port is needed for absolute measurements. Selecting this option hides the B port on the block icon.

  • Difference — The sensor measures the pressure and/or temperature difference between two points in the model. When this option is selected, the B port is displayed on the block icon.

Pressure — enabling the output port for pressure measurement
Enabled (by default) | Turned off

When this option is selected, the output port Pa, Pg or P opens, allowing pressure measurement.

Pressure type — the choice between absolute and excessive pressure
Absolute pressure (by default) | Gauge pressure

Choose which pressure the sensor measures — absolute or excessive:

  • Absolute pressure — The sensor measures the absolute pressure at port A. When this option is selected, the Pa port is displayed on the block icon.

  • Gauge pressure — The sensor measures the overpressure at port A. When this option is selected, the Pg port is displayed on the block icon.

Dependencies

This parameter is used if the Pressure parameter is set to Enabled and if the Measurement type is set to Absolute.

Temperature — enabling the output port for temperature measurement
Disabled (by default) | Enabled

When this option is selected, the T output port opens, allowing temperature measurement.