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 annotation (Placement(transformation(extent = {
{90, -10},
{110, 10}})));
equation
port.T = Modelica.SIunits.Conversions.from_degF(T);
annotation (
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Text(
extent = {
{-150, 150},
{150, 110}},
textString = "%name",
lineColor = {0, 0, 255}),
Rectangle(
extent = {
{-100, 100},
{100, -100}},
pattern = LinePattern.None,
fillColor = {159, 159, 223},
fillPattern = FillPattern.Backward),
Text(
extent = {
{0, 0},
{-100, -100}},
textString = "degF"),
Polygon(
points = {
{52, -20},
{52, 20},
{90, 0},
{52, -20}},
lineColor = {191, 0, 0},
fillColor = {191, 0, 0},
fillPattern = FillPattern.Solid),
Text(
extent = {
{-150, -110},
{150, -140}},
textString = "T=%T"),
Line(
points = {
{-42, 0},
{66, 0}},
color = {191, 0, 0},
thickness = 0.5)}),
Documentation(info = "<html>\n<p>\nThis model defines a fixed temperature T at its port in [degF],\ni.e., it defines a fixed temperature as a boundary condition.\n</p>\n</html>"),
Diagram(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Rectangle(
extent = {
{-100, 100},
{100, -100}},
pattern = LinePattern.None,
fillColor = {159, 159, 223},
fillPattern = FillPattern.Backward),
Line(
points = {
{-42, 0},
{66, 0}},
color = {191, 0, 0},
thickness = 0.5),
Text(
extent = {
{0, 0},
{-100, -100}},
textString = "degF"),
Polygon(
points = {
{52, -20},
{52, 20},
{90, 0},
{52, -20}},
lineColor = {191, 0, 0},
fillColor = {191, 0, 0},
fillPattern = FillPattern.Solid)}));
end FixedTemperature;