From fea7a9d96623240b5d038f5e9707b4be2d00c9fe Mon Sep 17 00:00:00 2001 From: Iago Cupeiro Date: Thu, 4 Jan 2024 17:50:01 +0100 Subject: [PATCH] Refactored conditional input connector and added initial parameter in outside air --- .../models/BuildingEmulators/Components/AirHandlingUnit.mo | 4 ++-- .../models/BuildingEmulators/Components/IdealProduction.mo | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testcases/multizone_office_simple_hydronic/models/BuildingEmulators/Components/AirHandlingUnit.mo b/testcases/multizone_office_simple_hydronic/models/BuildingEmulators/Components/AirHandlingUnit.mo index 951dba5f8..4f5605977 100644 --- a/testcases/multizone_office_simple_hydronic/models/BuildingEmulators/Components/AirHandlingUnit.mo +++ b/testcases/multizone_office_simple_hydronic/models/BuildingEmulators/Components/AirHandlingUnit.mo @@ -207,7 +207,7 @@ model AirHandlingUnit Placement(visible = true, transformation(origin={50.0,110.0}, extent = {{-10.0,-10.0},{10.0,10.0}}, rotation = 90.0), iconTransformation(origin={92,-110}, extent = {{-10, -10}, {10, 10}}, rotation=270))); IDEAS.Fluid.Sources.OutsideAir outsideAir( redeclare package Medium = MediumAir, - nPorts=2) annotation ( + nPorts=2, azi = 0) annotation ( Placement(visible = true, transformation(origin={144,4}, extent = {{10, -10}, {-10, 10}}, rotation = 0))); Modelica.Fluid.Interfaces.FluidPort_a port_a(redeclare final package Medium = MediumAir) annotation ( Placement(visible = true, transformation(origin={-198,-16}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {-202, -18}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); @@ -424,4 +424,4 @@ Cleaned up implementation for ")); -end AirHandlingUnit; +end AirHandlingUnit; \ No newline at end of file diff --git a/testcases/multizone_office_simple_hydronic/models/BuildingEmulators/Components/IdealProduction.mo b/testcases/multizone_office_simple_hydronic/models/BuildingEmulators/Components/IdealProduction.mo index a5997acee..4467196d2 100644 --- a/testcases/multizone_office_simple_hydronic/models/BuildingEmulators/Components/IdealProduction.mo +++ b/testcases/multizone_office_simple_hydronic/models/BuildingEmulators/Components/IdealProduction.mo @@ -33,7 +33,7 @@ model IdealProduction "Ideal production model which assumes a linear efficiency equation - connect(TSet,TSetIn); + TSet=TSetIn; if not use_TSet then TSet = 0; end if;