-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enum Refactor: DataZoneEquipment #9163
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9a3a5a4
DataZoneEquipment::ZoneEquip
dareumnam 9d8ca3a
Merge branch 'develop' of https://github.com/NREL/EnergyPlus into enu…
dareumnam feaf474
Change Array1D to std::array
dareumnam 895fae9
DataZoneEquipment::PerPersonVentRateMode
dareumnam 6cd1746
enums start from -1
dareumnam 4f83d0f
Merge branch 'develop' of https://github.com/NREL/EnergyPlus into enu…
dareumnam 814a3b8
fix unit tests
dareumnam dfbf0db
Revert "fix unit tests"
dareumnam a4a8004
Revert "enums start from -1"
dareumnam 60d0935
Revert "DataZoneEquipment::PerPersonVentRateMode"
dareumnam ccbcc4d
Revert "Change Array1D to std::array"
dareumnam 26e7007
DataZoneEquipment::PerPersonVentRateMode
dareumnam 2a360c8
Merge branch 'develop' of https://github.com/NREL/EnergyPlus into enu…
dareumnam d180a93
clang format
dareumnam 4a8ba35
address comments
dareumnam 1963a5e
address comments
dareumnam e036dff
pull develop and merge conflicts
dareumnam 2d4fbfd
fix errors caused by renaming
dareumnam b3aaeee
fix errors caused by renaming 2
dareumnam b400e23
fix errors caused by renaming 3
dareumnam 12d0cfc
fix errors caused by renaming 4
dareumnam 81cb48e
fix errors caused by renaming 5
dareumnam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -5823,9 +5823,9 @@ void DynamicIntConvSurfaceClassification(EnergyPlusData &state, int const SurfNu | |
EquipNum <= state.dataZoneEquip->ZoneEquipList(state.dataZoneEquip->ZoneEquipConfig(ZoneNum).EquipListIndex).NumOfEquipTypes; | ||
++EquipNum) { | ||
|
||
switch (state.dataZoneEquip->ZoneEquipList(state.dataZoneEquip->ZoneEquipConfig(ZoneNum).EquipListIndex).EquipType_Num(EquipNum)) { | ||
case AirDistUnit_Num: | ||
case PurchasedAir_Num: | ||
switch (state.dataZoneEquip->ZoneEquipList(state.dataZoneEquip->ZoneEquipConfig(ZoneNum).EquipListIndex).EquipTypeEnum(EquipNum)) { | ||
case DataZoneEquipment::ZoneEquip::AirDistUnit: | ||
case DataZoneEquipment::ZoneEquip::PurchasedAir: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This reads so much nicer. |
||
if (!(allocated(state.dataZoneEquip->ZoneEquipList(state.dataZoneEquip->ZoneEquipConfig(ZoneNum).EquipListIndex) | ||
.EquipData(EquipNum) | ||
.OutletNodeNums))) | ||
|
@@ -5858,15 +5858,15 @@ void DynamicIntConvSurfaceClassification(EnergyPlusData &state, int const SurfNu | |
} | ||
} | ||
break; | ||
case WindowAC_Num: | ||
case PkgTermHPAirToAir_Num: | ||
case PkgTermACAirToAir_Num: | ||
case ZoneDXDehumidifier_Num: | ||
case PkgTermHPWaterToAir_Num: | ||
case FanCoil4Pipe_Num: | ||
case UnitVentilator_Num: | ||
case UnitHeater_Num: | ||
case OutdoorAirUnit_Num: | ||
case DataZoneEquipment::ZoneEquip::WindowAC: | ||
case DataZoneEquipment::ZoneEquip::PkgTermHPAirToAir: | ||
case DataZoneEquipment::ZoneEquip::PkgTermACAirToAir: | ||
case DataZoneEquipment::ZoneEquip::ZoneDXDehumidifier: | ||
case DataZoneEquipment::ZoneEquip::PkgTermHPWaterToAir: | ||
case DataZoneEquipment::ZoneEquip::FanCoil4Pipe: | ||
case DataZoneEquipment::ZoneEquip::UnitVentilator: | ||
case DataZoneEquipment::ZoneEquip::UnitHeater: | ||
case DataZoneEquipment::ZoneEquip::OutdoorAirUnit: | ||
if (!(allocated(state.dataZoneEquip->ZoneEquipList(state.dataZoneEquip->ZoneEquipConfig(ZoneNum).EquipListIndex) | ||
.EquipData(EquipNum) | ||
.OutletNodeNums))) | ||
|
@@ -5898,11 +5898,11 @@ void DynamicIntConvSurfaceClassification(EnergyPlusData &state, int const SurfNu | |
} | ||
} | ||
break; | ||
case CoolingPanel_Num: | ||
case BBSteam_Num: | ||
case BBWaterConvective_Num: | ||
case BBElectricConvective_Num: | ||
case BBWater_Num: | ||
case DataZoneEquipment::ZoneEquip::CoolingPanel: | ||
case DataZoneEquipment::ZoneEquip::BBSteam: | ||
case DataZoneEquipment::ZoneEquip::BBWaterConvective: | ||
case DataZoneEquipment::ZoneEquip::BBElectricConvective: | ||
case DataZoneEquipment::ZoneEquip::BBWater: | ||
if (state.dataZoneEquip->ZoneEquipList(state.dataZoneEquip->ZoneEquipConfig(ZoneNum).EquipListIndex).EquipData(EquipNum).ON) { | ||
EquipOnCount = min(EquipOnCount + 1, MaxZoneEquipmentIdx); | ||
FlowRegimeStack[EquipOnCount] = ConvectionConstants::InConvFlowRegime::B; | ||
|
@@ -5914,8 +5914,8 @@ void DynamicIntConvSurfaceClassification(EnergyPlusData &state, int const SurfNu | |
.CoolingPriority(EquipNum); | ||
} | ||
break; | ||
case BBElectric_Num: | ||
case HiTempRadiant_Num: | ||
case DataZoneEquipment::ZoneEquip::BBElectric: | ||
case DataZoneEquipment::ZoneEquip::HiTempRadiant: | ||
if (state.dataZoneEquip->ZoneEquipList(state.dataZoneEquip->ZoneEquipConfig(ZoneNum).EquipListIndex).EquipData(EquipNum).ON) { | ||
EquipOnCount = min(EquipOnCount + 1, MaxZoneEquipmentIdx); | ||
FlowRegimeStack[EquipOnCount] = ConvectionConstants::InConvFlowRegime::B; | ||
|
@@ -5927,8 +5927,8 @@ void DynamicIntConvSurfaceClassification(EnergyPlusData &state, int const SurfNu | |
.CoolingPriority(EquipNum); | ||
} | ||
break; | ||
case VentilatedSlab_Num: | ||
case LoTempRadiant_Num: | ||
case DataZoneEquipment::ZoneEquip::VentilatedSlab: | ||
case DataZoneEquipment::ZoneEquip::LoTempRadiant: | ||
if (state.dataZoneEquip->ZoneEquipConfig(ZoneNum).InFloorActiveElement) { | ||
for (SurfLoop = Zone(ZoneNum).HTSurfaceFirst; SurfLoop <= Zone(ZoneNum).HTSurfaceLast; ++SurfLoop) { | ||
if (!state.dataSurface->SurfIntConvSurfHasActiveInIt(SurfLoop)) continue; | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A simple but nice change.