LCOV - code coverage report
Current view: top level - EnergyPlus - OutputReportPredefined.cc (source / functions) Hit Total Coverage
Test: lcov.output.filtered Lines: 1209 1231 98.2 %
Date: 2024-08-24 18:31:18 Functions: 10 12 83.3 %

          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             : // ObjexxFCL Headers
      49             : #include <ObjexxFCL/Array.functions.hh>
      50             : 
      51             : // EnergyPlus Headers
      52             : #include <EnergyPlus/Data/EnergyPlusData.hh>
      53             : #include <EnergyPlus/OutputReportPredefined.hh>
      54             : 
      55             : namespace EnergyPlus {
      56             : 
      57             : namespace OutputReportPredefined {
      58             : 
      59             :     // MODULE INFORMATION:
      60             :     //    AUTHOR         Jason Glazer of GARD Analytics, Inc.
      61             :     //    DATE WRITTEN   August 2006
      62             :     //    MODIFIED       na
      63             :     //    RE-ENGINEERED  na
      64             :     // PURPOSE OF THIS MODULE:
      65             :     //    Support the creation of predefined tabular output.
      66             :     // METHODOLOGY EMPLOYED:
      67             :     // REFERENCES:
      68             :     //    None.
      69             :     // OTHER NOTES:.
      70             :     // Using/Aliasing
      71             :     // Data
      72             :     // The following section initializes the predefined column heading variables
      73             :     // The variables get their value in AssignPredefined
      74             : 
      75             :     // Internal data structures to store information provided by calls
      76             : 
      77         796 :     void SetPredefinedTables(EnergyPlusData &state)
      78             :     {
      79             :         // SUBROUTINE INFORMATION:
      80             :         //       AUTHOR         Jason Glazer
      81             :         //       DATE WRITTEN   August 2006
      82             :         //       MODIFIED
      83             :         //       RE-ENGINEERED  na
      84             : 
      85             :         // PURPOSE OF THIS SUBROUTINE:
      86             :         //   Creates the structure of the predefined reports
      87             :         //   including the name and abbreviation of the report
      88             :         //   the subtables involved and the column headings.
      89             :         //   The variables defined for the columns are then
      90             :         //   used throughout the program to assign values
      91             :         //   to the subtables.
      92             : 
      93             :         // METHODOLOGY EMPLOYED:
      94             :         //   Simple assignments to public variables.
      95             : 
      96             :         // Climate Summary Report
      97             : 
      98         796 :         auto &s(state.dataOutRptPredefined);
      99             : 
     100         796 :         s->pdrClim = newPreDefReport(state, "ClimaticDataSummary", "Clim", "Climatic Data Summary");
     101             : 
     102         796 :         s->pdstDesDay = newPreDefSubTable(state, s->pdrClim, "SizingPeriod:DesignDay");
     103             : 
     104         796 :         s->pdchDDmaxDB = newPreDefColumn(state, s->pdstDesDay, "Maximum Dry Bulb [C]");
     105         796 :         s->pdchDDrange = newPreDefColumn(state, s->pdstDesDay, "Daily Temperature Range [deltaC]");
     106         796 :         s->pdchDDhumid = newPreDefColumn(state, s->pdstDesDay, "Humidity Value");
     107         796 :         s->pdchDDhumTyp = newPreDefColumn(state, s->pdstDesDay, "Humidity Type");
     108         796 :         s->pdchDDwindSp = newPreDefColumn(state, s->pdstDesDay, "Wind Speed [m/s]");
     109         796 :         s->pdchDDwindDr = newPreDefColumn(state, s->pdstDesDay, "Wind Direction");
     110             : 
     111         796 :         s->pdstMonthlyPrec = newPreDefSubTable(state, s->pdrClim, "Monthly Precipitation Summary");
     112             : 
     113         796 :         s->pdchMonthlyTotalPrecInWeather = newPreDefColumn(state, s->pdstMonthlyPrec, "Monthly Total Precipitation from .epw [mm]");
     114         796 :         s->pdchMonthlyTotalHrRain = newPreDefColumn(state, s->pdstMonthlyPrec, "Monthly Total Hours of Rain from .epw");
     115         796 :         s->pdchMonthlyTotalPrecInSitePrec = newPreDefColumn(state, s->pdstMonthlyPrec, "Monthly Total Precipitation in Site:Precipitation [mm]");
     116         796 :         s->pdchMonthlyTotalIrrDep = newPreDefColumn(state, s->pdstMonthlyPrec, "Monthly Total Roof Irrigation Depth [mm]");
     117         796 :         s->pdchMonthlyTotalRainCol = newPreDefColumn(state, s->pdstMonthlyPrec, "Monthly Total Rain Collection Volume [m3]");
     118             : 
     119         796 :         s->pdstWthr = newPreDefSubTable(state, s->pdrClim, "Weather Statistics File");
     120         796 :         s->pdchWthrVal = newPreDefColumn(state, s->pdstWthr, "Value");
     121             : 
     122             :         // Envelope Report
     123             : 
     124         796 :         s->pdrEnvelope = newPreDefReport(state, "EnvelopeSummary", "Env", "Envelope Summary");
     125             : 
     126         796 :         s->pdstOpaque = newPreDefSubTable(state, s->pdrEnvelope, "Opaque Exterior");
     127             : 
     128         796 :         s->pdchOpCons = newPreDefColumn(state, s->pdstOpaque, "Construction");
     129         796 :         s->pdchOpZone = newPreDefColumn(state, s->pdstOpaque, "Zone");
     130         796 :         s->pdchOpRefl = newPreDefColumn(state, s->pdstOpaque, "Reflectance");
     131         796 :         s->pdchOpUfactFilm = newPreDefColumn(state, s->pdstOpaque, "U-Factor with Film [W/m2-K]");
     132         796 :         s->pdchOpUfactNoFilm = newPreDefColumn(state, s->pdstOpaque, "U-Factor no Film [W/m2-K]");
     133         796 :         s->pdchOpGrArea = newPreDefColumn(state, s->pdstOpaque, "Gross Area [m2]");
     134         796 :         s->pdchOpNetArea = newPreDefColumn(state, s->pdstOpaque, "Net Area [m2]");
     135         796 :         s->pdchOpAzimuth = newPreDefColumn(state, s->pdstOpaque, "Azimuth [deg]");
     136         796 :         s->pdchOpTilt = newPreDefColumn(state, s->pdstOpaque, "Tilt [deg]");
     137         796 :         s->pdchOpDir = newPreDefColumn(state, s->pdstOpaque, "Cardinal Direction");
     138             : 
     139         796 :         s->pdstIntOpaque = newPreDefSubTable(state, s->pdrEnvelope, "Opaque Interior");
     140             : 
     141         796 :         s->pdchIntOpCons = newPreDefColumn(state, s->pdstIntOpaque, "Construction");
     142         796 :         s->pdchIntOpZone = newPreDefColumn(state, s->pdstIntOpaque, "Zone");
     143         796 :         s->pdchIntOpAdjSurf = newPreDefColumn(state, s->pdstIntOpaque, "Adjacent Surface");
     144         796 :         s->pdchIntOpRefl = newPreDefColumn(state, s->pdstIntOpaque, "Reflectance");
     145         796 :         s->pdchIntOpUfactFilm = newPreDefColumn(state, s->pdstIntOpaque, "U-Factor with Film [W/m2-K]");
     146         796 :         s->pdchIntOpUfactNoFilm = newPreDefColumn(state, s->pdstIntOpaque, "U-Factor no Film [W/m2-K]");
     147         796 :         s->pdchIntOpGrArea = newPreDefColumn(state, s->pdstIntOpaque, "Gross Area [m2]");
     148         796 :         s->pdchIntOpNetArea = newPreDefColumn(state, s->pdstIntOpaque, "Net Area [m2]");
     149         796 :         s->pdchIntOpAzimuth = newPreDefColumn(state, s->pdstIntOpaque, "Azimuth [deg]");
     150         796 :         s->pdchIntOpTilt = newPreDefColumn(state, s->pdstIntOpaque, "Tilt [deg]");
     151         796 :         s->pdchIntOpDir = newPreDefColumn(state, s->pdstIntOpaque, "Cardinal Direction");
     152             : 
     153         796 :         s->pdstFen = newPreDefSubTable(state, s->pdrEnvelope, "Exterior Fenestration");
     154             : 
     155         796 :         s->pdchFenCons = newPreDefColumn(state, s->pdstFen, "Construction");
     156         796 :         s->pdchFenFrameDivName = newPreDefColumn(state, s->pdstFen, "Frame and Divider");
     157         796 :         s->pdchFenGlassAreaOf1 = newPreDefColumn(state, s->pdstFen, "Glass Area [m2]");
     158         796 :         s->pdchFenFrameAreaOf1 = newPreDefColumn(state, s->pdstFen, "Frame Area [m2]");
     159         796 :         s->pdchFenDividerAreaOf1 = newPreDefColumn(state, s->pdstFen, "Divider Area [m2]");
     160         796 :         s->pdchFenAreaOf1 = newPreDefColumn(state, s->pdstFen, "Area of One Opening [m2]");
     161         796 :         s->pdchFenArea = newPreDefColumn(state, s->pdstFen, "Area of Multiplied Openings [m2]");
     162         796 :         s->pdchFenUfact = newPreDefColumn(state, s->pdstFen, "Glass U-Factor [W/m2-K]");
     163         796 :         s->pdchFenSHGC = newPreDefColumn(state, s->pdstFen, "Glass SHGC");
     164         796 :         s->pdchFenVisTr = newPreDefColumn(state, s->pdstFen, "Glass Visible Transmittance");
     165         796 :         s->pdchFenFrameConductance = newPreDefColumn(state, s->pdstFen, "Frame Conductance [W/m2-K]");
     166         796 :         s->pdchFenDividerConductance = newPreDefColumn(state, s->pdstFen, "Divider Conductance [W/m2-K]");
     167         796 :         s->pdchFenAssemNfrcType = newPreDefColumn(state, s->pdstFen, "NFRC Product Type");
     168         796 :         s->pdchFenAssemUfact = newPreDefColumn(state, s->pdstFen, "Assembly U-Factor [W/m2-K]");
     169         796 :         s->pdchFenAssemSHGC = newPreDefColumn(state, s->pdstFen, "Assembly SHGC");
     170         796 :         s->pdchFenAssemVisTr = newPreDefColumn(state, s->pdstFen, "Assembly Visible Transmittance");
     171         796 :         s->pdchFenSwitchable = newPreDefColumn(state, s->pdstFen, "Shade Control");
     172         796 :         s->pdchFenParent = newPreDefColumn(state, s->pdstFen, "Parent Surface");
     173         796 :         s->pdchFenAzimuth = newPreDefColumn(state, s->pdstFen, "Azimuth [deg]");
     174         796 :         s->pdchFenTilt = newPreDefColumn(state, s->pdstFen, "Tilt [deg]");
     175         796 :         s->pdchFenDir = newPreDefColumn(state, s->pdstFen, "Cardinal Direction");
     176             : 
     177         796 :         s->pdstFenShd = newPreDefSubTable(state, s->pdrEnvelope, "Exterior Fenestration Shaded State");
     178             : 
     179         796 :         s->pdchFenShdFrameDiv = newPreDefColumn(state, s->pdstFenShd, "Frame and Divider");
     180         796 :         s->pdchFenShdUfact = newPreDefColumn(state, s->pdstFenShd, "Glass U-Factor [W/m2-K]");
     181         796 :         s->pdchFenShdSHGC = newPreDefColumn(state, s->pdstFenShd, "Glass SHGC");
     182         796 :         s->pdchFenShdVisTr = newPreDefColumn(state, s->pdstFenShd, "Glass Visible Transmittance");
     183         796 :         s->pdchFenShdAssemNfrcType = newPreDefColumn(state, s->pdstFenShd, "NFRC Product Type");
     184         796 :         s->pdchFenShdAssemUfact = newPreDefColumn(state, s->pdstFenShd, "Assembly U-Factor [W/m2-K]");
     185         796 :         s->pdchFenShdAssemSHGC = newPreDefColumn(state, s->pdstFenShd, "Assembly SHGC");
     186         796 :         s->pdchFenShdAssemVisTr = newPreDefColumn(state, s->pdstFenShd, "Assembly Visible Transmittance");
     187             : 
     188         796 :         s->pdstIntFen = newPreDefSubTable(state, s->pdrEnvelope, "Interior Fenestration");
     189             : 
     190         796 :         s->pdchIntFenCons = newPreDefColumn(state, s->pdstIntFen, "Construction");
     191         796 :         s->pdchIntFenAreaOf1 = newPreDefColumn(state, s->pdstIntFen, "Area of One Opening [m2]");
     192         796 :         s->pdchIntFenArea = newPreDefColumn(state, s->pdstIntFen, "Area of Openings [m2]");
     193         796 :         s->pdchIntFenUfact = newPreDefColumn(state, s->pdstIntFen, "Glass U-Factor [W/m2-K]");
     194         796 :         s->pdchIntFenSHGC = newPreDefColumn(state, s->pdstIntFen, "Glass SHGC");
     195         796 :         s->pdchIntFenVisTr = newPreDefColumn(state, s->pdstIntFen, "Glass Visible Transmittance");
     196         796 :         s->pdchIntFenParent = newPreDefColumn(state, s->pdstIntFen, "Parent Surface");
     197             :         // s->pdchIntFenGlassAreaOf1 =   newPreDefColumn(state, s->pdstIntFen,'Glass Area [m2]')
     198             :         // s->pdchIntFenFrameAreaOf1 =   newPreDefColumn(state, s->pdstIntFen,'Frame Area [m2]')
     199             :         // s->pdchIntFenDividerAreaOf1 =   newPreDefColumn(state, s->pdstIntFen,'Divider Area [m2]')
     200             :         // s->pdchIntFenFrameConductance =  newPreDefColumn(state, s->pdstIntFen,'Frame Conductance [W/m2-K]')
     201             :         // s->pdchIntFenDividerConductance =  newPreDefColumn(state, s->pdstIntFen,'Divider Conductance [W/m2-K]')
     202             : 
     203         796 :         s->pdstDoor = newPreDefSubTable(state, s->pdrEnvelope, "Exterior Door");
     204         796 :         s->pdchDrCons = newPreDefColumn(state, s->pdstDoor, "Construction");
     205         796 :         s->pdchDrUfactFilm = newPreDefColumn(state, s->pdstDoor, "U-Factor with Film [W/m2-K]");
     206         796 :         s->pdchDrUfactNoFilm = newPreDefColumn(state, s->pdstDoor, "U-Factor no Film [W/m2-K]");
     207         796 :         s->pdchDrGrArea = newPreDefColumn(state, s->pdstDoor, "Gross Area [m2]");
     208         796 :         s->pdchDrParent = newPreDefColumn(state, s->pdstDoor, "Parent Surface");
     209             : 
     210         796 :         s->pdstIntDoor = newPreDefSubTable(state, s->pdrEnvelope, "Interior Door");
     211             : 
     212         796 :         s->pdchIntDrCons = newPreDefColumn(state, s->pdstIntDoor, "Construction");
     213         796 :         s->pdchIntDrUfactFilm = newPreDefColumn(state, s->pdstIntDoor, "U-Factor with Film [W/m2-K]");
     214         796 :         s->pdchIntDrUfactNoFilm = newPreDefColumn(state, s->pdstIntDoor, "U-Factor no Film [W/m2-K]");
     215         796 :         s->pdchIntDrGrArea = newPreDefColumn(state, s->pdstIntDoor, "Gross Area [m2]");
     216         796 :         s->pdchIntDrParent = newPreDefColumn(state, s->pdstIntDoor, "Parent Surface");
     217             : 
     218         796 :         s->pdstOpqConsLayers = newPreDefSubTable(state, s->pdrEnvelope, "Opaque Construction Layers");
     219             : 
     220         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 1"));
     221         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 2"));
     222         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 3"));
     223         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 4"));
     224         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 5"));
     225         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 6"));
     226         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 7"));
     227         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 8"));
     228         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 9"));
     229         796 :         s->pdchOpqConsLayCol.push_back(newPreDefColumn(state, s->pdstOpqConsLayers, "Layer 10"));
     230             : 
     231             :         // Shading Report
     232         796 :         s->pdrShading = newPreDefReport(state, "ShadingSummary", "Shade", "Shading Summary");
     233             : 
     234         796 :         s->pdstSunlitFrac = newPreDefSubTable(state, s->pdrShading, "Sunlit Fraction");
     235             : 
     236         796 :         s->pdchSlfMar21_9 = newPreDefColumn(state, s->pdstSunlitFrac, "March 21 9am");
     237         796 :         s->pdchSlfMar21_12 = newPreDefColumn(state, s->pdstSunlitFrac, "March 21 noon");
     238         796 :         s->pdchSlfMar21_15 = newPreDefColumn(state, s->pdstSunlitFrac, "March 21 3pm");
     239         796 :         s->pdchSlfJun21_9 = newPreDefColumn(state, s->pdstSunlitFrac, "June 21 9am");
     240         796 :         s->pdchSlfJun21_12 = newPreDefColumn(state, s->pdstSunlitFrac, "June 21 noon");
     241         796 :         s->pdchSlfJun21_15 = newPreDefColumn(state, s->pdstSunlitFrac, "June 21 3pm");
     242         796 :         s->pdchSlfDec21_9 = newPreDefColumn(state, s->pdstSunlitFrac, "December 21 9am");
     243         796 :         s->pdchSlfDec21_12 = newPreDefColumn(state, s->pdstSunlitFrac, "December 21 noon");
     244         796 :         s->pdchSlfDec21_15 = newPreDefColumn(state, s->pdstSunlitFrac, "December 21 3pm");
     245             : 
     246         796 :         s->pdstWindowControl = newPreDefSubTable(state, s->pdrShading, "Window Control");
     247             : 
     248         796 :         s->pdchWscName = newPreDefColumn(state, s->pdstWindowControl, "Name");
     249         796 :         s->pdchWscShading = newPreDefColumn(state, s->pdstWindowControl, "Type");
     250         796 :         s->pdchWscShadCons = newPreDefColumn(state, s->pdstWindowControl, "Shaded Construction");
     251         796 :         s->pdchWscControl = newPreDefColumn(state, s->pdstWindowControl, "Control");
     252         796 :         s->pdchWscGlare = newPreDefColumn(state, s->pdstWindowControl, "Glare Control");
     253             : 
     254             :         // Lighting Report
     255         796 :         s->pdrLighting = newPreDefReport(state, "LightingSummary", "Light", "Lighting Summary");
     256             : 
     257         796 :         s->pdstInLite = newPreDefSubTable(state, s->pdrLighting, "Interior Lighting");
     258             : 
     259         796 :         s->pdchInLtZone = newPreDefColumn(state, s->pdstInLite, "Zone Name");
     260         796 :         s->pdchInLtSpace = newPreDefColumn(state, s->pdstInLite, "Space Name");
     261         796 :         s->pdchInLtSpaceType = newPreDefColumn(state, s->pdstInLite, "Space Type");
     262         796 :         s->pdchInLtDens = newPreDefColumn(state, s->pdstInLite, "Lighting Power Density [W/m2]");
     263         796 :         s->pdchInLtArea = newPreDefColumn(state, s->pdstInLite, "Space Area [m2]");
     264         796 :         s->pdchInLtPower = newPreDefColumn(state, s->pdstInLite, "Total Power [W]");
     265         796 :         s->pdchInLtEndUse = newPreDefColumn(state, s->pdstInLite, "End Use Subcategory");
     266         796 :         s->pdchInLtSchd = newPreDefColumn(state, s->pdstInLite, "Schedule Name");
     267         796 :         s->pdchInLtAvgHrSchd = newPreDefColumn(state, s->pdstInLite, "Scheduled Hours/Week [hr]");
     268         796 :         s->pdchInLtAvgHrOper = newPreDefColumn(state, s->pdstInLite, "Hours/Week > 1% [hr]");
     269         796 :         s->pdchInLtFullLoadHrs = newPreDefColumn(state, s->pdstInLite, "Full Load Hours/Week [hr]");
     270         796 :         s->pdchInLtRetAir = newPreDefColumn(state, s->pdstInLite, "Return Air Fraction");
     271         796 :         s->pdchInLtCond = newPreDefColumn(state, s->pdstInLite, "Conditioned (Y/N)");
     272         796 :         s->pdchInLtConsump = newPreDefColumn(state, s->pdstInLite, "Consumption [GJ]");
     273             : 
     274         796 :         s->pdstDaylight = newPreDefSubTable(state, s->pdrLighting, "Daylighting");
     275             : 
     276         796 :         s->pdchDyLtZone = newPreDefColumn(state, s->pdstDaylight, "Zone");
     277         796 :         s->pdchDyLtCtrlName = newPreDefColumn(state, s->pdstDaylight, "Control Name");
     278         796 :         s->pdchDyLtKind = newPreDefColumn(state, s->pdstDaylight, "Daylighting Method"); // detailed or DElight
     279         796 :         s->pdchDyLtCtrlType = newPreDefColumn(state, s->pdstDaylight, "Control Type");   // stepped or continuous
     280         796 :         s->pdchDyLtFrac = newPreDefColumn(state, s->pdstDaylight, "Fraction Controlled");
     281         796 :         s->pdchDyLtWInst = newPreDefColumn(state, s->pdstDaylight, "Lighting Installed in Zone [W]");
     282         796 :         s->pdchDyLtWCtrl = newPreDefColumn(state, s->pdstDaylight, "Lighting Controlled [W]");
     283             : 
     284         796 :         s->pdstExtLite = newPreDefSubTable(state, s->pdrLighting, "Exterior Lighting");
     285             : 
     286         796 :         s->pdchExLtPower = newPreDefColumn(state, s->pdstExtLite, "Total Watts");
     287         796 :         s->pdchExLtClock = newPreDefColumn(state, s->pdstExtLite, "Astronomical Clock/Schedule");
     288         796 :         s->pdchExLtSchd = newPreDefColumn(state, s->pdstExtLite, "Schedule Name");
     289         796 :         s->pdchExLtAvgHrSchd = newPreDefColumn(state, s->pdstExtLite, "Scheduled Hours/Week [hr]");
     290         796 :         s->pdchExLtAvgHrOper = newPreDefColumn(state, s->pdstExtLite, "Hours/Week > 1% [hr]");
     291         796 :         s->pdchExLtFullLoadHrs = newPreDefColumn(state, s->pdstExtLite, "Full Load Hours/Week [hr]");
     292         796 :         s->pdchExLtConsump = newPreDefColumn(state, s->pdstExtLite, "Consumption [GJ]");
     293             : 
     294             :         // HVAC Equipment Report
     295             : 
     296         796 :         s->pdrEquip = newPreDefReport(state, "EquipmentSummary", "Equip", "Equipment Summary");
     297             : 
     298         796 :         s->pdstMech = newPreDefSubTable(state, s->pdrEquip, "Central Plant");
     299             : 
     300         796 :         s->pdchMechType = newPreDefColumn(state, s->pdstMech, "Type");
     301         796 :         s->pdchMechNomCap = newPreDefColumn(state, s->pdstMech, "Reference Capacity [W]");
     302         796 :         s->pdchMechNomEff = newPreDefColumn(state, s->pdstMech, "Reference Efficiency [W/W]");
     303         796 :         s->pdchMechRatCap = newPreDefColumn(state, s->pdstMech, "Rated Capacity [W]");
     304         796 :         s->pdchMechRatEff = newPreDefColumn(state, s->pdstMech, "Rated Efficiency [W/W]");
     305             :         // Note: We don't want any of these to convert.
     306             :         // The Btu/W-h isn't going to convert anyways, and the W/W will convert to W/W since it has "SI" in the string as a hint
     307         796 :         s->pdchMechIPLVSI = newPreDefColumn(state, s->pdstMech, "IPLV in SI Units [W/W]");
     308         796 :         s->pdchMechIPLVIP = newPreDefColumn(state, s->pdstMech, "IPLV in IP Units [Btu/W-h]");
     309             : 
     310             :         // Ok Constant                        Object Name                            Module                   Example File
     311             :         // -- ------------------------------- -------------------------------------- ------------------------ -----------------
     312             :         // o  CoilDX_CoolingSingleSpeed       Coil:Cooling:DX:SingleSpeed            DXCoil                   FurnaceWithDXSystem
     313             :         // x  CoilDX_CoolingTwoSpeed          Coil:Cooling:DX:TwoSpeed               DXCoil                   5ZoneAutoDXVAV
     314             :         // o  CoilDX_CoolingTwoStageWHumControl    Coil:Cooling:DX:                 DXCoil                   SmOffPSZ-MultiModeDX
     315             :         //                                    TwoStageWithHumidityControlMode
     316             :         // o  CoilDX_MultiSpeedCooling        Coil:Cooling:DX:MultiSpeed             DXCoil                   MultispeedHeatPump
     317             :         // o  Coil_CoolingWater               Coil:Cooling:Water                     HVACWaterCoilComponent   5ZoneAirCooled
     318             :         // o  Coil_CoolingWaterDetailed       Coil:Cooling:Water:DetailedGeometry    HVACWaterCoilComponent   5zoneWaterSystems
     319             :         // o  Coil_CoolingWaterToAirHP        Coil:Cooling:WaterToAirHeatPump:       HVACWaterToAir           5ZoneWaterLoopHeatPump
     320             :         //                                      ParameterEstimation
     321             :         // o  Coil_CoolingWaterToAirHPSimple  Coil:Cooling:WaterToAirHeatPump:       HVACWaterToAir           HeatPumpWaterToAirEquationFit
     322             :         //                                      EquationFit
     323             : 
     324             :         // o  CoilDX_HeatingEmpirical         Coil:Heating:DX:SingleSpeed            DXCoil                   HeatPumpAuto
     325             :         // o  CoilDX_MultiSpeedHeating        Coil:Heating:DX:MultiSpeed             DXCoil                   MultispeedHeatPump
     326             :         // o  Coil_HeatingGasOrOtherFuel                 Coil:Heating:Fuel                       HVACHeatingCoils         5ZoneAutoDXVAV
     327             :         // o  Coil_HeatingElectric            Coil:Heating:Electric                  HVACHeatingCoils         PackagedTerminalAirConditioner
     328             :         // o  Coil_HeatingDesuperheater       Coil:Heating:Desuperheater             HVACHeatingCoils         SuperMarket_DesuperHeatingCoil
     329             :         // o  Coil_HeatingWater               Coil:Heating:Water                     HVACWaterCoilComponent   5ZoneAirCooled
     330             :         // o  Coil_HeatingWaterToAirHP        Coil:Heating:WaterToAirHeatPump:       HVACWaterToAir           5ZoneWaterLoopHeatPump
     331             :         //                                      ParameterEstimation
     332             :         // o  Coil_HeatingWaterToAirHPSimple  Coil:Heating:WaterToAirHeatPump:       HVACWaterToAir           HeatPumpWaterToAirEquationFit
     333             :         //                                      EquationFit
     334             :         // o  CoilDX_HeatPumpWaterHeater      Coil:WaterHeating:AirToWaterHeatPump   DXCoil                   HeatPumpWaterHeater
     335             : 
     336             :         // NOT INCLUDED:
     337             :         //    CoilDX_CoolingHXAssisted        CoilSystem:Cooling:DX:                 HVACHXAssistedCooolingCoil
     338             :         //                                      HeatExchangerAssisted
     339             :         //    CoilWater_CoolingHXAssisted     CoilSystem:Cooling:Water:              HVACHXAssistedCooolingCoil
     340             :         //                                      HeatExchangerAssisted
     341             : 
     342         796 :         s->pdstCoolCoil = newPreDefSubTable(state, s->pdrEquip, "Cooling Coils");
     343             : 
     344         796 :         s->pdchCoolCoilType = newPreDefColumn(state, s->pdstCoolCoil, "Type");
     345         796 :         s->pdchCoolCoilDesCap = newPreDefColumn(state, s->pdstCoolCoil, "Design Coil Load [W]");
     346         796 :         s->pdchCoolCoilTotCap = newPreDefColumn(state, s->pdstCoolCoil, "Nominal Total Capacity [W]");
     347         796 :         s->pdchCoolCoilSensCap = newPreDefColumn(state, s->pdstCoolCoil, "Nominal Sensible Capacity [W]");
     348         796 :         s->pdchCoolCoilLatCap = newPreDefColumn(state, s->pdstCoolCoil, "Nominal Latent Capacity [W]");
     349         796 :         s->pdchCoolCoilSHR = newPreDefColumn(state, s->pdstCoolCoil, "Nominal Sensible Heat Ratio");
     350         796 :         s->pdchCoolCoilNomEff = newPreDefColumn(state, s->pdstCoolCoil, "Nominal Efficiency [W/W]");
     351         796 :         s->pdchCoolCoilUATotal = newPreDefColumn(state, s->pdstCoolCoil, "Nominal Coil UA Value [W/C]");
     352         796 :         s->pdchCoolCoilArea = newPreDefColumn(state, s->pdstCoolCoil, "Nominal Coil Surface Area [m2]");
     353             : 
     354         796 :         s->pdstDXCoolCoil = newPreDefSubTable(state, s->pdrEquip, "DX Cooling Coil Standard Ratings 2017");
     355         796 :         s->pdchDXCoolCoilType = newPreDefColumn(state, s->pdstDXCoolCoil, "Cooling Coil Type [1]");
     356         796 :         s->pdchDXCoolCoilNetCapSI = newPreDefColumn(state, s->pdstDXCoolCoil, "Standard Rating Net Cooling Capacity [W][2]");
     357             : 
     358         796 :         s->pdchDXCoolCoilCOP = newPreDefColumn(state, s->pdstDXCoolCoil, "Standard Rating Net COP [W/W][2]");
     359         796 :         s->pdchDXCoolCoilEERIP = newPreDefColumn(state, s->pdstDXCoolCoil, "EER [Btu/W-h][2]");
     360         796 :         s->pdchDXCoolCoilSEERUserIP = newPreDefColumn(state, s->pdstDXCoolCoil, "SEER User [Btu/W-h][2,3]");
     361         796 :         s->pdchDXCoolCoilSEERStandardIP = newPreDefColumn(state, s->pdstDXCoolCoil, "SEER Standard [Btu/W-h][2,3]");
     362         796 :         s->pdchDXCoolCoilIEERIP = newPreDefColumn(state, s->pdstDXCoolCoil, "IEER [Btu/W-h][2]");
     363             : 
     364             :         // for DX Cooling Coil AHRI Standard 2023 Ratings | SEER2
     365         796 :         s->pdstDXCoolCoil_2023 = newPreDefSubTable(state, s->pdrEquip, "DX Cooling Coil Standard Ratings 2023");
     366         796 :         s->pdchDXCoolCoilType_2023 = newPreDefColumn(state, s->pdstDXCoolCoil_2023, "Cooling Coil Type [1]");
     367         796 :         s->pdchDXCoolCoilNetCapSI_2023 = newPreDefColumn(state, s->pdstDXCoolCoil_2023, "Standard Rating Net Cooling Capacity [W][2]");
     368             : 
     369         796 :         s->pdchDXCoolCoilCOP_2023 = newPreDefColumn(state, s->pdstDXCoolCoil_2023, "Standard Rating Net COP2 [W/W][2,4]");
     370         796 :         s->pdchDXCoolCoilEERIP_2023 = newPreDefColumn(state, s->pdstDXCoolCoil_2023, "EER2 [Btu/W-h][2,4]");
     371         796 :         s->pdchDXCoolCoilSEER2UserIP_2023 = newPreDefColumn(state, s->pdstDXCoolCoil_2023, "SEER2 User [Btu/W-h][2,3]");
     372         796 :         s->pdchDXCoolCoilSEER2StandardIP_2023 = newPreDefColumn(state, s->pdstDXCoolCoil_2023, "SEER2 Standard [Btu/W-h][2,3]");
     373         796 :         s->pdchDXCoolCoilIEERIP_2023 = newPreDefColumn(state, s->pdstDXCoolCoil_2023, "IEER [Btu/W-h][2]");
     374             : 
     375             :         // for DX Cooling Coil ASHRAE 127-12 Report
     376         796 :         s->pdstDXCoolCoil2 = newPreDefSubTable(state, s->pdrEquip, "DX Cooling Coil ASHRAE 127 Standard Ratings Report");
     377         796 :         s->pdchDXCoolCoilType2 = newPreDefColumn(state, s->pdstDXCoolCoil2, "DX Cooling Coil Type");
     378         796 :         s->pdchDXCoolCoilNetCapSIA = newPreDefColumn(state, s->pdstDXCoolCoil2, "Rated Net Cooling Capacity Test A [W]");
     379         796 :         s->pdchDXCoolCoilElecPowerA = newPreDefColumn(state, s->pdstDXCoolCoil2, "Rated Electric Power Test A [W]");
     380         796 :         s->pdchDXCoolCoilNetCapSIB = newPreDefColumn(state, s->pdstDXCoolCoil2, "Rated Net Cooling Capacity Test B [W]");
     381         796 :         s->pdchDXCoolCoilElecPowerB = newPreDefColumn(state, s->pdstDXCoolCoil2, "Rated Electric Power Test B [W]");
     382         796 :         s->pdchDXCoolCoilNetCapSIC = newPreDefColumn(state, s->pdstDXCoolCoil2, "Rated Net Cooling Capacity Test C [W]");
     383         796 :         s->pdchDXCoolCoilElecPowerC = newPreDefColumn(state, s->pdstDXCoolCoil2, "Rated Electric Power Test C [W]");
     384         796 :         s->pdchDXCoolCoilNetCapSID = newPreDefColumn(state, s->pdstDXCoolCoil2, "Rated Net Cooling Capacity Test D [W]");
     385         796 :         s->pdchDXCoolCoilElecPowerD = newPreDefColumn(state, s->pdstDXCoolCoil2, "Rated Electric Power Test D [W]");
     386             : 
     387             :         // Water-to-Air HP report
     388         796 :         s->pdstWAHP = newPreDefSubTable(state, s->pdrEquip, "Water-to-Air Heat Pumps at Rated Temperatures Report");
     389         796 :         s->pdchWAHPType = newPreDefColumn(state, s->pdstWAHP, "Coil Type");
     390         796 :         s->pdchWAHPRatedCapAtRatedCdts = newPreDefColumn(state, s->pdstWAHP, "Rated Total Capacity [W]");
     391         796 :         s->pdchWAHPRatedSensCapAtRatedCdts = newPreDefColumn(state, s->pdstWAHP, "Rated Sensible Capacity [W]");
     392         796 :         s->pdchWAHPRatedPowerAtRatedCdts = newPreDefColumn(state, s->pdstWAHP, "Rated Power[W]");
     393         796 :         s->pdchWAHPRatedCOPAtRatedCdts = newPreDefColumn(state, s->pdstWAHP, "Rated COP [W/W]");
     394         796 :         s->pdchWAHPRatedAirDBT = newPreDefColumn(state, s->pdstWAHP, "Rated Air Dry-bulb Temperature [C]");
     395         796 :         s->pdchWAHPRatedAirWBT = newPreDefColumn(state, s->pdstWAHP, "Rated Air Wet-bulb Temperature [C]");
     396         796 :         s->pdchWAHPRatedWtrT = newPreDefColumn(state, s->pdstWAHP, "Rated Water Temperature [C]");
     397         796 :         s->pdchWAHPDD = newPreDefColumn(state, s->pdstWAHP, "Design Day used for Sizing");
     398             : 
     399         796 :         s->pdstDXHeatCoil = newPreDefSubTable(state, s->pdrEquip, "DX Heating Coils");
     400         796 :         s->pdchDXHeatCoilType = newPreDefColumn(state, s->pdstDXHeatCoil, "DX Heating Coil Type");
     401         796 :         s->pdchDXHeatCoilHighCap = newPreDefColumn(state, s->pdstDXHeatCoil, "High Temperature Heating (net) Rating Capacity [W]");
     402         796 :         s->pdchDXHeatCoilLowCap = newPreDefColumn(state, s->pdstDXHeatCoil, "Low Temperature Heating (net) Rating Capacity [W]");
     403         796 :         s->pdchDXHeatCoilHSPFIP = newPreDefColumn(state, s->pdstDXHeatCoil, "HSPF [Btu/W-h]");
     404         796 :         s->pdchDXHeatCoilRegionNum = newPreDefColumn(state, s->pdstDXHeatCoil, "Region Number");
     405             :         // Std 229 Predef outputs for DX Heating Coils
     406        1592 :         s->pdchDXHeatCoilMinOADBTforCompOp =
     407         796 :             newPreDefColumn(state, s->pdstDXHeatCoil, "Minimum Outdoor Dry-Bulb Temperature for Compressor Operation [C]");
     408         796 :         s->pdchDXHeatCoilSuppHiT = newPreDefColumn(state, s->pdstDXHeatCoil, "Supplemental Heat High Shutoff Temperature [C]");
     409         796 :         s->pdchDXHeatCoilAirloopName = newPreDefColumn(state, s->pdstDXHeatCoil, "Airloop Name");
     410             : 
     411             :         // for DX Heating Coil AHRI Standard 2023 Ratings | HSPF2
     412         796 :         s->pdstDXHeatCoil_2023 = newPreDefSubTable(state, s->pdrEquip, "DX Heating Coils AHRI 2023");
     413         796 :         s->pdchDXHeatCoilType_2023 = newPreDefColumn(state, s->pdstDXHeatCoil_2023, "DX Heating Coil Type");
     414         796 :         s->pdchDXHeatCoilHighCap_2023 = newPreDefColumn(state, s->pdstDXHeatCoil_2023, "High Temperature Heating (net) Rating Capacity [W]");
     415         796 :         s->pdchDXHeatCoilLowCap_2023 = newPreDefColumn(state, s->pdstDXHeatCoil_2023, "Low Temperature Heating (net) Rating Capacity [W]");
     416         796 :         s->pdchDXHeatCoilHSPF2IP_2023 = newPreDefColumn(state, s->pdstDXHeatCoil_2023, "HSPF2 [Btu/W-h]");
     417         796 :         s->pdchDXHeatCoilRegionNum_2023 = newPreDefColumn(state, s->pdstDXHeatCoil_2023, "Region Number");
     418             :         // Std 229 Predef outputs for DX Heating Coils AHRI 2023
     419        1592 :         s->pdchDXHeatCoilMinOADBTforCompOp_2023 =
     420         796 :             newPreDefColumn(state, s->pdstDXHeatCoil_2023, "Minimum Outdoor Dry-Bulb Temperature for Compressor Operation [C]");
     421         796 :         s->pdchDXHeatCoilAirloopName_2023 = newPreDefColumn(state, s->pdstDXHeatCoil_2023, "Airloop Name");
     422             : 
     423         796 :         s->pdstHeatCoil = newPreDefSubTable(state, s->pdrEquip, "Heating Coils");
     424             : 
     425         796 :         s->pdchHeatCoilType = newPreDefColumn(state, s->pdstHeatCoil, "Type");
     426         796 :         s->pdchHeatCoilDesCap = newPreDefColumn(state, s->pdstHeatCoil, "Design Coil Load [W]");
     427         796 :         s->pdchHeatCoilNomCap = newPreDefColumn(state, s->pdstHeatCoil, "Nominal Total Capacity [W]");
     428         796 :         s->pdchHeatCoilNomEff = newPreDefColumn(state, s->pdstHeatCoil, "Nominal Efficiency [W/W]");
     429             :         // Std 229 Predef outputs for Heating Coils
     430         796 :         s->pdchHeatCoilUsedAsSupHeat = newPreDefColumn(state, s->pdstHeatCoil, "Used as Supplementary Heat");
     431         796 :         s->pdchHeatCoilAirloopName = newPreDefColumn(state, s->pdstHeatCoil, "Airloop Name");
     432         796 :         s->pdchHeatCoilPlantloopName = newPreDefColumn(state, s->pdstHeatCoil, "Plantloop Name");
     433             : 
     434         796 :         s->pdstFan = newPreDefSubTable(state, s->pdrEquip, "Fans");
     435             : 
     436         796 :         s->pdchFanType = newPreDefColumn(state, s->pdstFan, "Type");
     437         796 :         s->pdchFanTotEff = newPreDefColumn(state, s->pdstFan, "Total Efficiency [W/W]");
     438         796 :         s->pdchFanDeltaP = newPreDefColumn(state, s->pdstFan, "Delta Pressure [pa]");
     439         796 :         s->pdchFanVolFlow = newPreDefColumn(state, s->pdstFan, "Max Air Flow Rate [m3/s]");
     440         796 :         s->pdchFanPwr = newPreDefColumn(state, s->pdstFan, "Rated Electricity Rate [W]");
     441         796 :         s->pdchFanPwrPerFlow = newPreDefColumn(state, s->pdstFan, "Rated Power Per Max Air Flow Rate [W-s/m3]");
     442         796 :         s->pdchFanMotorIn = newPreDefColumn(state, s->pdstFan, "Motor Heat In Air Fraction");
     443         796 :         s->pdchFanEnergyIndex = newPreDefColumn(state, s->pdstFan, "Fan Energy Index");
     444         796 :         s->pdchFanEndUse = newPreDefColumn(state, s->pdstFan, "End Use Subcategory");
     445         796 :         s->pdchFanDesDay = newPreDefColumn(state, s->pdstFan, "Design Day Name for Fan Sizing Peak");
     446         796 :         s->pdchFanPkTime = newPreDefColumn(state, s->pdstFan, "Date/Time for Fan Sizing Peak");
     447             :         // Std 229 Predef outputs for Fans
     448         796 :         s->pdchFanPurpose = newPreDefColumn(state, s->pdstFan, "Purpose");
     449         796 :         s->pdchFanAutosized = newPreDefColumn(state, s->pdstFan, "Is Autosized");
     450         796 :         s->pdchFanMotorEff = newPreDefColumn(state, s->pdstFan, "Motor Efficiency");
     451         796 :         s->pdchFanMotorHeatToZoneFrac = newPreDefColumn(state, s->pdstFan, "Motor Heat to Zone Fraction");
     452         796 :         s->pdchFanMotorHeatZone = newPreDefColumn(state, s->pdstFan, "Motor Loss Zone Name");
     453         796 :         s->pdchFanAirLoopName = newPreDefColumn(state, s->pdstFan, "Airloop Name");
     454             : 
     455         796 :         s->pdstPump = newPreDefSubTable(state, s->pdrEquip, "Pumps");
     456         796 :         s->pdchPumpType = newPreDefColumn(state, s->pdstPump, "Type");
     457         796 :         s->pdchPumpControl = newPreDefColumn(state, s->pdstPump, "Control");
     458         796 :         s->pdchPumpHead = newPreDefColumn(state, s->pdstPump, "Head [pa]");
     459         796 :         s->pdchPumpFlow = newPreDefColumn(state, s->pdstPump, "Water Flow [m3/s]");
     460         796 :         s->pdchPumpPower = newPreDefColumn(state, s->pdstPump, "Electricity Rate [W]");
     461         796 :         s->pdchPumpPwrPerFlow = newPreDefColumn(state, s->pdstPump, "Power Per Water Flow Rate [W-s/m3]");
     462         796 :         s->pdchMotEff = newPreDefColumn(state, s->pdstPump, "Motor Efficiency [W/W]");
     463         796 :         s->pdchPumpEndUse = newPreDefColumn(state, s->pdstPump, "End Use Subcategory");
     464             :         // Std 229 Predef outputs for Pumps
     465         796 :         s->pdchPumpAutosized = newPreDefColumn(state, s->pdstPump, "Is Autosized");
     466         796 :         s->pdchPumpPlantloopName = newPreDefColumn(state, s->pdstPump, "Plantloop Name");
     467         796 :         s->pdchPumpPlantloopBranchName = newPreDefColumn(state, s->pdstPump, "Plantloop Branch Name");
     468             : 
     469         796 :         s->pdstSWH = newPreDefSubTable(state, s->pdrEquip, "Service Water Heating");
     470         796 :         s->pdchSWHType = newPreDefColumn(state, s->pdstSWH, "Type");
     471         796 :         s->pdchSWHVol = newPreDefColumn(state, s->pdstSWH, "Storage Volume [m3]");
     472         796 :         s->pdchSWHHeatIn = newPreDefColumn(state, s->pdstSWH, "Input [W]");
     473         796 :         s->pdchSWHThEff = newPreDefColumn(state, s->pdstSWH, "Thermal Efficiency [W/W]");
     474         796 :         s->pdchSWHRecEff = newPreDefColumn(state, s->pdstSWH, "Recovery Efficiency [W/W]");
     475         796 :         s->pdchSWHEnFac = newPreDefColumn(state, s->pdstSWH, "Energy Factor");
     476             : 
     477             :         // Std 229 Chillers in Equipment Summary
     478         796 :         s->pdstChiller = newPreDefSubTable(state, s->pdrEquip, "Chillers");
     479             : 
     480         796 :         s->pdchChillerType = newPreDefColumn(state, s->pdstChiller, "Type");
     481         796 :         s->pdchChillerRefCap = newPreDefColumn(state, s->pdstChiller, "Reference Capacity[W]");
     482         796 :         s->pdchChillerRefEff = newPreDefColumn(state, s->pdstChiller, "TypeReference Efficiency [W/W]");
     483         796 :         s->pdchChillerRatedCap = newPreDefColumn(state, s->pdstChiller, "Rated Capacity [W]");
     484         796 :         s->pdchChillerRatedEff = newPreDefColumn(state, s->pdstChiller, "Rated Efficiency [W/W]");
     485         796 :         s->pdchChillerIPLVinSI = newPreDefColumn(state, s->pdstChiller, "IPLV in SI Units [W/W]");
     486         796 :         s->pdchChillerIPLVinIP = newPreDefColumn(state, s->pdstChiller, "IPLV in IP Units [Btu/W-h]");
     487         796 :         s->pdchChillerMinPLR = newPreDefColumn(state, s->pdstChiller, "Minimum Part Load Ratio");
     488         796 :         s->pdchChillerFuelType = newPreDefColumn(state, s->pdstChiller, "Fuel Type");
     489         796 :         s->pdchChillerRatedEntCondTemp = newPreDefColumn(state, s->pdstChiller, "Rated Entering Condenser Temperature [C]");
     490         796 :         s->pdchChillerRatedLevEvapTemp = newPreDefColumn(state, s->pdstChiller, "Rated Leaving Evaporator Temperature [C]");
     491         796 :         s->pdchChillerRefEntCondTemp = newPreDefColumn(state, s->pdstChiller, "Reference Entering Condenser Temperature [C]");
     492         796 :         s->pdchChillerRefLevEvapTemp = newPreDefColumn(state, s->pdstChiller, "Reference Leaving Evaporator Temperature [C]");
     493         796 :         s->pdchChillerDesSizeRefCHWFlowRate = newPreDefColumn(state, s->pdstChiller, "Design Size Reference Chilled Water Flow Rate [kg/s]");
     494         796 :         s->pdchChillerDesSizeRefCondFluidFlowRate = newPreDefColumn(state, s->pdstChiller, "Design Size Reference Condenser Fluid Flow Rate [kg/s]");
     495         796 :         s->pdchChillerPlantloopName = newPreDefColumn(state, s->pdstChiller, "Plantloop Name");
     496         796 :         s->pdchChillerPlantloopBranchName = newPreDefColumn(state, s->pdstChiller, "Plantloop Branch Name");
     497         796 :         s->pdchChillerCondLoopName = newPreDefColumn(state, s->pdstChiller, "Condenser Loop Name");
     498         796 :         s->pdchChillerCondLoopBranchName = newPreDefColumn(state, s->pdstChiller, "Condenser Loop Branch Name");
     499         796 :         s->pdchChillerHeatRecPlantloopName = newPreDefColumn(state, s->pdstChiller, "Heat Recovery Plantloop Name");
     500         796 :         s->pdchChillerHeatRecPlantloopBranchName = newPreDefColumn(state, s->pdstChiller, "Heat Recovery Plantloop Branch Name");
     501         796 :         s->pdchChillerRecRelCapFrac = newPreDefColumn(state, s->pdstChiller, "Recovery Relative Capacity Fraction");
     502             : 
     503             :         // Std 229 Boiler Table in Equipment Summary
     504         796 :         s->pdstBoiler = newPreDefSubTable(state, s->pdrEquip, "Boilers");
     505             : 
     506         796 :         s->pdchBoilerType = newPreDefColumn(state, s->pdstBoiler, "Type");
     507         796 :         s->pdchBoilerRefCap = newPreDefColumn(state, s->pdstBoiler, "Reference Capacity [W]");
     508         796 :         s->pdchBoilerRefEff = newPreDefColumn(state, s->pdstBoiler, "Reference Efficiency[W/W]");
     509         796 :         s->pdchBoilerRatedCap = newPreDefColumn(state, s->pdstBoiler, "Rated Capacity [W]");
     510         796 :         s->pdchBoilerRatedEff = newPreDefColumn(state, s->pdstBoiler, "Rated Efficiency [W/W]");
     511         796 :         s->pdchBoilerMinPLR = newPreDefColumn(state, s->pdstBoiler, "Minimum Part Load Ratio");
     512         796 :         s->pdchBoilerFuelType = newPreDefColumn(state, s->pdstBoiler, "Fuel Type");
     513         796 :         s->pdchBoilerParaElecLoad = newPreDefColumn(state, s->pdstBoiler, "Parasitic Electric Load [W]");
     514         796 :         s->pdchBoilerPlantloopName = newPreDefColumn(state, s->pdstBoiler, "Plantloop Name");
     515         796 :         s->pdchBoilerPlantloopBranchName = newPreDefColumn(state, s->pdstBoiler, "Plantloop Branch Name");
     516             : 
     517             :         // Std 229 cooling towers and fluid coolers Table in Equipment Summary
     518         796 :         s->pdstCTFC = newPreDefSubTable(state, s->pdrEquip, "Cooling Towers and Fluid Coolers");
     519             : 
     520         796 :         s->pdchCTFCType = newPreDefColumn(state, s->pdstCTFC, "Type");
     521         796 :         s->pdchCTFCFluidType = newPreDefColumn(state, s->pdstCTFC, "Fluid Type");
     522         796 :         s->pdchCTFCRange = newPreDefColumn(state, s->pdstCTFC, "Range [C]");
     523         796 :         s->pdchCTFCApproach = newPreDefColumn(state, s->pdstCTFC, "Approach [C]");
     524         796 :         s->pdchCTFCDesFanPwr = newPreDefColumn(state, s->pdstCTFC, "Design Fan Power [W]");
     525         796 :         s->pdchCTFCDesInletAirWBT = newPreDefColumn(state, s->pdstCTFC, "Design Inlet Air Wet-Bulb Temperature [C]");
     526         796 :         s->pdchCTFCDesWaterFlowRate = newPreDefColumn(state, s->pdstCTFC, "Design Water Flow Rate [m3/s]");
     527         796 :         s->pdchCTFCLevWaterSPTemp = newPreDefColumn(state, s->pdstCTFC, "Leaving Water Setpoint Temperature [C]");
     528         796 :         s->pdchCTFCCondLoopName = newPreDefColumn(state, s->pdstCTFC, "Condenser Loop Name");
     529         796 :         s->pdchCTFCCondLoopBranchName = newPreDefColumn(state, s->pdstCTFC, "Condenser Loop Branch Name");
     530             : 
     531             :         // Std 229 Plantloop and CondenserLoop Table in Equipment Summary
     532         796 :         s->pdstPLCL = newPreDefSubTable(state, s->pdrEquip, "PlantLoop or CondenserLoop");
     533             : 
     534         796 :         s->pdchPLCLType = newPreDefColumn(state, s->pdstPLCL, "Type");
     535         796 :         s->pdchPLCLProvHeat = newPreDefColumn(state, s->pdstPLCL, "Provides Heating");
     536         796 :         s->pdchPLCLProvCool = newPreDefColumn(state, s->pdstPLCL, "Provides Cooling");
     537         796 :         s->pdchPLCLMaxLoopFlowRate = newPreDefColumn(state, s->pdstPLCL, "Maximum Loop Flow Rate [m3/s]");
     538         796 :         s->pdchPLCLMinLoopFlowRate = newPreDefColumn(state, s->pdstPLCL, "Minimum Loop Flow Rate [m3/s]");
     539             : 
     540             :         // Std 229 Air Terminal Table in Equipment Summary
     541         796 :         s->pdstAirTerm = newPreDefSubTable(state, s->pdrEquip, "Air Terminals");
     542             : 
     543         796 :         s->pdchAirTermZoneName = newPreDefColumn(state, s->pdstAirTerm, "Zone Name");
     544         796 :         s->pdchAirTermMinFlow = newPreDefColumn(state, s->pdstAirTerm, "Minimum Flow [m3/s]");
     545         796 :         s->pdchAirTermMinOutdoorFlow = newPreDefColumn(state, s->pdstAirTerm, "Minimum Outdoor Flow [m3/s]");
     546         796 :         s->pdchAirTermSupCoolingSP = newPreDefColumn(state, s->pdstAirTerm, "Supply Cooling Setpoint [C]");
     547         796 :         s->pdchAirTermSupHeatingSP = newPreDefColumn(state, s->pdstAirTerm, "Supply Heating Setpoint [C]");
     548         796 :         s->pdchAirTermHeatingCap = newPreDefColumn(state, s->pdstAirTerm, "Heating Capacity [W]");
     549         796 :         s->pdchAirTermCoolingCap = newPreDefColumn(state, s->pdstAirTerm, "Cooling Capacity [W]");
     550             : 
     551         796 :         s->pdchAirTermTypeInp = newPreDefColumn(state, s->pdstAirTerm, "Type of Input Object");
     552         796 :         s->pdchAirTermHeatCoilType = newPreDefColumn(state, s->pdstAirTerm, "Heat/Reheat Coil Object Type");
     553         796 :         s->pdchAirTermCoolCoilType = newPreDefColumn(state, s->pdstAirTerm, "Chilled Water Coil Object Type");
     554         796 :         s->pdchAirTermFanType = newPreDefColumn(state, s->pdstAirTerm, "Fan Object Type");
     555         796 :         s->pdchAirTermFanName = newPreDefColumn(state, s->pdstAirTerm, "Fan Name");
     556         796 :         s->pdchAirTermPrimFlow = newPreDefColumn(state, s->pdstAirTerm, "Primary Air Flow Rate [m3/s]");
     557         796 :         s->pdchAirTermSecdFlow = newPreDefColumn(state, s->pdstAirTerm, "Secondary Air Flow Rate [m3/s]");
     558         796 :         s->pdchAirTermMinFlowSch = newPreDefColumn(state, s->pdstAirTerm, "Minimum Flow Schedule Name");
     559         796 :         s->pdchAirTermMaxFlowReh = newPreDefColumn(state, s->pdstAirTerm, "Maximum Flow During Reheat [m3/s]");
     560         796 :         s->pdchAirTermMinOAflowSch = newPreDefColumn(state, s->pdstAirTerm, "Minimum Outdoor Flow Schedule Name");
     561             : 
     562             :         // Std 229 Air Heat Recovery
     563         796 :         s->pdstAirHR = newPreDefSubTable(state, s->pdrEquip, "Air Heat Recovery");
     564             : 
     565         796 :         s->pdchAirHRInputObjName = newPreDefColumn(state, s->pdstAirHR, "Name");
     566         796 :         s->pdchAirHRInputObjType = newPreDefColumn(state, s->pdstAirHR, "Input object type");
     567         796 :         s->pdchAirHRPlateOrRotary = newPreDefColumn(state, s->pdstAirHR, "Plate/Rotary");
     568         796 :         s->pdchAirHRSenEffAt100PerHeatAirFlow = newPreDefColumn(state, s->pdstAirHR, "Sensible Effectiveness at 100% Heating Air Flow");
     569         796 :         s->pdchAirHRSenEffAt100PerCoolAirFlow = newPreDefColumn(state, s->pdstAirHR, "Sensible Effectiveness at 100% Cooling Air Flow");
     570         796 :         s->pdchAirHRLatEffAt100PerHeatAirFlow = newPreDefColumn(state, s->pdstAirHR, "Latent Effectiveness at 100% Heating Air Flow");
     571         796 :         s->pdchAirHRLatEffAt100PerCoolAirFlow = newPreDefColumn(state, s->pdstAirHR, "Latent Effectiveness at 100% Cooling Air Flow");
     572         796 :         s->pdchAirHRExhaustAirflow = newPreDefColumn(state, s->pdstAirHR, "Exhaust Airflow [kg/s]");
     573         796 :         s->pdchAirHROutdoorAirflow = newPreDefColumn(state, s->pdstAirHR, "Outdoor Airflow [kg/s]");
     574             : 
     575             :         // Sizing Report
     576             : 
     577         796 :         s->pdrSizing = newPreDefReport(state, "HVACSizingSummary", "Size", "HVAC Sizing Summary");
     578             : 
     579         796 :         s->pdstSpaceClSize = newPreDefSubTable(state, s->pdrSizing, "Space Sensible Cooling");
     580             : 
     581         796 :         s->pdchSpClCalcDesLd = newPreDefColumn(state, s->pdstSpaceClSize, "Calculated Design Load [W]");
     582         796 :         s->pdchSpClUserDesLd = newPreDefColumn(state, s->pdstSpaceClSize, "User Design Load [W]");
     583         796 :         s->pdchSpClUserDesLdPerArea = newPreDefColumn(state, s->pdstSpaceClSize, "User Design Load per Area [W/m2]");
     584         796 :         s->pdchSpClCalcDesAirFlow = newPreDefColumn(state, s->pdstSpaceClSize, "Calculated Design Air Flow [m3/s]");
     585         796 :         s->pdchSpClUserDesAirFlow = newPreDefColumn(state, s->pdstSpaceClSize, "User Design Air Flow [m3/s]");
     586         796 :         s->pdchSpClDesDay = newPreDefColumn(state, s->pdstSpaceClSize, "Design Day Name");
     587         796 :         s->pdchSpClPkTime = newPreDefColumn(state, s->pdstSpaceClSize, "Date/Time Of Peak {TIMESTAMP}");
     588         796 :         s->pdchSpClPkTstatTemp = newPreDefColumn(state, s->pdstSpaceClSize, "Thermostat Setpoint Temperature at Peak Load [C]");
     589         796 :         s->pdchSpClPkIndTemp = newPreDefColumn(state, s->pdstSpaceClSize, "Indoor Temperature at Peak Load [C]");
     590         796 :         s->pdchSpClPkIndHum = newPreDefColumn(state, s->pdstSpaceClSize, "Indoor Humidity Ratio at Peak Load [kgWater/kgDryAir]");
     591         796 :         s->pdchSpClPkOATemp = newPreDefColumn(state, s->pdstSpaceClSize, "Outdoor Temperature at Peak Load [C]");
     592         796 :         s->pdchSpClPkOAHum = newPreDefColumn(state, s->pdstSpaceClSize, "Outdoor Humidity Ratio at Peak Load [kgWater/kgDryAir]");
     593         796 :         s->pdchSpClPkOAMinFlow = newPreDefColumn(state, s->pdstSpaceClSize, "Minimum Outdoor Air Flow Rate [m3/s]");
     594         796 :         s->pdchSpClPkDOASHeatGain = newPreDefColumn(state, s->pdstSpaceClSize, "Heat Gain Rate from DOAS [W]");
     595        1592 :         addFootNoteSubTable(state,
     596         796 :                             s->pdstSpaceClSize,
     597             :                             "The Design Load is the space sensible load only. It does not include any system effects or ventilation loads.");
     598             : 
     599         796 :         s->pdstZoneClSize = newPreDefSubTable(state, s->pdrSizing, "Zone Sensible Cooling");
     600             : 
     601         796 :         s->pdchZnClCalcDesLd = newPreDefColumn(state, s->pdstZoneClSize, "Calculated Design Load [W]");
     602         796 :         s->pdchZnClUserDesLd = newPreDefColumn(state, s->pdstZoneClSize, "User Design Load [W]");
     603         796 :         s->pdchZnClUserDesLdPerArea = newPreDefColumn(state, s->pdstZoneClSize, "User Design Load per Area [W/m2]");
     604         796 :         s->pdchZnClCalcDesAirFlow = newPreDefColumn(state, s->pdstZoneClSize, "Calculated Design Air Flow [m3/s]");
     605         796 :         s->pdchZnClUserDesAirFlow = newPreDefColumn(state, s->pdstZoneClSize, "User Design Air Flow [m3/s]");
     606         796 :         s->pdchZnClDesDay = newPreDefColumn(state, s->pdstZoneClSize, "Design Day Name");
     607         796 :         s->pdchZnClPkTime = newPreDefColumn(state, s->pdstZoneClSize, "Date/Time Of Peak {TIMESTAMP}");
     608         796 :         s->pdchZnClPkTstatTemp = newPreDefColumn(state, s->pdstZoneClSize, "Thermostat Setpoint Temperature at Peak Load [C]");
     609         796 :         s->pdchZnClPkIndTemp = newPreDefColumn(state, s->pdstZoneClSize, "Indoor Temperature at Peak Load [C]");
     610         796 :         s->pdchZnClPkIndHum = newPreDefColumn(state, s->pdstZoneClSize, "Indoor Humidity Ratio at Peak Load [kgWater/kgDryAir]");
     611         796 :         s->pdchZnClPkOATemp = newPreDefColumn(state, s->pdstZoneClSize, "Outdoor Temperature at Peak Load [C]");
     612         796 :         s->pdchZnClPkOAHum = newPreDefColumn(state, s->pdstZoneClSize, "Outdoor Humidity Ratio at Peak Load [kgWater/kgDryAir]");
     613         796 :         s->pdchZnClPkOAMinFlow = newPreDefColumn(state, s->pdstZoneClSize, "Minimum Outdoor Air Flow Rate [m3/s]");
     614         796 :         s->pdchZnClPkDOASHeatGain = newPreDefColumn(state, s->pdstZoneClSize, "Heat Gain Rate from DOAS [W]");
     615        1592 :         addFootNoteSubTable(
     616         796 :             state, s->pdstZoneClSize, "The Design Load is the zone sensible load only. It does not include any system effects or ventilation loads.");
     617             : 
     618         796 :         s->pdstSpaceHtSize = newPreDefSubTable(state, s->pdrSizing, "Space Sensible Heating");
     619             : 
     620         796 :         s->pdchSpHtCalcDesLd = newPreDefColumn(state, s->pdstSpaceHtSize, "Calculated Design Load [W]");
     621         796 :         s->pdchSpHtUserDesLd = newPreDefColumn(state, s->pdstSpaceHtSize, "User Design Load [W]");
     622         796 :         s->pdchSpHtUserDesLdPerArea = newPreDefColumn(state, s->pdstSpaceHtSize, "User Design Load per Area [W/m2]");
     623         796 :         s->pdchSpHtCalcDesAirFlow = newPreDefColumn(state, s->pdstSpaceHtSize, "Calculated Design Air Flow [m3/s]");
     624         796 :         s->pdchSpHtUserDesAirFlow = newPreDefColumn(state, s->pdstSpaceHtSize, "User Design Air Flow [m3/s]");
     625         796 :         s->pdchSpHtDesDay = newPreDefColumn(state, s->pdstSpaceHtSize, "Design Day Name");
     626         796 :         s->pdchSpHtPkTime = newPreDefColumn(state, s->pdstSpaceHtSize, "Date/Time Of Peak {TIMESTAMP}");
     627         796 :         s->pdchSpHtPkTstatTemp = newPreDefColumn(state, s->pdstSpaceHtSize, "Thermostat Setpoint Temperature at Peak Load [C]");
     628         796 :         s->pdchSpHtPkIndTemp = newPreDefColumn(state, s->pdstSpaceHtSize, "Indoor Temperature at Peak Load [C]");
     629         796 :         s->pdchSpHtPkIndHum = newPreDefColumn(state, s->pdstSpaceHtSize, "Indoor Humidity Ratio at Peak Load [kgWater/kgDryAir]");
     630         796 :         s->pdchSpHtPkOATemp = newPreDefColumn(state, s->pdstSpaceHtSize, "Outdoor Temperature at Peak Load [C]");
     631         796 :         s->pdchSpHtPkOAHum = newPreDefColumn(state, s->pdstSpaceHtSize, "Outdoor Humidity Ratio at Peak Load [kgWater/kgDryAir]");
     632         796 :         s->pdchSpHtPkOAMinFlow = newPreDefColumn(state, s->pdstSpaceHtSize, "Minimum Outdoor Air Flow Rate [m3/s]");
     633         796 :         s->pdchSpHtPkDOASHeatGain = newPreDefColumn(state, s->pdstSpaceHtSize, "Heat Gain Rate from DOAS [W]");
     634        1592 :         addFootNoteSubTable(state,
     635         796 :                             s->pdstSpaceHtSize,
     636             :                             "The Design Load is the space sensible load only. It does not include any system effects or ventilation loads.");
     637             : 
     638         796 :         s->pdstZoneHtSize = newPreDefSubTable(state, s->pdrSizing, "Zone Sensible Heating");
     639             : 
     640         796 :         s->pdchZnHtCalcDesLd = newPreDefColumn(state, s->pdstZoneHtSize, "Calculated Design Load [W]");
     641         796 :         s->pdchZnHtUserDesLd = newPreDefColumn(state, s->pdstZoneHtSize, "User Design Load [W]");
     642         796 :         s->pdchZnHtUserDesLdPerArea = newPreDefColumn(state, s->pdstZoneHtSize, "User Design Load per Area [W/m2]");
     643         796 :         s->pdchZnHtCalcDesAirFlow = newPreDefColumn(state, s->pdstZoneHtSize, "Calculated Design Air Flow [m3/s]");
     644         796 :         s->pdchZnHtUserDesAirFlow = newPreDefColumn(state, s->pdstZoneHtSize, "User Design Air Flow [m3/s]");
     645         796 :         s->pdchZnHtDesDay = newPreDefColumn(state, s->pdstZoneHtSize, "Design Day Name");
     646         796 :         s->pdchZnHtPkTime = newPreDefColumn(state, s->pdstZoneHtSize, "Date/Time Of Peak {TIMESTAMP}");
     647         796 :         s->pdchZnHtPkTstatTemp = newPreDefColumn(state, s->pdstZoneHtSize, "Thermostat Setpoint Temperature at Peak Load [C]");
     648         796 :         s->pdchZnHtPkIndTemp = newPreDefColumn(state, s->pdstZoneHtSize, "Indoor Temperature at Peak Load [C]");
     649         796 :         s->pdchZnHtPkIndHum = newPreDefColumn(state, s->pdstZoneHtSize, "Indoor Humidity Ratio at Peak Load [kgWater/kgDryAir]");
     650         796 :         s->pdchZnHtPkOATemp = newPreDefColumn(state, s->pdstZoneHtSize, "Outdoor Temperature at Peak Load [C]");
     651         796 :         s->pdchZnHtPkOAHum = newPreDefColumn(state, s->pdstZoneHtSize, "Outdoor Humidity Ratio at Peak Load [kgWater/kgDryAir]");
     652         796 :         s->pdchZnHtPkOAMinFlow = newPreDefColumn(state, s->pdstZoneHtSize, "Minimum Outdoor Air Flow Rate [m3/s]");
     653         796 :         s->pdchZnHtPkDOASHeatGain = newPreDefColumn(state, s->pdstZoneHtSize, "Heat Gain Rate from DOAS [W]");
     654        1592 :         addFootNoteSubTable(
     655         796 :             state, s->pdstZoneHtSize, "The Design Load is the zone sensible load only. It does not include any system effects or ventilation loads.");
     656             : 
     657         796 :         s->pdstSystemSize = newPreDefSubTable(state, s->pdrSizing, "System Design Air Flow Rates");
     658             : 
     659         796 :         s->pdchSysSizCalcClAir = newPreDefColumn(state, s->pdstSystemSize, "Calculated cooling [m3/s]");
     660         796 :         s->pdchSysSizUserClAir = newPreDefColumn(state, s->pdstSystemSize, "User cooling [m3/s]");
     661         796 :         s->pdchSysSizCalcHtAir = newPreDefColumn(state, s->pdstSystemSize, "Calculated heating [m3/s]");
     662         796 :         s->pdchSysSizUserHtAir = newPreDefColumn(state, s->pdstSystemSize, "User heating [m3/s]");
     663         796 :         s->pdchSysSizAdjustedClAir = newPreDefColumn(state, s->pdstSystemSize, "Adjusted cooling [m3/s]");
     664         796 :         s->pdchSysSizAdjustedHtAir = newPreDefColumn(state, s->pdstSystemSize, "Adjusted heating [m3/s]");
     665         796 :         s->pdchSysSizAdjustedMainAir = newPreDefColumn(state, s->pdstSystemSize, "Adjusted main [m3/s]");
     666         796 :         s->pdchSysSizCalcHeatFlowRatio = newPreDefColumn(state, s->pdstSystemSize, "Calculated Heating Air Flow Ratio []");
     667         796 :         s->pdchSysSizUserHeatFlowRatio = newPreDefColumn(state, s->pdstSystemSize, "User Heating Air Flow Ratio []");
     668             : 
     669         796 :         s->pdstPlantSize = newPreDefSubTable(state, s->pdrSizing, "Plant Loop Coincident Design Fluid Flow Rate Adjustments");
     670             :         //        s->pdchPlantSizPass = newPreDefColumn(state,  s->pdstPlantSize, "Sizing Pass" );
     671         796 :         s->pdchPlantSizPrevVdot = newPreDefColumn(state, s->pdstPlantSize, "Previous Design Volume Flow Rate [m3/s]");
     672         796 :         s->pdchPlantSizMeasVdot = newPreDefColumn(state, s->pdstPlantSize, "Algorithm Volume Flow Rate [m3/s]");
     673         796 :         s->pdchPlantSizCalcVdot = newPreDefColumn(state, s->pdstPlantSize, "Coincident Design Volume Flow Rate [m3/s]");
     674         796 :         s->pdchPlantSizCoincYesNo = newPreDefColumn(state, s->pdstPlantSize, "Coincident Size Adjusted");
     675         796 :         s->pdchPlantSizDesDay = newPreDefColumn(state, s->pdstPlantSize, "Peak Sizing Period Name");
     676         796 :         s->pdchPlantSizPkTimeDayOfSim = newPreDefColumn(state, s->pdstPlantSize, "Peak Day into Period {TIMESTAMP}[day]");
     677         796 :         s->pdchPlantSizPkTimeHour = newPreDefColumn(state, s->pdstPlantSize, "Peak Hour Of Day {TIMESTAMP}[hr]");
     678         796 :         s->pdchPlantSizPkTimeMin = newPreDefColumn(state, s->pdstPlantSize, "Peak Step Start Minute {TIMESTAMP}[min]");
     679             : 
     680         796 :         s->pdst2CoilSummaryCoilSelection = newPreDefSubTable(state, s->pdrSizing, "Coil Sizing Summary");
     681             :         // coil meta data information
     682             :         //    the first column will be the coil name, the unique user name from input. It has no header or column definition
     683         796 :         s->pdch2CoilType = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Type");
     684         796 :         s->pdch2CoilHVACType = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "HVAC Type");
     685         796 :         s->pdch2CoilHVACName = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "HVAC Name");
     686             : 
     687             :         // coil Final size summary, regardless of how determined (
     688         796 :         s->pdch2CoilFinalTotalCap = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Final Gross Total Capacity [W]");
     689         796 :         s->pdch2CoilFinalSensCap = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Final Gross Sensible Capacity [W]");
     690        1592 :         s->pdch2CoilFinalAirVolFlowRate =
     691         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Final Reference Air Volume Flow Rate [m3/s]");
     692        1592 :         s->pdch2CoilFinalPlantVolFlowRate =
     693         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Final Reference Plant Fluid Volume Flow Rate [m3/s]");
     694         796 :         s->pdch2CoilUA = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil U-value Times Area Value [W/K]");
     695             : 
     696             :         // results from regular zone and system sizing calcs, "At Ideal Loads Peak"
     697         796 :         s->pdch2CoilDDnameSensIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Design Day Name at Sensible Ideal Loads Peak");
     698         796 :         s->pdch2CoilDateTimeSensIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Date/Time at Sensible Ideal Loads Peak");
     699         796 :         s->pdch2CoilDDnameAirFlowIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Design Day Name at Air Flow Ideal Loads Peak");
     700         796 :         s->pdch2CoilDateTimeAirFlowIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Date/Time at Air Flow Ideal Loads Peak");
     701             : 
     702         796 :         s->pdch2CoilTotalCapIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Total Capacity at Ideal Loads Peak [W]");
     703         796 :         s->pdch2CoilSensCapIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Sensible Capacity at Ideal Loads Peak [W]");
     704        1592 :         s->pdch2CoilAirVolumeFlowIdealPeak =
     705         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Air Volume Flow Rate at Ideal Loads Peak [m3/s]");
     706        1592 :         s->pdch2CoilEntDryBulbIdealPeak =
     707         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Entering Air Drybulb at Ideal Loads Peak [C]");
     708        1592 :         s->pdch2CoilEntWetBulbIdealPeak =
     709         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Entering Air Wetbulb at Ideal Loads Peak [C]");
     710        1592 :         s->pdch2CoilEntHumRatIdealPeak =
     711         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Entering Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     712        1592 :         s->pdch2CoilLvgDryBulbIdealPeak =
     713         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Leaving Air Drybulb at Ideal Loads Peak [C]");
     714        1592 :         s->pdch2CoilLvgWetBulbIdealPeak =
     715         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Leaving Air Wetbulb at Ideal Loads Peak [C]");
     716        1592 :         s->pdch2CoilLvgHumRatIdealPeak =
     717         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Leaving Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     718         796 :         s->pdch2OADryBulbIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Outdoor Air Drybulb at Ideal Loads Peak [C]");
     719        1592 :         s->pdch2OAHumRatIdealPeak =
     720         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Outdoor Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     721         796 :         s->pdch2OAWetBulbatIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Outdoor Air Wetbulb at Ideal Loads Peak [C]");
     722        1592 :         s->pdch2OAFlowPrcntIdealPeak =
     723         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Outdoor Air Flow Percentage at Ideal Loads Peak [%]");
     724         796 :         s->pdch2ZoneAirDryBulbIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Zone Air Drybulb at Ideal Loads Peak [C]");
     725        1592 :         s->pdch2ZoneAirHumRatIdealPeak =
     726         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Zone Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     727        1592 :         s->pdch2ZoneAirRelHumIdealPeak =
     728         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Zone Air Relative Humidity at Ideal Loads Peak [%]");
     729        1592 :         s->pdch2ZoneSensibleLoadIdealPeak =
     730         796 :             newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Zone Sensible Heat Gain at Ideal Loads Peak [W]");
     731         796 :         s->pdch2ZoneLatentLoadIdealPeak = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Zone Latent Heat Gain at Ideal Loads Peak [W]");
     732             :         // results for coil at Rated Conditions
     733         796 :         s->pdch2CoilRatedTotalCap = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Total Capacity at Rating Conditions [W]");
     734         796 :         s->pdch2CoilRatedSensCap = newPreDefColumn(state, s->pdst2CoilSummaryCoilSelection, "Coil Sensible Capacity at Rating Conditions [W]");
     735             : 
     736         796 :         s->pdrCoilSizingDetailsTable = newPreDefReport(state, "CoilSizingDetails", "Coil", "Coil Sizing Details");
     737         796 :         s->pdstCoilSummaryCoilSelection = newPreDefSubTable(state, s->pdrCoilSizingDetailsTable, "Coils");
     738             :         // coil meta data information
     739             :         //    the first column will be the coil name, the unique user name from input. It has no header or column definition
     740         796 :         s->pdchCoilType = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Type");
     741         796 :         s->pdchCoilLocation = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Location");
     742         796 :         s->pdchCoilHVACType = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "HVAC Type");
     743         796 :         s->pdchCoilHVACName = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "HVAC Name");
     744         796 :         s->pdchCoilZoneName = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Zone Name(s)");
     745             : 
     746         796 :         s->pdchSysSizingMethCoinc = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "System Sizing Method Concurrence");
     747         796 :         s->pdchSysSizingMethCap = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "System Sizing Method Capacity");
     748         796 :         s->pdchSysSizingMethAir = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "System Sizing Method Air Flow");
     749             : 
     750         796 :         s->pdchCoilIsCapAutosized = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Autosized Coil Capacity?");
     751         796 :         s->pdchCoilIsAirFlowAutosized = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Autosized Coil Airflow?");
     752         796 :         s->pdchCoilIsWaterFlowAutosized = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Autosized Coil Water Flow?");
     753         796 :         s->pdchCoilIsOATreated = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "OA Pretreated prior to coil inlet?");
     754             : 
     755             :         // coil Final size summary, regardless of how determined (
     756             :         // get rid of these, this will be the same as At Rating Conditions.
     757         796 :         s->pdchCoilFinalTotalCap = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Final Gross Total Capacity [W]");
     758         796 :         s->pdchCoilFinalSensCap = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Final Gross Sensible Capacity [W]");
     759         796 :         s->pdchCoilFinalAirVolFlowRate = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Final Reference Air Volume Flow Rate [m3/s]");
     760        1592 :         s->pdchCoilFinalPlantVolFlowRate =
     761         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Final Reference Plant Fluid Volume Flow Rate [m3/s]");
     762             : 
     763             :         // Misc Design output
     764         796 :         s->pdchCoilUA = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil U-value Times Area Value [W/K]");
     765         796 :         s->pdchReheatCoilMultiplier = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Terminal Unit Reheat Coil Multiplier");
     766        1592 :         s->pdchFlowCapRatioLowCapIncreaseRatio =
     767         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "DX Coil Capacity Increase Ratio from Too Low Flow/Capacity Ratio");
     768        1592 :         s->pdchFlowCapRatioHiCapDecreaseRatio =
     769         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "DX Coil Capacity Decrease Ratio from Too High Flow/Capacity Ratio");
     770             : 
     771        1592 :         s->pdchMoistAirSpecificHeat =
     772         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Moist Air Heat Capacity [J/kg-K]"); // standard? for ideal sizing calcs?
     773        1592 :         s->pdchDryAirSpecificHeat =
     774         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Dry Air Heat Capacity [J/kg-K]"); // standard? for ideal sizing calcs?
     775         796 :         s->pdchStandRhoAir = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Standard Air Density Adjusted for Elevation [kg/m3]");
     776             : 
     777             :         // Fan info for coil
     778         796 :         s->pdchFanAssociatedWithCoilName = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Supply Fan Name for Coil");
     779         796 :         s->pdchFanAssociatedWithCoilType = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Supply Fan Type for Coil");
     780         796 :         s->pdchFanAssociatedVdotSize = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Supply Fan Maximum Air Volume Flow Rate [m3/s]");
     781         796 :         s->pdchFanAssociatedMdotSize = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Supply Fan Maximum Air Mass Flow Rate [kg/s]");
     782             : 
     783             :         // Plant info for coil
     784         796 :         s->pdchCoilPlantLoopName = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Plant Name for Coil");
     785        1592 :         s->pdchPlantFluidSpecificHeat =
     786         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Plant Fluid Specific Heat Capacity [J/kg-K]"); // standard/inits ?
     787        1592 :         s->pdchPlantFluidDensity =
     788         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Plant Fluid Density [kg/m3]"); // standard/inits ? for ideal sizing calcs?
     789         796 :         s->pdchPlantMassFlowMaximum = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Plant Maximum Fluid Mass Flow Rate [kg/s]");
     790         796 :         s->pdchPlantRetTempDesign = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Plant Design Fluid Return Temperature [C]");
     791         796 :         s->pdchPlantSupTempDesign = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Plant Design Fluid Supply Temperature [C]");
     792         796 :         s->pdchPlantDeltaTempDesign = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Plant Design Fluid Temperature Difference [deltaC]");
     793         796 :         s->pdchPlantCapacity = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Plant Design Capacity [W]");
     794        1592 :         s->pdchCoilCapPrcntPlantCapacity =
     795         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Capacity Percentage of Plant Design Capacity [%]");
     796        1592 :         s->pdchCoilFlowPrcntPlantFlow =
     797         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Fluid Flow Rate Percentage of Plant Design Flow Rate [%]");
     798             : 
     799             :         // results from regular zone and system sizing calcs, "At Ideal Loads Peak"
     800         796 :         s->pdchCoilDDnameSensIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Design Day Name at Sensible Ideal Loads Peak");
     801         796 :         s->pdchCoilDateTimeSensIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Date/Time at Sensible Ideal Loads Peak");
     802         796 :         s->pdchCoilDDnameTotIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Design Day Name at Total Ideal Loads Peak");
     803         796 :         s->pdchCoilDateTimeTotIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Date/Time at Total Ideal Loads Peak");
     804         796 :         s->pdchCoilDDnameAirFlowIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Design Day Name at Air Flow Ideal Loads Peak");
     805         796 :         s->pdchCoilDateTimeAirFlowIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Date/Time at Air Flow Ideal Loads Peak");
     806         796 :         s->pdchCoilPeakLoadTypeToSizeOn = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Peak Load Type to Size On");
     807             : 
     808         796 :         s->pdchCoilTotalCapIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Total Capacity at Ideal Loads Peak [W]");
     809         796 :         s->pdchCoilSensCapIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Sensible Capacity at Ideal Loads Peak [W]");
     810        1592 :         s->pdchCoilOffRatingCapacityModifierIdealPeak =
     811         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Off-Rating Capacity Modifier at Ideal Loads Peak [ ]");
     812        1592 :         s->pdchCoilAirMassFlowIdealPeak =
     813         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Air Mass Flow Rate at Ideal Loads Peak [kg/s]");
     814        1592 :         s->pdchCoilAirVolumeFlowIdealPeak =
     815         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Air Volume Flow Rate at Ideal Loads Peak [m3/s]");
     816         796 :         s->pdchCoilEntDryBulbIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Air Drybulb at Ideal Loads Peak [C]");
     817         796 :         s->pdchCoilEntWetBulbIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Air Wetbulb at Ideal Loads Peak [C]");
     818        1592 :         s->pdchCoilEntHumRatIdealPeak =
     819         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     820        1592 :         s->pdchCoilEntEnthalpyIdealPeak =
     821         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Air Enthalpy at Ideal Loads Peak [J/KG-K]");
     822         796 :         s->pdchCoilLvgDryBulbIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Air Drybulb at Ideal Loads Peak [C]");
     823         796 :         s->pdchCoilLvgWetBulbIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Air Wetbulb at Ideal Loads Peak [C]");
     824        1592 :         s->pdchCoilLvgHumRatIdealPeak =
     825         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     826        1592 :         s->pdchCoilLvgEnthalpyIdealPeak =
     827         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Air Enthalpy at Ideal Loads Peak [J/KG-K]");
     828        1592 :         s->pdchCoilWaterMassFlowIdealPeak =
     829         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Plant Fluid Mass Flow Rate at Ideal Loads Peak [kg/s]");
     830        1592 :         s->pdchCoilEntWaterTempIdealPeak =
     831         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Plant Fluid Temperature at Ideal Loads Peak [C]");
     832        1592 :         s->pdchCoilLvgWaterTempIdealPeak =
     833         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Plant Fluid Temperature at Ideal Loads Peak [C]");
     834        1592 :         s->pdchCoilWaterDeltaTempIdealPeak =
     835         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Plant Fluid Temperature Difference at Ideal Loads Peak [deltaC]");
     836         796 :         s->pdchFanHeatGainIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Supply Fan Air Heat Gain at Ideal Loads Peak [W]");
     837        1592 :         s->pdchCoilNetTotalCapacityIdealPeak =
     838         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil and Fan Net Total Capacity at Ideal Loads Peak [W]");
     839         796 :         s->pdchOADryBulbIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Outdoor Air Drybulb at Ideal Loads Peak [C]");
     840        1592 :         s->pdchOAHumRatIdealPeak =
     841         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Outdoor Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     842         796 :         s->pdchOAWetBulbatIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Outdoor Air Wetbulb at Ideal Loads Peak [C]");
     843        1592 :         s->pdchOAVolFlowIdealPeak =
     844         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Outdoor Air Volume Flow Rate at Ideal Loads Peak [m3/s]");
     845         796 :         s->pdchOAFlowPrcntIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Outdoor Air Flow Percentage at Ideal Loads Peak [%]");
     846        1592 :         s->pdchAirSysRADryBulbIdealPeak =
     847         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "System Return Air Drybulb at Ideal Loads Peak [C]");
     848        1592 :         s->pdchAirSysRAHumRatIdealPeak =
     849         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "System Return Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     850         796 :         s->pdchZoneAirDryBulbIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Zone Air Drybulb at Ideal Loads Peak [C]");
     851        1592 :         s->pdchZoneAirHumRatIdealPeak =
     852         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Zone Air Humidity Ratio at Ideal Loads Peak [kgWater/kgDryAir]");
     853         796 :         s->pdchZoneAirRelHumIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Zone Air Relative Humidity at Ideal Loads Peak [%]");
     854         796 :         s->pdchZoneSensibleLoadIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Zone Sensible Heat Gain at Ideal Loads Peak [W]");
     855         796 :         s->pdchZoneLatentLoadIdealPeak = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Zone Latent Heat Gain at Ideal Loads Peak [W]");
     856             :         // results for coil at Rated Conditions
     857         796 :         s->pdchCoilRatedTotalCap = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Total Capacity at Rating Conditions [W]");
     858         796 :         s->pdchCoilRatedSensCap = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Sensible Capacity at Rating Conditions [W]");
     859             : 
     860         796 :         s->pdchCoilRatedAirMass = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Air Mass Flow Rate at Rating Conditions [kg/s]");
     861         796 :         s->pdchCoilRatedEntDryBulb = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Air Drybulb at Rating Conditions [C]");
     862         796 :         s->pdchCoilRatedEntWetBulb = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Air Wetbulb at Rating Conditions [C]");
     863        1592 :         s->pdchCoilRatedEntHumRat =
     864         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Air Humidity Ratio at Rating Conditions [kgWater/kgDryAir]");
     865        1592 :         s->pdchCoilRatedEntEnthalpy =
     866         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Entering Air Enthalpy at Rating Conditions [J/KG-K]");
     867         796 :         s->pdchCoilRatedLvgDryBulb = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Air Drybulb at Rating Conditions [C]");
     868         796 :         s->pdchCoilRatedLvgWetBulb = newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Air Wetbulb at Rating Conditions [C]");
     869        1592 :         s->pdchCoilRatedLvgHumRat =
     870         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Air Humidity Ratio at Rating Conditions [kgWater/kgDryAir]");
     871        1592 :         s->pdchCoilRatedLvgEnthalpy =
     872         796 :             newPreDefColumn(state, s->pdstCoilSummaryCoilSelection, "Coil Leaving Air Enthalpy at Rating Conditions [J/KG-K]");
     873             : 
     874             :         // Std 229 New Table "Coil Connections"
     875         796 :         s->pdstCoilConnections = newPreDefSubTable(state, s->pdrCoilSizingDetailsTable, "Coil Connections");
     876             :         // coil connections information
     877         796 :         s->pdchCoilName_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Coil Name");
     878         796 :         s->pdchCoilType_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Coil Type");
     879         796 :         s->pdchCoilLoc_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Coil Location");
     880         796 :         s->pdchCoilHVACType_CCs = newPreDefColumn(state, s->pdstCoilConnections, "HVAC Type");
     881         796 :         s->pdchCoilHVACName_CCs = newPreDefColumn(state, s->pdstCoilConnections, "HVAC Name");
     882         796 :         s->pdchCoilZoneNames_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Zone Name(s)");
     883         796 :         s->pdchCoilSupFanName_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Supply Fan Name for HVAC");
     884         796 :         s->pdchCoilSupFanType_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Supply Fan Type for HVAC");
     885         796 :         s->pdchCoilAirloopName_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Airloop Name");
     886         796 :         s->pdchCoilPlantName_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Plant Name for Coil");
     887         796 :         s->pdchCoilPlantloopName_CCs = newPreDefColumn(state, s->pdstCoilConnections, "Plant Loop Name");
     888             : 
     889             :         // System Summary Report
     890             : 
     891         796 :         s->pdrSystem = newPreDefReport(state, "SystemSummary", "Sys", "System Summary");
     892             : 
     893         796 :         s->pdstEconomizer = newPreDefSubTable(state, s->pdrSystem, "Economizer");
     894             : 
     895         796 :         s->pdchEcoKind = newPreDefColumn(state, s->pdstEconomizer, "High Limit Shutoff Control");
     896         796 :         s->pdchEcoMinOA = newPreDefColumn(state, s->pdstEconomizer, "Minimum Outdoor Air [m3/s]");
     897         796 :         s->pdchEcoMaxOA = newPreDefColumn(state, s->pdstEconomizer, "Maximum Outdoor Air [m3/s]");
     898         796 :         s->pdchEcoRetTemp = newPreDefColumn(state, s->pdstEconomizer, "Return Air Temp Limit");
     899         796 :         s->pdchEcoRetEnth = newPreDefColumn(state, s->pdstEconomizer, "Return Air Enthalpy Limit");
     900         796 :         s->pdchEcoOATempLim = newPreDefColumn(state, s->pdstEconomizer, "Outdoor Air Temperature Limit [C]");
     901         796 :         s->pdchEcoOAEnthLim = newPreDefColumn(state, s->pdstEconomizer, "Outdoor Air Enthalpy Limit [C]");
     902             : 
     903         796 :         s->pdstDemCntlVent = newPreDefSubTable(state, s->pdrSystem, "Demand Controlled Ventilation using Controller:MechanicalVentilation");
     904         796 :         s->pdchDCVventMechName = newPreDefColumn(state, s->pdstDemCntlVent, "Controller:MechanicalVentilation Name");
     905         796 :         s->pdchDCVperPerson = newPreDefColumn(state, s->pdstDemCntlVent, "Outdoor Air Per Person [m3/s-person]");
     906         796 :         s->pdchDCVperArea = newPreDefColumn(state, s->pdstDemCntlVent, "Outdoor Air Per Area [m3/s-m2]");
     907         796 :         s->pdchDCVperZone = newPreDefColumn(state, s->pdstDemCntlVent, "Outdoor Air Per Zone [m3/s]");
     908         796 :         s->pdchDCVperACH = newPreDefColumn(state, s->pdstDemCntlVent, "Outdoor Air ACH [ach]");
     909         796 :         s->pdchDCVMethod = newPreDefColumn(state, s->pdstDemCntlVent, "Outdoor Air Method");
     910         796 :         s->pdchDCVOASchName = newPreDefColumn(state, s->pdstDemCntlVent, "Outdoor Air Schedule Name");
     911             :         // added for new DCV
     912         796 :         s->pdchDCVZoneADEffCooling = newPreDefColumn(state, s->pdstDemCntlVent, "Air Distribution Effectiveness in Cooling Mode");
     913         796 :         s->pdchDCVZoneADEffHeating = newPreDefColumn(state, s->pdstDemCntlVent, "Air Distribution Effectiveness in Heating Mode");
     914         796 :         s->pdchDCVZoneADEffSchName = newPreDefColumn(state, s->pdstDemCntlVent, "Air Distribution Effectiveness Schedule Name");
     915         796 :         s->pdchDCVType = newPreDefColumn(state, s->pdstDemCntlVent, "Type");
     916             : 
     917         796 :         s->pdstSimpleComfort = newPreDefSubTable(state, s->pdrSystem, "Time Not Comfortable Based on Simple ASHRAE 55-2004");
     918         796 :         s->pdchSCwinterClothes = newPreDefColumn(state, s->pdstSimpleComfort, "Winter Clothes [hr]");
     919         796 :         s->pdchSCsummerClothes = newPreDefColumn(state, s->pdstSimpleComfort, "Summer Clothes [hr]");
     920         796 :         s->pdchSCeitherClothes = newPreDefColumn(state, s->pdstSimpleComfort, "Summer or Winter Clothes [hr]");
     921             : 
     922         796 :         s->pdstUnmetLoads = newPreDefSubTable(state, s->pdrSystem, "Time Setpoint Not Met");
     923         796 :         s->pdchULnotMetHeat = newPreDefColumn(state, s->pdstUnmetLoads, "During Heating [hr]");
     924         796 :         s->pdchULnotMetCool = newPreDefColumn(state, s->pdstUnmetLoads, "During Cooling [hr]");
     925         796 :         s->pdchULnotMetHeatOcc = newPreDefColumn(state, s->pdstUnmetLoads, "During Occupied Heating [hr]");
     926         796 :         s->pdchULnotMetCoolOcc = newPreDefColumn(state, s->pdstUnmetLoads, "During Occupied Cooling [hr]");
     927             : 
     928         796 :         s->pdstStatSchd = newPreDefSubTable(state, s->pdrSystem, "Thermostat Schedules");
     929         796 :         s->pdchStatName = newPreDefColumn(state, s->pdstStatSchd, "Thermostat Name 1");
     930         796 :         s->pdchStatCtrlTypeSchd = newPreDefColumn(state, s->pdstStatSchd, "Control Type Schedule");
     931         796 :         s->pdchStatSchdType1 = newPreDefColumn(state, s->pdstStatSchd, "Control Type");
     932         796 :         s->pdchStatSchdTypeName1 = newPreDefColumn(state, s->pdstStatSchd, "Control Type Name");
     933         796 :         s->pdchStatSchdHeatName = newPreDefColumn(state, s->pdstStatSchd, "Heating Schedule");
     934         796 :         s->pdchStatSchdCoolName = newPreDefColumn(state, s->pdstStatSchd, "Cooling Schedule");
     935             : 
     936             :         // HVAC Topology Report
     937         796 :         s->pdrTopology = newPreDefReport(state, "HVACTopology", "Top", "HVAC Topology");
     938             : 
     939         796 :         s->pdstTopAirLoop = newPreDefSubTable(state, s->pdrTopology, "Air Loop Supply Side Component Arrangement");
     940         796 :         s->pdchTopAirLoopName = newPreDefColumn(state, s->pdstTopAirLoop, "Airloop Name");
     941         796 :         s->pdchTopAirSplitName = newPreDefColumn(state, s->pdstTopAirLoop, "Splitter Name");
     942         796 :         s->pdchTopAirBranchName = newPreDefColumn(state, s->pdstTopAirLoop, "Supply Branch Name");
     943         796 :         s->pdchTopAirSupplyBranchType = newPreDefColumn(state, s->pdstTopAirLoop, "Supply Branch Type");
     944         796 :         s->pdchTopAirCompType = newPreDefColumn(state, s->pdstTopAirLoop, "Component Type");
     945         796 :         s->pdchTopAirCompName = newPreDefColumn(state, s->pdstTopAirLoop, "Component Name");
     946         796 :         s->pdchTopAirSubCompType = newPreDefColumn(state, s->pdstTopAirLoop, "Sub-Component Type");
     947         796 :         s->pdchTopAirSubCompName = newPreDefColumn(state, s->pdstTopAirLoop, "Sub-Component Name");
     948         796 :         s->pdchTopAirSubSubCompType = newPreDefColumn(state, s->pdstTopAirLoop, "Sub-Sub-Component Type");
     949         796 :         s->pdchTopAirSubSubCompName = newPreDefColumn(state, s->pdstTopAirLoop, "Sub-Sub-Component Name");
     950         796 :         s->pdchTopAirMixName = newPreDefColumn(state, s->pdstTopAirLoop, "Mixer Name");
     951             : 
     952         796 :         s->pdstTopAirDemand = newPreDefSubTable(state, s->pdrTopology, "Air Loop Demand Side Component Arrangement");
     953         796 :         s->pdchTopAirDemandName = newPreDefColumn(state, s->pdstTopAirDemand, "Airloop Name");
     954         796 :         s->pdchTopAirSupplyBranchName = newPreDefColumn(state, s->pdstTopAirDemand, "Supply Branch Name");
     955         796 :         s->pdchTopAirSupplyDuctType = newPreDefColumn(state, s->pdstTopAirDemand, "Supply Branch Type");
     956         796 :         s->pdchTopAirSupplyPCompType = newPreDefColumn(state, s->pdstTopAirDemand, "Supply Path Component Type");
     957         796 :         s->pdchTopAirSupplyPCompName = newPreDefColumn(state, s->pdstTopAirDemand, "Supply Path Component Name");
     958         796 :         s->pdchTopAirTermUnitType = newPreDefColumn(state, s->pdstTopAirDemand, "Terminal Unit Type");
     959         796 :         s->pdchTopAirTermUnitName = newPreDefColumn(state, s->pdstTopAirDemand, "Terminal Unit Name");
     960         796 :         s->pdchTopAirZoneName = newPreDefColumn(state, s->pdstTopAirDemand, "Zone Name");
     961         796 :         s->pdchTopAirReturnPCompType = newPreDefColumn(state, s->pdstTopAirDemand, "Return Path Component Type");
     962         796 :         s->pdchTopAirReturnPCompName = newPreDefColumn(state, s->pdstTopAirDemand, "Return Path Component Name");
     963             : 
     964         796 :         s->pdstTopZnEqp = newPreDefSubTable(state, s->pdrTopology, "Zone Equipment Component Arrangement");
     965         796 :         s->pdchTopZnEqpName = newPreDefColumn(state, s->pdstTopZnEqp, "Zone Name");
     966         796 :         s->pdchTopZnEqpCompType = newPreDefColumn(state, s->pdstTopZnEqp, "Component Type");
     967         796 :         s->pdchTopZnEqpCompName = newPreDefColumn(state, s->pdstTopZnEqp, "Component Name");
     968         796 :         s->pdchTopZnEqpSubCompType = newPreDefColumn(state, s->pdstTopZnEqp, "Sub-Component Type");
     969         796 :         s->pdchTopZnEqpSubCompName = newPreDefColumn(state, s->pdstTopZnEqp, "Sub-Component Name");
     970         796 :         s->pdchTopZnEqpSubSubCompType = newPreDefColumn(state, s->pdstTopZnEqp, "Sub-Sub-Component Type");
     971         796 :         s->pdchTopZnEqpSubSubCompName = newPreDefColumn(state, s->pdstTopZnEqp, "Sub-Sub-Component Name");
     972             : 
     973         796 :         s->pdstTopPlantLoop2 = newPreDefSubTable(state, s->pdrTopology, "Plant Loop Component Arrangement");
     974         796 :         s->pdchTopPlantLoopType2 = newPreDefColumn(state, s->pdstTopPlantLoop2, "Loop Type");
     975         796 :         s->pdchTopPlantLoopName2 = newPreDefColumn(state, s->pdstTopPlantLoop2, "Loop Name");
     976         796 :         s->pdchTopPlantSide2 = newPreDefColumn(state, s->pdstTopPlantLoop2, "Side");
     977         796 :         s->pdchTopPlantSplitName2 = newPreDefColumn(state, s->pdstTopPlantLoop2, "Splitter Name");
     978         796 :         s->pdchTopPlantBranchName2 = newPreDefColumn(state, s->pdstTopPlantLoop2, "Branch Name");
     979         796 :         s->pdchTopPlantCompType2 = newPreDefColumn(state, s->pdstTopPlantLoop2, "Component Type");
     980         796 :         s->pdchTopPlantCompName2 = newPreDefColumn(state, s->pdstTopPlantLoop2, "Component Name");
     981         796 :         s->pdchTopPlantMixName2 = newPreDefColumn(state, s->pdstTopPlantLoop2, "Mixer Name");
     982             : 
     983             :         // Outdoor Air Report
     984         796 :         s->pdrOutsideAir = newPreDefReport(state, "OutdoorAirSummary", "OA", "Outdoor Air Summary");
     985             : 
     986         796 :         s->pdstOAavgOcc = newPreDefSubTable(state, s->pdrOutsideAir, "Average Outdoor Air During Occupied Hours");
     987             : 
     988         796 :         s->pdchOaoAvgNumOcc1 = newPreDefColumn(state, s->pdstOAavgOcc, "Average Number of Occupants");
     989         796 :         s->pdchOaoNomNumOcc1 = newPreDefColumn(state, s->pdstOAavgOcc, "Nominal Number of Occupants");
     990         796 :         s->pdchOaoZoneVol1 = newPreDefColumn(state, s->pdstOAavgOcc, "Zone Volume [m3]");
     991         796 :         s->pdchOaoAvgMechVent = newPreDefColumn(state, s->pdstOAavgOcc, "Mechanical Ventilation [ach]");
     992         796 :         s->pdchOaoAvgInfil = newPreDefColumn(state, s->pdstOAavgOcc, "Infiltration [ach]");
     993         796 :         s->pdchOaoAvgAFNInfil = newPreDefColumn(state, s->pdstOAavgOcc, "AFN Infiltration [ach]");
     994         796 :         s->pdchOaoAvgSimpVent = newPreDefColumn(state, s->pdstOAavgOcc, "Simple Ventilation [ach]");
     995             :         // s->pdchOaoAvgTotVent =   newPreDefColumn(state, s->pdstOAavgOcc,'Total Ventilation [ach]')
     996             : 
     997         796 :         addFootNoteSubTable(state, s->pdstOAavgOcc, "Values shown for a single zone without multipliers");
     998             : 
     999         796 :         s->pdstOAminOcc = newPreDefSubTable(state, s->pdrOutsideAir, "Minimum Outdoor Air During Occupied Hours");
    1000             : 
    1001         796 :         s->pdchOaoAvgNumOcc2 = newPreDefColumn(state, s->pdstOAminOcc, "Average Number of Occupants");
    1002         796 :         s->pdchOaoNomNumOcc2 = newPreDefColumn(state, s->pdstOAminOcc, "Nominal Number of Occupants");
    1003         796 :         s->pdchOaoZoneVol2 = newPreDefColumn(state, s->pdstOAminOcc, "Zone Volume [m3]");
    1004         796 :         s->pdchOaoMinMechVent = newPreDefColumn(state, s->pdstOAminOcc, "Mechanical Ventilation [ach]");
    1005         796 :         s->pdchOaoMinInfil = newPreDefColumn(state, s->pdstOAminOcc, "Infiltration [ach]");
    1006         796 :         s->pdchOaoMinAFNInfil = newPreDefColumn(state, s->pdstOAminOcc, "AFN Infiltration [ach]");
    1007         796 :         s->pdchOaoMinSimpVent = newPreDefColumn(state, s->pdstOAminOcc, "Simple Ventilation [ach]");
    1008             :         // s->pdchOaoMinTotVent =   newPreDefColumn(state, s->pdstOAminOcc,'Total Ventilation [ach]')
    1009         796 :         addFootNoteSubTable(state, s->pdstOAminOcc, "Values shown for a single zone without multipliers");
    1010             : 
    1011             :         // Outdoor Air Details Report
    1012         796 :         s->pdrOutsideAirDetails = newPreDefReport(state, "OutdoorAirDetails", "OAD", "Outdoor Air Details");
    1013             : 
    1014         796 :         s->pdstOAmechVentParByZone = newPreDefSubTable(state, s->pdrOutsideAirDetails, "Mechanical Ventilation Parameters by Zone");
    1015         796 :         s->pdchOaMvAirLpNm = newPreDefColumn(state, s->pdstOAmechVentParByZone, "AirLoop Name");
    1016         796 :         s->pdchOaMvAvgNumOcc = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Average Number of Occupants");
    1017         796 :         s->pdchOaMvNomNumOcc = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Nominal Number of Occupants");
    1018         796 :         s->pdchOaMvZoneVol = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Zone Volume [m3]");
    1019         796 :         s->pdchOaMvZoneArea = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Zone Area [m2]");
    1020         796 :         s->pdchOaMvDesZnOa = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Design Zone Outdoor Airflow - Voz [m3/s]");
    1021         796 :         s->pdchOaMvMinDynTrgVent = newPreDefColumn(state, s->pdstOAmechVentParByZone, "Minimum Dynamic Target Ventilation - Voz-dyn-min [m3/s]");
    1022             : 
    1023         796 :         s->pdstOAtotAirByZone = newPreDefSubTable(state, s->pdrOutsideAirDetails, "Total Outdoor Air by Zone");
    1024         796 :         s->pdchOaTaBzMechVent = newPreDefColumn(state, s->pdstOAtotAirByZone, "Mechanical Ventilation [m3]");
    1025         796 :         s->pdchOaTaBzNatVent = newPreDefColumn(state, s->pdstOAtotAirByZone, "Natural Ventilation [m3]");
    1026         796 :         s->pdchOaTaBzTotVent = newPreDefColumn(state, s->pdstOAtotAirByZone, "Total Ventilation [m3]");
    1027         796 :         s->pdchOaTaBzInfil = newPreDefColumn(state, s->pdstOAtotAirByZone, "Infiltration [m3]");
    1028         796 :         s->pdchOaTaBzTotVentInfil = newPreDefColumn(state, s->pdstOAtotAirByZone, "Total Ventilation and Infiltration [m3]");
    1029         796 :         s->pdchOaTaBzDynTrgVent = newPreDefColumn(state, s->pdstOAtotAirByZone, "Dynamic Target Ventilation - Voz-dyn [m3]");
    1030         796 :         s->pdchOaTaBzTmBelow = newPreDefColumn(state, s->pdstOAtotAirByZone, "Time Below Voz-dyn [hr]");
    1031         796 :         s->pdchOaTaBzTmAt = newPreDefColumn(state, s->pdstOAtotAirByZone, "Time At Voz-dyn [hr]");
    1032         796 :         s->pdchOaTaBzTmAbove = newPreDefColumn(state, s->pdstOAtotAirByZone, "Time Above Voz-dyn [hr]");
    1033         796 :         s->pdchOaTaBzTmAboveUnocc = newPreDefColumn(state, s->pdstOAtotAirByZone, "Time Above Zero When Unoccupied [hr]");
    1034             : 
    1035         796 :         s->pdstOAavgOccByZone = newPreDefSubTable(state, s->pdrOutsideAirDetails, "Average Outdoor Air During Occupancy by Zone - Flow Rates");
    1036         796 :         s->pdchOaOccBzMechVent = newPreDefColumn(state, s->pdstOAavgOccByZone, "Mechanical Ventilation [m3/s]");
    1037         796 :         s->pdchOaOccBzNatVent = newPreDefColumn(state, s->pdstOAavgOccByZone, "Natural Ventilation [m3/s]");
    1038         796 :         s->pdchOaOccBzTotVent = newPreDefColumn(state, s->pdstOAavgOccByZone, "Total Ventilation [m3/s]");
    1039         796 :         s->pdchOaOccBzInfil = newPreDefColumn(state, s->pdstOAavgOccByZone, "Infiltration [m3/s]");
    1040         796 :         s->pdchOaOccBzTotVentInfil = newPreDefColumn(state, s->pdstOAavgOccByZone, "Total Ventilation and Infiltration [m3/s]");
    1041         796 :         s->pdchOaOccBzDynTrgVent = newPreDefColumn(state, s->pdstOAavgOccByZone, "Dynamic Target Ventilation - Voz-dyn [m3/s]");
    1042         796 :         s->pdchOaOccBzTmBelow = newPreDefColumn(state, s->pdstOAavgOccByZone, "Time Below Voz-dyn [hr]");
    1043         796 :         s->pdchOaOccBzTmAt = newPreDefColumn(state, s->pdstOAavgOccByZone, "Time At Voz-dyn [hr]");
    1044         796 :         s->pdchOaOccBzTmAbove = newPreDefColumn(state, s->pdstOAavgOccByZone, "Time Above Voz-dyn [hr]");
    1045             : 
    1046         796 :         s->pdstOAtotAirByLoop = newPreDefSubTable(state, s->pdrOutsideAirDetails, "Total Outdoor Air by AirLoop");
    1047         796 :         s->pdchOaTaAlMechVent = newPreDefColumn(state, s->pdstOAtotAirByLoop, "Mechanical Ventilation [m3]");
    1048         796 :         s->pdchOaTaAlNatVent = newPreDefColumn(state, s->pdstOAtotAirByLoop, "Natural Ventilation [m3]");
    1049         796 :         s->pdchOaTaAlTotVent = newPreDefColumn(state, s->pdstOAtotAirByLoop, "Total Ventilation [m3]");
    1050         796 :         s->pdchOaTaAlSumDynTrgVent = newPreDefColumn(state, s->pdstOAtotAirByLoop, "Sum Zone Dynamic Target Ventilation - Voz-sum-dyn [m3]");
    1051         796 :         s->pdchOaTaAlTmBelow = newPreDefColumn(state, s->pdstOAtotAirByLoop, "Time Below Voz-sum-dyn [hr]");
    1052         796 :         s->pdchOaTaAlTmAt = newPreDefColumn(state, s->pdstOAtotAirByLoop, "Time At Voz-sum-dyn [hr]");
    1053         796 :         s->pdchOaTaAlTmAbove = newPreDefColumn(state, s->pdstOAtotAirByLoop, "Time Above Voz-sum-dyn [hr]");
    1054         796 :         s->pdchOaTaAlTmAboveUnocc = newPreDefColumn(state, s->pdstOAtotAirByLoop, "Time Above Zero When Unoccupied [hr]");
    1055             : 
    1056         796 :         s->pdstOAavgOccByLoop = newPreDefSubTable(state, s->pdrOutsideAirDetails, "Average Outdoor Air During Occupancy by AirLoop");
    1057         796 :         s->pdchOaOccAlMechVent = newPreDefColumn(state, s->pdstOAavgOccByLoop, "Mechanical Ventilation [m3/s]");
    1058         796 :         s->pdchOaOccAlNatVent = newPreDefColumn(state, s->pdstOAavgOccByLoop, "Natural Ventilation [m3/s]");
    1059         796 :         s->pdchOaOccAlTotVent = newPreDefColumn(state, s->pdstOAavgOccByLoop, "Total Ventilation [m3/s]");
    1060         796 :         s->pdchOaOccAlSumDynTrgVent = newPreDefColumn(state, s->pdstOAavgOccByLoop, "Sum Zone Dynamic Target Ventilation - Voz-sum-dyn [m3/s]");
    1061         796 :         s->pdchOaOccAlTmBelow = newPreDefColumn(state, s->pdstOAavgOccByLoop, "Time Below Voz-sum-dyn [hr]");
    1062         796 :         s->pdchOaOccAlTmAt = newPreDefColumn(state, s->pdstOAavgOccByLoop, "Time At Voz-sum-dyn [hr]");
    1063         796 :         s->pdchOaOccAlTmAbove = newPreDefColumn(state, s->pdstOAavgOccByLoop, "Time Above Voz-sum-dyn [hr]");
    1064             : 
    1065         796 :         s->pdstOAtimeFactorsDurOcc = newPreDefSubTable(state, s->pdrOutsideAirDetails, "Outdoor Air Controller Limiting Factors by AirLoop");
    1066         796 :         s->pdchOaTmFctNoLimit = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "No Limiting Factor [hr]");        // todo
    1067         796 :         s->pdchOaTmFctLimit = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "Limits and Scheduled Limits [hr]"); // todo
    1068         796 :         s->pdchOaTmFctEcono = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "Economizer [hr]");                  // todo
    1069         796 :         s->pdchOaTmFctExhaust = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "Exhaust Flow [hr]");              // todo
    1070         796 :         s->pdchOaTmFctMixedLimit = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "Mixed Air Flow [hr]");         // todo
    1071         796 :         s->pdchOaTmFctHiHumid = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "High Humidity [hr]");             // todo
    1072         796 :         s->pdchOaTmFctDCV = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "Demand Controlled Ventilation [hr]"); // todo
    1073         796 :         s->pdchOaTmFctNiteVent = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "Night Ventilation [hr]");        // todo
    1074         796 :         s->pdchOaTmFctDemand = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "Demand Limiting [hr]");            // todo
    1075         796 :         s->pdchOaTmFctEMS = newPreDefColumn(state, s->pdstOAtimeFactorsDurOcc, "Energy Management System [hr]");      // todo
    1076             : 
    1077         796 :         s->pdstOAavgFactorsDurOcc = newPreDefSubTable(state, s->pdrOutsideAirDetails, "Average Outdoor Air for Limiting Factors During Occupancy");
    1078         796 :         s->pdchOaAvFctNoLimit = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "No Limiting Factor [m3/s]");        // todo
    1079         796 :         s->pdchOaAvFctLimit = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "Limits and Scheduled Limits [m3/s]"); // todo
    1080         796 :         s->pdchOaAvFctEcono = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "Economizer [m3/s]");                  // todo
    1081         796 :         s->pdchOaAvFctExhaust = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "Exhaust Flow [m3/s]");              // todo
    1082         796 :         s->pdchOaAvFctMixedLimit = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "Mixed Air Flow [m3/s]");         // todo
    1083         796 :         s->pdchOaAvFctHiHumid = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "High Humidity [m3/s]");             // todo
    1084         796 :         s->pdchOaAvFctDCV = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "Demand Controlled Ventilation [m3/s]"); // todo
    1085         796 :         s->pdchOaAvFctNiteVent = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "Night Ventilation [m3/s]");        // todo
    1086         796 :         s->pdchOaAvFctDemand = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "Demand Limiting [m3/s]");            // todo
    1087         796 :         s->pdchOaAvFctEMS = newPreDefColumn(state, s->pdstOAavgFactorsDurOcc, "Energy Management System [m3/s]");      // todo
    1088             : 
    1089             :         // Object Count Report
    1090         796 :         s->pdrObjCnt = newPreDefReport(state, "ObjectCountSummary", "Count", "Object Count Summary");
    1091             : 
    1092         796 :         s->pdstSurfCnt = newPreDefSubTable(state, s->pdrObjCnt, "Surfaces by Class");
    1093         796 :         s->pdchSurfCntTot = newPreDefColumn(state, s->pdstSurfCnt, "Total");
    1094         796 :         s->pdchSurfCntExt = newPreDefColumn(state, s->pdstSurfCnt, "Outdoors");
    1095             : 
    1096         796 :         s->pdstHVACcnt = newPreDefSubTable(state, s->pdrObjCnt, "HVAC");
    1097         796 :         s->pdchHVACcntVal = newPreDefColumn(state, s->pdstHVACcnt, "Count");
    1098             : 
    1099         796 :         s->pdstFieldCnt = newPreDefSubTable(state, s->pdrObjCnt, "Input Fields");
    1100         796 :         s->pdchFieldCntVal = newPreDefColumn(state, s->pdstFieldCnt, "Count");
    1101             : 
    1102             :         // Energy Meters report
    1103         796 :         s->pdrEnergyMeters = newPreDefReport(state, "EnergyMeters", "Meters", "Energy Meters");
    1104             : 
    1105             :         // s->pdstEMvalues = newPreDefSubTable(state, s->pdrEnergyMeters,'Annual and Peak Values')
    1106             :         // s->pdchEMannual = newPreDefColumn(state, s->pdstEMvalues,'Annual Value [GJ]')
    1107             :         // s->pdchEMminvalue = newPreDefColumn(state, s->pdstEMvalues,'Minimum Value [J]')
    1108             :         // s->pdchEMminvaluetime = newPreDefColumn(state, s->pdstEMvalues,'Timestamp of Minimum')
    1109             :         // s->pdchEMmaxvalue = newPreDefColumn(state, s->pdstEMvalues,'Maximum Value [J]')
    1110             :         // s->pdchEMmaxvaluetime = newPreDefColumn(state, s->pdstEMvalues,'Timestamp of Maximum')
    1111             :         // Electricity Sub Table
    1112         796 :         s->pdstEMelecvalues = newPreDefSubTable(state, s->pdrEnergyMeters, "Annual and Peak Values - Electricity");
    1113        1592 :         addFootNoteSubTable(
    1114         796 :             state, s->pdstEMelecvalues, "Values shown are for all completed run periods - including any simulations run during sizing periods");
    1115         796 :         s->pdchEMelecannual = newPreDefColumn(state, s->pdstEMelecvalues, "Electricity Annual Value [GJ]");
    1116         796 :         s->pdchEMelecminvalue = newPreDefColumn(state, s->pdstEMelecvalues, "Electricity Minimum Value [W]");
    1117         796 :         s->pdchEMelecminvaluetime = newPreDefColumn(state, s->pdstEMelecvalues, "Timestamp of Minimum {TIMESTAMP}");
    1118         796 :         s->pdchEMelecmaxvalue = newPreDefColumn(state, s->pdstEMelecvalues, "Electricity Maximum Value [W]");
    1119         796 :         s->pdchEMelecmaxvaluetime = newPreDefColumn(state, s->pdstEMelecvalues, "Timestamp of Maximum {TIMESTAMP}");
    1120             : 
    1121             :         // Gas Sub Table
    1122         796 :         s->pdstEMgasvalues = newPreDefSubTable(state, s->pdrEnergyMeters, "Annual and Peak Values - Natural Gas");
    1123        1592 :         addFootNoteSubTable(
    1124         796 :             state, s->pdstEMgasvalues, "Values shown are for all completed run periods - including any simulations run during sizing periods");
    1125         796 :         s->pdchEMgasannual = newPreDefColumn(state, s->pdstEMgasvalues, "Natural Gas Annual Value [GJ]");
    1126         796 :         s->pdchEMgasminvalue = newPreDefColumn(state, s->pdstEMgasvalues, "Natural Gas Minimum Value [W]");
    1127         796 :         s->pdchEMgasminvaluetime = newPreDefColumn(state, s->pdstEMgasvalues, "Timestamp of Minimum {TIMESTAMP}");
    1128         796 :         s->pdchEMgasmaxvalue = newPreDefColumn(state, s->pdstEMgasvalues, "Natural Gas Maximum Value [W]");
    1129         796 :         s->pdchEMgasmaxvaluetime = newPreDefColumn(state, s->pdstEMgasvalues, "Timestamp of Maximum {TIMESTAMP}");
    1130             : 
    1131             :         // Cool SubTable
    1132         796 :         s->pdstEMcoolvalues = newPreDefSubTable(state, s->pdrEnergyMeters, "Annual and Peak Values - Cooling");
    1133        1592 :         addFootNoteSubTable(
    1134         796 :             state, s->pdstEMcoolvalues, "Values shown are for all completed run periods - including any simulations run during sizing periods");
    1135         796 :         s->pdchEMcoolannual = newPreDefColumn(state, s->pdstEMcoolvalues, "Cooling Annual Value [GJ]");
    1136         796 :         s->pdchEMcoolminvalue = newPreDefColumn(state, s->pdstEMcoolvalues, "Cooling Minimum Value [W]");
    1137         796 :         s->pdchEMcoolminvaluetime = newPreDefColumn(state, s->pdstEMcoolvalues, "Timestamp of Minimum {TIMESTAMP}");
    1138         796 :         s->pdchEMcoolmaxvalue = newPreDefColumn(state, s->pdstEMcoolvalues, "Cooling Maximum Value [W]");
    1139         796 :         s->pdchEMcoolmaxvaluetime = newPreDefColumn(state, s->pdstEMcoolvalues, "Timestamp of Maximum {TIMESTAMP}");
    1140             : 
    1141             :         // Water SubTable
    1142         796 :         s->pdstEMwatervalues = newPreDefSubTable(state, s->pdrEnergyMeters, "Annual and Peak Values - Water");
    1143        1592 :         addFootNoteSubTable(
    1144         796 :             state, s->pdstEMwatervalues, "Values shown are for all completed run periods - including any simulations run during sizing periods");
    1145         796 :         s->pdchEMwaterannual = newPreDefColumn(state, s->pdstEMwatervalues, "Annual Value [m3]");
    1146         796 :         s->pdchEMwaterminvalue = newPreDefColumn(state, s->pdstEMwatervalues, "Minimum Value [m3/s]");
    1147         796 :         s->pdchEMwaterminvaluetime = newPreDefColumn(state, s->pdstEMwatervalues, "Timestamp of Minimum {TIMESTAMP}");
    1148         796 :         s->pdchEMwatermaxvalue = newPreDefColumn(state, s->pdstEMwatervalues, "Maximum Value [m3/s]");
    1149         796 :         s->pdchEMwatermaxvaluetime = newPreDefColumn(state, s->pdstEMwatervalues, "Timestamp of Maximum {TIMESTAMP}");
    1150             : 
    1151             :         // Other KG SubTable
    1152         796 :         s->pdstEMotherKGvalues = newPreDefSubTable(state, s->pdrEnergyMeters, "Annual and Peak Values - Other by Weight/Mass");
    1153        1592 :         addFootNoteSubTable(
    1154         796 :             state, s->pdstEMotherKGvalues, "Values shown are for all completed run periods - including any simulations run during sizing periods");
    1155         796 :         s->pdchEMotherKGannual = newPreDefColumn(state, s->pdstEMotherKGvalues, "Annual Value [kg]");
    1156         796 :         s->pdchEMotherKGminvalue = newPreDefColumn(state, s->pdstEMotherKGvalues, "Minimum Value [kg/s]");
    1157         796 :         s->pdchEMotherKGminvaluetime = newPreDefColumn(state, s->pdstEMotherKGvalues, "Timestamp of Minimum {TIMESTAMP}");
    1158         796 :         s->pdchEMotherKGmaxvalue = newPreDefColumn(state, s->pdstEMotherKGvalues, "Maximum Value [kg/s]");
    1159         796 :         s->pdchEMotherKGmaxvaluetime = newPreDefColumn(state, s->pdstEMotherKGvalues, "Timestamp of Maximum {TIMESTAMP}");
    1160             : 
    1161             :         // Other M3 SubTable
    1162         796 :         s->pdstEMotherM3values = newPreDefSubTable(state, s->pdrEnergyMeters, "Annual and Peak Values - Other Volumetric");
    1163        1592 :         addFootNoteSubTable(
    1164         796 :             state, s->pdstEMotherM3values, "Values shown are for all completed run periods - including any simulations run during sizing periods");
    1165         796 :         s->pdchEMotherM3annual = newPreDefColumn(state, s->pdstEMotherM3values, "Annual Value [m3]");
    1166         796 :         s->pdchEMotherM3minvalue = newPreDefColumn(state, s->pdstEMotherM3values, "Minimum Value [m3/s]");
    1167         796 :         s->pdchEMotherM3minvaluetime = newPreDefColumn(state, s->pdstEMotherM3values, "Timestamp of Minimum {TIMESTAMP}");
    1168         796 :         s->pdchEMotherM3maxvalue = newPreDefColumn(state, s->pdstEMotherM3values, "Maximum Value [m3/s]");
    1169         796 :         s->pdchEMotherM3maxvaluetime = newPreDefColumn(state, s->pdstEMotherM3values, "Timestamp of Maximum {TIMESTAMP}");
    1170             : 
    1171             :         // Other M3 SubTable
    1172         796 :         s->pdstEMotherLvalues = newPreDefSubTable(state, s->pdrEnergyMeters, "Annual and Peak Values - Other Liquid/Gas");
    1173        1592 :         addFootNoteSubTable(
    1174         796 :             state, s->pdstEMotherLvalues, "Values shown are for all completed run periods - including any simulations run during sizing periods");
    1175         796 :         s->pdchEMotherLannual = newPreDefColumn(state, s->pdstEMotherLvalues, "Annual Value [L]");
    1176         796 :         s->pdchEMotherLminvalue = newPreDefColumn(state, s->pdstEMotherLvalues, "Minimum Value [L]");
    1177         796 :         s->pdchEMotherLminvaluetime = newPreDefColumn(state, s->pdstEMotherLvalues, "Timestamp of Minimum {TIMESTAMP}");
    1178         796 :         s->pdchEMotherLmaxvalue = newPreDefColumn(state, s->pdstEMotherLvalues, "Maximum Value [L]");
    1179         796 :         s->pdchEMotherLmaxvaluetime = newPreDefColumn(state, s->pdstEMotherLvalues, "Timestamp of Maximum {TIMESTAMP}");
    1180             : 
    1181             :         // Other J SubTable
    1182         796 :         s->pdstEMotherJvalues = newPreDefSubTable(state, s->pdrEnergyMeters, "Annual and Peak Values - Other");
    1183        1592 :         addFootNoteSubTable(
    1184         796 :             state, s->pdstEMotherJvalues, "Values shown are for all completed run periods - including any simulations run during sizing periods");
    1185         796 :         s->pdchEMotherJannual = newPreDefColumn(state, s->pdstEMotherJvalues, "Annual Value [GJ]");
    1186         796 :         s->pdchEMotherJminvalue = newPreDefColumn(state, s->pdstEMotherJvalues, "Minimum Value [W]");
    1187         796 :         s->pdchEMotherJminvaluetime = newPreDefColumn(state, s->pdstEMotherJvalues, "Timestamp of Minimum {TIMESTAMP}");
    1188         796 :         s->pdchEMotherJmaxvalue = newPreDefColumn(state, s->pdstEMotherJvalues, "Maximum Value [W]");
    1189         796 :         s->pdchEMotherJmaxvaluetime = newPreDefColumn(state, s->pdstEMotherJvalues, "Timestamp of Maximum {TIMESTAMP}");
    1190             : 
    1191             :         // Sensible Heat Gain Component Report
    1192         796 :         s->pdrSensibleGain = newPreDefReport(state, "SensibleHeatGainSummary", "SHGS", "Sensible Heat Gain Summary");
    1193             : 
    1194         796 :         s->pdstSHGSannual = newPreDefSubTable(state, s->pdrSensibleGain, "Annual Building Sensible Heat Gain Components");
    1195             : 
    1196         796 :         s->pdchSHGSAnZoneEqHt = newPreDefColumn(state, s->pdstSHGSannual, "HVAC Zone Eq & Other Sensible Air Heating [GJ]");
    1197         796 :         s->pdchSHGSAnZoneEqCl = newPreDefColumn(state, s->pdstSHGSannual, "HVAC Zone Eq & Other Sensible Air Cooling [GJ]");
    1198         796 :         s->pdchSHGSAnHvacATUHt = newPreDefColumn(state, s->pdstSHGSannual, "HVAC Terminal Unit Sensible Air Heating [GJ]");
    1199         796 :         s->pdchSHGSAnHvacATUCl = newPreDefColumn(state, s->pdstSHGSannual, "HVAC Terminal Unit Sensible Air Cooling [GJ]");
    1200         796 :         s->pdchSHGSAnSurfHt = newPreDefColumn(state, s->pdstSHGSannual, "HVAC Input Heated Surface Heating [GJ]");
    1201         796 :         s->pdchSHGSAnSurfCl = newPreDefColumn(state, s->pdstSHGSannual, "HVAC Input Cooled Surface Cooling [GJ]");
    1202         796 :         s->pdchSHGSAnPeoplAdd = newPreDefColumn(state, s->pdstSHGSannual, "People Sensible Heat Addition [GJ]");
    1203         796 :         s->pdchSHGSAnLiteAdd = newPreDefColumn(state, s->pdstSHGSannual, "Lights Sensible Heat Addition [GJ]");
    1204         796 :         s->pdchSHGSAnEquipAdd = newPreDefColumn(state, s->pdstSHGSannual, "Equipment Sensible Heat Addition [GJ]");
    1205         796 :         s->pdchSHGSAnWindAdd = newPreDefColumn(state, s->pdstSHGSannual, "Window Heat Addition [GJ]");
    1206         796 :         s->pdchSHGSAnIzaAdd = newPreDefColumn(state, s->pdstSHGSannual, "Interzone Air Transfer Heat Addition [GJ]");
    1207         796 :         s->pdchSHGSAnInfilAdd = newPreDefColumn(state, s->pdstSHGSannual, "Infiltration Heat Addition [GJ]");
    1208         796 :         s->pdchSHGSAnOtherAdd = newPreDefColumn(state, s->pdstSHGSannual, "Opaque Surface Conduction and Other Heat Addition [GJ]");
    1209         796 :         s->pdchSHGSAnEquipRem = newPreDefColumn(state, s->pdstSHGSannual, "Equipment Sensible Heat Removal [GJ]");
    1210         796 :         s->pdchSHGSAnWindRem = newPreDefColumn(state, s->pdstSHGSannual, "Window Heat Removal [GJ]");
    1211         796 :         s->pdchSHGSAnIzaRem = newPreDefColumn(state, s->pdstSHGSannual, "Interzone Air Transfer Heat Removal [GJ]");
    1212         796 :         s->pdchSHGSAnInfilRem = newPreDefColumn(state, s->pdstSHGSannual, "Infiltration Heat Removal [GJ]");
    1213         796 :         s->pdchSHGSAnOtherRem = newPreDefColumn(state, s->pdstSHGSannual, "Opaque Surface Conduction and Other Heat Removal [GJ]");
    1214             : 
    1215         796 :         s->pdstSHGSpkCl = newPreDefSubTable(state, s->pdrSensibleGain, "Peak Cooling Sensible Heat Gain Components");
    1216             : 
    1217         796 :         s->pdchSHGSClTimePeak = newPreDefColumn(state, s->pdstSHGSpkCl, "Time of Peak {TIMESTAMP}");
    1218         796 :         s->pdchSHGSClHvacHt = newPreDefColumn(state, s->pdstSHGSpkCl, "HVAC Zone Eq & Other Sensible Air Heating [W]");
    1219         796 :         s->pdchSHGSClHvacCl = newPreDefColumn(state, s->pdstSHGSpkCl, "HVAC Zone Eq & Other Sensible Air Cooling [W]");
    1220         796 :         s->pdchSHGSClHvacATUHt = newPreDefColumn(state, s->pdstSHGSpkCl, "HVAC Terminal Unit Sensible Air Heating [W]");
    1221         796 :         s->pdchSHGSClHvacATUCl = newPreDefColumn(state, s->pdstSHGSpkCl, "HVAC Terminal Unit Sensible Air Cooling [W]");
    1222         796 :         s->pdchSHGSClSurfHt = newPreDefColumn(state, s->pdstSHGSpkCl, "HVAC Input Heated Surface Heating [W]");
    1223         796 :         s->pdchSHGSClSurfCl = newPreDefColumn(state, s->pdstSHGSpkCl, "HVAC Input Cooled Surface Cooling [W]");
    1224         796 :         s->pdchSHGSClPeoplAdd = newPreDefColumn(state, s->pdstSHGSpkCl, "People Sensible Heat Addition [W]");
    1225         796 :         s->pdchSHGSClLiteAdd = newPreDefColumn(state, s->pdstSHGSpkCl, "Lights Sensible Heat Addition [W]");
    1226         796 :         s->pdchSHGSClEquipAdd = newPreDefColumn(state, s->pdstSHGSpkCl, "Equipment Sensible Heat Addition [W]");
    1227         796 :         s->pdchSHGSClWindAdd = newPreDefColumn(state, s->pdstSHGSpkCl, "Window Heat Addition [W]");
    1228         796 :         s->pdchSHGSClIzaAdd = newPreDefColumn(state, s->pdstSHGSpkCl, "Interzone Air Transfer Heat Addition [W]");
    1229         796 :         s->pdchSHGSClInfilAdd = newPreDefColumn(state, s->pdstSHGSpkCl, "Infiltration Heat Addition [W]");
    1230         796 :         s->pdchSHGSClOtherAdd = newPreDefColumn(state, s->pdstSHGSpkCl, "Opaque Surface Conduction and Other Heat Addition [W]");
    1231         796 :         s->pdchSHGSClEquipRem = newPreDefColumn(state, s->pdstSHGSpkCl, "Equipment Sensible Heat Removal [W]");
    1232         796 :         s->pdchSHGSClWindRem = newPreDefColumn(state, s->pdstSHGSpkCl, "Window Heat Removal [W]");
    1233         796 :         s->pdchSHGSClIzaRem = newPreDefColumn(state, s->pdstSHGSpkCl, "Interzone Air Transfer Heat Removal [W]");
    1234         796 :         s->pdchSHGSClInfilRem = newPreDefColumn(state, s->pdstSHGSpkCl, "Infiltration Heat Removal [W]");
    1235         796 :         s->pdchSHGSClOtherRem = newPreDefColumn(state, s->pdstSHGSpkCl, "Opaque Surface Conduction and Other Heat Removal [W]");
    1236             : 
    1237         796 :         s->pdstSHGSpkHt = newPreDefSubTable(state, s->pdrSensibleGain, "Peak Heating Sensible Heat Gain Components");
    1238             : 
    1239         796 :         s->pdchSHGSHtTimePeak = newPreDefColumn(state, s->pdstSHGSpkHt, "Time of Peak {TIMESTAMP}");
    1240         796 :         s->pdchSHGSHtHvacHt = newPreDefColumn(state, s->pdstSHGSpkHt, "HVAC Zone Eq & Other Sensible Air Heating [W]");
    1241         796 :         s->pdchSHGSHtHvacCl = newPreDefColumn(state, s->pdstSHGSpkHt, "HVAC Zone Eq & Other Sensible Air Cooling [W]");
    1242         796 :         s->pdchSHGSHtHvacATUHt = newPreDefColumn(state, s->pdstSHGSpkHt, "HVAC Terminal Unit Sensible Air Heating [W]");
    1243         796 :         s->pdchSHGSHtHvacATUCl = newPreDefColumn(state, s->pdstSHGSpkHt, "HVAC Terminal Unit Sensible Air Cooling [W]");
    1244         796 :         s->pdchSHGSHtSurfHt = newPreDefColumn(state, s->pdstSHGSpkHt, "HVAC Input Heated Surface Heating [W]");
    1245         796 :         s->pdchSHGSHtSurfCl = newPreDefColumn(state, s->pdstSHGSpkHt, "HVAC Input Cooled Surface Cooling [W]");
    1246         796 :         s->pdchSHGSHtPeoplAdd = newPreDefColumn(state, s->pdstSHGSpkHt, "People Sensible Heat Addition [W]");
    1247         796 :         s->pdchSHGSHtLiteAdd = newPreDefColumn(state, s->pdstSHGSpkHt, "Lights Sensible Heat Addition [W]");
    1248         796 :         s->pdchSHGSHtEquipAdd = newPreDefColumn(state, s->pdstSHGSpkHt, "Equipment Sensible Heat Addition [W]");
    1249         796 :         s->pdchSHGSHtWindAdd = newPreDefColumn(state, s->pdstSHGSpkHt, "Window Heat Addition [W]");
    1250         796 :         s->pdchSHGSHtIzaAdd = newPreDefColumn(state, s->pdstSHGSpkHt, "Interzone Air Transfer Heat Addition [W]");
    1251         796 :         s->pdchSHGSHtInfilAdd = newPreDefColumn(state, s->pdstSHGSpkHt, "Infiltration Heat Addition [W]");
    1252         796 :         s->pdchSHGSHtOtherAdd = newPreDefColumn(state, s->pdstSHGSpkHt, "Opaque Surface Conduction and Other Heat Addition [W]");
    1253         796 :         s->pdchSHGSHtEquipRem = newPreDefColumn(state, s->pdstSHGSpkHt, "Equipment Sensible Heat Removal [W]");
    1254         796 :         s->pdchSHGSHtWindRem = newPreDefColumn(state, s->pdstSHGSpkHt, "Window Heat Removal [W]");
    1255         796 :         s->pdchSHGSHtIzaRem = newPreDefColumn(state, s->pdstSHGSpkHt, "Interzone Air Transfer Heat Removal [W]");
    1256         796 :         s->pdchSHGSHtInfilRem = newPreDefColumn(state, s->pdstSHGSpkHt, "Infiltration Heat Removal [W]");
    1257         796 :         s->pdchSHGSHtOtherRem = newPreDefColumn(state, s->pdstSHGSpkHt, "Opaque Surface Conduction and Other Heat Removal [W]");
    1258             : 
    1259             :         // Standard62Report
    1260         796 :         if (state.dataGlobal->DoZoneSizing || state.dataGlobal->DoSystemSizing) {
    1261         425 :             s->pdrStd62 = newPreDefReport(state, "Standard62.1Summary", "Std62", "Standard 62.1 Summary");
    1262             : 
    1263         425 :             s->pdstS62sysVentReqCool = newPreDefSubTable(state, s->pdrStd62, "System Ventilation Requirements for Cooling");
    1264             : 
    1265         425 :             s->pdchS62svrClSumVpz = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Sum of Zone Primary Air Flow - Vpz-sum [m3/s]");
    1266         425 :             s->pdchS62svrClPs = newPreDefColumn(state, s->pdstS62sysVentReqCool, "System Population - Ps");
    1267         425 :             s->pdchS62svrClSumPz = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Sum of Zone Population - Pz-sum");
    1268         425 :             s->pdchS62svrClD = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Occupant Diversity - D");
    1269         425 :             s->pdchS62svrClDorg = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Origin of D");
    1270         425 :             s->pdchS62svrClVou = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Uncorrected Outdoor Air Intake Airflow - Vou [m3/s]");
    1271         425 :             s->pdchS62svrClVps = newPreDefColumn(state, s->pdstS62sysVentReqCool, "System Primary Airflow - Vps [m3/s]");
    1272         425 :             s->pdchS62svrClXs = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Average Outdoor Air Fraction - Xs");
    1273         425 :             s->pdchS62svrClEv = newPreDefColumn(state, s->pdstS62sysVentReqCool, "System Ventilation Efficiency - Ev");
    1274         425 :             s->pdchS62svrClEvMthd = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Calculation Method for Ev");
    1275         425 :             s->pdchS62svrClVot = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Outdoor Air Intake Flow - Vot [m3/s]");
    1276         425 :             s->pdchS62svrClPercOA = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Percent Outdoor Air - %OA");
    1277         425 :             s->pdchS62svrClEnvironmentOfPs = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Environment Name of Peak System Population - Ps");
    1278         425 :             s->pdchS62svrClTimeOfPs = newPreDefColumn(state, s->pdstS62sysVentReqCool, "Date and Time of Last Peak System Population - Ps");
    1279             : 
    1280         425 :             s->pdstS62sysVentReqHeat = newPreDefSubTable(state, s->pdrStd62, "System Ventilation Requirements for Heating");
    1281             : 
    1282         425 :             s->pdchS62svrHtSumVpz = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Sum of Zone Primary Air Flow - Vpz-sum [m3/s]");
    1283         425 :             s->pdchS62svrHtPs = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "System Population - Ps");
    1284         425 :             s->pdchS62svrHtSumPz = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Sum of Zone Population - Pz-sum");
    1285         425 :             s->pdchS62svrHtD = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Occupant Diversity - D");
    1286         425 :             s->pdchS62svrHtDorg = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Origin of D");
    1287         425 :             s->pdchS62svrHtVou = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Uncorrected Outdoor Air Intake Airflow - Vou [m3/s]");
    1288         425 :             s->pdchS62svrHtVps = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "System Primary Airflow - Vps [m3/s]");
    1289         425 :             s->pdchS62svrHtXs = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Average Outdoor Air Fraction - Xs");
    1290         425 :             s->pdchS62svrHtEv = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "System Ventilation Efficiency - Ev");
    1291         425 :             s->pdchS62svrHtEvMthd = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Calculation Method for Ev");
    1292         425 :             s->pdchS62svrHtVot = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Outdoor Air Intake Flow Vot [m3/s]");
    1293         425 :             s->pdchS62svrHtPercOA = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Percent Outdoor Air - %OA");
    1294         425 :             s->pdchS62svrHtEnvironmentOfPs = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Environment Name of Peak System Population - Ps");
    1295         425 :             s->pdchS62svrHtTimeOfPs = newPreDefColumn(state, s->pdstS62sysVentReqHeat, "Date and Time of Last Peak System Population - Ps");
    1296             : 
    1297         425 :             s->pdstS62znVentPar = newPreDefSubTable(state, s->pdrStd62, "Zone Ventilation Parameters");
    1298             : 
    1299         425 :             s->pdchS62zvpAlN = newPreDefColumn(state, s->pdstS62znVentPar, "AirLoop Name");
    1300         425 :             s->pdchS62zvpRp = newPreDefColumn(state, s->pdstS62znVentPar, "People Outdoor Air Rate - Rp [m3/s-person]");
    1301         425 :             s->pdchS62zvpPz = newPreDefColumn(state, s->pdstS62znVentPar, "Zone Population - Pz");
    1302         425 :             s->pdchS62zvpRa = newPreDefColumn(state, s->pdstS62znVentPar, "Area Outdoor Air Rate - Ra [m3/s-m2]");
    1303         425 :             s->pdchS62zvpAz = newPreDefColumn(state, s->pdstS62znVentPar, "Zone Floor Area - Az [m2]");
    1304         425 :             s->pdchS62zvpVbz = newPreDefColumn(state, s->pdstS62znVentPar, "Breathing Zone Outdoor Airflow - Vbz [m3/s]");
    1305         425 :             s->pdchS62zvpClEz = newPreDefColumn(state, s->pdstS62znVentPar, "Cooling Zone Air Distribution Effectiveness - Ez-clg");
    1306         425 :             s->pdchS62zvpClVoz = newPreDefColumn(state, s->pdstS62znVentPar, "Cooling Zone Outdoor Airflow - Voz-clg [m3/s]");
    1307         425 :             s->pdchS62zvpHtEz = newPreDefColumn(state, s->pdstS62znVentPar, "Heating Zone Air Distribution Effectiveness - Ez-htg");
    1308         425 :             s->pdchS62zvpHtVoz = newPreDefColumn(state, s->pdstS62znVentPar, "Heating Zone Outdoor Airflow - Voz-htg [m3/s]");
    1309             : 
    1310         425 :             s->pdstS62sysVentPar = newPreDefSubTable(state, s->pdrStd62, "System Ventilation Parameters");
    1311             : 
    1312         425 :             s->pdchS62svpRp = newPreDefColumn(state, s->pdstS62sysVentPar, "People Outdoor Air Rate - Rp [m3/s-person]");
    1313         425 :             s->pdchS62svpPz = newPreDefColumn(state, s->pdstS62sysVentPar, "Sum of Zone Population - Pz-sum");
    1314         425 :             s->pdchS62svpRa = newPreDefColumn(state, s->pdstS62sysVentPar, "Area Outdoor Air Rate - Ra [m3/s-m2]");
    1315         425 :             s->pdchS62svpAz = newPreDefColumn(state, s->pdstS62sysVentPar, "Sum of Zone Floor Area - Az-sum [m2]");
    1316         425 :             s->pdchS62svpVbz = newPreDefColumn(state, s->pdstS62sysVentPar, "Breathing Zone Outdoor Airflow - Vbz [m3/s]");
    1317         425 :             s->pdchS62svpClVoz = newPreDefColumn(state, s->pdstS62sysVentPar, "Cooling Zone Outdoor Airflow - Voz-clg [m3/s]");
    1318         425 :             s->pdchS62svpHtVoz = newPreDefColumn(state, s->pdstS62sysVentPar, "Heating Zone Outdoor Airflow - Voz-htg [m3/s]");
    1319             : 
    1320         425 :             s->pdstS62znCoolDes = newPreDefSubTable(state, s->pdrStd62, "Zone Ventilation Calculations for Cooling Design");
    1321             : 
    1322         425 :             s->pdchS62zcdAlN = newPreDefColumn(state, s->pdstS62znCoolDes, "AirLoop Name");
    1323         425 :             s->pdchS62zcdBox = newPreDefColumn(state, s->pdstS62znCoolDes, "Box Type");
    1324         425 :             s->pdchS62zcdVpz = newPreDefColumn(state, s->pdstS62znCoolDes, "Zone Primary Airflow - Vpz [m3/s]");
    1325             :             // s->pdchS62zcdVps =         newPreDefColumn(state, s->pdstS62znCoolDes,'System Primary Airflow - Vps [m3/s]')
    1326             :             // s->pdchS62zcdVsec =        newPreDefColumn(state, s->pdstS62znCoolDes,'Secondary Fan Airflow - Vsec [m3/s]')
    1327         425 :             s->pdchS62zcdVdz = newPreDefColumn(state, s->pdstS62znCoolDes, "Zone Discharge Airflow - Vdz [m3/s]");
    1328         425 :             s->pdchS62zcdVpzmin = newPreDefColumn(state, s->pdstS62znCoolDes, "Minimum Zone Primary Airflow - Vpz-min [m3/s]");
    1329         850 :             s->pdchS62zcdVpzminSPSize =
    1330         425 :                 newPreDefColumn(state, s->pdstS62znCoolDes, "Is Vpz-min calculated using the Standard 62.1 Simplified Procedure?");
    1331         425 :             s->pdchS62zcdVozclg = newPreDefColumn(state, s->pdstS62znCoolDes, "Zone Outdoor Airflow Cooling - Voz-clg [m3/s]");
    1332         425 :             s->pdchS62zcdZpz = newPreDefColumn(state, s->pdstS62znCoolDes, "Primary Outdoor Air Fraction - Zpz");
    1333         425 :             s->pdchS62zcdEp = newPreDefColumn(state, s->pdstS62znCoolDes, "Primary Air Fraction - Ep");
    1334         425 :             s->pdchS62zcdEr = newPreDefColumn(state, s->pdstS62znCoolDes, "Secondary Recirculation Fraction- Er");
    1335         425 :             s->pdchS62zcdFa = newPreDefColumn(state, s->pdstS62znCoolDes, "Supply Air Fraction- Fa");
    1336         425 :             s->pdchS62zcdFb = newPreDefColumn(state, s->pdstS62znCoolDes, "Mixed Air Fraction - Fb");
    1337         425 :             s->pdchS62zcdFc = newPreDefColumn(state, s->pdstS62znCoolDes, "Outdoor Air Fraction - Fc");
    1338         425 :             s->pdchS62zcdEvz = newPreDefColumn(state, s->pdstS62znCoolDes, "Zone Ventilation Efficiency - Evz");
    1339             : 
    1340         425 :             s->pdstS62sysCoolDes = newPreDefSubTable(state, s->pdrStd62, "System Ventilation Calculations for Cooling Design");
    1341             : 
    1342         425 :             s->pdchS62scdVpz = newPreDefColumn(state, s->pdstS62sysCoolDes, "Sum of Zone Primary Airflow - Vpz-sum [m3/s]");
    1343         425 :             s->pdchS62scdVps = newPreDefColumn(state, s->pdstS62sysCoolDes, "System Primary Airflow - Vps [m3/s]");
    1344             :             // s->pdchS62scdVsec =        newPreDefColumn(state, s->pdstS62sysCoolDes,'Secondary Fan Airflow - Vsec [m3/s]')
    1345         425 :             s->pdchS62scdVdz = newPreDefColumn(state, s->pdstS62sysCoolDes, "Sum of Zone Discharge Airflow - Vdz-sum [m3/s]");
    1346         425 :             s->pdchS62scdVpzmin = newPreDefColumn(state, s->pdstS62sysCoolDes, "Sum of Min Zone Primary Airflow - Vpz-min [m3/s]");
    1347         425 :             s->pdchS62scdVozclg = newPreDefColumn(state, s->pdstS62sysCoolDes, "Zone Outdoor Airflow Cooling - Voz-clg [m3/s]");
    1348         425 :             s->pdchS62scdEvz = newPreDefColumn(state, s->pdstS62sysCoolDes, "Zone Ventilation Efficiency - Evz-min");
    1349             : 
    1350         425 :             s->pdstS62znHeatDes = newPreDefSubTable(state, s->pdrStd62, "Zone Ventilation Calculations for Heating Design");
    1351             : 
    1352         425 :             s->pdchS62zhdAlN = newPreDefColumn(state, s->pdstS62znHeatDes, "AirLoop Name");
    1353         425 :             s->pdchS62zhdBox = newPreDefColumn(state, s->pdstS62znHeatDes, "Box Type");
    1354         425 :             s->pdchS62zhdVpz = newPreDefColumn(state, s->pdstS62znHeatDes, "Zone Primary Airflow - Vpz [m3/s]");
    1355             :             // s->pdchS62zhdVps =         newPreDefColumn(state, s->pdstS62znHeatDes,'System Primary Airflow - Vps [m3/s]')
    1356             :             // s->pdchS62zhdVsec =        newPreDefColumn(state, s->pdstS62znHeatDes,'Secondary Fan Airflow - Vsec [m3/s]')
    1357         425 :             s->pdchS62zhdVdz = newPreDefColumn(state, s->pdstS62znHeatDes, "Zone Discharge Airflow - Vdz [m3/s]");
    1358         425 :             s->pdchS62zhdVpzmin = newPreDefColumn(state, s->pdstS62znHeatDes, "Minimum Zone Primary Airflow - Vpz-min [m3/s]");
    1359         850 :             s->pdchS62zhdVpzminSPSize =
    1360         425 :                 newPreDefColumn(state, s->pdstS62znHeatDes, "Is Vpz-min calculated using the Standard 62.1 Simplified Procedure?");
    1361         425 :             s->pdchS62zhdVozhtg = newPreDefColumn(state, s->pdstS62znHeatDes, "Zone Outdoor Airflow Heating - Voz-htg [m3/s]");
    1362         425 :             s->pdchS62zhdZpz = newPreDefColumn(state, s->pdstS62znHeatDes, "Primary Outdoor Air Fraction - Zpz");
    1363         425 :             s->pdchS62zhdEp = newPreDefColumn(state, s->pdstS62znHeatDes, "Primary Air Fraction - Ep");
    1364         425 :             s->pdchS62zhdEr = newPreDefColumn(state, s->pdstS62znHeatDes, "Secondary Recirculation Fraction- Er");
    1365         425 :             s->pdchS62zhdFa = newPreDefColumn(state, s->pdstS62znHeatDes, "Supply Air Fraction- Fa");
    1366         425 :             s->pdchS62zhdFb = newPreDefColumn(state, s->pdstS62znHeatDes, "Mixed Air Fraction - Fb");
    1367         425 :             s->pdchS62zhdFc = newPreDefColumn(state, s->pdstS62znHeatDes, "Outdoor Air Fraction - Fc");
    1368         425 :             s->pdchS62zhdEvz = newPreDefColumn(state, s->pdstS62znHeatDes, "Zone Ventilation Efficiency - Evz");
    1369             : 
    1370         425 :             s->pdstS62sysHeatDes = newPreDefSubTable(state, s->pdrStd62, "System Ventilation Calculations for Heating Design");
    1371             : 
    1372         425 :             s->pdchS62shdVpz = newPreDefColumn(state, s->pdstS62sysHeatDes, "Sum of Zone Primary Airflow - Vpz-sum [m3/s]");
    1373         425 :             s->pdchS62shdVps = newPreDefColumn(state, s->pdstS62sysHeatDes, "System Primary Airflow - Vps [m3/s]");
    1374             :             // s->pdchS62shdVsec =        newPreDefColumn(state, s->pdstS62sysHeatDes,'Secondary Fan Airflow - Vsec [m3/s]')
    1375         425 :             s->pdchS62shdVdz = newPreDefColumn(state, s->pdstS62sysHeatDes, "Sum of Zone Discharge Airflow - Vdz-sum [m3/s]");
    1376         425 :             s->pdchS62shdVpzmin = newPreDefColumn(state, s->pdstS62sysHeatDes, "Sum of Min Zone Primary Airflow - Vpz-min [m3/s]");
    1377         425 :             s->pdchS62shdVozhtg = newPreDefColumn(state, s->pdstS62sysHeatDes, "Zone Outdoor Airflow Heating - Voz-htg [m3/s]");
    1378         425 :             s->pdchS62shdEvz = newPreDefColumn(state, s->pdstS62sysHeatDes, "Zone Ventilation Efficiency - Evz-min");
    1379             :         }
    1380             : 
    1381         796 :         s->pdrLeed = newPreDefReport(state, "LEEDsummary", "LEED", "LEED Summary");
    1382             : 
    1383         796 :         s->pdstLeedGenInfo = newPreDefSubTable(state, s->pdrLeed, "Sec1.1A-General Information");
    1384             :         // single column with rows of:
    1385             :         //    Principal Heating Source
    1386             :         //    Weather File
    1387             :         //    Climate Zone
    1388             :         //    Heating Degree Days
    1389             :         //    Cooling Degree Days
    1390             :         //    HDD and CDD data source
    1391             :         //    Total gross floor area
    1392         796 :         s->pdchLeedGenData = newPreDefColumn(state, s->pdstLeedGenInfo, "Data");
    1393             : 
    1394         796 :         s->pdstLeedSpaceUsageType = newPreDefSubTable(state, s->pdrLeed, "EAp2-1. Space Usage Type");
    1395         796 :         s->pdchLeedSutSpArea = newPreDefColumn(state, s->pdstLeedSpaceUsageType, "Space Area [m2]");
    1396         796 :         s->pdchLeedSutOcArea = newPreDefColumn(state, s->pdstLeedSpaceUsageType, "Regularly Occupied Area [m2]");
    1397         796 :         s->pdchLeedSutUnArea = newPreDefColumn(state, s->pdstLeedSpaceUsageType, "Unconditioned Area [m2]");
    1398         796 :         s->pdchLeedSutHrsWeek = newPreDefColumn(state, s->pdstLeedSpaceUsageType, "Typical Hours/Week in Operation [hr/wk]");
    1399             : 
    1400         796 :         s->pdstLeedAdvsMsg = newPreDefSubTable(state, s->pdrLeed, "EAp2-2. Advisory Messages");
    1401             :         // single column with rows of:
    1402             :         //    Number of hours heating loads not met
    1403             :         //    Number of hours cooling loads not met
    1404             :         //    Total
    1405             :         //    Difference
    1406             :         //    Number of warning messages
    1407             :         //    Number of error messages
    1408             :         //    Number of defaults overridden
    1409         796 :         s->pdchLeedAmData = newPreDefColumn(state, s->pdstLeedAdvsMsg, "Data");
    1410             : 
    1411         796 :         s->pdstLeedEneTypSum = newPreDefSubTable(state, s->pdrLeed, "EAp2-3. Energy Type Summary");
    1412             :         // multiple columns with rows of
    1413             :         //    Electricity
    1414             :         //    Natural Gas
    1415             :         //    <additional fuels>
    1416         796 :         s->pdchLeedEtsRtNm = newPreDefColumn(state, s->pdstLeedEneTypSum, "Utility Rate");
    1417         796 :         s->pdchLeedEtsVirt = newPreDefColumn(state, s->pdstLeedEneTypSum, "Virtual Rate [$/unit energy]");
    1418         796 :         s->pdchLeedEtsEneUnt = newPreDefColumn(state, s->pdstLeedEneTypSum, "Units of Energy");
    1419         796 :         s->pdchLeedEtsDemUnt = newPreDefColumn(state, s->pdstLeedEneTypSum, "Units of Demand");
    1420             : 
    1421         796 :         s->pdstLeedPerf = newPreDefSubTable(state, s->pdrLeed, "EAp2-4/5. Performance Rating Method Compliance");
    1422             :         // Multiple colums with rows of:
    1423             :         //     Interior Lighting
    1424             :         //     Exterior Lighting
    1425             :         //     Space Heating
    1426             :         //     Space Cooling
    1427             :         //     Pumps
    1428             :         //     Heat Rejection
    1429             :         //     Fans-Interior
    1430             :         //     Fans-Parking Garage
    1431             :         //     Service Water Heating
    1432             :         //     Receptacle Equipment
    1433             :         //     Interior Lighting (process)
    1434             :         //     Refrigeration Equipment
    1435             :         //     Cooking
    1436             :         //     Industrial Process
    1437             :         //     Elevators and Escalators
    1438             :         //     Total
    1439         796 :         s->pdchLeedPerfElEneUse = newPreDefColumn(state, s->pdstLeedPerf, "Electricity Energy Use [GJ]");
    1440         796 :         s->pdchLeedPerfElDem = newPreDefColumn(state, s->pdstLeedPerf, "Electricity Demand [W]");
    1441         796 :         s->pdchLeedPerfGasEneUse = newPreDefColumn(state, s->pdstLeedPerf, "Natural Gas Energy Use [GJ]");
    1442         796 :         s->pdchLeedPerfGasDem = newPreDefColumn(state, s->pdstLeedPerf, "Natural Gas Demand [W]");
    1443         796 :         s->pdchLeedPerfGasolineEneUse = newPreDefColumn(state, s->pdstLeedPerf, "Gasoline Use [GJ]");
    1444         796 :         s->pdchLeedPerfGasolineDem = newPreDefColumn(state, s->pdstLeedPerf, "Gasoline Demand [W]");
    1445         796 :         s->pdchLeedPerfDieselEneUse = newPreDefColumn(state, s->pdstLeedPerf, "Diesel Use [GJ]");
    1446         796 :         s->pdchLeedPerfDieselDem = newPreDefColumn(state, s->pdstLeedPerf, "Diesel Demand [W]");
    1447         796 :         s->pdchLeedPerfCoalEneUse = newPreDefColumn(state, s->pdstLeedPerf, "Coal Use [GJ]");
    1448         796 :         s->pdchLeedPerfCoalDem = newPreDefColumn(state, s->pdstLeedPerf, "Coal Demand [W]");
    1449         796 :         s->pdchLeedPerfFuelOil1EneUse = newPreDefColumn(state, s->pdstLeedPerf, "Fuel Oil No 1 Use [GJ]");
    1450         796 :         s->pdchLeedPerfFuelOil1Dem = newPreDefColumn(state, s->pdstLeedPerf, "Fuel Oil No 1 Demand [W]");
    1451         796 :         s->pdchLeedPerfFuelOil2EneUse = newPreDefColumn(state, s->pdstLeedPerf, "Fuel Oil No 2 Use [GJ]");
    1452         796 :         s->pdchLeedPerfFuelOil2Dem = newPreDefColumn(state, s->pdstLeedPerf, "Fuel Oil No 2 Demand [W]");
    1453         796 :         s->pdchLeedPerfPropaneEneUse = newPreDefColumn(state, s->pdstLeedPerf, "Propane Use [GJ]");
    1454         796 :         s->pdchLeedPerfPropaneDem = newPreDefColumn(state, s->pdstLeedPerf, "Propane Demand [W]");
    1455         796 :         s->pdchLeedPerfOtherFuel1EneUse = newPreDefColumn(state, s->pdstLeedPerf, "Other Fuel 1 Use [GJ]");
    1456         796 :         s->pdchLeedPerfOtherFuel1Dem = newPreDefColumn(state, s->pdstLeedPerf, "Other Fuel 1 Demand [W]");
    1457         796 :         s->pdchLeedPerfOtherFuel2EneUse = newPreDefColumn(state, s->pdstLeedPerf, "Other Fuel 2 Use [GJ]");
    1458         796 :         s->pdchLeedPerfOtherFuel2Dem = newPreDefColumn(state, s->pdstLeedPerf, "Other Fuel 2 Demand [W]");
    1459         796 :         s->pdchLeedPerfDisClEneUse = newPreDefColumn(state, s->pdstLeedPerf, "District Cooling Use [GJ]");
    1460         796 :         s->pdchLeedPerfDisClDem = newPreDefColumn(state, s->pdstLeedPerf, "District Cooling Demand [W]");
    1461         796 :         s->pdchLeedPerfDisHtWtrEneUse = newPreDefColumn(state, s->pdstLeedPerf, "District Heating Water Use [GJ]");
    1462         796 :         s->pdchLeedPerfDisHtWtrDem = newPreDefColumn(state, s->pdstLeedPerf, "District Heating Water Demand [W]");
    1463         796 :         s->pdchLeedPerfDisHtStEneUse = newPreDefColumn(state, s->pdstLeedPerf, "District Heating Steam Use [GJ]");
    1464         796 :         s->pdchLeedPerfDisHtStDem = newPreDefColumn(state, s->pdstLeedPerf, "District Heating Steam Demand [W]");
    1465             : 
    1466         796 :         s->pdstLeedEneUseSum = newPreDefSubTable(state, s->pdrLeed, "EAp2-6. Energy Use Summary");
    1467             :         // Multiple columns with rows of:
    1468             :         //    Electricity
    1469             :         //    Natural Gas
    1470             :         //    <additional fuels>
    1471             :         //    Total
    1472         796 :         s->pdchLeedEusProc = newPreDefColumn(state, s->pdstLeedEneUseSum, "Process Subtotal [GJ]");
    1473         796 :         s->pdchLeedEusTotal = newPreDefColumn(state, s->pdstLeedEneUseSum, "Total Energy Use [GJ]");
    1474             : 
    1475         796 :         s->pdstLeedEneCostSum = newPreDefSubTable(state, s->pdrLeed, "EAp2-7. Energy Cost Summary");
    1476             :         // Multiple columns with rows of:
    1477             :         //    Electricity
    1478             :         //    Natural Gas
    1479             :         //    <additional fuels>
    1480             :         //    Total
    1481         796 :         s->pdchLeedEcsProc = newPreDefColumn(state, s->pdstLeedEneCostSum, "Process Subtotal [$]");
    1482         796 :         s->pdchLeedEcsTotal = newPreDefColumn(state, s->pdstLeedEneCostSum, "Total Energy Cost [$]");
    1483             : 
    1484         796 :         s->pdstLeedRenewSum = newPreDefSubTable(state, s->pdrLeed, "L-1. Renewable Energy Source Summary");
    1485             :         // Multiple columns with rows of each renewable source
    1486         796 :         s->pdchLeedRenRatCap = newPreDefColumn(state, s->pdstLeedRenewSum, "Rated Capacity [kW]");
    1487         796 :         s->pdchLeedRenAnGen = newPreDefColumn(state, s->pdstLeedRenewSum, "Annual Energy Generated [GJ]");
    1488             : 
    1489         796 :         s->pdstLeedEneUseIntEl = newPreDefSubTable(state, s->pdrLeed, "EAp2-17a. Energy Use Intensity - Electricity");
    1490             :         // Single column with rows of:
    1491             :         //    Interior lighting
    1492             :         //    Space heating
    1493             :         //    Space cooling
    1494             :         //    Fans-interior
    1495             :         //    Service water heating
    1496             :         //    Receptacle equipment
    1497             :         //    Miscellaneous
    1498             :         //    Subtotal
    1499         796 :         s->pdchLeedEuiElec = newPreDefColumn(state, s->pdstLeedEneUseIntEl, "Electricty [MJ/m2]");
    1500             : 
    1501         796 :         s->pdstLeedEneUseIntNatG = newPreDefSubTable(state, s->pdrLeed, "EAp2-17b. Energy Use Intensity - Natural Gas");
    1502             :         // Single column with rows of:
    1503             :         //    Space heating
    1504             :         //    Service water heating
    1505             :         //    Miscellaneous
    1506             :         //    Subtotal
    1507         796 :         s->pdchLeedEuiNatG = newPreDefColumn(state, s->pdstLeedEneUseIntNatG, "Natural Gas [MJ/m2]");
    1508             : 
    1509         796 :         s->pdstLeedEneUseIntOthr = newPreDefSubTable(state, s->pdrLeed, "EAp2-17c. Energy Use Intensity - Additional");
    1510             :         // Single column with rows of:
    1511             :         //    Miscellaneous
    1512             :         //    Subtotal
    1513         796 :         s->pdchLeedEuiOthr = newPreDefColumn(state, s->pdstLeedEneUseIntOthr, "Additional [MJ/m2]");
    1514             : 
    1515         796 :         s->pdstLeedEneUsePerc = newPreDefSubTable(state, s->pdrLeed, "EAp2-18. End Use Percentage");
    1516             :         // single column with rows of:
    1517             :         //    Interior Lighting
    1518             :         //    Space heating
    1519             :         //    Space cooling
    1520             :         //    Fans-Interior
    1521             :         //    Service Water Heating
    1522             :         //    Receptacle Equipment
    1523             :         //    Miscellaneous
    1524         796 :         s->pdchLeedEupPerc = newPreDefColumn(state, s->pdstLeedEneUsePerc, "Percent [%]");
    1525             : 
    1526         796 :         s->pdstLeedEqFlLdHrs = newPreDefSubTable(state, s->pdrLeed, "Schedules-Equivalent Full Load Hours (Schedule Type=Fraction)");
    1527         796 :         s->pdchLeedEflhEflh = newPreDefColumn(state, s->pdstLeedEqFlLdHrs, "Equivalent Full Load Hours of Operation Per Year [hr]");
    1528         796 :         s->pdchLeedEflhNonZerHrs = newPreDefColumn(state, s->pdstLeedEqFlLdHrs, "Hours > 1% [hr]");
    1529             : 
    1530         796 :         s->pdstLeedSchedSetPts = newPreDefSubTable(state, s->pdrLeed, "Schedules-SetPoints (Schedule Type=Temperature)");
    1531         796 :         s->pdChLeedSchStPtFirstObjUsed = newPreDefColumn(state, s->pdstLeedSchedSetPts, "First Object Used");
    1532         796 :         s->pdChLeedSchStPtMonthUsed = newPreDefColumn(state, s->pdstLeedSchedSetPts, "Month Assumed");
    1533         796 :         s->pdchLeedSchStPt11amWednesday = newPreDefColumn(state, s->pdstLeedSchedSetPts, "11am First Wednesday [C]");
    1534         796 :         s->pdchLeedSchStPt11amWedCnt = newPreDefColumn(state, s->pdstLeedSchedSetPts, "Days with Same 11am Value");
    1535         796 :         s->pdchLeedSchStPt11pmWednesday = newPreDefColumn(state, s->pdstLeedSchedSetPts, "11pm First Wednesday [C]");
    1536         796 :         s->pdchLeedSchStPt11pmWedCnt = newPreDefColumn(state, s->pdstLeedSchedSetPts, "Days with Same 11pm Value");
    1537             : 
    1538         796 :         s->pdrCO2Resilience = newPreDefReport(state, "CO2ResilienceSummary", "CO2R", "Annual CO2 Resilience Summary");
    1539             : 
    1540         796 :         s->pdstCO2Hours = newPreDefSubTable(state, s->pdrCO2Resilience, "CO2 Level Hours");
    1541         796 :         s->pdchCO2HourSafe = newPreDefColumn(state, s->pdstCO2Hours, "Safe (<= 1000 ppm) [hr]");
    1542         796 :         s->pdchCO2HourCaution = newPreDefColumn(state, s->pdstCO2Hours, "Caution (> 1000, <= 5000 ppm) [hr]");
    1543         796 :         s->pdchCO2HourHazard = newPreDefColumn(state, s->pdstCO2Hours, "Hazard (> 5000 ppm) [hr]");
    1544             : 
    1545         796 :         s->pdstCO2OccuHours = newPreDefSubTable(state, s->pdrCO2Resilience, "CO2 Level OccupantHours");
    1546         796 :         s->pdchCO2OccuHourSafe = newPreDefColumn(state, s->pdstCO2OccuHours, "Safe (<= 1000 ppm) [hr]");
    1547         796 :         s->pdchCO2OccuHourCaution = newPreDefColumn(state, s->pdstCO2OccuHours, "Caution (> 1000, <= 5000 ppm) [hr]");
    1548         796 :         s->pdchCO2OccuHourHazard = newPreDefColumn(state, s->pdstCO2OccuHours, "Hazard (> 5000 ppm) [hr]");
    1549             : 
    1550         796 :         s->pdstCO2OccupiedHours = newPreDefSubTable(state, s->pdrCO2Resilience, "CO2 Level OccupiedHours");
    1551         796 :         s->pdchCO2OccupiedHourSafe = newPreDefColumn(state, s->pdstCO2OccupiedHours, "Safe (<= 1000 ppm) [hr]");
    1552         796 :         s->pdchCO2OccupiedHourCaution = newPreDefColumn(state, s->pdstCO2OccupiedHours, "Caution (> 1000, <= 5000 ppm) [hr]");
    1553         796 :         s->pdchCO2OccupiedHourHazard = newPreDefColumn(state, s->pdstCO2OccupiedHours, "Hazard (> 5000 ppm) [hr]");
    1554             : 
    1555         796 :         s->pdrVisualResilience = newPreDefReport(state, "VisualResilienceSummary", "VisualR", "Annual Visual Resilience Summary");
    1556             : 
    1557         796 :         s->pdstIllumHours = newPreDefSubTable(state, s->pdrVisualResilience, "Illuminance Level Hours");
    1558         796 :         s->pdchIllumHourDark = newPreDefColumn(state, s->pdstIllumHours, "A Bit Dark (<= 100 lux) [hr]");
    1559         796 :         s->pdchIllumHourDim = newPreDefColumn(state, s->pdstIllumHours, "Dim (> 100, <= 300 lux) [hr]");
    1560         796 :         s->pdchIllumHourAdequate = newPreDefColumn(state, s->pdstIllumHours, "Adequate (> 300, <= 500 lux) [hr]");
    1561         796 :         s->pdchIllumHourBright = newPreDefColumn(state, s->pdstIllumHours, "Bright (>500 lux) [hr]");
    1562             : 
    1563         796 :         s->pdstIllumOccuHours = newPreDefSubTable(state, s->pdrVisualResilience, "Illuminance Level OccupantHours");
    1564         796 :         s->pdchIllumOccuHourDark = newPreDefColumn(state, s->pdstIllumOccuHours, "A Bit Dark (<= 100 lux) [hr]");
    1565         796 :         s->pdchIllumOccuHourDim = newPreDefColumn(state, s->pdstIllumOccuHours, "Dim (> 100, <= 300 lux) [hr]");
    1566         796 :         s->pdchIllumOccuHourAdequate = newPreDefColumn(state, s->pdstIllumOccuHours, "Adequate (> 300, <= 500 lux) [hr]");
    1567         796 :         s->pdchIllumOccuHourBright = newPreDefColumn(state, s->pdstIllumOccuHours, "Bright (>500 lux) [hr]");
    1568             : 
    1569         796 :         s->pdstIllumOccupiedHours = newPreDefSubTable(state, s->pdrVisualResilience, "Illuminance Level OccupiedHours");
    1570         796 :         s->pdchIllumOccupiedHourDark = newPreDefColumn(state, s->pdstIllumOccupiedHours, "A Bit Dark (<= 100 lux) [hr]");
    1571         796 :         s->pdchIllumOccupiedHourDim = newPreDefColumn(state, s->pdstIllumOccupiedHours, "Dim (> 100, <= 300 lux) [hr]");
    1572         796 :         s->pdchIllumOccupiedHourAdequate = newPreDefColumn(state, s->pdstIllumOccupiedHours, "Adequate (> 300, <= 500 lux) [hr]");
    1573         796 :         s->pdchIllumOccupiedHourBright = newPreDefColumn(state, s->pdstIllumOccupiedHours, "Bright (>500 lux) [hr]");
    1574         796 :     }
    1575             : 
    1576     2537723 :     void PreDefTableEntry(EnergyPlusData &state,
    1577             :                           int const columnIndex,
    1578             :                           std::string_view objName,
    1579             :                           Real64 const tableEntryReal,
    1580             :                           ObjexxFCL::Optional_int_const numSigDigits)
    1581             :     {
    1582             :         // SUBROUTINE INFORMATION:
    1583             :         //       AUTHOR         Jason Glazer
    1584             :         //       DATE WRITTEN   August 2006
    1585             :         //       MODIFIED
    1586             :         //       RE-ENGINEERED  na
    1587             : 
    1588             :         // PURPOSE OF THIS SUBROUTINE:
    1589             :         //   Creates an entry for predefined tables when the entry
    1590             :         //   is a real variable
    1591             : 
    1592             :         // METHODOLOGY EMPLOYED:
    1593             :         //   Simple assignments to public variables.
    1594             : 
    1595             :         // REFERENCES:
    1596             :         // na
    1597             : 
    1598             :         // USE STATEMENTS:
    1599             : 
    1600             :         // Locals
    1601             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    1602             : 
    1603             :         // SUBROUTINE PARAMETER DEFINITIONS:
    1604             : 
    1605             :         // INTERFACE BLOCK SPECIFICATIONS:
    1606             :         // na
    1607             : 
    1608             :         // DERIVED TYPE DEFINITIONS:
    1609             :         // na
    1610             : 
    1611             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    1612     2537723 :         incrementTableEntry(state);
    1613     2537723 :         int sigDigitCount = 2;
    1614             :         // check for number of significant digits
    1615     2537723 :         if (present(numSigDigits)) {
    1616     1081268 :             if ((numSigDigits <= 9) && (numSigDigits >= 0)) {
    1617     1081268 :                 sigDigitCount = numSigDigits;
    1618             :             }
    1619             :         }
    1620             : 
    1621     2537723 :         if (std::abs(tableEntryReal) < 1e8) { // change from 1e10 for more robust entry writing
    1622             :             // something changed in FMT 7.x and "{:#12.{}F}" now outputs 13. So changing it to 11.{}F to maintain existing functionality. Likely
    1623             :             // related to https://github.com/fmtlib/fmt/issues/1893
    1624     2537667 :             state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).charEntry =
    1625     5075334 :                 format("{:#11.{}F}", tableEntryReal, sigDigitCount);
    1626             :         } else {
    1627             :             // Formatting in scientific notation, zero sigDigits makes zero sense.
    1628             :             // **for something greater than 1E+08**, one sigDigits is very unhelpful (you're having an accuracy of 0.5E+07 at best)
    1629          56 :             if (sigDigitCount < 2) {
    1630           0 :                 sigDigitCount = 2;
    1631             :             }
    1632          56 :             state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).charEntry =
    1633         112 :                 format("{:12.{}Z}", tableEntryReal, sigDigitCount);
    1634             :         }
    1635             : 
    1636     2537723 :         if (state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).charEntry.size() > 12) {
    1637         207 :             state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).charEntry = "  Too Big";
    1638             :         }
    1639             : 
    1640     2537723 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).objectName = objName;
    1641     2537723 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).indexColumn = columnIndex;
    1642     2537723 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).origRealEntry = tableEntryReal;
    1643     2537723 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).significantDigits = sigDigitCount;
    1644     2537723 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).origEntryIsReal = true;
    1645     2537723 :     }
    1646             : 
    1647     1206531 :     void PreDefTableEntry(EnergyPlusData &state, int const columnIndex, std::string_view objName, std::string_view tableEntryChar)
    1648             :     {
    1649             :         // SUBROUTINE INFORMATION:
    1650             :         //       AUTHOR         Jason Glazer
    1651             :         //       DATE WRITTEN   August 2006
    1652             :         //       MODIFIED
    1653             :         //       RE-ENGINEERED  na
    1654             : 
    1655             :         // PURPOSE OF THIS SUBROUTINE:
    1656             :         //   Creates an entry for predefined tables when the entry
    1657             :         //   is a character variable
    1658             : 
    1659             :         // METHODOLOGY EMPLOYED:
    1660             :         //   Simple assignments to public variables.
    1661             : 
    1662             :         // REFERENCES:
    1663             :         // na
    1664             : 
    1665             :         // USE STATEMENTS:
    1666             : 
    1667             :         // Locals
    1668             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    1669             : 
    1670             :         // SUBROUTINE PARAMETER DEFINITIONS:
    1671             :         // na
    1672             : 
    1673             :         // INTERFACE BLOCK SPECIFICATIONS:
    1674             :         // na
    1675             : 
    1676             :         // DERIVED TYPE DEFINITIONS:
    1677             :         // na
    1678             : 
    1679             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    1680             : 
    1681     1206531 :         incrementTableEntry(state);
    1682     1206531 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).charEntry = tableEntryChar;
    1683     1206531 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).objectName = objName;
    1684     1206531 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).indexColumn = columnIndex;
    1685     1206531 :     }
    1686             : 
    1687       46861 :     void PreDefTableEntry(EnergyPlusData &state, int const columnIndex, std::string_view objName, int const tableEntryInt)
    1688             :     {
    1689             :         // SUBROUTINE INFORMATION:
    1690             :         //       AUTHOR         Jason Glazer
    1691             :         //       DATE WRITTEN   August 2006
    1692             :         //       MODIFIED
    1693             :         //       RE-ENGINEERED  na
    1694             : 
    1695             :         // PURPOSE OF THIS SUBROUTINE:
    1696             :         //   Creates an entry for predefined tables when the entry
    1697             :         //   is a integer variable
    1698             : 
    1699             :         // METHODOLOGY EMPLOYED:
    1700             :         //   Simple assignments to public variables.
    1701             : 
    1702             :         // REFERENCES:
    1703             :         // na
    1704             : 
    1705             :         // USE STATEMENTS:
    1706             : 
    1707             :         // Locals
    1708             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    1709             : 
    1710             :         // SUBROUTINE PARAMETER DEFINITIONS:
    1711             : 
    1712             :         // INTERFACE BLOCK SPECIFICATIONS:
    1713             :         // na
    1714             : 
    1715             :         // DERIVED TYPE DEFINITIONS:
    1716             :         // na
    1717             : 
    1718             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    1719             : 
    1720       46861 :         incrementTableEntry(state);
    1721             :         // convert the integer to a string
    1722       46861 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).charEntry = format("{:12}", tableEntryInt);
    1723       46861 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).objectName = objName;
    1724       46861 :         state.dataOutRptPredefined->tableEntry(state.dataOutRptPredefined->numTableEntry).indexColumn = columnIndex;
    1725       46861 :     }
    1726             : 
    1727           0 :     std::string RetrievePreDefTableEntry(EnergyPlusData &state, int const columnIndex, std::string_view objName)
    1728             :     {
    1729           0 :         for (int iTableEntry = 1; iTableEntry <= state.dataOutRptPredefined->numTableEntry; ++iTableEntry) {
    1730           0 :             if (state.dataOutRptPredefined->tableEntry(iTableEntry).indexColumn == columnIndex &&
    1731           0 :                 state.dataOutRptPredefined->tableEntry(iTableEntry).objectName == objName) {
    1732           0 :                 return trimmed(ljustified(state.dataOutRptPredefined->tableEntry(iTableEntry).charEntry));
    1733             :             }
    1734             :         }
    1735           0 :         return "NOT FOUND";
    1736             :     }
    1737             : 
    1738     3791115 :     void incrementTableEntry(EnergyPlusData &state)
    1739             :     {
    1740             :         // SUBROUTINE INFORMATION:
    1741             :         //       AUTHOR         Jason Glazer
    1742             :         //       DATE WRITTEN   August 2006
    1743             :         //       MODIFIED
    1744             :         //       RE-ENGINEERED  na
    1745             : 
    1746             :         // PURPOSE OF THIS SUBROUTINE:
    1747             :         //   Manages the resizing of the TableEntry Array
    1748             : 
    1749             :         // METHODOLOGY EMPLOYED:
    1750             :         //   Simple assignments to public variables.
    1751             : 
    1752             :         // REFERENCES:
    1753             :         // na
    1754             : 
    1755             :         // USE STATEMENTS:
    1756             : 
    1757             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    1758             :         // na
    1759             : 
    1760             :         // SUBROUTINE PARAMETER DEFINITIONS:
    1761             :         // na
    1762             : 
    1763             :         // INTERFACE BLOCK SPECIFICATIONS:
    1764             :         // na
    1765             : 
    1766             :         // DERIVED TYPE DEFINITIONS:
    1767             :         // na
    1768             : 
    1769             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    1770     3791115 :         if (!allocated(state.dataOutRptPredefined->tableEntry)) {
    1771         796 :             state.dataOutRptPredefined->tableEntry.allocate(sizeIncrement);
    1772         796 :             state.dataOutRptPredefined->sizeTableEntry = sizeIncrement;
    1773         796 :             state.dataOutRptPredefined->numTableEntry = 1;
    1774             :         } else {
    1775     3790319 :             ++state.dataOutRptPredefined->numTableEntry;
    1776             :             // if larger than current size grow the array
    1777     3790319 :             if (state.dataOutRptPredefined->numTableEntry > state.dataOutRptPredefined->sizeTableEntry) {
    1778        8618 :                 state.dataOutRptPredefined->tableEntry.redimension(
    1779        4309 :                     state.dataOutRptPredefined->sizeTableEntry *=
    1780             :                     2); // Tuned Changed += sizeIncrement to *= 2 for reduced heap allocations (at some space cost)
    1781             :             }
    1782             :         }
    1783     3791115 :     }
    1784             : 
    1785       76479 :     void AddCompSizeTableEntry(
    1786             :         EnergyPlusData &state, std::string_view FieldType, std::string_view FieldName, std::string_view FieldDescription, Real64 const FieldValue)
    1787             :     {
    1788             :         // SUBROUTINE INFORMATION:
    1789             :         //       AUTHOR         Jason Glazer
    1790             :         //       DATE WRITTEN   July 2007
    1791             :         //       MODIFIED
    1792             :         //       RE-ENGINEERED  na
    1793             : 
    1794             :         // PURPOSE OF THIS SUBROUTINE:
    1795             :         //   Creates an entry for component size tables.
    1796             : 
    1797             :         // METHODOLOGY EMPLOYED:
    1798             :         //   Simple assignments to public variables.
    1799             : 
    1800             :         // REFERENCES:
    1801             :         // na
    1802             : 
    1803             :         // USE STATEMENTS:
    1804             : 
    1805             :         // Locals
    1806             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    1807             : 
    1808             :         // SUBROUTINE PARAMETER DEFINITIONS:
    1809             :         // na
    1810             : 
    1811             :         // INTERFACE BLOCK SPECIFICATIONS:
    1812             :         // na
    1813             : 
    1814             :         // DERIVED TYPE DEFINITIONS:
    1815             :         // na
    1816             : 
    1817             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    1818             : 
    1819       76479 :         if (!allocated(state.dataOutRptPredefined->CompSizeTableEntry)) {
    1820         655 :             state.dataOutRptPredefined->CompSizeTableEntry.allocate(sizeIncrement);
    1821         655 :             state.dataOutRptPredefined->sizeCompSizeTableEntry = sizeIncrement;
    1822         655 :             state.dataOutRptPredefined->numCompSizeTableEntry = 1;
    1823             :         } else {
    1824       75824 :             ++state.dataOutRptPredefined->numCompSizeTableEntry;
    1825             :             // if larger than current size grow the array
    1826       75824 :             if (state.dataOutRptPredefined->numCompSizeTableEntry > state.dataOutRptPredefined->sizeCompSizeTableEntry) {
    1827         698 :                 state.dataOutRptPredefined->CompSizeTableEntry.redimension(
    1828         349 :                     state.dataOutRptPredefined->sizeCompSizeTableEntry *=
    1829             :                     2); // Tuned Changed += sizeIncrement to *= 2 for reduced heap allocations (at some space cost)
    1830             :             }
    1831             :         }
    1832       76479 :         state.dataOutRptPredefined->CompSizeTableEntry(state.dataOutRptPredefined->numCompSizeTableEntry).typeField = FieldType;
    1833       76479 :         state.dataOutRptPredefined->CompSizeTableEntry(state.dataOutRptPredefined->numCompSizeTableEntry).nameField = FieldName;
    1834       76479 :         state.dataOutRptPredefined->CompSizeTableEntry(state.dataOutRptPredefined->numCompSizeTableEntry).description = FieldDescription;
    1835       76479 :         state.dataOutRptPredefined->CompSizeTableEntry(state.dataOutRptPredefined->numCompSizeTableEntry).valField = FieldValue;
    1836       76479 :     }
    1837             : 
    1838           0 :     void AddShadowRelateTableEntry(EnergyPlusData &state, int const castingField, int const receivingField, int const receivingKind)
    1839             :     {
    1840             :         // SUBROUTINE INFORMATION:
    1841             :         //       AUTHOR         Jason Glazer
    1842             :         //       DATE WRITTEN   July 2007
    1843             :         //       MODIFIED
    1844             :         //       RE-ENGINEERED  na
    1845             : 
    1846             :         // PURPOSE OF THIS SUBROUTINE:
    1847             :         //   Creates an entry for any shadow hierarchy tables that consist
    1848             :         //   of items and one or more subitems for each item.
    1849             : 
    1850             :         // METHODOLOGY EMPLOYED:
    1851             :         //   Simple assignments to public variables.
    1852             : 
    1853             :         // REFERENCES:
    1854             :         // na
    1855             : 
    1856             :         // USE STATEMENTS:
    1857             : 
    1858             :         // Locals
    1859             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    1860             :         // CHARACTER(len=*),INTENT(IN)  :: castingField
    1861             :         // CHARACTER(len=*),INTENT(IN)  :: receivingField
    1862             : 
    1863             :         // SUBROUTINE PARAMETER DEFINITIONS:
    1864             :         // na
    1865             : 
    1866             :         // INTERFACE BLOCK SPECIFICATIONS:
    1867             :         // na
    1868             : 
    1869             :         // DERIVED TYPE DEFINITIONS:
    1870             :         // na
    1871             : 
    1872             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    1873             : 
    1874           0 :         if (!allocated(state.dataOutRptPredefined->ShadowRelate)) {
    1875           0 :             state.dataOutRptPredefined->ShadowRelate.allocate(sizeIncrement);
    1876           0 :             state.dataOutRptPredefined->sizeShadowRelate = sizeIncrement;
    1877           0 :             state.dataOutRptPredefined->numShadowRelate = 1;
    1878             :         } else {
    1879           0 :             ++state.dataOutRptPredefined->numShadowRelate;
    1880             :             // if larger than current size grow the array
    1881           0 :             if (state.dataOutRptPredefined->numShadowRelate > state.dataOutRptPredefined->sizeShadowRelate) {
    1882           0 :                 state.dataOutRptPredefined->ShadowRelate.redimension(
    1883           0 :                     state.dataOutRptPredefined->sizeShadowRelate *=
    1884             :                     2); // Tuned Changed += sizeIncrement to *= 2 for reduced heap allocations (at some space cost)
    1885             :             }
    1886             :         }
    1887           0 :         state.dataOutRptPredefined->ShadowRelate(state.dataOutRptPredefined->numShadowRelate).castSurf = castingField;
    1888           0 :         state.dataOutRptPredefined->ShadowRelate(state.dataOutRptPredefined->numShadowRelate).recSurf = receivingField;
    1889           0 :         state.dataOutRptPredefined->ShadowRelate(state.dataOutRptPredefined->numShadowRelate).recKind = receivingKind;
    1890           0 :     }
    1891             : 
    1892       13957 :     int newPreDefReport(EnergyPlusData &state, std::string_view inReportName, std::string_view inReportAbrev, std::string_view inReportNamewithSpaces)
    1893             :     {
    1894             :         // SUBROUTINE INFORMATION:
    1895             :         //       AUTHOR         Jason Glazer
    1896             :         //       DATE WRITTEN   August 2006
    1897             :         //       MODIFIED
    1898             :         //       RE-ENGINEERED  na
    1899             : 
    1900             :         // PURPOSE OF THIS SUBROUTINE:
    1901             :         //   Creates a new index for the next predefined report
    1902             : 
    1903             :         // METHODOLOGY EMPLOYED:
    1904             :         // na
    1905             : 
    1906             :         // REFERENCES:
    1907             :         // na
    1908             : 
    1909             :         // USE STATEMENTS:
    1910             : 
    1911             :         // Return value
    1912             :         int newPreDefReport;
    1913             : 
    1914             :         // Locals
    1915             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    1916             :         // na
    1917             : 
    1918             :         // SUBROUTINE PARAMETER DEFINITIONS:
    1919             : 
    1920             :         // INTERFACE BLOCK SPECIFICATIONS:
    1921             :         // na
    1922             : 
    1923             :         // DERIVED TYPE DEFINITIONS:
    1924             :         // na
    1925             : 
    1926             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    1927       13957 :         if (!allocated(state.dataOutRptPredefined->reportName)) {
    1928         796 :             state.dataOutRptPredefined->reportName.allocate(sizeIncrement);
    1929         796 :             state.dataOutRptPredefined->sizeReportName = sizeIncrement;
    1930         796 :             state.dataOutRptPredefined->numReportName = 1;
    1931             :         } else {
    1932       13161 :             ++state.dataOutRptPredefined->numReportName;
    1933             :             // if larger than current size grow the array
    1934       13161 :             if (state.dataOutRptPredefined->numReportName > state.dataOutRptPredefined->sizeReportName) {
    1935           0 :                 state.dataOutRptPredefined->reportName.redimension(
    1936           0 :                     state.dataOutRptPredefined->sizeReportName *=
    1937             :                     2); // Tuned Changed += sizeIncrement to *= 2 for reduced heap allocations (at some space cost)
    1938             :             }
    1939             :         }
    1940             :         // initialize new record
    1941       13957 :         state.dataOutRptPredefined->reportName(state.dataOutRptPredefined->numReportName).name = inReportName;
    1942       13957 :         state.dataOutRptPredefined->reportName(state.dataOutRptPredefined->numReportName).abrev = inReportAbrev;
    1943       13957 :         state.dataOutRptPredefined->reportName(state.dataOutRptPredefined->numReportName).namewithspaces = inReportNamewithSpaces;
    1944       13957 :         state.dataOutRptPredefined->reportName(state.dataOutRptPredefined->numReportName).show = false;
    1945       13957 :         newPreDefReport = state.dataOutRptPredefined->numReportName;
    1946       13957 :         return newPreDefReport;
    1947             :     }
    1948             : 
    1949       79043 :     int newPreDefSubTable(EnergyPlusData &state, int const reportIndex, std::string_view subTableName)
    1950             :     {
    1951             :         // SUBROUTINE INFORMATION:
    1952             :         //       AUTHOR         Jason Glazer
    1953             :         //       DATE WRITTEN   August 2006
    1954             :         //       MODIFIED
    1955             :         //       RE-ENGINEERED  na
    1956             : 
    1957             :         // PURPOSE OF THIS SUBROUTINE:
    1958             :         //   Assigns the index for predefined sub-tables
    1959             : 
    1960             :         // METHODOLOGY EMPLOYED:
    1961             :         //   Simple assignments to public variables.
    1962             : 
    1963             :         // REFERENCES:
    1964             :         // na
    1965             : 
    1966             :         // USE STATEMENTS:
    1967             : 
    1968             :         // Return value
    1969             : 
    1970             :         // Locals
    1971             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    1972             : 
    1973             :         // SUBROUTINE PARAMETER DEFINITIONS:
    1974             :         // na
    1975             : 
    1976             :         // INTERFACE BLOCK SPECIFICATIONS:
    1977             :         // na
    1978             : 
    1979             :         // DERIVED TYPE DEFINITIONS:
    1980             :         // na
    1981             : 
    1982             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    1983       79043 :         if (!allocated(state.dataOutRptPredefined->subTable)) {
    1984         796 :             state.dataOutRptPredefined->subTable.allocate(sizeIncrement);
    1985         796 :             state.dataOutRptPredefined->sizeSubTable = sizeIncrement;
    1986         796 :             state.dataOutRptPredefined->numSubTable = 1;
    1987             :         } else {
    1988       78247 :             ++state.dataOutRptPredefined->numSubTable;
    1989             :             // if larger than current size then grow the array
    1990       78247 :             if (state.dataOutRptPredefined->numSubTable > state.dataOutRptPredefined->sizeSubTable) {
    1991         850 :                 state.dataOutRptPredefined->subTable.redimension(
    1992         425 :                     state.dataOutRptPredefined->sizeSubTable *=
    1993             :                     2); // Tuned Changed += sizeIncrement to *= 2 for reduced heap allocations (at some space cost)
    1994             :             }
    1995             :         }
    1996             :         // initialize new record)
    1997       79043 :         state.dataOutRptPredefined->subTable(state.dataOutRptPredefined->numSubTable).name = subTableName;
    1998       79043 :         state.dataOutRptPredefined->subTable(state.dataOutRptPredefined->numSubTable).indexReportName = reportIndex;
    1999       79043 :         return state.dataOutRptPredefined->numSubTable;
    2000             :     }
    2001             : 
    2002       19560 :     void addFootNoteSubTable(EnergyPlusData &state, int const subTableIndex, std::string_view footnoteText)
    2003             :     {
    2004             :         // SUBROUTINE INFORMATION:
    2005             :         //       AUTHOR         Jason Glazer
    2006             :         //       DATE WRITTEN   August 2008
    2007             :         //       MODIFIED
    2008             :         //       RE-ENGINEERED  na
    2009             : 
    2010             :         // PURPOSE OF THIS SUBROUTINE:
    2011             :         //   Adds a footnote to a subtable
    2012             : 
    2013             :         // METHODOLOGY EMPLOYED:
    2014             :         //   Simple assignments to public variables.
    2015             : 
    2016             :         // REFERENCES:
    2017             :         // na
    2018             : 
    2019             :         // USE STATEMENTS:
    2020             : 
    2021             :         // Locals
    2022             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    2023             : 
    2024             :         // SUBROUTINE PARAMETER DEFINITIONS:
    2025             :         // na
    2026             : 
    2027             :         // INTERFACE BLOCK SPECIFICATIONS:
    2028             :         // na
    2029             : 
    2030             :         // DERIVED TYPE DEFINITIONS:
    2031             :         // na
    2032             : 
    2033             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    2034       19560 :         if ((subTableIndex >= 0) && (subTableIndex <= state.dataOutRptPredefined->numSubTable)) {
    2035       19560 :             state.dataOutRptPredefined->subTable(subTableIndex).footnote = footnoteText;
    2036             :         }
    2037       19560 :     }
    2038             : 
    2039      694785 :     int newPreDefColumn(EnergyPlusData &state, int const subTableIndex, std::string_view columnHeading)
    2040             :     {
    2041             :         // SUBROUTINE INFORMATION:
    2042             :         //       AUTHOR         Jason Glazer
    2043             :         //       DATE WRITTEN   August 2006
    2044             :         //       MODIFIED
    2045             :         //       RE-ENGINEERED  na
    2046             : 
    2047             :         // PURPOSE OF THIS SUBROUTINE:
    2048             :         //   Assigns the index variables for all predefined reports
    2049             : 
    2050             :         // METHODOLOGY EMPLOYED:
    2051             :         //   Simple assignments to public variables.
    2052             : 
    2053             :         // REFERENCES:
    2054             :         // na
    2055             : 
    2056             :         // USE STATEMENTS:
    2057             : 
    2058             :         // Return value
    2059             :         int newPreDefColumn;
    2060             : 
    2061             :         // Locals
    2062             :         // SUBROUTINE ARGUMENT DEFINITIONS:
    2063             : 
    2064             :         // SUBROUTINE PARAMETER DEFINITIONS:
    2065             :         // na
    2066             : 
    2067             :         // INTERFACE BLOCK SPECIFICATIONS:
    2068             :         // na
    2069             : 
    2070             :         // DERIVED TYPE DEFINITIONS:
    2071             :         // na
    2072             : 
    2073             :         // SUBROUTINE LOCAL VARIABLE DECLARATIONS:
    2074      694785 :         if (!allocated(state.dataOutRptPredefined->columnTag)) {
    2075         796 :             state.dataOutRptPredefined->columnTag.allocate(sizeIncrement);
    2076         796 :             state.dataOutRptPredefined->sizeColumnTag = sizeIncrement;
    2077         796 :             state.dataOutRptPredefined->numColumnTag = 1;
    2078             :         } else {
    2079      693989 :             ++state.dataOutRptPredefined->numColumnTag;
    2080             :             // if larger than current size grow the array
    2081      693989 :             if (state.dataOutRptPredefined->numColumnTag > state.dataOutRptPredefined->sizeColumnTag) {
    2082        6368 :                 state.dataOutRptPredefined->columnTag.redimension(
    2083        3184 :                     state.dataOutRptPredefined->sizeColumnTag *=
    2084             :                     2); // Tuned Changed += sizeIncrement to *= 2 for reduced heap allocations (at some space cost)
    2085             :             }
    2086             :         }
    2087             :         // initialize new record)
    2088      694785 :         state.dataOutRptPredefined->columnTag(state.dataOutRptPredefined->numColumnTag).heading = columnHeading;
    2089      694785 :         state.dataOutRptPredefined->columnTag(state.dataOutRptPredefined->numColumnTag).indexSubTable = subTableIndex;
    2090      694785 :         newPreDefColumn = state.dataOutRptPredefined->numColumnTag;
    2091      694785 :         return newPreDefColumn;
    2092             :     }
    2093             : 
    2094             : } // namespace OutputReportPredefined
    2095             : 
    2096             : } // namespace EnergyPlus

Generated by: LCOV version 1.14