Engee documentation

Thermodynamic Properties Sensor (2P)

Measurement of temperature, density, specific enthalpy, specific entropy and specific volume in a two-phase liquid network.

blockType: AcausalFoundation.TwoPhaseFluid.Sensors.ThermodynamicProperties

Path in the library:

/Physical Modeling/Fundamental/Two Phase Fluid/Sensors/Thermodynamic Properties Sensor (2P)

Description

Block Thermodynamic Properties Sensor (2P) It is an ideal sensor that measures temperature, density, specific enthalpy, specific entropy and specific volume in a two-phase liquid network. There is no mass or energy flow through the sensor.

The unit measures these thermodynamic properties in a node connected to port A. All measurements are made relative to absolute zero.

Ports

Conserving

# A — sensor input
two-phase liquid

Details

Non-directional two-phase liquid port. Connect this port to the node in the two-phase liquid network where you want to measure the thermodynamic properties. All measurements are made relative to absolute zero.

Program usage name

port

Output

# ρ — density, kg/m3^
scalar

Details

An output port for measuring the density of a two-phase liquid.

Dependencies

To use this port, check the box Density.

Data types

Float64

Complex numbers support

No

# T — temperature, K
scalar

Details

An output port for measuring the temperature of a two-phase liquid.

Dependencies

To use this port, check the box Temperature.

Data types

Float64

Complex numbers support

No

# h — specific enthalpy, J/kg
scalar

Details

An output port for measuring the specific enthalpy of a two-phase liquid.

Dependencies

To use this port, check the box Enthalpy.

Data types

Float64

Complex numbers support

No

# v — specific volume, m3/kg
scalar

Details

An output port for measuring the specific volume of a two-phase liquid.

Dependencies

To use this port, check the box Specific volume.

Data types

Float64

Complex numbers support

No

# s — specific entropy, J/(kg⋅K)
scalar

Details

An output port for measuring the specific entropy of a two-phase liquid.

Dependencies

To use this port, check the box Entropy.

Data types

Float64

Complex numbers support

No

Parameters

Parameters

# Temperature — enabling or disabling the output port for temperature measurement

Details

Checking this box opens the output port T, which allows you to measure the temperature of a two-phase liquid.

Default value

false (switched off)

Program usage name

measure_temperature

Evaluatable

No

# Enthalpy — enabling or disabling the output port for specific enthalpy measurement

Details

Setting this flag opens the output port h, which allows you to measure the specific enthalpy of a two-phase liquid.

Default value

false (switched off)

Program usage name

measure_enthalpy

Evaluatable

No

# Density — enabling or disabling the output port for density measurement

Details

Setting this flag opens the output port p, which allows you to measure the density of a two-phase liquid.

Default value

true (switched on)

Program usage name

measure_density

Evaluatable

No

# Specific volume — enabling or disabling the output port for specific volume measurement

Details

Selecting this option opens the output port v, which allows you to measure the specific volume of a two-phase liquid.

Default value

false (switched off)

Program usage name

measure_specific_volume

Evaluatable

No

# Entropy — enabling or disabling the output port for measuring specific entropy

Details

Setting this flag opens the output port s, which allows measuring the specific entropy of a two-phase liquid.

Default value

false (switched off)

Program usage name

measure_entropy

Evaluatable

No