## Modelica.Thermal.HeatTransfer.Interfaces

## Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a

Thermal port for 1-dim. heat transfer (filled rectangular icon)

### Information

This connector is used for 1-dimensional heat flow between components. The variables in the connector are:

       T       Temperature in [Kelvin].
       Q_dot   Heat flow rate in [Watt].

According to the Modelica sign convention, a positive heat flow rate Q_dot is considered to flow into a component. This convention has to be used whenever this connector is used in a model class.

Note, that the two connector classes HeatPort_a and HeatPort_b are identical with the only exception of the different icon layout.

### Modelica definition

    connector HeatPort_a
      "Thermal port for 1-dim. heat transfer (filled rectangular icon)"

      extends HeatPort;

    end HeatPort_a;

## Modelica.Thermal.HeatTransfer.Interfaces.Element1D

Partial heat transfer element with two HeatPort connectors that does not store energy

### Information

This partial model contains the basic connectors and variables to allow heat transfer models to be created that do not store energy, This model defines and includes equations for the temperature drop across the element, dT, and the heat flow rate through the element from port_a to port_b, Q_dot.

By extending this model, it is possible to write simple constitutive equations for many types of heat transfer components.

### Modelica definition

    partial model Element1D
      "Partial heat transfer element with two HeatPort connectors that does not store energy"

      SI.HeatFlowRate Q_dot "Heat flow rate from port_a -> port_b";
      SI.Temperature dT "port_a.T - port_b.T";
    public
      HeatPort_a port_a;
      HeatPort_b port_b;
    equation
      dT = port_a.T - port_b.T;
      port_a.Q_dot = Q_dot;
      port_b.Q_dot = -Q_dot;
    end Element1D;

## Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b

Thermal port for 1-dim. heat transfer (unfilled rectangular icon)

### Information

This connector is used for 1-dimensional heat flow between components. The variables in the connector are:

       T       Temperature in [Kelvin].
       Q_dot   Heat flow rate in [Watt].

According to the Modelica sign convention, a positive heat flow rate Q_dot is considered to flow into a component. This convention has to be used whenever this connector is used in a model class.

Note, that the two connector classes HeatPort_a and HeatPort_b are identical with the only exception of the different icon layout.

### Modelica definition

    connector HeatPort_b
      "Thermal port for 1-dim. heat transfer (unfilled rectangular icon)"

      extends HeatPort;

    end HeatPort_b;

## Modelica.Thermal.HeatTransfer.Interfaces.HeatPort

Thermal port for 1-dim. heat transfer

### Modelica definition

    partial connector HeatPort "Thermal port for 1-dim. heat transfer"
      SI.Temperature T "Port temperature";
      flow SI.HeatFlowRate Q_dot
        "Heat flow rate (positive if flowing from outside into the component)";
    end HeatPort;