src/isomodel/WeatherData.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_WEATHERDATA_HPP | ||
| 7 | #define ISOMODEL_WEATHERDATA_HPP | ||
| 8 | |||
| 9 | #include "ISOModelAPI.hpp" | ||
| 10 | #include "../utilities/data/Vector.hpp" | ||
| 11 | #include "../utilities/data/Matrix.hpp" | ||
| 12 | |||
| 13 | namespace openstudio { | ||
| 14 | namespace isomodel { | ||
| 15 | |||
| 16 | class ISOMODEL_API WeatherData | ||
| 17 | { | ||
| 18 | public: | ||
| 19 | /** | ||
| 20 | * mean monthly Global Horizontal Radiation (W/m2) | ||
| 21 | */ | ||
| 22 | 13 | const Vector& mEgh() const { | |
| 23 | 13 | return _mEgh; | |
| 24 | } | ||
| 25 | 3 | void setMEgh(Vector val) { | |
| 26 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | _mEgh = val; |
| 27 | 3 | } | |
| 28 | /** | ||
| 29 | * mean monthly dry bulb temp (C) | ||
| 30 | */ | ||
| 31 | 7 | const Vector& mdbt() const { | |
| 32 | 7 | return _mdbt; | |
| 33 | } | ||
| 34 | 3 | void setMdbt(Vector val) { | |
| 35 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | _mdbt = val; |
| 36 | 3 | } | |
| 37 | /** | ||
| 38 | * mean monthly wind speed; (m/s) | ||
| 39 | */ | ||
| 40 | 5 | const Vector& mwind() const { | |
| 41 | 5 | return _mwind; | |
| 42 | } | ||
| 43 | 3 | void setMwind(Vector val) { | |
| 44 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | _mwind = val; |
| 45 | 3 | } | |
| 46 | |||
| 47 | /** | ||
| 48 | * mean monthly total solar radiation (W/m2) on a vertical surface for each of the 8 cardinal directions | ||
| 49 | */ | ||
| 50 | 97 | const Matrix& msolar() const { | |
| 51 | 97 | return _msolar; | |
| 52 | } | ||
| 53 | /** | ||
| 54 | * mean monthly dry bulb temp for each of the 24 hours of the day (C) | ||
| 55 | */ | ||
| 56 | 2 | const Matrix& mhdbt() const { | |
| 57 | 2 | return _mhdbt; | |
| 58 | } | ||
| 59 | /** | ||
| 60 | * mean monthly Global Horizontal Radiation for each of the 24 hours of the day (W/m2) | ||
| 61 | */ | ||
| 62 | 2 | const Matrix& mhEgh() const { | |
| 63 | 2 | return _mhEgh; | |
| 64 | } | ||
| 65 | |||
| 66 | 3 | void setMhEgh(const Matrix& val) { | |
| 67 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | _mhEgh = val; |
| 68 | 3 | } | |
| 69 | 3 | void setMsolar(const Matrix& val) { | |
| 70 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | _msolar = val; |
| 71 | 3 | } | |
| 72 | 3 | void setMhdbt(const Matrix& val) { | |
| 73 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | _mhdbt = val; |
| 74 | 3 | } | |
| 75 | |||
| 76 | private: | ||
| 77 | Matrix _msolar; | ||
| 78 | Matrix _mhdbt; | ||
| 79 | Matrix _mhEgh; | ||
| 80 | Vector _mEgh; | ||
| 81 | Vector _mdbt; | ||
| 82 | Vector _mwind; | ||
| 83 | }; | ||
| 84 | } // namespace isomodel | ||
| 85 | } // namespace openstudio | ||
| 86 | |||
| 87 | #endif // ISOMODEL_WEATHERDATA_HPP | ||
| 88 |