Files
MODELICA/Formation/OTRERA_formation/Components/Temperature.mo

17 lines
628 B
Plaintext

within OTRERA_formation.Components;
model Temperature
//USER DEFINED PARAMETERS
parameter Modelica.Units.SI.Temperature T ;
//INTERNAL VARIABLES
//IMPORTED COMPONENTS
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a port annotation(
Placement(transformation(extent = {{-10, -10}, {10, 10}}), iconTransformation(origin = {-2, 0}, extent = {{-10, -10}, {10, 10}})));
equation
T = port.T;
annotation(
Diagram(graphics),
Icon(graphics = {Rectangle(origin = {-50, 0}, extent = {{-50, 100}, {50, -100}}), Text(origin = {-45, 21}, extent = {{27, -23}, {-27, 23}}, textString = "T°")}));
end Temperature;