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

Method setGeneratorHeatSourceType

src/model/ChillerAbsorption.cpp:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 }
329
330 bool ChillerAbsorption_Impl::setGeneratorHeatSourceType(const std::string& generatorHeatSourceType) {
331 bool ok = false;
332 if (istringEqual("Steam", generatorHeatSourceType) && (this->generatorLoop())) {
333 // We don't support Steam loops in OS right now
334 LOG(Warn, "Cannot set generatorHeatSourceType to 'Steam' as chiller '" << this->name() << "' is connected to a generatorLoop");
335 } else {
336 ok = setString(OS_Chiller_AbsorptionFields::GeneratorHeatSourceType, generatorHeatSourceType);
337 }
338 return ok;
339 }
340
341 bool ChillerAbsorption_Impl::setDesignGeneratorFluidFlowRate(boost::optional<double> designGeneratorFluidFlowRate) {
342 bool result(false);

Callers 5

addToTertiaryNodeMethod · 0.95
translateChillerMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 3

generatorLoopMethod · 0.95
istringEqualFunction · 0.85
nameMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36