Skip to content

Conversation

@brookeslawski
Copy link
Collaborator

@brookeslawski brookeslawski commented Feb 19, 2025

Hercules had previously used PySAM v4.2.0, so this PR upgrades the PySAM version to the latest, which is v6.0.0.

This upgrade involved the following changes:

  • changing the name of two variables that the PySAM model requires as inputs
  • replacing the solar data input file with a modified version of inputs/Flatirons_solar_data_highDNI.csv called inputs/Flatirons_solar_data_sunset.csv, which shows more dynamic fluctuations in the solar farm power output - this is better for testing the solar module
  • updating documentation for installation to refer to v6.0.0
  • updating results in tests to match PySAM v6 values - there was a small change in the temperature model from v5 to v6 that could explain the difference in output power (e.g. 32.19801938915135 vs 32.17650018440107 MW)

echo "Conda installation not found. Please ensure Conda is installed and in your PATH."
exit 1
fi
echo "$CONDA_PATH"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I'm the only one, but HOPP has trouble finding my conda env so I thought this would be nice to add in case others have that issue too. Just helps with debugging

py_sim_type: SolarPySAM
verbose: True # flag to print debugging statements
weather_file_name: inputs/Flatirons_solar_data_highDNI.csv
weather_file_name: inputs/Flatirons_solar_data_sunset.csv # inputs/Flatirons_solar_data_highDNI.csv #
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chopped the solar input file to include the sunset timeframe, which includes variations in irradiance large enough to result in noticeable variations in solar farm output. Previously, the highDNI input data just showed a constant solar farm power output because the irradiance was so high.

@genevievestarke genevievestarke merged commit 1a69dbc into NatLabRockies:develop Mar 7, 2025
3 checks passed
misi9170 pushed a commit to misi9170/hercules that referenced this pull request Mar 10, 2025
* preparing inputs for running hercules using ARM solar data

* running OK ARM solar data

* running hercules using solar data from ARM in OK

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

* adding input solar data

* adding verbose flag to turn on and off debugging print statements

* trying to run with new json file to prep for varying system size

* adding more weather input files

* adding files for testing and to find my mamba env

* updating installation instructions

* updating HPC installation instructions

* updating desired value in test to match PySAM v6 output

* Update toml file with new pysam version

---------

Co-authored-by: Genevieve Starke <genevieve.starke@nrel.gov>
@genevievestarke genevievestarke mentioned this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants