src/energyplus/ForwardTranslator/ForwardTranslateInsideSurfaceConvectionAlgorithm.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/InsideSurfaceConvectionAlgorithm.hpp" | ||
| 8 | #include <utilities/idd/SurfaceConvectionAlgorithm_Inside_FieldEnums.hxx> | ||
| 9 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 10 | #include <utilities/idd/IddEnums.hxx> | ||
| 11 | |||
| 12 | using namespace openstudio::model; | ||
| 13 | |||
| 14 | namespace openstudio { | ||
| 15 | |||
| 16 | namespace energyplus { | ||
| 17 | |||
| 18 | 44 | boost::optional<IdfObject> ForwardTranslator::translateInsideSurfaceConvectionAlgorithm(InsideSurfaceConvectionAlgorithm& modelObject) { | |
| 19 |
2/2✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
|
44 | IdfObject idfObject(openstudio::IddObjectType::SurfaceConvectionAlgorithm_Inside); |
| 20 | |||
| 21 |
2/2✓ Branch 1 taken 44 times.
✓ Branch 4 taken 44 times.
|
44 | idfObject.setString(SurfaceConvectionAlgorithm_InsideFields::Algorithm, modelObject.algorithm()); |
| 22 | |||
| 23 |
1/1✓ Branch 1 taken 44 times.
|
44 | m_idfObjects.push_back(idfObject); |
| 24 | |||
| 25 |
1/1✓ Branch 1 taken 44 times.
|
88 | return boost::optional<IdfObject>(idfObject); |
| 26 | 44 | } | |
| 27 | |||
| 28 | } // namespace energyplus | ||
| 29 | |||
| 30 | } // namespace openstudio | ||
| 31 |