src/isomodel/Structure.hpp
| 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 | #ifndef ISOMODEL_STRUCTURE_HPP | ||
| 7 | #define ISOMODEL_STRUCTURE_HPP | ||
| 8 | |||
| 9 | #include "../utilities/data/Vector.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace isomodel { | ||
| 13 | class Structure | ||
| 14 | { | ||
| 15 | public: | ||
| 16 | 29 | double floorArea() const { | |
| 17 | 29 | return _floorArea; | |
| 18 | } | ||
| 19 | 2 | const Vector& wallArea() const { | |
| 20 | 2 | return _wallArea; | |
| 21 | } | ||
| 22 | 2 | const Vector& windowArea() const { | |
| 23 | 2 | return _windowArea; | |
| 24 | } | ||
| 25 | 1 | const Vector& wallUniform() const { | |
| 26 | 1 | return _wallUniform; | |
| 27 | } | ||
| 28 | 1 | const Vector& windowUniform() const { | |
| 29 | 1 | return _windowUniform; | |
| 30 | } | ||
| 31 | 1 | const Vector& wallThermalEmissivity() const { | |
| 32 | 1 | return _wallThermalEmissivity; | |
| 33 | } | ||
| 34 | 1 | const Vector& wallSolarAbsorbtion() const { | |
| 35 | 1 | return _wallSolarAbsorbtion; | |
| 36 | } | ||
| 37 | 1 | double windowShadingDevice() const { | |
| 38 | 1 | return _windowShadingDevice; | |
| 39 | } | ||
| 40 | 1 | const Vector& windowNormalIncidenceSolarEnergyTransmittance() const { | |
| 41 | 1 | return _windowNormalIncidenceSolarEnergyTransmittance; | |
| 42 | } | ||
| 43 | 109 | const Vector& windowShadingCorrectionFactor() const { | |
| 44 | 109 | return _windowShadingCorrectionFactor; | |
| 45 | } | ||
| 46 | 1 | double interiorHeatCapacity() const { | |
| 47 | 1 | return _interiorHeatCapacity; | |
| 48 | } | ||
| 49 | 1 | double wallHeatCapacity() const { | |
| 50 | 1 | return _wallHeatCapacity; | |
| 51 | } | ||
| 52 | 1 | double buildingHeight() const { | |
| 53 | 1 | return _buildingHeight; | |
| 54 | } | ||
| 55 | 1 | double infiltrationRate() const { | |
| 56 | 1 | return _infiltrationRate; | |
| 57 | } | ||
| 58 | 1 | void setFloorArea(double value) { | |
| 59 | 1 | _floorArea = value; | |
| 60 | 1 | } | |
| 61 | 1 | void setWallArea(const Vector& value) { | |
| 62 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _wallArea = value; |
| 63 | 1 | } | |
| 64 | 1 | void setWindowArea(const Vector& value) { | |
| 65 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _windowArea = value; |
| 66 | 1 | } | |
| 67 | 1 | void setWallUniform(const Vector& value) { | |
| 68 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _wallUniform = value; |
| 69 | 1 | } | |
| 70 | 1 | void setWindowUniform(const Vector& value) { | |
| 71 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _windowUniform = value; |
| 72 | 1 | } | |
| 73 | 1 | void setWallThermalEmissivity(const Vector& value) { | |
| 74 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _wallThermalEmissivity = value; |
| 75 | 1 | } | |
| 76 | 1 | void setWallSolarAbsorbtion(const Vector& value) { | |
| 77 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _wallSolarAbsorbtion = value; |
| 78 | 1 | } | |
| 79 | 1 | void setWindowShadingDevice(double value) { | |
| 80 | 1 | _windowShadingDevice = value; | |
| 81 | 1 | } | |
| 82 | 1 | void setWindowNormalIncidenceSolarEnergyTransmittance(const Vector& value) { | |
| 83 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _windowNormalIncidenceSolarEnergyTransmittance = value; |
| 84 | 1 | } | |
| 85 | 1 | void setWindowShadingCorrectionFactor(const Vector& value) { | |
| 86 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | _windowShadingCorrectionFactor = value; |
| 87 | 1 | } | |
| 88 | 1 | void setInteriorHeatCapacity(double value) { | |
| 89 | 1 | _interiorHeatCapacity = value; | |
| 90 | 1 | } | |
| 91 | 1 | void setWallHeatCapacity(double value) { | |
| 92 | 1 | _wallHeatCapacity = value; | |
| 93 | 1 | } | |
| 94 | 1 | void setBuildingHeight(double value) { | |
| 95 | 1 | _buildingHeight = value; | |
| 96 | 1 | } | |
| 97 | 1 | void setInfiltrationRate(double value) { | |
| 98 | 1 | _infiltrationRate = value; | |
| 99 | 1 | } | |
| 100 | |||
| 101 | private: | ||
| 102 | double _floorArea = 0; | ||
| 103 | Vector _wallArea; | ||
| 104 | Vector _windowArea; | ||
| 105 | Vector _wallUniform; | ||
| 106 | Vector _windowUniform; | ||
| 107 | Vector _wallThermalEmissivity; | ||
| 108 | Vector _wallSolarAbsorbtion; | ||
| 109 | double _windowShadingDevice = 0; | ||
| 110 | Vector _windowNormalIncidenceSolarEnergyTransmittance; | ||
| 111 | Vector _windowShadingCorrectionFactor; | ||
| 112 | double _interiorHeatCapacity = 0; | ||
| 113 | double _wallHeatCapacity = 0; | ||
| 114 | double _buildingHeight = 0; | ||
| 115 | double _infiltrationRate = 0; | ||
| 116 | }; | ||
| 117 | |||
| 118 | } // namespace isomodel | ||
| 119 | } // namespace openstudio | ||
| 120 | #endif // ISOMODEL_STRUCTURE_HPP | ||
| 121 |