From a61f07451faa306a231a27c9904f0b967920dbe4 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 22 Dec 2014 19:54:58 +0000 Subject: [PATCH] rotorDiskSource: Corrected coordinate transformations Now the rotor axis may be specified in other than the z-direction Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1290 --- .../derived/rotorDiskSource/rotorDiskSource.C | 42 +++++++++---------- .../rotorDiskSourceTemplates.C | 32 +++++++------- .../coordinateRotation/axesRotation.C | 8 ++-- .../coordinateRotation/axesRotation.H | 7 ++-- 4 files changed, 46 insertions(+), 43 deletions(-) diff --git a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C index 433407c84..f30f88cfd 100644 --- a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C +++ b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C @@ -69,14 +69,14 @@ namespace Foam void Foam::fv::rotorDiskSource::checkData() { - // set inflow type + // Set inflow type switch (selectionMode()) { case smCellSet: case smCellZone: case smAll: { - // set the profile ID for each blade section + // Set the profile ID for each blade section profiles_.connectBlades(blade_.profileName(), blade_.profileID()); switch (inletFlow_) { @@ -96,7 +96,7 @@ void Foam::fv::rotorDiskSource::checkData() } case ifLocal: { - // do nothing + // Do nothing break; } default: @@ -137,7 +137,7 @@ void Foam::fv::rotorDiskSource::setFaceArea(vector& axis, const bool correct) vector n = vector::zero; - // calculate cell addressing for selected cells + // Calculate cell addressing for selected cells labelList cellAddr(mesh_.nCells(), -1); UIndirectList