Multiple Locations simulation

  • gabriellundquist
  • Topic Author
More
08 Mar 2018 13:32 #6104 by gabriellundquist
Multiple Locations simulation was created by gabriellundquist
Hi!

I'm new to SAM and I've been having some problems. I would like to do one simulation with multiple locations and then compare the results. Is this possible without downloading the data separately and adjusting the code?

Thank you!

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

  • ozsolarwind
More
11 Mar 2018 15:04 #6105 by ozsolarwind
Replied by ozsolarwind on topic Multiple Locations simulation
Gabriel

You will probably have to save the data separately and then do a comparison of the outputs. With SAM's option to generate code in multiple (programming) languages it should be fairly easy to generate multiple simulations in your language of choice as you should only need to change the variable for the weather file to point to files for your multiple locations. For example, for 'pvwattsv5 the variable is 'solar_resource_file'.

Kind regards

Angus

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

  • pgilman
More
12 Mar 2018 15:18 - 16 Sep 2020 22:34 #6106 by pgilman
Replied by pgilman on topic Multiple Locations simulation
Dear Gabriel,

You could also use SAM's LK script to run simulations for different weather files. See the Samples page for script examples, for example the solar-resource-simulate-multiple-files.lk script:

github.com/NREL/SAM/tree/develop/samples/LK%20Scripts%20for%20SAM

and this webinar recording for a general overview:

sam.nrel.gov/lk-script.html

Best regards,
Paul.
Last edit: 16 Sep 2020 22:34 by pgilman.

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

  • Kayaalp
More
16 Sep 2020 12:03 #8740 by Kayaalp
Replied by Kayaalp on topic Multiple Locations simulation
Dear Gilman,

Could you share the script examples to do one simulation with multiple locations again?

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

  • pgilman
More
16 Sep 2020 22:33 #8744 by pgilman
Replied by pgilman on topic Multiple Locations simulation
Hi Umut Ece,

I updated the links in my reply above.

Best regards,
Paul.

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

  • galla1ab
More
12 Apr 2022 13:25 #10832 by galla1ab
Replied by galla1ab on topic Multiple Locations simulation
Hello, 

I have been trying to follow this thread as I am looking to model PV output at multiple locations in Connecticut. To test, I downloaded a couple locations using the SAM GUI by importing my csv of lat and long locations, see the table below. 
IDLocations
141.9483525592,-72.4749881923
241.9543929336999,-72.4275463887999
341.9539173455999,-72.4176691961999
After downloading the weather data and saving it in a folder, I implemented the  solar-resource-simulate-multiple-files.lk  script. The issue comes when running the script, after selecting the folder that my weather data is saved in the script runs but all attempts fail. When looking at the output the path name is inconsistent (e.g., C:\SAM\weather_Files/"my downloaded file".csv I think the issue is in the slashes between the folders. I am curious if there is something I am doing wrong or if I need different settings on my computer to interact with SAM LK. 

Thank you in advance for your help. 

Adam  

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

Moderators: pgilman
Powered by Kunena Forum