The components of this package are provided for the convenience of people working mostly with Fahrenheit units, since all models in package HeatTransfer are based on Kelvin units.
Note, that in package SIunits.Conversions, functions are provided to convert between the units Kelvin, degree Celsius, degree Fahrenheit and degree Rankine. These functions allow, e.g., a direct conversion of units at all places where Kelvin is required as parameter. Example:
import SIunits.Conversions.*; Modelica.Thermal.HeatTransfer.HeatCapacitor C(T0 = from_degF(70));
Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).
Name | Description |
---|---|
ToKelvin | Conversion block from degFahrenheit to Kelvin |
FromKelvin | Conversion from Kelvin to degFahrenheit |
FixedTemperature | Fixed temperature boundary condition in degFahrenheit |
PrescribedTemperature | Variable temperature boundary condition in degFahrenheit |
TemperatureSensor | Absolute temperature sensor in degFahrenheit |
This component converts a input signal from degree Fahrenheit to Kelvin and provides is as output signal.
Type | Name | Description |
---|---|---|
input RealInput | Fahrenheit | |
output RealOutput | Kelvin |
model ToKelvin "Conversion block from degFahrenheit to Kelvin"Modelica.Blocks.Interfaces.RealInput Fahrenheit; Modelica.Blocks.Interfaces.RealOutput Kelvin; equation Kelvin = from_degF(Fahrenheit);end ToKelvin;
This component converts all input signals from Kelvin to Fahrenheit and provides them as output signals.
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 1 | Number of inputs (= number of outputs) |
Type | Name | Description |
---|---|---|
input RealInput | Kelvin | |
output RealOutput | Fahrenheit |
model FromKelvin "Conversion from Kelvin to degFahrenheit" parameter Integer n=1 "Number of inputs (= number of outputs)";Modelica.Blocks.Interfaces.RealInput Kelvin; Modelica.Blocks.Interfaces.RealOutput Fahrenheit; equation Fahrenheit = to_degF(Kelvin);end FromKelvin;
This model defines a fixed temperature T at its port in [degF], i.e., it defines a fixed temperature as a boundary condition.
Type | Name | Default | Description |
---|---|---|---|
Temperature_degF | T | Fixed Temperature at the port [degF] |
Type | Name | Description |
---|---|---|
HeatPort_b | port |
model FixedTemperature "Fixed temperature boundary condition in degFahrenheit" parameter Modelica.SIunits.Conversions.NonSIunits.Temperature_degF T "Fixed Temperature at the port";Interfaces.HeatPort_b port; equation port.T = from_degF(T);end FixedTemperature;
This model represents a variable temperature boundary condition The temperature value in [degF] is given by the input signal to the model. The effect is that an instance of this model acts as an infinite reservoir able to absorb or generate as much energy as required to keep the temperature at the specified value.
Type | Name | Description |
---|---|---|
HeatPort_b | port | |
input RealInput | T |
model PrescribedTemperature "Variable temperature boundary condition in degFahrenheit"Interfaces.HeatPort_b port; Modelica.Blocks.Interfaces.RealInput T; equation port.T = from_degF(T);end PrescribedTemperature;
This is an ideal absolute temperature sensor which returns the temperature of the connected port in Fahrenheit 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.
Type | Name | Description |
---|---|---|
output RealOutput | T | |
HeatPort_a | port |
model TemperatureSensor "Absolute temperature sensor in degFahrenheit"Modelica.Blocks.Interfaces.RealOutput T; Interfaces.HeatPort_a port; equation T = to_degF(port.T); port.Q_flow = 0;end TemperatureSensor;