## FCSys.Conditions.ByConnector.Boundary.Pair.Thermal

Conditions for thermal diffusion

### Information

Extends from Modelica.Icons.Package (Icon for standard packages).

### Package Content

Name | Description
--- | ---
temperature | Difference in temperature
heatRate | Rate of thermal conduction
Partial | Template of a function to select a thermal quantity

## FCSys.Conditions.ByConnector.Boundary.Pair.Thermal.temperature

Difference in temperature

### Information

Extends from Partial (Template of a function to select a thermal quantity).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Pressure | Deltap |  | Difference in pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | Deltaphi[Orient] |  | Difference in velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
Temperature | DeltaT |  | Difference in temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition

### Modelica definition

    function temperature "Difference in temperature"
      extends Partial;

    algorithm
      x := DeltaT;

    end temperature;

## FCSys.Conditions.ByConnector.Boundary.Pair.Thermal.heatRate

Rate of thermal conduction

### Information

Extends from Partial (Template of a function to select a thermal quantity).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Pressure | Deltap |  | Difference in pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | Deltaphi[Orient] |  | Difference in velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
Temperature | DeltaT |  | Difference in temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition

### Modelica definition

    function heatRate "Rate of thermal conduction"
      extends Partial;

    algorithm
      x := Qdot;

    end heatRate;

## FCSys.Conditions.ByConnector.Boundary.Pair.Thermal.Partial

Template of a function to select a thermal quantity

### Information

This function takes as inputs all the efforts and flows of the associated connector. It should be extended to add an algorithm that maps these inputs to a single value.

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Pressure | Deltap |  | Difference in pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | Deltaphi[Orient] |  | Difference in velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
Temperature | DeltaT |  | Difference in temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition

### Modelica definition

    partial function Partial
      "Template of a function to select a thermal quantity"
      extends Modelica.Icons.Function;

      // Material
      input Q.Pressure Deltap "Difference in pressure";
      input Q.Current Ndot "Current";

      // Translational
      input Q.Velocity Deltaphi[Orient] "Difference in velocity";
      input Q.Force mPhidot[Orient] "Shear force";

      // Thermal
      input Q.Temperature DeltaT "Difference in temperature";
      input Q.Power Qdot "Rate of thermal conduction";

      output Real x "Value of condition";

    end Partial;