-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4754 from NREL/88621024-ElectricLoadCenterStorage…
…Battery-Crash 88621024 electric load center storage battery crash
- Loading branch information
Showing
4 changed files
with
147 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// EnergyPlus::ExteriorEnergyUse Unit Tests | ||
|
||
// Google Test Headers | ||
#include <gtest/gtest.h> | ||
|
||
// EnergyPlus Headers | ||
#include <EnergyPlus/ExteriorEnergyUse.hh> | ||
#include <EnergyPlus/ManageElectricPower.hh> | ||
#include <EnergyPlus/CurveManager.hh> | ||
|
||
using namespace EnergyPlus; | ||
using namespace EnergyPlus::ManageElectricPower; | ||
using namespace EnergyPlus::CurveManager; | ||
using namespace ObjexxFCL; | ||
using namespace DataGlobals; | ||
|
||
TEST( ManageElectricPowerTest, BatteryDischargeTest ) | ||
{ | ||
|
||
NumCurves = 1; | ||
PerfCurve.allocate( NumCurves ); | ||
PerfCurve( 1 ).CurveType = CurveType_RectangularHyperbola1; | ||
PerfCurve( 1 ).InterpolationType = EvaluateCurveToLimits; | ||
PerfCurve( 1 ).Coeff1 = 0.0899; | ||
PerfCurve( 1 ).Coeff2 = -98.24; | ||
PerfCurve( 1 ).Coeff3 = -.0082; | ||
int CurveNum1 = 1; | ||
Real64 k = 0.5874; | ||
Real64 c = 0.37; | ||
Real64 qmax = 86.1; | ||
Real64 E0c = 12.6; | ||
Real64 InternalR = 0.054; | ||
|
||
Real64 I0 = 0.159; | ||
Real64 T0 = 537.9; | ||
Real64 Volt = 12.59; | ||
Real64 Pw = 2.0; | ||
Real64 q0 = 60.2; | ||
|
||
EXPECT_TRUE( determineCurrentForBatteryDischarge( I0, T0, Volt, Pw, q0, CurveNum1, k, c, qmax, E0c, InternalR ) ); | ||
|
||
I0 = -222.7; | ||
T0 = -0.145; | ||
Volt = 24.54; | ||
Pw = 48000; | ||
q0 = 0; | ||
|
||
EXPECT_FALSE( determineCurrentForBatteryDischarge( I0, T0, Volt, Pw, q0, CurveNum1, k, c, qmax, E0c, InternalR ) ); | ||
|
||
PerfCurve.deallocate(); | ||
} |
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (jasondegraw) - Win64-Windows-7-VisualStudio-12: OK (1148 of 1148 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (jasondegraw) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (jasondegraw) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (1148 of 1148 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (jasondegraw) - x86_64-MacOS-10.9-clang: OK (1145 of 1145 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (jasondegraw) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-UnitTestsCoverage-Debug: OK (639 of 639 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (jasondegraw) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-IntegrationCoverage-Debug: OK (1148 of 1148 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HVACWaterToAirMultiSpeedHP_-#4093 (jasondegraw) - i386-Windows-7-VisualStudio-12: OK (1148 of 1148 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90179052-SetupEMSActuatorMissingDuplicates (jasondegraw) - Win64-Windows-7-VisualStudio-12: OK (1148 of 1148 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90179052-SetupEMSActuatorMissingDuplicates (jasondegraw) - x86_64-MacOS-10.9-clang: OK (1145 of 1145 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90179052-SetupEMSActuatorMissingDuplicates (jasondegraw) - i386-Windows-7-VisualStudio-12: Tests Failed
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90179052-SetupEMSActuatorMissingDuplicates (jasondegraw) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: Tests Failed
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90179052-SetupEMSActuatorMissingDuplicates (jasondegraw) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90179052-SetupEMSActuatorMissingDuplicates (jasondegraw) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-UnitTestsCoverage-Debug: OK (639 of 639 tests passed)
6dd7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90179052-SetupEMSActuatorMissingDuplicates (jasondegraw) - x86_64-Linux-Ubuntu-14.04-gcc-4.8-IntegrationCoverage-Debug: OK (1148 of 1148 tests passed)