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

Method sizingPlant

src/model/PlantLoop.cpp:893–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891 }
892
893 SizingPlant PlantLoop_Impl::sizingPlant() const {
894 boost::optional<SizingPlant> sizingPlant;
895
896 std::vector<SizingPlant> sizingObjects;
897
898 sizingObjects = model().getConcreteModelObjects<SizingPlant>();
899
900 for (const auto& sizingObject : sizingObjects) {
901 if (sizingObject.plantLoop().handle() == this->handle()) {
902 sizingPlant = sizingObject;
903 }
904 }
905
906 if (sizingPlant) {
907 return sizingPlant.get();
908 } else {
909 LOG_AND_THROW("PlantLoop missing SizingPlant object");
910 }
911 }
912
913 std::string PlantLoop_Impl::commonPipeSimulation() const {
914 boost::optional<std::string> value = getString(OS_PlantLoopFields::CommonPipeSimulation, true);

Callers 15

translateCoilCoolingMethod · 0.80
translateFluidSysMethod · 0.80
translateChillerMethod · 0.80
addSystemType1Function · 0.80
addSystemType5Function · 0.80
addSystemType7Function · 0.80
addSystemType8Function · 0.80
addSHWLoopFunction · 0.80

Calls 3

handleMethod · 0.45
plantLoopMethod · 0.45
getMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64