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.
Signed-off-by: David P. Chassin <dchassin@slac.stanford.edu> Signed-off-by: David P. Chassin <david.chassin@me.com> Signed-off-by: David P. Chassin <dchassin@slac.stanford.edu>
- Loading branch information
David P. Chassin
committed
Jun 6, 2024
1 parent
82f9506
commit 700a998
Showing
16 changed files
with
2,193 additions
and
69 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[[/Module/Pypower/Weather]] -- PyPower weather object | ||
|
||
# Synopsis | ||
|
||
~~~ | ||
class weather { | ||
char1024 file; // Source object for weather data | ||
char1024 variables; // Weather variable column names (col1,col2,...) | ||
double resolution[s]; // Weather time downsampling resolution (s) | ||
double Sn[W/m^2]; // Solar direct normal irradiance (W/m^2) | ||
double Sh[W/m^2]; // Solar horizontal irradiance (W/m^2) | ||
double Sg[W/m^2]; // Solar global irradiance (W/m^2) | ||
double Wd[deg]; // Wind direction (deg) | ||
double Ws[m/2]; // Wind speed (m/2) | ||
double Td[degC]; // Dry-bulb air temperature (degC) | ||
double Tw[degC]; // Wet-bulb air temperature (degC) | ||
double RH[%]; // Relative humidity (%) | ||
double PW[in]; // Precipitable_water (in) | ||
double HI[degF]; // Heat index (degF) | ||
} | ||
~~~ | ||
|
||
# Description | ||
|
||
The `weather` object reads data from a weather CSV file. The columns | ||
in the CSV file are mapped according to the `variables` property. | ||
|
||
The `bus` object includes the `weather` file properties, which allows | ||
individual busses to read weather data directly. | ||
|
||
# Example | ||
|
||
The following example reads weather data in bus 1 of the IEEE 14 bus model. | ||
|
||
~~~ | ||
module pypower | ||
{ | ||
solver_method NR; | ||
} | ||
#input "case14.py" -t pypower | ||
modify pp_bus_1.weather_file ${DIR:-.}/case14_bus1_weather.csv; | ||
modify pp_bus_1.weather_variables Sh,Sn,Sg,Wd,Ws,Td,Tw,RH,PW; | ||
~~~ | ||
|
||
# See also | ||
|
||
- [[/Module/Pypower]] |
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,35 @@ | ||
#define CASE=14 | ||
#ifexists "../case.glm" | ||
#define DIR=.. | ||
#endif | ||
|
||
//#option debug | ||
|
||
module pypower | ||
{ | ||
#ifdef DIR | ||
controllers_path "${DIR}"; | ||
#endif | ||
controllers "controllers"; | ||
} | ||
|
||
module tape | ||
{ | ||
csv_header_type NAME; | ||
} | ||
object pypower.powerplant | ||
{ | ||
parent pp_bus_2; | ||
status ONLINE; | ||
controller "storage_control"; | ||
charging_capacity 15 kW; | ||
storage_capacity 10 MWh; | ||
storage_efficiency 0.95; | ||
object recorder | ||
{ | ||
file "${modelname/.glm/_record.csv}"; | ||
property S,state_of_charge; | ||
}; | ||
} | ||
|
||
#include "${DIR:-.}/case.glm" |
Oops, something went wrong.