src/energyplus/ForwardTranslator/ForwardTranslateElectricLoadCenterInverterPVWatts.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/Model.hpp" | ||
| 9 | #include "../../model/ElectricLoadCenterInverterPVWatts.hpp" | ||
| 10 | #include "../../model/ElectricLoadCenterInverterPVWatts_Impl.hpp" | ||
| 11 | #include "../../model/Schedule.hpp" | ||
| 12 | #include "../../model/Schedule_Impl.hpp" | ||
| 13 | #include "../../model/ThermalZone.hpp" | ||
| 14 | #include "../../model/ThermalZone_Impl.hpp" | ||
| 15 | |||
| 16 | #include <utilities/idd/ElectricLoadCenter_Inverter_PVWatts_FieldEnums.hxx> | ||
| 17 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 18 | #include <utilities/idd/IddEnums.hxx> | ||
| 19 | |||
| 20 | using namespace openstudio::model; | ||
| 21 | |||
| 22 | using namespace std; | ||
| 23 | |||
| 24 | namespace openstudio { | ||
| 25 | |||
| 26 | namespace energyplus { | ||
| 27 | |||
| 28 | 1 | boost::optional<IdfObject> ForwardTranslator::translateElectricLoadCenterInverterPVWatts(model::ElectricLoadCenterInverterPVWatts& modelObject) { | |
| 29 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | IdfObject idfObject = createRegisterAndNameIdfObject(openstudio::IddObjectType::ElectricLoadCenter_Inverter_PVWatts, modelObject); |
| 30 | |||
| 31 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(ElectricLoadCenter_Inverter_PVWattsFields::DCtoACSizeRatio, modelObject.dcToACSizeRatio()); |
| 32 | |||
| 33 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(ElectricLoadCenter_Inverter_PVWattsFields::InverterEfficiency, modelObject.inverterEfficiency()); |
| 34 | |||
| 35 |
1/1✓ Branch 1 taken 1 time.
|
2 | return idfObject; |
| 36 | 1 | } | |
| 37 | |||
| 38 | } // namespace energyplus | ||
| 39 | |||
| 40 | } // namespace openstudio | ||
| 41 |