| 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); |