SNL-WaterPower / WecOptTool-MATLAB

WEC Design Optimization Toolbox
GNU General Public License v3.0
12 stars 9 forks source link

random phasings 0:2pi #200

Closed ryancoe closed 3 years ago

ryancoe commented 3 years ago

We currently create random phasing as ph = rand(..), which will range 0:1, should be 0:2*pi.

Examples of problem in WaveBot, also need to fix in RM3

https://github.com/SNL-WaterPower/WecOptTool/blob/be7f353ab79bfc7bfe58a62d1692d1caf145b58d/examples/WaveBot/simulateDevice.m#L86

https://github.com/SNL-WaterPower/WecOptTool/blob/be7f353ab79bfc7bfe58a62d1692d1caf145b58d/examples/WaveBot/simulateDevice.m#L229