Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PySAM to v6.0.0 #139

Open
wants to merge 29 commits into
base: develop
Choose a base branch
from

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)

@@ -22,6 +22,7 @@ else
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

@@ -42,7 +42,7 @@ py_sims:

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.

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.

1 participant