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

Method CentralHeatPumpSystem

src/model/CentralHeatPumpSystem.cpp:354–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 } // namespace detail
353
354 CentralHeatPumpSystem::CentralHeatPumpSystem(const Model& model) : WaterToWaterComponent(CentralHeatPumpSystem::iddObjectType(), model) {
355 OS_ASSERT(getImpl<detail::CentralHeatPumpSystem_Impl>());
356
357 bool ok = true;
358 ok = setControlMethod("SmartMixing");
359 OS_ASSERT(ok);
360 ok = setAncillaryPower(0.0);
361 OS_ASSERT(ok);
362
363 auto chillerHeaterModuleList = ModelObjectList(model);
364 chillerHeaterModuleList.setName(this->name().get() + " Chiller Heater Module List");
365 ok = getImpl<detail::CentralHeatPumpSystem_Impl>()->setChillerHeaterModuleList(chillerHeaterModuleList);
366 OS_ASSERT(ok);
367
368 // Perhaps we should by default add one CentralHeatPumpSystemModule
369 // But this is at least caught by the ForwardTranslator right now...
370 }
371
372 IddObjectType CentralHeatPumpSystem::iddObjectType() {
373 return {IddObjectType::OS_CentralHeatPumpSystem};

Callers

nothing calls this directly

Calls 6

iddObjectTypeFunction · 0.70
ModelObjectListClass · 0.70
setNameMethod · 0.45
getMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected