Skip to content

Commit

Permalink
Modernize the HTML footnote style: use a div, and ol instead of harco…
Browse files Browse the repository at this point in the history
…ding numbers and using   and  
  • Loading branch information
jmarrec committed Dec 17, 2024
1 parent 5110ecd commit 07f523d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/EnergyPlus/OutputReportTabular.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17188,7 +17188,7 @@ void WriteTable(EnergyPlusData &state,
// end the table
tbl_stream << "</table>\n";
if (!footnoteText.empty()) {
tbl_stream << fmt::format("<i>{}</i>\n", footnoteText);
tbl_stream << fmt::format("<div class=\"footnote\" style=\"font-style: italic;\">{}</div>\n", footnoteText);
}
tbl_stream << "<br><br>\n";
} else if (thisStyle == TableStyle::XML) {
Expand Down
49 changes: 26 additions & 23 deletions src/EnergyPlus/StandardRatings.hh
Original file line number Diff line number Diff line change
Expand Up @@ -79,29 +79,32 @@ namespace StandardRatings {
Real64 constexpr HeatingOutdoorCoilInletAirDBTempH3Test(-8.33); // Outdoor air dry-bulb temp in degrees C (17F)
// Test H3 (low and High Speed) Std. AHRI 210/240

static constexpr std::string_view AHRI2017FOOTNOTE = R"html(ANSI/AHRI ratings account for supply air fan heat and electric power. <br/>
1 - EnergyPlus object type. <br/>
2 - Capacity less than 65K Btu/h (19050 W) - calculated as per AHRI Standard 210/240-2017. <br/>
&emsp;&nbsp;Capacity of 65K Btu/h (19050 W) to less than 135K Btu/h (39565 W) - calculated as per AHRI Standard 340/360-2007.
<br/>
&emsp;&nbsp;Capacity from 135K (39565 W) to 250K Btu/hr (73268 W) - calculated as per AHRI Standard 365-2009 - Ratings not yet
supported in EnergyPlus. <br/>
3 - SEER (User) is calculated using user-input PLF curve and cooling coefficient of degradation. <br/>
&emsp;&nbsp;SEER (Standard) is calculated using the default PLF curve and cooling coefficient of degradation
from the appropriate AHRI standard.)html";

static constexpr std::string_view AHRI2023FOOTNOTE = R"html(ANSI/AHRI ratings account for supply air fan heat and electric power. <br/>
1 - EnergyPlus object type. <br/>
2 - Capacity less than 65K Btu/h (19050 W) - calculated as per AHRI Standard 210/240-2023. <br/>
&emsp;&nbsp;Capacity of 65K Btu/h (19050 W) to less than 135K Btu/h (39565 W) - calculated as per AHRI Standard 340/360-2022.
<br/>
&emsp;&nbsp;Capacity from 135K (39565 W) to 250K Btu/hr (73268 W) - calculated as per AHRI Standard 365-2009 - Ratings not yet
supported in EnergyPlus. <br/>
3 - SEER2 (User) is calculated using user-input PLF curve and cooling coefficient of degradation. <br/>
&emsp;&nbsp;SEER2 (Standard) is calculated using the default PLF curve and cooling coefficient of degradation
from the appropriate AHRI standard. <br/>
4 - Value for the Full Speed of the coil.
)html";
static constexpr std::string_view AHRI2017FOOTNOTE = R"html(<p>ANSI/AHRI ratings account for supply air fan heat and electric power.</p>
<ol>
<li>EnergyPlus object type.</li>
<li>Capacity less than 65K Btu/h (19050 W) - calculated as per AHRI Standard 210/240-2017.<br>
Capacity of 65K Btu/h (19050 W) to less than 135K Btu/h (39565 W) - calculated as per AHRI Standard 340/360-2007.<br>
Capacity from 135K (39565 W) to 250K Btu/hr (73268 W) - calculated as per AHRI Standard 365-2009 - Ratings not yet supported in EnergyPlus.
</li>
<li>SEER (User) is calculated using user-input PLF curve and cooling coefficient of degradation.<br>
SEER (Standard) is calculated using the default PLF curve and cooling coefficient of degradation from the appropriate AHRI standard.
</li>
</ol>)html";

static constexpr std::string_view AHRI2023FOOTNOTE = R"html(<p>ANSI/AHRI ratings account for supply air fan heat and electric power.</p>
<ol>
<li>EnergyPlus object type.</li>
<li>
Capacity less than 65K Btu/h (19050 W) - calculated as per AHRI Standard 210/240-2023.<br>
Capacity of 65K Btu/h (19050 W) to less than 135K Btu/h (39565 W) - calculated as per AHRI Standard 340/360-2022.<br>
Capacity from 135K (39565 W) to 250K Btu/hr (73268 W) - calculated as per AHRI Standard 365-2009 - Ratings not yet supported in EnergyPlus.
</li>
<li>
SEER2 (User) is calculated using user-input PLF curve and cooling coefficient of degradation.<br>
SEER2 (Standard) is calculated using the default PLF curve and cooling coefficient of degradation from the appropriate AHRI standard.
</li>
<li>Value for the Full Speed of the coil.</li>
</ol>)html";

// Defrost strategy (heat pump only)
enum class DefrostStrat
Expand Down

0 comments on commit 07f523d

Please sign in to comment.