Enhance SAM with features tailored to your specific needs! We collaborate with companies, universities, and organizations to privately fund new capabilities or analyses. Your investment drives innovation while benefiting the broader energy community. Email us to learn more.

Use LK to Set Wind Resource File

  • Paul Gilman
  • Topic Author
More
17 Mar 2016 10:44 #4169 by Paul Gilman
Use LK to Set Wind Resource File was created by Paul Gilman
How do I use LK to choose a wind resource file for the Wind model?
Use the variable
Code:
use_specific_wf_wind
to tell SAM to use a wind resource file on disk instead of one from the wind resource library. This is equivalent to the "Use a wind resource file stored on your computer" check box at the bottom of SAM's Wind Resource input page.
Use
Code:
user_specified_wf_wind
to store the full path and name of the wind resource file.
Here's an example:
Code:
// Checkbox at bottom of Wind Resource page<br /> set('use_specific_wf_wind',1);<br /> <br /> // Choose an SRW file<br /> file = choose_file(homedir(),'Choose SRW File','SRW Files (*.srw)|*.srw',0,0);<br /> <br /> // Set the user-specified file on the Wind Resource page<br /> set('user_specified_wf_wind',file);

Best regards

Paul.

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

Moderators: Paul Gilman
Powered by Kunena Forum