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

Method RefrigerationSystem

src/model/RefrigerationSystem.cpp:808–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806 } // namespace detail
807
808 RefrigerationSystem::RefrigerationSystem(const Model& model) : ModelObject(RefrigerationSystem::iddObjectType(), model) {
809 OS_ASSERT(getImpl<detail::RefrigerationSystem_Impl>());
810
811 ModelObjectList caseAndWalkinList = ModelObjectList(model);
812 caseAndWalkinList.setName(this->name().get() + " Case and Walkin List");
813 bool ok = getImpl<detail::RefrigerationSystem_Impl>()->setRefrigeratedCaseAndWalkInList(caseAndWalkinList);
814 OS_ASSERT(ok);
815 ModelObjectList transferLoadList = ModelObjectList(model);
816 transferLoadList.setName(this->name().get() + " Transfer Load List");
817 ok = getImpl<detail::RefrigerationSystem_Impl>()->setRefrigerationTransferLoadList(transferLoadList);
818 OS_ASSERT(ok);
819 ModelObjectList compressorlist = ModelObjectList(model);
820 compressorlist.setName(this->name().get() + " Compressor List");
821 ok = getImpl<detail::RefrigerationSystem_Impl>()->setCompressorList(compressorlist);
822 OS_ASSERT(ok);
823 ModelObjectList highStageCompressorlist = ModelObjectList(model);
824 highStageCompressorlist.setName(this->name().get() + " High Stage Compressor List");
825 ok = getImpl<detail::RefrigerationSystem_Impl>()->setHighStageCompressorList(highStageCompressorlist);
826 OS_ASSERT(ok);
827 setMinimumCondensingTemperature(21.0);
828 ok = setRefrigerationSystemWorkingFluidType("R404a");
829 OS_ASSERT(ok);
830 ok = setSuctionTemperatureControlType("ConstantSuctionTemperature");
831 OS_ASSERT(ok);
832 }
833
834 IddObjectType RefrigerationSystem::iddObjectType() {
835 return {IddObjectType::OS_Refrigeration_System};

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected