CSP generic with Python 3

  • gorman_will
  • Topic Author
More
29 Jan 2020 01:19 #7911 by gorman_will
CSP generic with Python 3 was created by gorman_will
I am trying to run a loop of CSP plants using SDK and python.  I have generated the code via SAM, and believe I have set up the model correctly (i.e. don't get an error when running "mod = ssc.module_create(b'tcsgeneric_solar')" and "ssc.module_exec(mod, dat)"

However, I can't appear to extract an hourly profile from my results.  I am using the same command I use when running the pvwatts model: np.array(ssc.data_get_array(dat, b'gen'))

But nothing appears to be in that array.  Is there a different command to get the hourly AC electricity output from the CSP module?

Thank you for any help!!

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
03 Feb 2020 22:36 - 03 Feb 2020 22:38 #7930 by Paul Gilman
Replied by Paul Gilman on topic CSP generic with Python 3
Hi Will,

The variable name for the time series output of the system is "gen", so I would expect your method to work.

If everything is set up correctly, you should see reasonable values for the variables "annual_energy" and "capacity_factor".

Also, PySAM might be helpful if you are using Python to interact with SSC:

sam.nrel.gov/software-development-kit-sdk/pysam.html

Best regards,
Paul.
Last edit: 03 Feb 2020 22:38 by Paul Gilman.

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum