generated from arras-energy/gridlabd-old
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add weather loader for pypower module (#188)
Signed-off-by: David P. Chassin <dchassin@slac.stanford.edu> Signed-off-by: Alyona Teyber <Ivanova.alyona5@gmail.com> Co-authored-by: Alyona Teyber <Ivanova.alyona5@gmail.com>
- Loading branch information
Showing
17 changed files
with
535,251 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
module pypower | ||
{ | ||
maximum_timestep 3600; | ||
save_case TRUE; | ||
} | ||
|
||
object pypower.load | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
module pypower | ||
{ | ||
maximum_timestep 3600; | ||
save_case TRUE; | ||
} | ||
|
||
object powerline | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,5 @@ | |
|
||
module pypower | ||
{ | ||
solver_method GS; | ||
maximum_timestep 3600; | ||
} |
525,889 changes: 525,889 additions & 0 deletions
525,889
module/pypower/autotest/test_case14_weather.csv
Large diffs are not rendered by default.
Oops, something went wrong.
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,39 @@ | ||
#define CASE=14 | ||
#ifexists "../case.glm" | ||
#define DIR=.. | ||
#endif | ||
#include "${DIR:-.}/case.glm" | ||
|
||
module pypower | ||
{ | ||
solver_method NR; | ||
} | ||
|
||
modify pp_bus_1.weather_file ${DIR:-.}/test_case14_weather.csv; | ||
modify pp_bus_1.weather_variables Sh,Sn,Sg,Wd,Ws,Td,Tw,RH,PW; | ||
|
||
module tape | ||
{ | ||
csv_header_type NAME; | ||
} | ||
|
||
object recorder | ||
{ | ||
parent pp_bus_1; | ||
property Sh,Sn,Sg,Wd,Ws,Td,Tw,RH,PW; | ||
file "test_case14_weather_pp_bus_1_record.csv"; | ||
interval 3600; | ||
} | ||
|
||
#set suppress_repeat_messages=FALSE | ||
|
||
clock | ||
{ | ||
timezone "PST+8PDT"; | ||
starttime "2020-01-01 00:00:00 PST"; | ||
stoptime "2021-01-01 00:00:00 PST"; | ||
} | ||
|
||
#ifexists ../case.glm | ||
#on_exit 0 diff ../test_case14_weather_pp_bus_1_record.csv test_case14_weather_pp_bus_1_record.csv > gridlabd.diff | ||
#endif |
8,785 changes: 8,785 additions & 0 deletions
8,785
module/pypower/autotest/test_case14_weather_pp_bus_1_record.csv
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.