Modelica.Thermal.HeatTransfer.Sensors

Thermal sensors

Information



Extends from Modelica.Icons.SensorsPackage (Icon for packages containing sensors).

Package Content

NameDescription
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor TemperatureSensor Absolute temperature sensor in Kelvin
Modelica.Thermal.HeatTransfer.Sensors.RelTemperatureSensor RelTemperatureSensor Relative Temperature sensor
Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor HeatFlowSensor Heat flow rate sensor
Modelica.Thermal.HeatTransfer.Sensors.ConditionalFixedHeatFlowSensor ConditionalFixedHeatFlowSensor HeatFlowSensor, conditional fixed Temperature


Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor

Absolute temperature sensor in Kelvin

Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor

Information


This is an ideal absolute temperature sensor which returns the temperature of the connected port in Kelvin as an output signal. The sensor itself has no thermal interaction with whatever it is connected to. Furthermore, no thermocouple-like lags are associated with this sensor model.

Connectors

TypeNameDescription
output RealOutputT 
HeatPort_aport 

Modelica definition

model TemperatureSensor "Absolute temperature sensor in Kelvin"

  Modelica.Blocks.Interfaces.RealOutput T;
  Interfaces.HeatPort_a port;
equation 
  T = port.T;
  port.Q_flow = 0;
end TemperatureSensor;

Modelica.Thermal.HeatTransfer.Sensors.RelTemperatureSensor Modelica.Thermal.HeatTransfer.Sensors.RelTemperatureSensor

Relative Temperature sensor

Modelica.Thermal.HeatTransfer.Sensors.RelTemperatureSensor

Information


The relative temperature "port_a.T - port_b.T" is determined between the two ports of this component and is provided as output signal in Kelvin.

Extends from Modelica.Icons.TranslationalSensor (Icon representing a linear measurement device).

Connectors

TypeNameDescription
HeatPort_aport_a 
HeatPort_bport_b 
output RealOutputT_rel 

Modelica definition

model RelTemperatureSensor "Relative Temperature sensor"
  extends Modelica.Icons.TranslationalSensor;
  Interfaces.HeatPort_a port_a;
  Interfaces.HeatPort_b port_b;
  Modelica.Blocks.Interfaces.RealOutput T_rel;
equation 
  T_rel = port_a.T - port_b.T;
  0 = port_a.Q_flow;
  0 = port_b.Q_flow;
end RelTemperatureSensor;

Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor

Heat flow rate sensor

Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor

Information


This model is capable of monitoring the heat flow rate flowing through this component. The sensed value of heat flow rate is the amount that passes through this sensor while keeping the temperature drop across the sensor zero. This is an ideal model so it does not absorb any energy and it has no direct effect on the thermal response of a system it is included in. The output signal is positive, if the heat flows from port_a to port_b.

Extends from Modelica.Icons.RotationalSensor (Icon representing a round measurement device).

Connectors

TypeNameDescription
output RealOutputQ_flowHeat flow from port_a to port_b
HeatPort_aport_a 
HeatPort_bport_b 

Modelica definition

model HeatFlowSensor "Heat flow rate sensor"
  extends Modelica.Icons.RotationalSensor;
  Modelica.Blocks.Interfaces.RealOutput Q_flow 
    "Heat flow from port_a to port_b";
  Interfaces.HeatPort_a port_a;
  Interfaces.HeatPort_b port_b;
equation 
  port_a.T = port_b.T;
  port_a.Q_flow + port_b.Q_flow = 0;
  Q_flow = port_a.Q_flow;
end HeatFlowSensor;

Modelica.Thermal.HeatTransfer.Sensors.ConditionalFixedHeatFlowSensor Modelica.Thermal.HeatTransfer.Sensors.ConditionalFixedHeatFlowSensor

HeatFlowSensor, conditional fixed Temperature

Modelica.Thermal.HeatTransfer.Sensors.ConditionalFixedHeatFlowSensor

Information


If useFixedTemperature = false, this sensor acts just as a normal HeatFlowSensor.

If useFixedTemperature = true, it is assumed that the connections to both heatPorts of this sensor are conditionally removed; in this case, the measured Q_flow is reported = 0 automatically. To avoid a singular equation system, the temperature of the sensor is set to 293.15 K.

Parameters

TypeNameDefaultDescription
BooleanuseFixedTemperature Fixed Temperature if true

Connectors

TypeNameDescription
HeatPort_aport_a 
HeatPort_bport_b 
output RealOutputQ_flow 

Modelica definition

model ConditionalFixedHeatFlowSensor 
  "HeatFlowSensor, conditional fixed Temperature"
  parameter Boolean useFixedTemperature(start=false) 
    "Fixed Temperature if true";
  Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a port_a;
  Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b port_b;
  Modelica.Thermal.HeatTransfer.Sensors.HeatFlowSensor heatFlowSensor;
  Modelica.Thermal.HeatTransfer.Sources.FixedTemperature fixedTemperature(final T(
        displayUnit="K") = 293.15) if                                                       useFixedTemperature;
  Blocks.Interfaces.RealOutput Q_flow;
equation 
  connect(heatFlowSensor.port_b, port_b);
  connect(port_a, heatFlowSensor.port_a);
  connect(fixedTemperature.port, heatFlowSensor.port_a);
  connect(heatFlowSensor.Q_flow, Q_flow);
end ConditionalFixedHeatFlowSensor;

Automatically generated Fri Nov 12 16:31:46 2010.