- Posts: 2
Results from non-annual simulations
- Shira
- Topic Author
Less
More
28 Nov 2022 02:15 #11725
by Shira
Results from non-annual simulations was created by Shira
I am trying to run a simulation using PySam with non-annual weather data (one day). I provided the meteo data by creating a dictionary (meteo_dict) and attempting to assign this dictionary to the solar resource group in two ways:
1. pv_daily_model.SolarResource.assign(meteo_dict)
2. pv_daily_model.SolarResource.solar_resource_data = meteo_dict
I then executed the model with pv_daily_model.execute()
The first method results in an exception, even though the dictionary includes all the data that is claimed to be missing:
Exception: pvsamv1 execution error. missing irradiance: could not find gh, dn, df, or poa
exec fail(pvsamv1): subhourly and non-annual weather files must specify the minute for each record
The second method runs without exception, but I can't understand if it actually ran the model or how to see results for this one day. Assuming it worked, I now want to access the results of the model from the non-annual period. How do I do that?
Thank you for your assistance.
1. pv_daily_model.SolarResource.assign(meteo_dict)
2. pv_daily_model.SolarResource.solar_resource_data = meteo_dict
I then executed the model with pv_daily_model.execute()
The first method results in an exception, even though the dictionary includes all the data that is claimed to be missing:
Exception: pvsamv1 execution error. missing irradiance: could not find gh, dn, df, or poa
exec fail(pvsamv1): subhourly and non-annual weather files must specify the minute for each record
The second method runs without exception, but I can't understand if it actually ran the model or how to see results for this one day. Assuming it worked, I now want to access the results of the model from the non-annual period. How do I do that?
Thank you for your assistance.
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
28 Nov 2022 12:19 #11736
by pgilman
Replied by pgilman on topic Results from non-annual simulations
Hi Shira,
Please see this example, and let me know if it helps you solve this problem. It uses Pvwattsv7 instead of Pvsamv1, but the technique should be the same for both compute modules:
github.com/NREL/pysam/blob/master/Examples/NonAnnualSimulation.ipynb
For other PySAM examples, see:
github.com/NREL/pysam/tree/master/Examples
Best regards,
Paul.
Please see this example, and let me know if it helps you solve this problem. It uses Pvwattsv7 instead of Pvsamv1, but the technique should be the same for both compute modules:
github.com/NREL/pysam/blob/master/Examples/NonAnnualSimulation.ipynb
For other PySAM examples, see:
github.com/NREL/pysam/tree/master/Examples
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- Shira
- Topic Author
Less
More
- Posts: 2
01 Dec 2022 02:21 #11748
by Shira
Replied by Shira on topic Results from non-annual simulations
Thank you for providing these examples. The issue I'm facing is that I don't know how to see the results/outputs of the model. With an annual model I would want to check the following outputs for example:
These are the keys in the output dictionary after executing the model:
dict_keys()
- annual_poa_nom
- annual_dc_nominal
- annual_energy
These are the keys in the output dictionary after executing the model:
dict_keys()
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
01 Dec 2022 15:43 #11753
by pgilman
Replied by pgilman on topic Results from non-annual simulations
Hi Shira,
The Pvsamv1 module documentation is here: nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html
Some of the outputs you may be interested are documented here:
nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html#PySAM.Pvsamv1.Pvsamv1.Outputs.poa_nom
nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html#PySAM.Pvsamv1.Pvsamv1.Outputs.dc_net
nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html#PySAM.Pvsamv1.Pvsamv1.Outputs.ac_gross
nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html#PySAM.Pvsamv1.Pvsamv1.Outputs.gen
Best regards,
Paul.
The Pvsamv1 module documentation is here: nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html
Some of the outputs you may be interested are documented here:
nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html#PySAM.Pvsamv1.Pvsamv1.Outputs.poa_nom
nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html#PySAM.Pvsamv1.Pvsamv1.Outputs.dc_net
nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html#PySAM.Pvsamv1.Pvsamv1.Outputs.ac_gross
nrel-pysam.readthedocs.io/en/master/modules/Pvsamv1.html#PySAM.Pvsamv1.Pvsamv1.Outputs.gen
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman