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 pressure and temperature sensor in the gas network. There is no mass or energy flow through the sensor.

The unit operates in two modes depending on the value of the parameter Measurement type:

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

  • Difference — block 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 port A 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 gas volume in pipe 2. If the temperatures of the two volumes of gas differ, then 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 streams.

Four ports are provided for the output of measurement data:

  • The Pa port outputs the absolute pressure.

  • The Pg port outputs excess pressure.

  • Port P 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

Conserving

# A — gas at the sensor inlet
gas

Details

The gas port corresponds to the sensor input.

Program usage name

inlet

# B — gas at the sensor outlet
gas

Details

The gas port corresponds to the outlet of the sensor.

Program usage name

outlet

Output

# Pa — absolute pressure value, Pa
scalar

Details

An output port for measuring the absolute pressure value.

Dependencies

To use this port, set the parameter Measurement type meaning Absolute, check the box Pressure, and for the parameter Pressure type meaning Absolute pressure.

Data types

Float64

Complex numbers support

No

# P — pressure difference, Pa
scalar

Details

Output port for measuring pressure difference.

Dependencies

To use this port, set the parameter Measurement type meaning Difference, and check the box Pressure.

Data types

Float64

Complex numbers support

No

# T — temperature value, K
scalar

Details

Output port for temperature measurement.

Dependencies

To use this port, check the box Temperature.

Data types

Float64

Complex numbers support

No

# Pg — excess pressure, Pa
scalar

Details

An output port for measuring overpressure.

Dependencies

To use this port, set the parameter Measurement type meaning Absolute, check the box Pressure, and for the parameter Pressure type meaning Gauge pressure.

Data types

Float64

Complex numbers support

No

Parameters

Parameters

# Measurement type — choosing between absolute and relative measurements
Difference | Absolute

Details

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.

Values

Difference | Absolute

Default value

Program usage name

type

Evaluatable

No

# Pressure — enabling the output port for pressure measurement

Details

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

Default value

true (switched on)

Program usage name

measure_pressure

Evaluatable

No

# Pressure type — the choice between absolute and excessive pressure
Absolute pressure | Gauge pressure

Details

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

To use this option, install a USB flash drive Pressure, and for the parameter Measurement type set the value Absolute.

Values

Absolute pressure | Gauge pressure

Default value

Absolute pressure

Program usage name

pressure_type

Evaluatable

No

# Temperature — enabling the output port for temperature measurement

Details

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

Default value

false (switched off)

Program usage name

measure_temperature

Evaluatable

No