feat : temperature , heatflux and capacity
This commit is contained in:
17
Formation/OTRERA_formation/Components/Temperature.mo
Normal file
17
Formation/OTRERA_formation/Components/Temperature.mo
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user