Skip to content

Commit

Permalink
Refactored conditional input connector and added initial parameter in…
Browse files Browse the repository at this point in the history
… outside air
  • Loading branch information
Iago Cupeiro committed Jan 4, 2024
1 parent b900152 commit fea7a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down Expand Up @@ -424,4 +424,4 @@ Cleaned up implementation for
</li>
</ul>
</html>"));
end AirHandlingUnit;
end AirHandlingUnit;
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fea7a9d

Please sign in to comment.