MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / sizingSystem

Method sizingSystem

src/model/AirLoopHVAC.cpp:1187–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185 }
1186
1187 SizingSystem AirLoopHVAC_Impl::sizingSystem() const {
1188 boost::optional<SizingSystem> sizingSystem;
1189
1190 std::vector<SizingSystem> sizingObjects;
1191
1192 sizingObjects = getObject<AirLoopHVAC>().getModelObjectSources<SizingSystem>();
1193
1194 for (const auto& sizingObject : sizingObjects) {
1195 try {
1196 if (sizingObject.airLoopHVAC().handle() == this->handle()) {
1197 sizingSystem = sizingObject;
1198 }
1199 } catch (...) {
1200 LOG(Debug, sizingObject.briefDescription() << " is not attached to an AirLoopHVAC object.");
1201 }
1202 }
1203
1204 if (sizingSystem) {
1205 return sizingSystem.get();
1206 } else {
1207 LOG_AND_THROW(briefDescription() << " missing Sizing:System object.");
1208 }
1209 }
1210
1211 std::vector<ThermalZone> AirLoopHVAC_Impl::thermalZones() const {
1212 std::vector<ModelObject> objects = demandComponents(IddObjectType::OS_ThermalZone);

Callers 15

translateAirSystemMethod · 0.80
addSystemType3Function · 0.80
addSystemType4Function · 0.80
addSystemType5Function · 0.80
addSystemType7Function · 0.80
addSystemType9Function · 0.80
addSystemType10Function · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
translateAirLoopHVACMethod · 0.80

Calls 4

briefDescriptionMethod · 0.80
handleMethod · 0.45
airLoopHVACMethod · 0.45
getMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64