Skip to content

Commit

Permalink
Refactor after merge [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGautier committed Feb 12, 2025
1 parent e99200b commit e73bafc
Show file tree
Hide file tree
Showing 61 changed files with 408 additions and 463 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
simulateModel("Buildings.Templates.HeatingPlants.HotWater.Components.Validation.BoilerGroupPolynomial",
simulateModel("Buildings.Templates.Plants.Boilers.HotWater.Components.Validation.BoilerGroupPolynomial",
method="cvode",
tolerance=1e-6,
stopTime=2000.0,
Expand All @@ -18,4 +18,4 @@ createPlot(id=1,
y={"mHeaWat_flow_nominal", "mHeaWat_flow.m_flow"},
subPlot=103,
autoscale=true,
grid=true);
grid=true);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
simulateModel("Buildings.Templates.HeatingPlants.HotWater.Components.Validation.BoilerGroupTable",
simulateModel("Buildings.Templates.Plants.Boilers.HotWater.Components.Validation.BoilerGroupTable",
method="cvode",
tolerance=1e-6,
stopTime=2000.0,
Expand All @@ -18,4 +18,4 @@ createPlot(id=1,
y={"mHeaWat_flow_nominal", "mHeaWat_flow.m_flow"},
subPlot=103,
autoscale=true,
grid=true);
grid=true);
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
VAVMultiZone
UserProject
1 change: 1 addition & 0 deletions Buildings/Templates/Components/Data/package.order
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
BoilerHotWater
Chiller
Coil
Cooler
Expand Down
1 change: 1 addition & 0 deletions Buildings/Templates/Components/Interfaces/package.order
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Bus
PartialBoilerHotWater
PartialChiller
PartialCoil
PartialCooler
Expand Down
20 changes: 0 additions & 20 deletions Buildings/Templates/Components/Routing/MultipleToSingle.mo
Original file line number Diff line number Diff line change
Expand Up @@ -165,26 +165,6 @@ equation
color={0,0,0},
pattern=if icon_pipe==Buildings.Templates.Components.Types.IntegrationPoint.Supply
then LinePattern.Solid else LinePattern.Dash,
thickness=5),
Line( visible=nPorts>=5 and icon_pipe<>Buildings.Templates.Components.Types.IconPipe.None,
points=if icon_offset*icon_dy>=0 then
{{0, icon_offset+3*icon_dy},{0, icon_offset+4*icon_dy},{-100, icon_offset+4*icon_dy}}
elseif icon_offset>0 and icon_offset+4*icon_dy<0 or icon_offset<0 and icon_offset+4*icon_dy>0 then
{{0, 0},{0, icon_offset+4*icon_dy},{-100, icon_offset+4*icon_dy}}
else {{0, icon_offset+4*icon_dy},{-100, icon_offset+4*icon_dy}},
color={0,0,0},
pattern=if icon_pipe==Buildings.Templates.Components.Types.IconPipe.Supply
then LinePattern.Solid else LinePattern.Dash,
thickness=5),
Line( visible=nPorts>=6 and icon_pipe<>Buildings.Templates.Components.Types.IconPipe.None,
points=if icon_offset*icon_dy>=0 then
{{0, icon_offset+4*icon_dy},{0, icon_offset+5*icon_dy},{-100, icon_offset+5*icon_dy}}
elseif icon_offset>0 and icon_offset+5*icon_dy<0 or icon_offset<0 and icon_offset+5*icon_dy>0 then
{{0, 0},{0, icon_offset+5*icon_dy},{-100, icon_offset+5*icon_dy}}
else {{0, icon_offset+5*icon_dy},{-100, icon_offset+5*icon_dy}},
color={0,0,0},
pattern=if icon_pipe==Buildings.Templates.Components.Types.IconPipe.Supply
then LinePattern.Solid else LinePattern.Dash,
thickness=5)}),
Diagram(
coordinateSystem(preserveAspectRatio=false)),
Expand Down
20 changes: 0 additions & 20 deletions Buildings/Templates/Components/Routing/SingleToMultiple.mo
Original file line number Diff line number Diff line change
Expand Up @@ -168,26 +168,6 @@ equation
color={0,0,0},
pattern=if icon_pipe==Buildings.Templates.Components.Types.IntegrationPoint.Supply
then LinePattern.Solid else LinePattern.Dash,
thickness=5),
Line( visible=nPorts>=5 and icon_pipe<>Buildings.Templates.Components.Types.IconPipe.None,
points=if icon_offset*icon_dy>=0 then
{{0, icon_offset+3*icon_dy},{0, icon_offset+4*icon_dy},{100, icon_offset+4*icon_dy}}
elseif icon_offset>0 and icon_offset+4*icon_dy<0 or icon_offset<0 and icon_offset+4*icon_dy>0 then
{{0, 0},{0, icon_offset+4*icon_dy},{100, icon_offset+4*icon_dy}}
else {{0, icon_offset+4*icon_dy},{100, icon_offset+4*icon_dy}},
color={0,0,0},
pattern=if icon_pipe==Buildings.Templates.Components.Types.IconPipe.Supply
then LinePattern.Solid else LinePattern.Dash,
thickness=5),
Line( visible=nPorts>=6 and icon_pipe<>Buildings.Templates.Components.Types.IconPipe.None,
points=if icon_offset*icon_dy>=0 then
{{0, icon_offset+4*icon_dy},{0, icon_offset+5*icon_dy},{100, icon_offset+5*icon_dy}}
elseif icon_offset>0 and icon_offset+5*icon_dy<0 or icon_offset<0 and icon_offset+5*icon_dy>0 then
{{0, 0},{0, icon_offset+5*icon_dy},{100, icon_offset+5*icon_dy}}
else {{0, icon_offset+5*icon_dy},{100, icon_offset+5*icon_dy}},
color={0,0,0},
pattern=if icon_pipe==Buildings.Templates.Components.Types.IconPipe.Supply
then LinePattern.Solid else LinePattern.Dash,
thickness=5)}),
Diagram(
coordinateSystem(preserveAspectRatio=false)),
Expand Down
6 changes: 6 additions & 0 deletions Buildings/Templates/Components/Types.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
within Buildings.Templates.Components;
package Types "Package with type definitions"
extends Modelica.Icons.TypesPackage;
type BoilerHotWaterModel = enumeration(
Polynomial
"Efficiency described by a polynomial",
Table
"Efficiency described by a table")
"Enumeration to specify the type of hot water boiler model";
type Chiller = enumeration(
AirCooled
"Air-cooled compression chiller",
Expand Down
4 changes: 2 additions & 2 deletions Buildings/Templates/Components/Validation/BoilerHotWater.mo
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ model BoilerHotWater "Test model for the hot water boiler model"
annotation (Placement(transformation(extent={{-10,-10},{10,10}})));
Fluid.Sources.Boundary_pT retHeaWat(
redeclare final package Medium = Medium,
p=Buildings.Templates.Data.Defaults.pHeaWat_rel_min + boiTab.dpHeaWat_nominal,
p=Buildings.Templates.Data.Defaults.pHeaWat_rel_nominal + boiTab.dpHeaWat_nominal,
use_T_in=true,
T=datBoiTab.THeaWatSup_nominal - 15,
nPorts=2) "Boundary conditions for HW distribution system"
annotation (Placement(transformation(extent={{-40,-30},{-20,-10}})));

Fluid.Sources.Boundary_pT supHeaWat(redeclare final package Medium =Medium,
p=Buildings.Templates.Data.Defaults.pHeaWat_rel_min,
p=Buildings.Templates.Data.Defaults.pHeaWat_rel_nominal,
nPorts=2)
"Boundary conditions for HW distribution system"
annotation (Placement(transformation(extent={{90,-30},{70,-10}})));
Expand Down
1 change: 1 addition & 0 deletions Buildings/Templates/Components/package.order
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Actuators
Boilers
Chillers
Coils
Controls
Expand Down

This file was deleted.

13 changes: 0 additions & 13 deletions Buildings/Templates/HeatingPlants/HotWater/Interfaces/package.mo

This file was deleted.

6 changes: 0 additions & 6 deletions Buildings/Templates/HeatingPlants/package.mo

This file was deleted.

Loading

0 comments on commit e73bafc

Please sign in to comment.