NREL / SOWFA

Other
130 stars 113 forks source link

Interpolation error while calculating blade forces #96

Closed hcOnel closed 1 year ago

hcOnel commented 1 year ago

Hi, I'm getting an interpolation error while calculating the blade forces using the actuator disk model. After tinkering with almost all turbine settings, I've discovered that it happens under some specific circumstances:

The error is gone if I change the pitch value even a bit (say, 7.5 or 11.5). The generator and pitch control are off. The turbine I'm using is a down-scaled version of NREL 5MW with the given data (lift and drag coefficients range from -180 to 180 deg). I make sure that the turbine is facing toward the wind.

Your educated guess about the root of the problem would help me narrow down my search in the code.

Regards

hcOnel commented 1 year ago

After debugging each actuator point one by one, I've found that the problem arises from the alpha, cl, cd tabular data of an airfoil, where there are multiple entries for the same angle of attack:

https://github.com/NREL/SOWFA/blob/103832ebbae07b62220858a1e3da4b5e7d6375bd/exampleCases/example.uniform.inflow.ADM/constant/airfoilProperties/DU25_A17#L62-L63

Fixing it in the example cases might help the future users.

ewquon commented 1 year ago

Thanks for tracking this down, this has been corrected with https://github.com/NREL/SOWFA/commit/fb795959eb38176438e80e45378d1d80338bfa84. In the future, please feel free to submit a pull request as we generally do not have the resources to support this code.