#1 2017-02-03 12:50:23

marx.nicolas
Member
Registered: 2017-02-03
Posts: 4

WAsP script library?

Hi,

I have a 17 exactly defined positions project. I aim to pick the best combination of 6 out of them. I would like to script a process to evaluate all possible combinations (12376). Is that possible? Is there some API in WAsP? Where can I found some library?

Thanks in advance!

Offline

#2 2017-02-07 10:29:58

Duncan
WAsP team
From: Europe
Registered: 2009-05-14
Posts: 286

Re: WAsP script library?

That sounds like an interesting task. It's possible to do it from an internal script, but could be a little bit clumsy.

By 'internal script', I mean a script file which you launch from the menu inside WAsP when a workspace is already open. The alternative is to perform the calculation using the WAsP automation API, but that requires a more expensive 'developer' licence.

If I was writing this script, I would probably start by making an Excel sheet with lists all the combinations of site locations (6*x,y over 12 columns, one combination per row). Then I'd create the workspace with the 6 turbine sites arbitrarily located. The script would open the Excel sheet and work through row by row: assigning the locations to the six sites and then calculating the new AEP for the farm and writing that back to the Excel sheet in the 13th column, for example.

HTH, Duncan.

Offline

#3 2017-02-07 10:47:03

marx.nicolas
Member
Registered: 2017-02-03
Posts: 4

Re: WAsP script library?

Thank you for your support. I'll try this approach. Best regards!

Offline

Board footer

Powered by FluxBB

[ Generated in 0.008 seconds, 10 queries executed - Memory usage: 516.95 KiB (Peak: 519.04 KiB) ]