20 lines
693 B
Plaintext
20 lines
693 B
Plaintext
within OTRERA_formation.Components;
|
|
|
|
model Heatflow
|
|
|
|
//USER DEFINED PARAMETERS
|
|
parameter Modelica.Units.SI.HeatFlowRate Q_flow;
|
|
|
|
//INTERNAL VARIABLES
|
|
|
|
//IMPORTED COMPONENTS
|
|
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b port annotation(
|
|
Placement(transformation(origin = {0, 2}, extent = {{-10, -10}, {10, 10}}), iconTransformation(origin = {4, -2}, extent = {{-10, -10}, {10, 10}})));
|
|
|
|
equation
|
|
|
|
Q_flow = -port.Q_flow ;
|
|
|
|
annotation(
|
|
Icon(graphics = {Line(origin = {-53, 0}, points = {{-43, 0}, {43, 0}}, color = {246, 97, 81}, thickness = 3, arrow = {Arrow.None, Arrow.Filled}), Rectangle(origin = {-50, 0}, extent = {{-50, 100}, {50, -100}})}));
|
|
end Heatflow; |