Files
MODELICA/Formation/OTRERA_formation/Models/Coupled_model.mo

14 lines
594 B
Plaintext

within OTRERA_formation.Models;
model Coupled_model
Components.ThermalCapacity thermalCapacity(m = 30, cp = 2000) annotation(
Placement(transformation(origin = {-30, 30}, extent = {{-10, -10}, {10, 10}})));
Components.Heatflow heatflow(Q_flow = 1000) annotation(
Placement(transformation(origin = {-66, 30}, extent = {{-10, -10}, {10, 10}})));
equation
connect(heatflow.port, thermalCapacity.port) annotation(
Line(points = {{-66, 30}, {-30, 30}}, color = {191, 0, 0}));
annotation(
Diagram(coordinateSystem(extent = {{-100, -100}, {100, 100}})));
end Coupled_model;