feat : end initialization

This commit is contained in:
2026-02-12 17:09:05 +01:00
parent 288758e467
commit f97e3ce41d
3 changed files with 43 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
within OTRERA_formation.Models;
model Coupled_model_prescribed
extends OTRERA_formation.Models.Coupled_model (M1(m = 100));
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow prescribedHeatFlow annotation(
Placement(transformation(origin = {-62, 30}, extent = {{-10, -10}, {10, 10}})));
Modelica.Blocks.Sources.Constant const(k = 1000) annotation(
Placement(transformation(origin = {-90, 30}, extent = {{-10, -10}, {10, 10}})));
equation
connect(const.y, prescribedHeatFlow.Q_flow) annotation(
Line(points = {{-78, 30}, {-72, 30}}, color = {0, 0, 127}));
connect(prescribedHeatFlow.port, M1.port) annotation(
Line(points = {{-52, 30}, {-32, 30}}, color = {191, 0, 0}));
annotation(
Diagram(coordinateSystem(extent = {{-100, -100}, {100, 100}})));
end Coupled_model_prescribed;