WOLFRAM SYSTEM MODELER

MeasuringTemperature

Differences between using one port with and without explicit junction model and two port sensors for fluid temperature measuring

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Fluid.Examples.Explanatory.MeasuringTemperature"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This model demonstrates the differences that occur when using one- and two-port temperature sensors with and without explicit junction models. As shown in the next figure, the same system is shown in 3 different variations. In all cases exactly the same fluid system is defined. The only difference is how the temperature is measured:

MeasuringTemperature1.png

A pre-defined mass flow rate is present so that fluid flows from the reservoir to the tanks and after 0.5 s the mass flows from the tanks to the reservoir. The reservoir has a temperature of 500C whereas the tanks have an initial temperature of 200C and of 800C. The initial height of the tanks is made in such a form that fluid always flows out of the cold tank. When the fluid flows from the reservoir to the tanks, then it mixes with the cold tank and enters the hot tank. When the fluid flow from the tanks to the reservoir, then the cold and hot water from the two tanks first mixes and the flows to the reservoir.

A one-port sensor measures the mixing temperature at a connection point. Therefore T_onePort.T (the blue curve in the figure below) is the temperature of the mixing point. A two-port sensor measures the temperature at the upstream side. Therefore T_twoPort.T (the red curve in the figure below which is identical to the green curve) shows first the temperature of the reservoir and then the mixing temperature when fluid flows from the tanks to the reservoir. The same is measured with T_junction.T (the green curve below), because the one-port sensor is connected between the mass flow source and the junction and since the mixing takes place in the junction, the same situation is present as for T_twoPort.T.

MeasuringTemperature2.png

Components (15)

T_onePort

Type: Temperature

Description: Ideal one port temperature sensor

T_twoPort

Type: TemperatureTwoPort

Description: Ideal two port temperature sensor

system

Type: System

Description: System properties and default values (ambient, flow direction, initialization)

openTankCold2

Type: OpenTank

Description: Simple tank with inlet/outlet ports

openTankCold1

Type: OpenTank

Description: Simple tank with inlet/outlet ports

openTankHot1

Type: OpenTank

Description: Simple tank with inlet/outlet ports

openTankHot2

Type: OpenTank

Description: Simple tank with inlet/outlet ports

mFlow1

Type: MassFlowSource_T

Description: Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances

mFlow2

Type: MassFlowSource_T

Description: Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances

sine

Type: Sine

Description: Generate sine signal

T_junction

Type: Temperature

Description: Ideal one port temperature sensor

openTankCold3

Type: OpenTank

Description: Simple tank with inlet/outlet ports

openTankHot3

Type: OpenTank

Description: Simple tank with inlet/outlet ports

mFlow3

Type: MassFlowSource_T

Description: Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances

junctionIdeal

Type: TeeJunctionIdeal

Description: Splitting/joining component with static balances for an infinitesimal control volume