src/energyplus/ForwardTranslator/ForwardTranslateAirGap.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/AirGap.hpp" | ||
| 9 | |||
| 10 | #include <utilities/idd/Material_AirGap_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 | 77 | boost::optional<IdfObject> ForwardTranslator::translateAirGap(AirGap& modelObject) { | |
| 21 |
2/2✓ Branch 1 taken 77 times.
✓ Branch 4 taken 77 times.
|
77 | IdfObject idfObject(openstudio::IddObjectType::Material_AirGap); |
| 22 | |||
| 23 |
1/1✓ Branch 1 taken 77 times.
|
77 | m_idfObjects.push_back(idfObject); |
| 24 | |||
| 25 |
3/3✓ Branch 1 taken 77 times.
✓ Branch 4 taken 77 times.
✓ Branch 7 taken 77 times.
|
77 | idfObject.setString(Material_AirGapFields::Name, modelObject.name().get()); |
| 26 | |||
| 27 |
2/2✓ Branch 1 taken 77 times.
✓ Branch 4 taken 77 times.
|
77 | idfObject.setDouble(Material_AirGapFields::ThermalResistance, modelObject.thermalResistance()); |
| 28 | |||
| 29 |
1/1✓ Branch 1 taken 77 times.
|
154 | return boost::optional<IdfObject>(idfObject); |
| 30 | 77 | } | |
| 31 | |||
| 32 | } // namespace energyplus | ||
| 33 | |||
| 34 | } // namespace openstudio | ||
| 35 |