From faee00655552ea97e9532bd5d9f6b6d4034756c3 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 16 Apr 2012 11:11:49 +0100 Subject: [PATCH] BUG: Rotor source - corrected definition of Cl/Cd for series profile --- .../rotorDiskSource/profileModel/series/seriesProfile.C | 4 ++-- .../rotorDiskSource/profileModel/series/seriesProfile.H | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.C b/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.C index 865ed3ab62..fb69507825 100644 --- a/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.C +++ b/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -48,7 +48,7 @@ Foam::scalar Foam::seriesProfile::evaluate forAll(values, i) { - result += values[i]*cos((i+1)*xIn); + result += values[i]*sin((i + 1)*xIn); } return result; diff --git a/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.H b/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.H index 73b474aae1..7c4793e28e 100644 --- a/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.H +++ b/src/fieldSources/basicSource/rotorDiskSource/profileModel/series/seriesProfile.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -28,8 +28,8 @@ Description Series-up based profile data - drag and lift coefficients computed as sum of cosine series - Cd = sum_i(CdCoeff)*cos(i*AOA) - Cl = sum_i(ClCoeff)*cos(i*AOA) + Cd = sum_i(CdCoeff)*sin(i*AOA) + Cl = sum_i(ClCoeff)*sin(i*AOA) where: AOA = angle of attack [deg] converted to [rad] internally