From ed1d7f067ab727ca8ce68311aa6119afa7b5ae1d Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 9 May 2012 10:19:30 +0100 Subject: [PATCH] ENH: Updated definition of series profie for rotorDiskSource --- .../rotorDiskSource/profileModel/series/seriesProfile.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.C b/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.C index 77dad6d371..5c8a20c108 100644 --- a/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.C +++ b/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.C @@ -48,7 +48,7 @@ Foam::scalar Foam::seriesProfile::evaluateDrag forAll(values, i) { - result += values[i]*cos((i + 1)*xIn); + result += values[i]*cos(i*xIn); } return result; @@ -65,7 +65,9 @@ Foam::scalar Foam::seriesProfile::evaluateLift forAll(values, i) { - result += values[i]*sin((i + 1)*xIn); + // note: first contribution always zero since sin(0) = 0, but + // keep zero base to be consitent with drag coeffs + result += values[i]*sin(i*xIn); } return result;