src/energyplus/ForwardTranslator/ForwardTranslateZoneCapacitanceMultiplierResearchSpecial.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "../ForwardTranslator.hpp" | ||
| 7 | |||
| 8 | #include "../../model/ZoneCapacitanceMultiplierResearchSpecial.hpp" | ||
| 9 | |||
| 10 | #include <utilities/idd/ZoneCapacitanceMultiplier_ResearchSpecial_FieldEnums.hxx> | ||
| 11 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 12 | #include <utilities/idd/IddEnums.hxx> | ||
| 13 | |||
| 14 | using namespace openstudio::model; | ||
| 15 | |||
| 16 | namespace openstudio { | ||
| 17 | |||
| 18 | namespace energyplus { | ||
| 19 | |||
| 20 | boost::optional<IdfObject> | ||
| 21 | 11 | ForwardTranslator::translateZoneCapacitanceMultiplierResearchSpecial(ZoneCapacitanceMultiplierResearchSpecial& modelObject) { | |
| 22 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | IdfObject idfObject(openstudio::IddObjectType::ZoneCapacitanceMultiplier_ResearchSpecial); |
| 23 | |||
| 24 |
1/1✓ Branch 1 taken 11 times.
|
11 | m_idfObjects.push_back(idfObject); |
| 25 | |||
| 26 | // This is a unique model object *in OpenStudio* | ||
| 27 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | idfObject.setName("Zone Capacitance Multiplier Research Special"); |
| 28 | |||
| 29 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 10 times.
|
11 | if (!modelObject.isTemperatureCapacityMultiplierDefaulted()) { |
| 30 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(ZoneCapacitanceMultiplier_ResearchSpecialFields::TemperatureCapacityMultiplier, |
| 31 | modelObject.temperatureCapacityMultiplier()); | ||
| 32 | } | ||
| 33 | |||
| 34 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 10 times.
|
11 | if (!modelObject.isHumidityCapacityMultiplierDefaulted()) { |
| 35 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(ZoneCapacitanceMultiplier_ResearchSpecialFields::HumidityCapacityMultiplier, modelObject.humidityCapacityMultiplier()); |
| 36 | } | ||
| 37 | |||
| 38 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 10 times.
|
11 | if (!modelObject.isCarbonDioxideCapacityMultiplierDefaulted()) { |
| 39 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(ZoneCapacitanceMultiplier_ResearchSpecialFields::CarbonDioxideCapacityMultiplier, |
| 40 | modelObject.carbonDioxideCapacityMultiplier()); | ||
| 41 | } | ||
| 42 | |||
| 43 |
1/1✓ Branch 1 taken 11 times.
|
22 | return boost::optional<IdfObject>(idfObject); |
| 44 | 11 | } | |
| 45 | |||
| 46 | } // namespace energyplus | ||
| 47 | |||
| 48 | } // namespace openstudio | ||
| 49 |