src/energyplus/ForwardTranslator/ForwardTranslateZoneAirMassFlowConservation.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 | #include "../../model/Model.hpp" | ||
| 8 | #include "../../model/ZoneAirMassFlowConservation.hpp" | ||
| 9 | #include "../../model/ZoneAirMassFlowConservation_Impl.hpp" | ||
| 10 | |||
| 11 | #include <utilities/idd/ZoneAirMassFlowConservation_FieldEnums.hxx> | ||
| 12 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 13 | #include <utilities/idd/IddEnums.hxx> | ||
| 14 | #include <utilities/idd/IddFactory.hxx> | ||
| 15 | |||
| 16 | using namespace openstudio::model; | ||
| 17 | |||
| 18 | namespace openstudio { | ||
| 19 | |||
| 20 | namespace energyplus { | ||
| 21 | |||
| 22 | ✗ | boost::optional<IdfObject> ForwardTranslator::translateZoneAirMassFlowConservation(ZoneAirMassFlowConservation& modelObject) { | |
| 23 | // Makes sure the modelObject gets put in the map, and that the new idfObject gets put in | ||
| 24 | // the final file. Also set's the idfObject's name. | ||
| 25 | ✗ | IdfObject idfObject = createRegisterAndNameIdfObject(IddObjectType::ZoneAirMassFlowConservation, modelObject); | |
| 26 | |||
| 27 | ✗ | idfObject.setString(ZoneAirMassFlowConservationFields::AdjustZoneMixingandReturnForAirMassFlowBalance, | |
| 28 | ✗ | modelObject.adjustZoneMixingandReturnForAirMassFlowBalance()); | |
| 29 | |||
| 30 | ✗ | idfObject.setString(ZoneAirMassFlowConservationFields::InfiltrationBalancingMethod, modelObject.infiltrationBalancingMethod()); | |
| 31 | |||
| 32 | ✗ | idfObject.setString(ZoneAirMassFlowConservationFields::InfiltrationBalancingZones, modelObject.infiltrationBalancingZones()); | |
| 33 | |||
| 34 | ✗ | return idfObject; | |
| 35 | ✗ | } | |
| 36 | |||
| 37 | } // namespace energyplus | ||
| 38 | |||
| 39 | } // namespace openstudio | ||
| 40 |