model FixedTemperature "Fixed temperature boundary condition in Kelvin"
parameter Modelica.SIunits.Temperature T "Fixed temperature at port";
Interfaces.HeatPort_b port annotation (Placement(transformation(extent = {
{90, -10},
{110, 10}})));
equation
port.T = T;
annotation (
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Text(
extent = {
{-150, 150},
{150, 110}},
textString = "%name",
lineColor = {0, 0, 255}),
Text(
extent = {
{-150, -110},
{150, -140}},
textString = "T=%T"),
Rectangle(
extent = {
{-100, 100},
{100, -100}},
pattern = LinePattern.None,
fillColor = {159, 159, 223},
fillPattern = FillPattern.Backward),
Text(
extent = {
{0, 0},
{-100, -100}},
textString = "K"),
Line(
points = {
{-52, 0},
{56, 0}},
color = {191, 0, 0},
thickness = 0.5),
Polygon(
points = {
{50, -20},
{50, 20},
{90, 0},
{50, -20}},
lineColor = {191, 0, 0},
fillColor = {191, 0, 0},
fillPattern = FillPattern.Solid)}),
Documentation(info = "<html>\n<p>\nThis model defines a fixed temperature T at its port in Kelvin,\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, -101}},
pattern = LinePattern.None,
fillColor = {159, 159, 223},
fillPattern = FillPattern.Backward),
Line(
points = {
{-52, 0},
{56, 0}},
color = {191, 0, 0},
thickness = 0.5),
Text(
extent = {
{0, 0},
{-100, -100}},
textString = "K"),
Polygon(
points = {
{52, -20},
{52, 20},
{90, 0},
{52, -20}},
lineColor = {191, 0, 0},
fillColor = {191, 0, 0},
fillPattern = FillPattern.Solid)}));
end FixedTemperature;