Use LK to Set Wind Resource File

  • pgilman
  • Topic Author
More
17 Mar 2016 10:44 #4169 by pgilman
Use LK to Set Wind Resource File was created by pgilman
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: pgilman
Powered by Kunena Forum