src/model/FenestrationMaterial.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 "FenestrationMaterial.hpp" | ||
| 7 | #include "FenestrationMaterial_Impl.hpp" | ||
| 8 | |||
| 9 | #include "../utilities/core/Assert.hpp" | ||
| 10 | |||
| 11 | namespace openstudio { | ||
| 12 | namespace model { | ||
| 13 | |||
| 14 | namespace detail { | ||
| 15 | |||
| 16 | 827 | FenestrationMaterial_Impl::FenestrationMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 17 | 827 | : Material_Impl(idfObject, model, keepHandle) {} | |
| 18 | |||
| 19 | 169 | FenestrationMaterial_Impl::FenestrationMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 20 | 169 | : Material_Impl(other, model, keepHandle) {} | |
| 21 | |||
| 22 | 307 | FenestrationMaterial_Impl::FenestrationMaterial_Impl(const FenestrationMaterial_Impl& other, Model_Impl* model, bool keepHandle) | |
| 23 | 307 | : Material_Impl(other, model, keepHandle) {} | |
| 24 | |||
| 25 | } // namespace detail | ||
| 26 | |||
| 27 | ✗ | double FenestrationMaterial::ufactorInsideAirTemperature() { | |
| 28 | static const double result = 294.261111111; | ||
| 29 | ✗ | return result; | |
| 30 | } | ||
| 31 | |||
| 32 | ✗ | double FenestrationMaterial::ufactorOutsideAirTemperature() { | |
| 33 | static const double result = 255.372222222; | ||
| 34 | ✗ | return result; | |
| 35 | } | ||
| 36 | |||
| 37 | ✗ | const std::vector<double> FenestrationMaterial::airThermalConductivityCoefficients() { | |
| 38 | ✗ | std::vector<double> result(3); | |
| 39 | ✗ | result[0] = 2.873E-3; | |
| 40 | ✗ | result[1] = 7.760E-5; | |
| 41 | ✗ | result[2] = 0.0; | |
| 42 | ✗ | return result; | |
| 43 | } | ||
| 44 | |||
| 45 | ✗ | const std::vector<double> FenestrationMaterial::airViscosityCoefficients() { | |
| 46 | ✗ | std::vector<double> result(3); | |
| 47 | ✗ | result[0] = 3.723E-6; | |
| 48 | ✗ | result[1] = 4.940E-8; | |
| 49 | ✗ | result[2] = 0.0; | |
| 50 | ✗ | return result; | |
| 51 | } | ||
| 52 | |||
| 53 | 1 | const std::vector<double> FenestrationMaterial::airSpecificHeatCoefficients() { | |
| 54 |
1/1✓ Branch 1 taken 1 time.
|
1 | std::vector<double> result(3); |
| 55 | 1 | result[0] = 1002.737; | |
| 56 | 1 | result[1] = 1.2324E-2; | |
| 57 | 1 | result[2] = 0.0; | |
| 58 | 1 | return result; | |
| 59 | } | ||
| 60 | |||
| 61 | ✗ | double FenestrationMaterial::airMolecularWeight() { | |
| 62 | static const double result(28.97); | ||
| 63 | ✗ | return result; | |
| 64 | } | ||
| 65 | |||
| 66 | 1 | const std::vector<double> FenestrationMaterial::argonThermalConductivityCoefficients() { | |
| 67 |
1/1✓ Branch 1 taken 1 time.
|
1 | std::vector<double> result(3); |
| 68 | 1 | result[0] = 2.285E-3; | |
| 69 | 1 | result[1] = 5.149E-5; | |
| 70 | 1 | result[2] = 0.0; | |
| 71 | 1 | return result; | |
| 72 | } | ||
| 73 | |||
| 74 | ✗ | const std::vector<double> FenestrationMaterial::argonViscosityCoefficients() { | |
| 75 | ✗ | std::vector<double> result(3); | |
| 76 | ✗ | result[0] = 3.379E-6; | |
| 77 | ✗ | result[1] = 6.451E-8; | |
| 78 | ✗ | result[2] = 0.0; | |
| 79 | ✗ | return result; | |
| 80 | } | ||
| 81 | |||
| 82 | ✗ | const std::vector<double> FenestrationMaterial::argonSpecificHeatCoefficients() { | |
| 83 | ✗ | std::vector<double> result(3); | |
| 84 | ✗ | result[0] = 521.929; | |
| 85 | ✗ | result[1] = 0.0; | |
| 86 | ✗ | result[2] = 0.0; | |
| 87 | ✗ | return result; | |
| 88 | } | ||
| 89 | |||
| 90 | ✗ | double FenestrationMaterial::argonMolecularWeight() { | |
| 91 | static const double result(39.94); | ||
| 92 | ✗ | return result; | |
| 93 | } | ||
| 94 | |||
| 95 | ✗ | const std::vector<double> FenestrationMaterial::kryptonThermalConductivityCoefficients() { | |
| 96 | ✗ | std::vector<double> result(3); | |
| 97 | ✗ | result[0] = 9.443E-4; | |
| 98 | ✗ | result[1] = 2.826E-5; | |
| 99 | ✗ | result[2] = 0.0; | |
| 100 | ✗ | return result; | |
| 101 | } | ||
| 102 | |||
| 103 | ✗ | const std::vector<double> FenestrationMaterial::kryptonViscosityCoefficients() { | |
| 104 | ✗ | std::vector<double> result(3); | |
| 105 | ✗ | result[0] = 2.213E-6; | |
| 106 | ✗ | result[1] = 7.777E-8; | |
| 107 | ✗ | result[2] = 0.0; | |
| 108 | ✗ | return result; | |
| 109 | } | ||
| 110 | |||
| 111 | ✗ | const std::vector<double> FenestrationMaterial::kryptonSpecificHeatCoefficients() { | |
| 112 | ✗ | std::vector<double> result(3); | |
| 113 | ✗ | result[0] = 248.091; | |
| 114 | ✗ | result[1] = 0.0; | |
| 115 | ✗ | result[2] = 0.0; | |
| 116 | ✗ | return result; | |
| 117 | } | ||
| 118 | |||
| 119 | ✗ | double FenestrationMaterial::kryptonMolecularWeight() { | |
| 120 | static const double result(83.8); | ||
| 121 | ✗ | return result; | |
| 122 | } | ||
| 123 | |||
| 124 | ✗ | const std::vector<double> FenestrationMaterial::xenonThermalConductivityCoefficients() { | |
| 125 | ✗ | std::vector<double> result(3); | |
| 126 | ✗ | result[0] = 4.538E-4; | |
| 127 | ✗ | result[1] = 1.723E-5; | |
| 128 | ✗ | result[2] = 0.0; | |
| 129 | ✗ | return result; | |
| 130 | } | ||
| 131 | |||
| 132 | 1 | const std::vector<double> FenestrationMaterial::xenonViscosityCoefficients() { | |
| 133 |
1/1✓ Branch 1 taken 1 time.
|
1 | std::vector<double> result(3); |
| 134 | 1 | result[0] = 1.069E-6; | |
| 135 | 1 | result[1] = 7.414E-8; | |
| 136 | 1 | result[2] = 0.0; | |
| 137 | 1 | return result; | |
| 138 | } | ||
| 139 | |||
| 140 | ✗ | const std::vector<double> FenestrationMaterial::xenonSpecificHeatCoefficients() { | |
| 141 | ✗ | std::vector<double> result(3); | |
| 142 | ✗ | result[0] = 158.34; | |
| 143 | ✗ | result[1] = 0.0; | |
| 144 | ✗ | result[2] = 0.0; | |
| 145 | ✗ | return result; | |
| 146 | } | ||
| 147 | |||
| 148 | ✗ | double FenestrationMaterial::xenonMolecularWeight() { | |
| 149 | static const double result(131.29); | ||
| 150 | ✗ | return result; | |
| 151 | } | ||
| 152 | |||
| 153 | /// @cond | ||
| 154 | 655 | FenestrationMaterial::FenestrationMaterial(IddObjectType type, const Model& model) : Material(type, model) { | |
| 155 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 655 times.
✗ Branch 5 not taken.
|
655 | OS_ASSERT(getImpl<detail::FenestrationMaterial_Impl>()); |
| 156 | 655 | } | |
| 157 | |||
| 158 |
1/1✓ Branch 3 taken 894 times.
|
894 | FenestrationMaterial::FenestrationMaterial(std::shared_ptr<detail::FenestrationMaterial_Impl> impl) : Material(std::move(impl)) {} |
| 159 | /// @endcond | ||
| 160 | |||
| 161 | } // namespace model | ||
| 162 | } // namespace openstudio | ||
| 163 |