Skip to content

Commit dfe7b86

Browse files
author
Henry Weller
committed
rotorDiskSource: Added output of rotor power
Patch contributed by Robert Lee Resolves patch request https://bugs.openfoam.org/view.php?id=3262
1 parent 47d2e03 commit dfe7b86

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
========= |
33
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
44
\\ / O peration | Website: https://openfoam.org
5-
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
5+
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
66
\\/ M anipulation |
77
-------------------------------------------------------------------------------
88
License
@@ -384,7 +384,7 @@ void Foam::fv::rotorDiskSource::createCoordinateSystem()
384384

385385
const scalar sumArea = gSum(area_);
386386
const scalar diameter = Foam::sqrt(4.0*sumArea/mathematical::pi);
387-
Info<< " Rotor gometry:" << nl
387+
Info<< " Rotor geometry:" << nl
388388
<< " - disk diameter = " << diameter << nl
389389
<< " - disk area = " << sumArea << nl
390390
<< " - origin = " << coordSys_.origin() << nl

src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSourceTemplates.C

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
========= |
33
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
44
\\ / O peration | Website: https://openfoam.org
5-
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
5+
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
66
\\/ M anipulation |
77
-------------------------------------------------------------------------------
88
License
@@ -49,6 +49,7 @@ void Foam::fv::rotorDiskSource::calculate
4949
scalar liftEff = 0.0;
5050
scalar AOAmin = great;
5151
scalar AOAmax = -great;
52+
scalar powerEff = 0.0;
5253

5354
forAll(cells_, i)
5455
{
@@ -127,6 +128,7 @@ void Foam::fv::rotorDiskSource::calculate
127128
// Accumulate forces
128129
dragEff += rhoRef_*localForce.y();
129130
liftEff += rhoRef_*localForce.z();
131+
powerEff += rhoRef_ * localForce.y() * radius * omega_;
130132

131133
// Transform force from local coning system into rotor cylindrical
132134
localForce = invR_[i] & localForce;
@@ -151,6 +153,7 @@ void Foam::fv::rotorDiskSource::calculate
151153
Info<< type() << " output:" << nl
152154
<< " min/max(AOA) = " << radToDeg(AOAmin) << ", "
153155
<< radToDeg(AOAmax) << nl
156+
<< " Effective power = " << powerEff << nl
154157
<< " Effective drag = " << dragEff << nl
155158
<< " Effective lift = " << liftEff << endl;
156159
}

0 commit comments

Comments
 (0)