File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -1433,6 +1433,20 @@ def check_for_errors(runner)
1433
1433
return false
1434
1434
end
1435
1435
1436
+ # Check total vs net energy use
1437
+ has_pv = @hpxml_bldgs . count { |hpxml_bldg | !hpxml_bldg . pv_systems . empty? } > 0
1438
+ if has_pv
1439
+ if @totals [ TE ::Total ] . annual_output == @totals [ TE ::Net ] . annual_output
1440
+ runner . registerError ( 'Building has PV but total/net energy uses are equal.' )
1441
+ return false
1442
+ end
1443
+ else
1444
+ if @totals [ TE ::Total ] . annual_output != @totals [ TE ::Net ] . annual_output
1445
+ runner . registerError ( 'Building does not have PV but total/net energy uses are different.' )
1446
+ return false
1447
+ end
1448
+ end
1449
+
1436
1450
# Check sum of electricity produced end use outputs match total output from meter
1437
1451
sum_elec_prod_annual = @end_uses . select { |k , eu | k [ 0 ] == FT ::Elec && eu . is_negative } . map { |_k , eu | eu . annual_output . to_f } . sum ( 0.0 ) # Negative value
1438
1452
if ( sum_elec_prod_annual - meter_elec_produced ) . abs > tol
Original file line number Diff line number Diff line change 3
3
<schema_version >3.1</schema_version >
4
4
<name >report_simulation_output</name >
5
5
<uid >df9d170c-c21a-4130-866d-0d46b06073fd</uid >
6
- <version_id >7adf009d-a6b7-4501-95f4-318c1c0215b1 </version_id >
7
- <version_modified >2025-02-18T15:23:54Z </version_modified >
6
+ <version_id >a82d29da-4213-4138-874d-153fecede29b </version_id >
7
+ <version_modified >2025-02-18T15:37:37Z </version_modified >
8
8
<xml_checksum >9BF1E6AC</xml_checksum >
9
9
<class_name >ReportSimulationOutput</class_name >
10
10
<display_name >HPXML Simulation Output Report</display_name >
1972
1972
<filename >measure.rb</filename >
1973
1973
<filetype >rb</filetype >
1974
1974
<usage_type >script</usage_type >
1975
- <checksum >8BAA16E7 </checksum >
1975
+ <checksum >5184BE90 </checksum >
1976
1976
</file >
1977
1977
<file >
1978
1978
<filename >test_report_sim_output.rb</filename >
You can’t perform that action at this time.
0 commit comments