Skip to content

Commit

Permalink
fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
BotrosHanna-INL committed Aug 23, 2022
1 parent ecd798d commit e56e316
Showing 1 changed file with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
This test demonstrated converting the HERON optimized components' variables (optimized dispatch) to a text file that is compatible with HYBRID via two steps:
This test demonstrates converting the HERON optimized components' variables (optimized dispatch) to a text file that is compatible with HYBRID via two steps:



Step #0: Producing the HERON optimized dispatches
In this step, the HERON optimized dispatches are creates similar to creating the dispatches CSV file in the folder: /HERON/tests/integration_tests/mechanics/debug_mode. You can create the dispactes CSV file running the commands such as:
In this step, the HERON optimized dispatches are created like creating the dispatches CSV file in the folder: /HERON/tests/integration_tests/mechanics/debug_mode. You can create the dispatches CSV file running the commands such as:
~/projects/HERON/heron heron_input.xml
~/projects/raven/raven_framework outer.xml



Step #1: "create_user_input.py"
This script is run to create a user-input file for the HYBRID user.
It is an initial step that the HYBRID user needs to create new names, if necessary, to: 1- The optimized dispatch outputs, 2- The components' capacities.
This script extracts the optimized dispatch outputs from the dispatch prints csv file and the list of components (and their capacities) from the HERON input XML file.
It is an initial step that the HYBRID user needs to rename, if necessary, the optimized dispatch outputs and the components' capacities.
This script extracts the optimized dispatch outputs from the dispatch prints CSV file and the list of components' capacities from the HERON input XML file.

It takes the following arguments:
This script takes the following arguments:
1- The HERON input XML file
2- The optimized dispatch outputs csv file.
For example, To run the script, use the following command:
2- The optimized dispatch outputs CSV file.
For example, to run the script, use the following command:
python create_user_input.py heron_input.xml Debug_Run_o/dispatch_print.csv
The output will be a user input file: "user_input.txt".
The user needs to review the user input file and change/review the HYRBID variables and capacities there.
The output will be a user input file: "user_input.txt"
The user needs to review the user input file and change/review the HYBRID variables and capacities there.

Next, the user can run the "export2Hybrid.py" which loads the dispatch outpus from HERON to a new file that HYBRID can use. The variables names in the autoloaded HYBRID file are borrowd from "user_input.txt"
Next, the user can run the "export2Hybrid.py" which loads the dispatch outputs from HERON to a new file that HYBRID can use. The variables' names in the autoloaded HYBRID file are borrowed from "user_input.txt"



Step #2: "export2Hybrid.py"
A script to convert the HERON optimized components' variables (optimized dispatch) to a text file that is compatible with HYBRID.
A script to convert the HERON optimized components' variables (optimized dispatch) to a text file compatible with HYBRID.

The user-input file, "user_input.txt", must be in the same folder.
The user-input file "user_input.txt" must be in the same folder.
The user must review/modify the "user_input.txt" before running this script.

This script is run with the following arguments:
1- The HERON input XML file.
2- The optimized dispatch outputs CSV file.
For example, to run this script, use the following command:
python export2Hybrid.py heron_input.xml Debug_Run_o/dispatch_print.csv
The output will be a text file compatible with HYBRID: "hybrid_input.txt."
The output will be a text file compatible with HYBRID: "hybrid_compatible_dispatch.txt


For more details, the HERON User Manual, Sec. 7.2: Auto-loading the optimized dispatches from HERON to HYBRID

0 comments on commit e56e316

Please sign in to comment.