-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16581,6 +16581,25 @@ namespace UnitarySystems { | |
return airNode; | ||
} | ||
|
||
int | ||
getIndex(EnergyPlusData &state, std::string const &UnitarySysName, DataZoneEquipment::ZoneEquipType zoneEquipType, bool &errFlag) | ||
{ | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
rraustad
Contributor
|
||
int EquipIndex = 0; | ||
for (int UnitarySysNum = 0; UnitarySysNum < state.dataUnitarySystems->numUnitarySystems; ++UnitarySysNum) { | ||
if (Util::SameString(UnitarySysName, state.dataUnitarySystems->unitarySys[UnitarySysNum].Name)) { | ||
if (zoneEquipType == DataZoneEquipment::ZoneEquipType::PackagedTerminalAirConditioner || | ||
zoneEquipType == DataZoneEquipment::ZoneEquipType::PackagedTerminalHeatPump || | ||
zoneEquipType == DataZoneEquipment::ZoneEquipType::PackagedTerminalHeatPumpWaterToAir) { | ||
This comment has been minimized.
Sorry, something went wrong.
rraustad
Contributor
|
||
EquipIndex = UnitarySysNum; | ||
break; | ||
} | ||
} | ||
} | ||
if (EquipIndex < 0) errFlag = true; | ||
return EquipIndex; | ||
} | ||
|
||
int UnitarySys::getAirOutNode(EnergyPlusData &state, std::string_view UnitarySysName, int const ZoneOAUnitNum, bool &errFlag) | ||
{ | ||
if (state.dataUnitarySystems->getInputOnceFlag) { | ||
|
5 comments
on commit 1d30477
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.
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.
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.
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.
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.
I don't see AirLoopHVAC:UnitarySystem in this switch/case list of equipment so will need to be updated eventually.