refactor : correction fan

This commit is contained in:
2026-02-13 10:41:59 +01:00
parent ca37ad165b
commit 2b11da7dc7
4 changed files with 28 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
within OTRERA_formation.Models;
model Test_fan
Components.Fan fan(m_flow = 10) annotation(
Placement(transformation(origin = {2, 10}, extent = {{-10, -10}, {10, 10}})));
Components.ThermalCapacity thermalCapacity(T_start = 293.15) annotation(
Placement(transformation(origin = {50, 10}, extent = {{-10, -10}, {10, 10}})));
Components.Temperature temperature(T = 303.15) annotation(
Placement(transformation(origin = {-46, 10}, extent = {{-10, -10}, {10, 10}})));
equation
connect(temperature.port, fan.port_a) annotation(
Line(points = {{-46, 10}, {-8, 10}}, color = {191, 0, 0}));
connect(fan.port_b, thermalCapacity.port) annotation(
Line(points = {{12, 10}, {50, 10}}, color = {191, 0, 0}));
end Test_fan;

View File

@@ -3,3 +3,5 @@ Coupled_model_prescribed
Coupled_model_prescribed_variable
Test_Media
Test_replaceable_media
Test_fan
Test_wall