-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor templates with a record class for configuration parameters (#…
…3508) * Add cfg record for VAVMZ * Add cfg record for VAV box * Updated version to 11.0.0 --------- Co-authored-by: Michael Wetter <[email protected]>
- Loading branch information
1 parent
90c974a
commit 3cdd0c6
Showing
24 changed files
with
362 additions
and
201 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
Buildings/Resources/Scripts/Conversion/ConvertBuildings_from_10_to_11.0.0.mos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Conversion script for Buildings library | ||
// from: Version 10 | ||
// to: Version 11.0.0 | ||
clear | ||
|
||
convertClear(); |
34 changes: 34 additions & 0 deletions
34
Buildings/Templates/AirHandlersFans/Configuration/PartialAirHandler.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
within Buildings.Templates.AirHandlersFans.Configuration; | ||
record PartialAirHandler "Configuration parameters for air handler interface class" | ||
extends Modelica.Icons.Record; | ||
|
||
parameter Buildings.Templates.AirHandlersFans.Types.Configuration typ | ||
"Type of system" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Fan typFanSup | ||
"Type of supply fan" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Fan typFanRet | ||
"Type of return fan" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Fan typFanRel | ||
"Type of relief fan" | ||
annotation (Evaluate=true); | ||
parameter Boolean have_souChiWat | ||
"Set to true if cooling coil requires fluid ports on the source side" | ||
annotation (Evaluate=true); | ||
parameter Boolean have_souHeaWat | ||
"Set to true if heating coil requires fluid ports on the source side" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.AirHandlersFans.Types.Controller typCtl | ||
"Type of controller" | ||
annotation (Evaluate=true); | ||
|
||
annotation (Documentation(info="<html> | ||
<p> | ||
This record provides the set of configuration parameters for the class | ||
<a href=\"modelica://Buildings.Templates.AirHandlersFans.Interfaces.PartialAirHandler\"> | ||
Buildings.Templates.AirHandlersFans.Interfaces.PartialAirHandler</a>. | ||
</p> | ||
</html>")); | ||
end PartialAirHandler; |
55 changes: 55 additions & 0 deletions
55
Buildings/Templates/AirHandlersFans/Configuration/VAVMultiZone.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
within Buildings.Templates.AirHandlersFans.Configuration; | ||
record VAVMultiZone "Configuration parameters for multiple-zone VAV" | ||
extends Buildings.Templates.AirHandlersFans.Configuration.PartialAirHandler; | ||
|
||
parameter Buildings.Templates.Components.Types.Coil typCoiHeaPre | ||
"Type of heating coil in preheat position" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Coil typCoiCoo | ||
"Type of cooling coil" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Coil typCoiHeaReh | ||
"Type of heating coil in reheat position" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Valve typValCoiHeaPre | ||
"Type of valve for heating coil in preheat position" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Valve typValCoiCoo | ||
"Type of valve for cooling coil" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Valve typValCoiHeaReh | ||
"Type of valve for heating coil in reheat position" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Templates.Components.Types.Damper typDamOut | ||
"Outdoor air damper type" | ||
annotation (Evaluate=true, Dialog(group="Configuration", enable=false)); | ||
parameter Buildings.Templates.Components.Types.Damper typDamOutMin | ||
"Minimum outdoor air damper type" | ||
annotation (Evaluate=true, Dialog(group="Configuration", enable=false)); | ||
parameter Buildings.Templates.Components.Types.Damper typDamRel | ||
"Relief damper type" | ||
annotation (Evaluate=true, Dialog(group="Configuration", enable=false)); | ||
parameter Buildings.Templates.Components.Types.Damper typDamRet | ||
"Return damper type" | ||
annotation (Evaluate=true, Dialog(group="Configuration", enable=false)); | ||
parameter Buildings.Controls.OBC.ASHRAE.G36.Types.OutdoorAirSection typSecOut | ||
"Type of outdoor air section" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Controls.OBC.ASHRAE.G36.Types.BuildingPressureControlTypes buiPreCon | ||
"Type of building pressure control system" | ||
annotation (Evaluate=true); | ||
parameter Buildings.Controls.OBC.ASHRAE.G36.Types.VentilationStandard stdVen | ||
"Ventilation standard" | ||
annotation(Evaluate=true); | ||
|
||
annotation ( | ||
defaultComponentPrefixes = "parameter", | ||
defaultComponentName = "cfg", | ||
Documentation(info="<html> | ||
<p> | ||
This record provides the set of configuration parameters for the class | ||
<a href=\"modelica://Buildings.Templates.AirHandlersFans.VAVMultiZone\"> | ||
Buildings.Templates.AirHandlersFans.VAVMultiZone</a>. | ||
</p> | ||
</html>")); | ||
end VAVMultiZone; |
10 changes: 10 additions & 0 deletions
10
Buildings/Templates/AirHandlersFans/Configuration/package.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
within Buildings.Templates.AirHandlersFans; | ||
package Configuration "Records for configuration parameters" | ||
extends Modelica.Icons.MaterialPropertiesPackage; | ||
|
||
annotation (Documentation(info="<html> | ||
<p> | ||
This package provides records for configuration parameters. | ||
</p> | ||
</html>")); | ||
end Configuration; |
2 changes: 2 additions & 0 deletions
2
Buildings/Templates/AirHandlersFans/Configuration/package.order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PartialAirHandler | ||
VAVMultiZone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.