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

15 lines
742 B
Plaintext

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;