switching
authorsomeone <jan@jvales.net>
Tue, 5 Jun 2012 00:15:07 +0000 (02:15 +0200)
committersomeone <jan@jvales.net>
Tue, 5 Jun 2012 00:15:07 +0000 (02:15 +0200)
s.test1.dl
s.test2.dl
s.test3.dl
s.test4.dl
s.test5.dl [deleted file]

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b195e3f957cf5b5592133cd8e0affd7710be9ebe 100644 (file)
@@ -0,0 +1,49 @@
+% testing a switching centerk
+% system inactive
+% In case i4 = 0, the system is inactive and the incoming energy i6 is redirected to o2. Furthermore, o1 = 0 as the pumped-storage hydropower plant psh should not receive energy.
+
+switching(s).
+
+% define control i1 to 1KW
+c(psh,i1,1).
+
+% define control i2 to 2KW
+c(psh,i2,2).
+
+% define control i3 to 3KW
+c(psh,i3,3).
+
+% define control i4 to 0
+c(psh,i4,0).
+
+% define control i5 to 0KW
+c(psh,i5,0).
+
+% define control i6 to 10KW
+c(psh,i6,10).
+
+% test definition.
+% expecting i1 to be 1
+expect_c(psh,i1,1).
+
+% expecting i2 to be 2
+expect_c(psh,i2,2).
+
+% expecting i3 to be 3
+expect_c(psh,i3,3).
+
+% expecting i4 to be 0
+expect_c(psh,i4,0).
+
+% expecting i5 to be 0
+expect_c(psh,i5,0).
+
+% expecting i6 to be 10
+expect_c(psh,i6,10).
+
+% and therefore we shall charge with 0KW
+expect_p(psh,o1,0).
+
+% and return 10KW
+expect_p(psh,o2,10).
+
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..dc3bd6ba4a12847304edc931a01b24b0970c40db 100644 (file)
@@ -0,0 +1,49 @@
+% testing a switching centerk
+% system accumilation mode
+% In case i4 = 0, the system is inactive and the incoming energy i6 is redirected to o2. Furthermore, o1 = 0 as the pumped-storage hydropower plant psh should not receive energy.
+
+switching(s).
+
+% define control i1 to 10KW
+c(psh,i1,10).
+
+% define control i2 to 20KW
+c(psh,i2,20).
+
+% define control i3 to 30KW
+c(psh,i3,30).
+
+% define control i4 to 1
+c(psh,i4,1).
+
+% define control i5 to 0KW
+c(psh,i5,0).
+
+% define control i6 to 10KW
+c(psh,i6,10).
+
+% test definition.
+% expecting i1 to be 10
+expect_c(psh,i1,10).
+
+% expecting i2 to be 20
+expect_c(psh,i2,20).
+
+% expecting i3 to be 30
+expect_c(psh,i3,30).
+
+% expecting i4 to be 1
+expect_c(psh,i4,1).
+
+% expecting i5 to be 0
+expect_c(psh,i5,0).
+
+% expecting i6 to be 10
+expect_c(psh,i6,10).
+
+% and therefore we shall charge with 0KW
+expect_p(psh,o1,0).
+
+% and return 70KW
+expect_p(psh,o2,70).
+
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..013768187cbc73293935bd8f76a7211de2de2b19 100644 (file)
@@ -0,0 +1,49 @@
+% testing a switching centerk
+% system charge mode
+% In case i4 = 0, the system is inactive and the incoming energy i6 is redirected to o2. Furthermore, o1 = 0 as the pumped-storage hydropower plant psh should not receive energy.
+
+switching(s).
+
+% define control i1 to 1KW
+c(psh,i1,1).
+
+% define control i2 to 2KW
+c(psh,i2,2).
+
+% define control i3 to 3KW
+c(psh,i3,3).
+
+% define control i4 to 2
+c(psh,i4,2).
+
+% define control i5 to 5KW
+c(psh,i5,5).
+
+% define control i6 to 10KW
+c(psh,i6,10).
+
+% test definition.
+% expecting i1 to be 1
+expect_c(psh,i1,1).
+
+% expecting i2 to be 2
+expect_c(psh,i2,2).
+
+% expecting i3 to be 3
+expect_c(psh,i3,3).
+
+% expecting i4 to be 2
+expect_c(psh,i4,2).
+
+% expecting i5 to be 5
+expect_c(psh,i5,5).
+
+% expecting i6 to be 10
+expect_c(psh,i6,10).
+
+% and therefore we shall charge with 5KW
+expect_p(psh,o1,5).
+
+% and return 5KW
+expect_p(psh,o2,5).
+
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..69822f0e24af42bdf6ece078951256b6e015d7d7 100644 (file)
@@ -0,0 +1,49 @@
+% testing a switching centerk
+% system charge mode over MAX
+% In case i4 = 0, the system is inactive and the incoming energy i6 is redirected to o2. Furthermore, o1 = 0 as the pumped-storage hydropower plant psh should not receive energy.
+
+switching(s).
+
+% define control i1 to 1KW
+c(psh,i1,1).
+
+% define control i2 to 2KW
+c(psh,i2,2).
+
+% define control i3 to 3KW
+c(psh,i3,3).
+
+% define control i4 to 2
+c(psh,i4,2).
+
+% define control i5 to 15KW
+c(psh,i5,15).
+
+% define control i6 to 10KW
+c(psh,i6,10).
+
+% test definition.
+% expecting i1 to be 1
+expect_c(psh,i1,1).
+
+% expecting i2 to be 2
+expect_c(psh,i2,2).
+
+% expecting i3 to be 3
+expect_c(psh,i3,3).
+
+% expecting i4 to be 2
+expect_c(psh,i4,2).
+
+% expecting i5 to be 15
+expect_c(psh,i5,15).
+
+% expecting i6 to be 10
+expect_c(psh,i6,10).
+
+% and therefore we shall charge with 10KW
+expect_p(psh,o1,10).
+
+% and return 5KW
+expect_p(psh,o2,0).
+
diff --git a/s.test5.dl b/s.test5.dl
deleted file mode 100644 (file)
index e69de29..0000000