diff --git a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C index f565a397..b568b6b8 100644 --- a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C +++ b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C @@ -566,6 +566,14 @@ void Foam::fv::rotorDiskSource::calculate // effective angle of attack scalar alphaEff = alphaGeom - atan2(-Uc.z(), Uc.y()); + if (alphaEff > mathematical::pi) + { + alphaEff -= mathematical::twoPi; + } + if (alphaEff < -mathematical::pi) + { + alphaEff += mathematical::twoPi; + } AOAmin = min(AOAmin, alphaEff); AOAmax = max(AOAmax, alphaEff);