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