This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing powerflow switch autotests (#1156)
* Add switch tests * Update powerflow switch coordinator autotest
- Loading branch information
Showing
5 changed files
with
108 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// test_switch.glm | ||
// | ||
// Verify that banked switch works correctly when opened | ||
// | ||
module powerflow; | ||
module assert; | ||
|
||
object meter | ||
{ | ||
name "test"; | ||
phases ABC; | ||
nominal_voltage 2400; | ||
bustype SWING; | ||
object assert | ||
{ | ||
target measured_real_power; | ||
value 2000; | ||
within 1; | ||
}; | ||
} | ||
#for PHASE in A B C | ||
object load | ||
{ | ||
name "load_${PHASE}"; | ||
phases ${PHASE}; | ||
nominal_voltage 2400; | ||
bustype SWING_PQ; | ||
constant_power_${PHASE} 1000; | ||
} | ||
object switch | ||
{ | ||
phases ${PHASE}; | ||
name "switch_${PHASE}"; | ||
from "test"; | ||
to "load_${PHASE}"; | ||
operating_mode INDIVIDUAL; | ||
phase_${PHASE}_state CLOSED; | ||
} | ||
#done | ||
|
||
modify switch_C.phase_C_state OPEN; |
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,42 @@ | ||
// test_switch.glm | ||
// | ||
// Verify that banked switch works correctly when opened | ||
// | ||
module powerflow; | ||
module assert; | ||
|
||
object meter | ||
{ | ||
name "test"; | ||
phases ABC; | ||
nominal_voltage 2400; | ||
bustype SWING; | ||
object assert | ||
{ | ||
target measured_real_power; | ||
value 2000; | ||
within 1; | ||
}; | ||
} | ||
#for PHASE in A B C | ||
object load | ||
{ | ||
name "load_${PHASE}"; | ||
phases ${PHASE}; | ||
nominal_voltage 2400; | ||
bustype SWING_PQ; | ||
constant_power_${PHASE} 1000; | ||
} | ||
object switch | ||
{ | ||
phases ${PHASE}; | ||
name "switch_${PHASE}"; | ||
from "test"; | ||
to "load_${PHASE}"; | ||
operating_mode BANKED; | ||
phase_${PHASE}_state CLOSED; | ||
} | ||
#done | ||
|
||
modify switch_C.phase_C_state OPEN; | ||
modify switch_C.phase_A_state CLOSED; |
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,6 @@ | ||
timestamp,status,armed | ||
2011-01-01 00:00:00 UTC,ARMED,NONE | ||
2011-01-01 00:00:02 UTC,ARMED,switch_1 | ||
2011-01-01 00:00:03 UTC,ARMED,switch_1|switch_2 | ||
2011-01-01 00:00:05 UTC,ARMED,switch_1|switch_2|switch_3 | ||
2011-01-01 00:00:08 UTC,ARMED,switch_1|switch_2|switch_3|switch_4 |
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