Skip to content

Commit

Permalink
Improving indexing of solar weather file based on dt in input .yaml f…
Browse files Browse the repository at this point in the history
…ile (#111)

* created dummy example for amr wind dummy + solar

* final commit before creating feature branch

* preparing inputs for running hercules using ARM solar data

* running OK ARM solar data

* running hercules using solar data from ARM in OK

* minor cleanup

* improving how solar pysim grabs data from solar weather file based on simulation time

* removing unnecessary files

* minor cleanup

* more minor cleanup

* cleanup

* ruff fixes

* ruff formatting

* adding input solar data

* adding verbose flag to turn on and off debugging print statements
  • Loading branch information
brookeslawski authored Aug 31, 2024
1 parent 446ca31 commit ec97c75
Show file tree
Hide file tree
Showing 9 changed files with 124,322 additions and 187 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ helics_broker -t zmq -f 2 --loglevel="debug" --local_port=$HELICS_PORT &
# Start the controller center and pass in input file
echo "Starting hercules"
# python3 hercules_runscript.py hercules_input_000.yaml >> outputs/loghercules.log 2>&1 &
python3 hercules_runscript.py hercules_controller_input_000.yaml >> outputs/loghercules.log 2>&1 &
# python3 hercules_runscript.py hercules_controller_input_000.yaml >> outputs/loghercules.log 2>&1 &
# python3 hercules_runscript.py hercules_input_OK_ARM.yaml >> outputs/loghercules.log 2>&1 &
python3 hercules_runscript.py hercules_input_Flatirons.yaml >> outputs/loghercules.log 2>&1 &

# Start the floris standin
echo "Starting floris"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Input YAML for emy_python

# Name
name: Flatirons_site

###
# Describe this emulator setup
description: Floris and Solar PV

dt: 1.0 #0.5 [s] # must be equal to (or a multiple of) temporal resolution of input solar data

hercules_comms:

amr_wind:

wind_farm_0:
type: amr_wind_local #options are amr_wind or amr_wind_local
amr_wind_input_file: amr_input.inp

helics:

config:
name: hercules # What is the purpose of this name
use_dash_frontend: False
KAFKA: False
KAFKA_topics: EMUV1py
helics:
# deltat: 1 # This will be assigned in software
subscription_topics: [status]
publication_topics: [control]
endpoints: []
helicsport: 32000
publication_interval: 1
endpoint_interval: 1
starttime: 0
stoptime: 6 # 100
Agent: ControlCenter

py_sims:

solar_farm_0: # The name of py_sim object 1

py_sim_type: SolarPySAM
verbose: True # flag to print debugging statements
weather_file_name: Flatirons_solar_data_precursor-tztest.csv
system_info_file_name: 100MW_1axis_pvsamv1.json
lat: 39.7442
lon: -105.1778
elev: 1829

# capacity: 100 # MW

initial_conditions:

power: 25 # MW
dni: 1000

controller:







Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Input YAML for emy_python

# Name
name: OK_ARM_precursor

###
# Describe this emulator setup
description: Floris and Solar PV

dt: 60.0 # 1.0 #0.5

hercules_comms:

amr_wind:

wind_farm_0:
type: amr_wind_local #options are amr_wind or amr_wind_local
amr_wind_input_file: amr_input.inp

helics:

config:
name: hercules # What is the purpose of this name
use_dash_frontend: False
KAFKA: False
KAFKA_topics: EMUV1py
helics:
# deltat: 1 # This will be assigned in software
subscription_topics: [status]
publication_topics: [control]
endpoints: []
helicsport: 32000
publication_interval: 1
endpoint_interval: 1
starttime: 0
stoptime: 300 # 26000 # 100
Agent: ControlCenter

py_sims:

solar_farm_0: # The name of py_sim object 1

py_sim_type: SolarPySAM
verbose: True # flag to print debugging statements
weather_file_name: ARM_solar_data_precursor.csv
system_info_file_name: 100MW_1axis_pvsamv1.json
lat: 36.605
lon: -97.485
elev: 318.0

# capacity: 100 # MW

initial_conditions:

power: 25 # MW
dni: 1000

controller:







Loading

0 comments on commit ec97c75

Please sign in to comment.