LCOV - code coverage report
Current view: top level - EnergyPlus - DataGlobalConstants.hh (source / functions) Hit Total Coverage
Test: lcov.output.filtered Lines: 0 10 0.0 %
Date: 2024-08-24 18:31:18 Functions: 0 1 0.0 %

          Line data    Source code
       1             : // EnergyPlus, Copyright (c) 1996-2024, The Board of Trustees of the University of Illinois,
       2             : // The Regents of the University of California, through Lawrence Berkeley National Laboratory
       3             : // (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
       4             : // National Laboratory, managed by UT-Battelle, Alliance for Sustainable Energy, LLC, and other
       5             : // contributors. All rights reserved.
       6             : //
       7             : // NOTICE: This Software was developed under funding from the U.S. Department of Energy and the
       8             : // U.S. Government consequently retains certain rights. As such, the U.S. Government has been
       9             : // granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable,
      10             : // worldwide license in the Software to reproduce, distribute copies to the public, prepare
      11             : // derivative works, and perform publicly and display publicly, and to permit others to do so.
      12             : //
      13             : // Redistribution and use in source and binary forms, with or without modification, are permitted
      14             : // provided that the following conditions are met:
      15             : //
      16             : // (1) Redistributions of source code must retain the above copyright notice, this list of
      17             : //     conditions and the following disclaimer.
      18             : //
      19             : // (2) Redistributions in binary form must reproduce the above copyright notice, this list of
      20             : //     conditions and the following disclaimer in the documentation and/or other materials
      21             : //     provided with the distribution.
      22             : //
      23             : // (3) Neither the name of the University of California, Lawrence Berkeley National Laboratory,
      24             : //     the University of Illinois, U.S. Dept. of Energy nor the names of its contributors may be
      25             : //     used to endorse or promote products derived from this software without specific prior
      26             : //     written permission.
      27             : //
      28             : // (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in stand-alone form
      29             : //     without changes from the version obtained under this License, or (ii) Licensee makes a
      30             : //     reference solely to the software portion of its product, Licensee must refer to the
      31             : //     software as "EnergyPlus version X" software, where "X" is the version number Licensee
      32             : //     obtained under this License and may not use a different name for the software. Except as
      33             : //     specifically required in this Section (4), Licensee shall not use in a company name, a
      34             : //     product name, in advertising, publicity, or other promotional activities any name, trade
      35             : //     name, trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or confusingly
      36             : //     similar designation, without the U.S. Department of Energy's prior written consent.
      37             : //
      38             : // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
      39             : // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
      40             : // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
      41             : // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
      42             : // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
      43             : // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
      44             : // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
      45             : // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
      46             : // POSSIBILITY OF SUCH DAMAGE.
      47             : 
      48             : #ifndef DataGlobalConstants_hh_INCLUDED
      49             : #define DataGlobalConstants_hh_INCLUDED
      50             : 
      51             : // EnergyPlus Headers
      52             : #include <fmt/format.h>
      53             : // #include <EnergyPlus/Data/BaseData.hh>
      54             : #include <EnergyPlus/EnergyPlus.hh>
      55             : 
      56             : namespace EnergyPlus {
      57             : 
      58             : namespace Constant {
      59             : 
      60             :     enum class EndUse
      61             :     {
      62             :         Invalid = -1,
      63             :         Heating,
      64             :         Cooling,
      65             :         InteriorLights,
      66             :         ExteriorLights,
      67             :         InteriorEquipment,
      68             :         ExteriorEquipment,
      69             :         Fans,
      70             :         Pumps,
      71             :         HeatRejection,
      72             :         Humidification,
      73             :         HeatRecovery,
      74             :         WaterSystem,
      75             :         Refrigeration,
      76             :         Cogeneration,
      77             :         Num
      78             :     };
      79             : 
      80             :     static constexpr std::array<std::string_view, (int)EndUse::Num> endUseNamesUC = {"HEATING",
      81             :                                                                                      "COOLING",
      82             :                                                                                      "INTERIORLIGHTS",
      83             :                                                                                      "EXTERIORLIGHTS",
      84             :                                                                                      "INTERIOREQUIPMENT",
      85             :                                                                                      "EXTERIOREQUIPMENT",
      86             :                                                                                      "FANS",
      87             :                                                                                      "PUMPS",
      88             :                                                                                      "HEATREJECTION",
      89             :                                                                                      "HUMIDIFIER",
      90             :                                                                                      "HEATRECOVERY",
      91             :                                                                                      "WATERSYSTEMS",
      92             :                                                                                      "REFRIGERATION",
      93             :                                                                                      "COGENERATION"};
      94             : 
      95             :     enum class eResource
      96             :     {
      97             :         Invalid = -1,
      98             :         Electricity,
      99             :         NaturalGas,
     100             :         Gasoline,
     101             :         Diesel,
     102             :         Coal,
     103             :         Propane,
     104             :         FuelOilNo1,
     105             :         FuelOilNo2,
     106             :         OtherFuel1,
     107             :         OtherFuel2,
     108             :         DistrictCooling,
     109             :         DistrictHeatingWater,
     110             :         DistrictHeatingSteam,
     111             :         Water,
     112             :         None, // used for OtherEquipment object
     113             :         EnergyTransfer,
     114             :         ElectricityProduced,
     115             :         ElectricityPurchased,
     116             :         ElectricitySurplusSold,
     117             :         ElectricityNet,
     118             :         SolarWater,
     119             :         SolarAir,
     120             :         CarbonEquivalent,
     121             :         PlantLoopHeatingDemand,
     122             :         PlantLoopCoolingDemand,
     123             :         OnSiteWater,
     124             :         MainsWater,
     125             :         RainWater,
     126             :         WellWater,
     127             :         Condensate,
     128             :         WaterEnvironmentalFactors,
     129             :         Source,
     130             :         Generic, // only used by custom meters
     131             :         SO2,
     132             :         NOx,
     133             :         N2O,
     134             :         PM,
     135             :         PM2_5,
     136             :         PM10,
     137             :         CO,
     138             :         CO2,
     139             :         CH4,
     140             :         NH3,
     141             :         NMVOC,
     142             :         Hg,
     143             :         Pb,
     144             :         NuclearHigh,
     145             :         NuclearLow,
     146             :         Num
     147             :     };
     148             : 
     149             :     enum class eFuel
     150             :     {
     151             :         Invalid = -1,
     152             :         Electricity,
     153             :         NaturalGas,
     154             :         Gasoline,
     155             :         Diesel,
     156             :         Coal,
     157             :         Propane,
     158             :         FuelOilNo1,
     159             :         FuelOilNo2,
     160             :         OtherFuel1,
     161             :         OtherFuel2,
     162             :         DistrictCooling,
     163             :         DistrictHeatingWater,
     164             :         DistrictHeatingSteam,
     165             :         Water,
     166             :         None, // used for OtherEquipment object
     167             :         Num
     168             :     };
     169             : 
     170             :     constexpr std::array<eFuel, static_cast<int>(eResource::Num)> eResource2eFuel = {eFuel::Electricity,
     171             :                                                                                      eFuel::NaturalGas,
     172             :                                                                                      eFuel::Gasoline,
     173             :                                                                                      eFuel::Diesel,
     174             :                                                                                      eFuel::Coal,
     175             :                                                                                      eFuel::Propane,
     176             :                                                                                      eFuel::FuelOilNo1,
     177             :                                                                                      eFuel::FuelOilNo2,
     178             :                                                                                      eFuel::OtherFuel1,
     179             :                                                                                      eFuel::OtherFuel2,
     180             :                                                                                      eFuel::DistrictCooling,
     181             :                                                                                      eFuel::DistrictHeatingWater,
     182             :                                                                                      eFuel::DistrictHeatingSteam,
     183             :                                                                                      eFuel::Water,
     184             :                                                                                      eFuel::None,
     185             :                                                                                      eFuel::Invalid,
     186             :                                                                                      eFuel::Invalid,
     187             :                                                                                      eFuel::Invalid,
     188             :                                                                                      eFuel::Invalid,
     189             :                                                                                      eFuel::Invalid,
     190             :                                                                                      eFuel::Invalid,
     191             :                                                                                      eFuel::Invalid,
     192             :                                                                                      eFuel::Invalid,
     193             :                                                                                      eFuel::Invalid,
     194             :                                                                                      eFuel::Invalid,
     195             :                                                                                      eFuel::Invalid,
     196             :                                                                                      eFuel::Invalid,
     197             :                                                                                      eFuel::Invalid,
     198             :                                                                                      eFuel::Invalid,
     199             :                                                                                      eFuel::Invalid,
     200             :                                                                                      eFuel::Invalid,
     201             :                                                                                      eFuel::Invalid,
     202             :                                                                                      eFuel::Invalid,
     203             :                                                                                      eFuel::Invalid,
     204             :                                                                                      eFuel::Invalid,
     205             :                                                                                      eFuel::Invalid,
     206             :                                                                                      eFuel::Invalid,
     207             :                                                                                      eFuel::Invalid,
     208             :                                                                                      eFuel::Invalid,
     209             :                                                                                      eFuel::Invalid,
     210             :                                                                                      eFuel::Invalid,
     211             :                                                                                      eFuel::Invalid,
     212             :                                                                                      eFuel::Invalid,
     213             :                                                                                      eFuel::Invalid,
     214             :                                                                                      eFuel::Invalid,
     215             :                                                                                      eFuel::Invalid,
     216             :                                                                                      eFuel::Invalid,
     217             :                                                                                      eFuel::Invalid};
     218             : 
     219             :     constexpr std::array<eResource, (int)eFuel::Num> eFuel2eResource = {eResource::Electricity,
     220             :                                                                         eResource::NaturalGas,
     221             :                                                                         eResource::Gasoline,
     222             :                                                                         eResource::Diesel,
     223             :                                                                         eResource::Coal,
     224             :                                                                         eResource::Propane,
     225             :                                                                         eResource::FuelOilNo1,
     226             :                                                                         eResource::FuelOilNo2,
     227             :                                                                         eResource::OtherFuel1,
     228             :                                                                         eResource::OtherFuel2,
     229             :                                                                         eResource::DistrictCooling,
     230             :                                                                         eResource::DistrictHeatingWater,
     231             :                                                                         eResource::DistrictHeatingSteam,
     232             :                                                                         eResource::Water,
     233             :                                                                         eResource::None};
     234             : 
     235             :     static constexpr std::array<std::string_view, (int)eResource::Num> eResourceNamesUC = {"ELECTRICITY",
     236             :                                                                                            "NATURALGAS",
     237             :                                                                                            "GASOLINE",
     238             :                                                                                            "DIESEL",
     239             :                                                                                            "COAL",
     240             :                                                                                            "PROPANE",
     241             :                                                                                            "FUELOILNO1",
     242             :                                                                                            "FUELOILNO2",
     243             :                                                                                            "OTHERFUEL1",
     244             :                                                                                            "OTHERFUEL2",
     245             :                                                                                            "DISTRICTCOOLING",
     246             :                                                                                            "DISTRICTHEATINGWATER",
     247             :                                                                                            "DISTRICTHEATINGSTEAM",
     248             :                                                                                            "WATER",
     249             :                                                                                            "NONE",
     250             :                                                                                            "ENERGYTRANSFER",
     251             :                                                                                            "ELECTRICITYPRODUCED",
     252             :                                                                                            "ELECTRICITYPURCHASED",
     253             :                                                                                            "ELECTRICITYSURPLUSSOLD",
     254             :                                                                                            "ELECTRICITYNET",
     255             :                                                                                            "SOLARWATER",
     256             :                                                                                            "SOLARAIR",
     257             :                                                                                            "CARBON EQUIVALENT",
     258             :                                                                                            "PLANTLOOPHEATINGDEMAND",
     259             :                                                                                            "PLANTLOOPCOOLINGDEMAND",
     260             :                                                                                            "ONSITEWATER",
     261             :                                                                                            "MAINSWATER",
     262             :                                                                                            "RAINWATER",
     263             :                                                                                            "WELLWATER",
     264             :                                                                                            "CONDENSATE",
     265             :                                                                                            "WATERENVIRONMENTALFACTORS",
     266             :                                                                                            "SOURCE",
     267             :                                                                                            "GENERIC",
     268             :                                                                                            "SO2",
     269             :                                                                                            "NOX",
     270             :                                                                                            "N2O",
     271             :                                                                                            "PM",
     272             :                                                                                            "PM2.5",
     273             :                                                                                            "PM10",
     274             :                                                                                            "CO",
     275             :                                                                                            "CO2",
     276             :                                                                                            "CH4",
     277             :                                                                                            "NH3",
     278             :                                                                                            "NMVOC",
     279             :                                                                                            "HG",
     280             :                                                                                            "PB",
     281             :                                                                                            "NUCLEAR HIGH",
     282             :                                                                                            "NUCLEAR LOW"};
     283             : 
     284             :     static constexpr std::array<std::string_view, (int)eResource::Num> eResourceNames = {"Electricity",
     285             :                                                                                          "NaturalGas",
     286             :                                                                                          "Gasoline",
     287             :                                                                                          "Diesel",
     288             :                                                                                          "Coal",
     289             :                                                                                          "Propane",
     290             :                                                                                          "FuelOilNo1",
     291             :                                                                                          "FuelOilNo2",
     292             :                                                                                          "OtherFuel1",
     293             :                                                                                          "OtherFuel2",
     294             :                                                                                          "DistrictCooling",
     295             :                                                                                          "DistrictHeatingWater",
     296             :                                                                                          "DistrictHeatingSteam",
     297             :                                                                                          "Water",
     298             :                                                                                          "None",
     299             :                                                                                          "EnergyTransfer",
     300             :                                                                                          "ElectricityProduced",
     301             :                                                                                          "ElectricityPurchased",
     302             :                                                                                          "ElectricitySurplusSold",
     303             :                                                                                          "ElectricityNet",
     304             :                                                                                          "SolarWater",
     305             :                                                                                          "SolarAir",
     306             :                                                                                          "Carbon Equivalent",
     307             :                                                                                          "PlantLoopHeatingDemand",
     308             :                                                                                          "PlantLoopCoolingDemand",
     309             :                                                                                          "OnSiteWater",
     310             :                                                                                          "MainsWater",
     311             :                                                                                          "RainWater",
     312             :                                                                                          "WellWater",
     313             :                                                                                          "Condensate",
     314             :                                                                                          "WaterEnvironmentalFactors",
     315             :                                                                                          "Source",
     316             :                                                                                          "Generic",
     317             :                                                                                          "SO2",
     318             :                                                                                          "NOx",
     319             :                                                                                          "N2O",
     320             :                                                                                          "PM",
     321             :                                                                                          "PM2.5",
     322             :                                                                                          "PM10",
     323             :                                                                                          "CO",
     324             :                                                                                          "CO2",
     325             :                                                                                          "CH4",
     326             :                                                                                          "NH3",
     327             :                                                                                          "NMVOC",
     328             :                                                                                          "Hg",
     329             :                                                                                          "Pb",
     330             :                                                                                          "Nuclear High",
     331             :                                                                                          "Nuclear Low"};
     332             : 
     333             :     static constexpr std::array<std::string_view, (int)eFuel::Num> eFuelNamesUC = {
     334             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::Electricity]],
     335             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::NaturalGas]],
     336             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::Gasoline]],
     337             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::Diesel]],
     338             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::Coal]],
     339             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::Propane]],
     340             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::FuelOilNo1]],
     341             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::FuelOilNo2]],
     342             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::OtherFuel1]],
     343             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::OtherFuel2]],
     344             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::DistrictCooling]],
     345             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::DistrictHeatingWater]],
     346             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::DistrictHeatingSteam]],
     347             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::Water]],
     348             :         eResourceNamesUC[(int)eFuel2eResource[(int)eFuel::None]]};
     349             : 
     350             :     static constexpr std::array<std::string_view, (int)eFuel::Num> eFuelNames = {
     351             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::Electricity]],
     352             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::NaturalGas]],
     353             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::Gasoline]],
     354             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::Diesel]],
     355             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::Coal]],
     356             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::Propane]],
     357             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::FuelOilNo1]],
     358             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::FuelOilNo2]],
     359             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::OtherFuel1]],
     360             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::OtherFuel2]],
     361             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::DistrictCooling]],
     362             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::DistrictHeatingWater]],
     363             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::DistrictHeatingSteam]],
     364             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::Water]],
     365             :         eResourceNames[(int)eFuel2eResource[(int)eFuel::None]]};
     366             : 
     367             :     enum class Units : signed int
     368             :     {
     369             :         Invalid = -1,
     370             :         kg_s,
     371             :         C,
     372             :         kgWater_kgDryAir,
     373             :         ppm,
     374             :         Pa,
     375             :         m3_s,
     376             :         None,
     377             :         min,
     378             :         W,
     379             :         J,
     380             :         m3,
     381             :         kg,
     382             :         ach,
     383             :         W_W,
     384             :         lux,
     385             :         lum_W,
     386             :         hr,
     387             :         cd_m2,
     388             :         J_kgWater,
     389             :         m_s,
     390             :         W_m2,
     391             :         m,
     392             :         Ah,
     393             :         A,
     394             :         V,
     395             :         deltaC,
     396             :         kmol_s,
     397             :         umol_m2s,
     398             :         rev_min,
     399             :         Btu_h_W,
     400             :         W_m2K,
     401             :         J_kg,
     402             :         kg_kg,
     403             :         Perc,
     404             :         deg,
     405             :         s,
     406             :         kg_m3,
     407             :         kg_m2s,
     408             :         J_kgK,
     409             :         L,
     410             :         K_m,
     411             :         m2,
     412             :         W_m2C,
     413             :         rad,
     414             :         J_m2,
     415             :         clo,
     416             :         W_mK,
     417             :         W_K,
     418             :         K_W,
     419             :         kgWater_s,
     420             :         unknown,
     421             :         customEMS,
     422             :         Num
     423             :     };
     424             : 
     425             :     constexpr std::array<std::string_view, (int)Units::Num> unitNames = {
     426             :         "kg/s",             // kg_s
     427             :         "C",                // C
     428             :         "kgWater/kgDryAir", // kgWater_kgDryAir
     429             :         "ppm",              // ppm
     430             :         "Pa",               // Pa
     431             :         "m3/s",             // m3_s
     432             :         "",                 // None
     433             :         "min",              // min
     434             :         "W",                // W
     435             :         "J",                // J
     436             :         "m3",               // m3
     437             :         "kg",               // kg
     438             :         "ach",              // ach
     439             :         "W/W",              // W_W
     440             :         "lux",              // lux
     441             :         "lum/W",            // lum_W
     442             :         "hr",               // hr
     443             :         "cd/m2",            // cd_m2
     444             :         "J/kgWater",        // J_kgWater
     445             :         "m/s",              // m_s
     446             :         "W/m2",             // W_m2
     447             :         "m",                // m
     448             :         "Ah",               // Ah
     449             :         "A",                // A
     450             :         "V",                // V
     451             :         "deltaC",           // deltaC
     452             :         "kmol/s",           // kmol_s
     453             :         "umol/m2-s",        // umol_m2s (micromol_m2s)
     454             :         "rev/min",          // rev_min
     455             :         "Btu/h-W",          // Btu_h_W
     456             :         "W/m2-K",           // W_m2K
     457             :         "J/kg",             // J_kg
     458             :         "kg/kg",            // kg_kg
     459             :         "%",                // Perc
     460             :         "deg",              // deg
     461             :         "s",                // s
     462             :         "kg/m3",            // kg_m3
     463             :         "kg/m2-s",          // kg_m2s
     464             :         "J/kg-K",           // J_kgK
     465             :         "L",                // L
     466             :         "K/m",              // K_m
     467             :         "m2",               // m2
     468             :         "W/m2-C",           // W_m2C
     469             :         "rad",              // rad
     470             :         "J/m2",             // J_m2
     471             :         "clo",              // clo
     472             :         "W/m-K",            // W_mK
     473             :         "W/K",              // W_K
     474             :         "K/W",              // K_W
     475             :         "kgWater/s",        // kgWater_s
     476             :         "unknown",          // unknown
     477             :         "customEMS"         // customEMS
     478             :     };
     479             : 
     480           0 :     inline std::string unitToString(Units unit)
     481             :     {
     482           0 :         switch (unit) {
     483           0 :         case Units::Invalid:
     484           0 :             return "invalid";
     485           0 :         default:
     486           0 :             const int iUnit = static_cast<int>(unit);
     487           0 :             constexpr int numUnitNames = unitNames.size();
     488           0 :             if (0 <= iUnit && iUnit < numUnitNames) {
     489           0 :                 return fmt::format("[{}]", unitNames[iUnit]);
     490             :             }
     491           0 :             return "invalid-out-of-range";
     492             :         }
     493             :     }
     494             : 
     495             :     constexpr std::array<std::string_view, (int)Units::Num> unitNamesUC = {
     496             :         "KG/S",             // kg_s
     497             :         "C",                // C
     498             :         "KGWATER/KGDRYAIR", // kgWater_kgDryAir
     499             :         "PPM",              // ppm
     500             :         "PA",               // Pa
     501             :         "M3/S",             // m3_s
     502             :         "",                 // None
     503             :         "MIN",              // min
     504             :         "W",                // W
     505             :         "J",                // J
     506             :         "M3",               // m3
     507             :         "KG",               // kg
     508             :         "ACH",              // ach
     509             :         "W/W",              // W_W
     510             :         "LUX",              // lux
     511             :         "LUM/W",            // lum_W
     512             :         "HR",               // hr
     513             :         "CD/M2",            // cd_m2
     514             :         "J/KGWATER",        // J_kgWater
     515             :         "M/S",              // m_s
     516             :         "W/M2",             // W_m2
     517             :         "M",                // m
     518             :         "AH",               // Ah
     519             :         "A",                // A
     520             :         "V",                // V
     521             :         "DELTAC",           // deltaC
     522             :         "KMOL/S",           // kmol_s
     523             :         "UMOL/M2-S",        // umol_m2s (micromol_m2s)
     524             :         "REV/MIN",          // rev_min
     525             :         "BTH/H-W",          // Btu_h_W
     526             :         "W/M2-K",           // W_m2K
     527             :         "J/KG",             // J_kg
     528             :         "KG/KG",            // kg_kg
     529             :         "%",                // Perc
     530             :         "DEG",              // deg
     531             :         "S",                // s
     532             :         "KG/M3",            // kg_m3
     533             :         "KG/M2-S",          // kg_m2s
     534             :         "J/KG-K",           // J_kgK
     535             :         "L",                // L
     536             :         "K/M",              // K_m
     537             :         "M2",               // m2
     538             :         "W/M2-C",           // W_m2C
     539             :         "RAD",              // rad
     540             :         "J/M2",             // J_m2
     541             :         "CLO",              // clo
     542             :         "W/M-K",            // W_mK
     543             :         "W/K",              // W_K
     544             :         "K/W",              // K_W
     545             :         "KGWATER/S",        // kgWater_s
     546             :         "UNKNOWN",          // unknown
     547             :         "CUSTOMEMS"         // customEMS
     548             :     };
     549             : 
     550             :     enum class CallIndicator
     551             :     {
     552             :         Invalid = -1,
     553             :         BeginDay,
     554             :         DuringDay,
     555             :         EndDay,
     556             :         EndZoneSizingCalc,
     557             :         EndSysSizingCalc,
     558             :         Num
     559             :     };
     560             : 
     561             :     enum class HeatOrCool
     562             :     {
     563             :         Invalid = -1,
     564             :         NoHeatNoCool,
     565             :         CoolingOnly,
     566             :         HeatingOnly,
     567             :         HeatAndCool,
     568             :         Num
     569             :     };
     570             : 
     571             :     // Parameters for KindOfSim
     572             :     enum class KindOfSim
     573             :     {
     574             :         // TODO: enum check
     575             :         Invalid = -1,
     576             :         DesignDay = 1,
     577             :         RunPeriodDesign = 2,
     578             :         RunPeriodWeather = 3,
     579             :         HVACSizeDesignDay = 4,       // a regular design day run during HVAC Sizing Simulation
     580             :         HVACSizeRunPeriodDesign = 5, // a weather period design day run during HVAC Sizing Simulation
     581             :         ReadAllWeatherData = 6,      // a weather period for reading all weather data prior to the simulation
     582             :         Num
     583             :     };
     584             : 
     585             :     Real64 constexpr OneThird = 1.0 / 3.0;   // 1/3 in highest precision
     586             :     Real64 constexpr OneFourth = 1.0 / 4.0;  // 1/4 in highest precision
     587             :     Real64 constexpr OneFifth = 1.0 / 5.0;   // 1/5 in highest precision
     588             :     Real64 constexpr OneSixth = 1.0 / 6.0;   // 1/6 in highest precision
     589             :     Real64 constexpr FourFifths = 4.0 / 5.0; // 4/5 in highest precision
     590             :     Real64 constexpr OneThousandth = 1.0e-3; // Used as a tolerance in various places
     591             :     Real64 constexpr OneMillionth = 1.0e-6;  // Used as a tolerance in various places
     592             : 
     593             :     Real64 constexpr OneCentimeter = 0.01;     // Geometric tolerance in meters
     594             :     Real64 constexpr TwoCentimeters = 0.02;    // Geometric tolerance in meters
     595             :     Real64 constexpr SmallDistance = 1.0e-4;   // Geometric tolerance in meters
     596             :     Real64 constexpr MaxEXPArg = 709.78;       // maximum exponent in EXP() function
     597             :     Real64 constexpr Pi = 3.14159265358979324; // Pi 3.1415926535897932384626435
     598             :     Real64 constexpr PiOvr2 = Pi / 2.0;        // Pi/2
     599             :     Real64 constexpr TwoPi = 2.0 * Pi;         // 2*Pi 6.2831853071795864769252868
     600             :     Real64 constexpr GravityConstant = 9.807;
     601             :     Real64 constexpr DegToRadians = Pi / 180.0;                           // Conversion for Degrees to Radians
     602             :     Real64 constexpr DegToRad = Pi / 180.0;                               // Why is it DegToRadians and RadToDeg? Why? WHY?
     603             :     Real64 constexpr RadToDeg = 180.0 / Pi;                               // Conversion for Radians to Degrees
     604             :     Real64 constexpr SecInHour = 3600.0;                                  // Conversion for hours to seconds
     605             :     Real64 constexpr HoursInDay = 24.0;                                   // Number of Hours in Day
     606             :     Real64 constexpr SecsInDay = SecInHour * HoursInDay;                  // Number of seconds in Day
     607             :     Real64 constexpr BigNumber = std::numeric_limits<Real64>::max();      // Max Number real used for initializations
     608             :     Real64 constexpr rTinyValue = std::numeric_limits<Real64>::epsilon(); // Tiny value to replace use of TINY(x)
     609             :     std::string::size_type constexpr MaxNameLength =
     610             :         100;                          // Maximum Name Length in Characters -- should be the same as MaxAlphaArgLength in InputProcessor module
     611             :     Real64 constexpr Kelvin = 273.15; // Conversion factor for C to K and K to C
     612             :     Real64 constexpr TriplePointOfWaterTempKelvin = 273.16; // The triple point of water, in Kelvin
     613             :     Real64 constexpr InitConvTemp = 5.05;                   // [deg C], standard init vol to mass flow conversion temp
     614             :     Real64 constexpr AutoCalculate = -99999.0;              // automatically calculate some fields.
     615             :     Real64 constexpr CWInitConvTemp = 5.05;                 // [deg C], standard init chilled water vol to mass flow conversion temp
     616             :     Real64 constexpr HWInitConvTemp = 60.0;                 // [deg C], standard init hot water vol to mass flow conversion temp
     617             :     Real64 constexpr SteamInitConvTemp = 100.0;             // [deg C], standard init steam vol to mass flow conversion temp
     618             :     Real64 constexpr StefanBoltzmann = 5.6697E-8;           // Stefan-Boltzmann constant in W/(m2*K4)
     619             :     Real64 constexpr UniversalGasConst = 8314.462175;       // Universal Gas Constant (J/mol*K)
     620             :     Real64 constexpr convertJtoGJ = 1.0E-9;                 // Conversion factor for J to GJ
     621             : 
     622             : } // namespace Constant
     623             : 
     624             : } // namespace EnergyPlus
     625             : 
     626             : #endif

Generated by: LCOV version 1.14