diff --git a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C index c638d06ad45623b607e42f976a6c597b4a8f7b04..73e11394e7675d9cfa4200ba46527b95dbd33aa5 100644 --- a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C +++ b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.C @@ -334,9 +334,9 @@ void Foam::fv::rotorDiskSource::createCoordinateSystem() coeffs_.lookup("refDirection") >> refDir; - localAxesRotation_.reset + cylindrical_.reset ( - new localAxesRotation + new cylindrical ( mesh_, axis, @@ -357,9 +357,9 @@ void Foam::fv::rotorDiskSource::createCoordinateSystem() coeffs_.lookup("axis") >> axis; coeffs_.lookup("refDirection") >> refDir; - localAxesRotation_.reset + cylindrical_.reset ( - new localAxesRotation + new cylindrical ( mesh_, axis, @@ -491,7 +491,7 @@ Foam::fv::rotorDiskSource::rotorDiskSource invR_(cells_.size(), I), area_(cells_.size(), 0.0), coordSys_(false), - localAxesRotation_(), + cylindrical_(), rMax_(0.0), trim_(trimModel::New(*this, coeffs_)), blade_(coeffs_.subDict("blade")), diff --git a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.H b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.H index ddd4c6cae9bc3ef1758d43b42ebf27057b6c42ce..f94a463eb7f0a8f50f2dbd8445d244228feb421e 100644 --- a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.H +++ b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSource.H @@ -103,7 +103,7 @@ SourceFiles #include "cellSetOption.H" #include "cylindricalCS.H" -#include "localAxesRotation.H" +#include "cylindrical.H" #include "NamedEnum.H" #include "bladeModel.H" #include "profileModelList.H" @@ -201,7 +201,7 @@ protected: cylindricalCS coordSys_; //- Rotor transformation co-ordinate system - autoPtr<localAxesRotation> localAxesRotation_; + autoPtr<cylindrical> cylindrical_; //- Maximum radius scalar rMax_; diff --git a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSourceTemplates.C b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSourceTemplates.C index 83a29e2248d4b6da54a0b9b508e1988b929fe1ae..a0664e696d668505e457037c78fddddbb797d1f2 100644 --- a/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSourceTemplates.C +++ b/src/fvOptions/sources/derived/rotorDiskSource/rotorDiskSourceTemplates.C @@ -59,7 +59,7 @@ void Foam::fv::rotorDiskSource::calculate const scalar radius = x_[i].x(); // Transform velocity into local cylindrical reference frame - vector Uc = localAxesRotation_->invTransform(U[cellI], i); + vector Uc = cylindrical_->invTransform(U[cellI], i); // Transform velocity into local coning system Uc = R_[i] & Uc; @@ -132,7 +132,7 @@ void Foam::fv::rotorDiskSource::calculate localForce = invR_[i] & localForce; // Transform force into global Cartesian co-ordinate system - force[cellI] = localAxesRotation_->transform(localForce, i); + force[cellI] = cylindrical_->transform(localForce, i); if (divideVolume) { diff --git a/src/meshTools/Make/files b/src/meshTools/Make/files index d70492950392f7350c64b3ac14f9a45ccafefe44..0c1b794f7c6d45d76d37d2448d8cc5b8e6725278 100644 --- a/src/meshTools/Make/files +++ b/src/meshTools/Make/files @@ -20,7 +20,7 @@ $(csys)/coordinateRotation/coordinateRotation.C $(csys)/coordinateRotation/coordinateRotationNew.C $(csys)/coordinateRotation/EulerCoordinateRotation.C $(csys)/coordinateRotation/STARCDCoordinateRotation.C -$(csys)/coordinateRotation/localAxesRotation.C +$(csys)/coordinateRotation/cylindrical.C edgeFaceCirculator/edgeFaceCirculator.C diff --git a/src/meshTools/coordinateSystems/coordinateRotation/coordinateRotation.H b/src/meshTools/coordinateSystems/coordinateRotation/coordinateRotation.H index 0e90d7aa8f1b4e6220f186a481de8e9994e2a8b5..ae37a3764f3a1fdc8f57f5cdef34f2d7d3755fe4 100644 --- a/src/meshTools/coordinateSystems/coordinateRotation/coordinateRotation.H +++ b/src/meshTools/coordinateSystems/coordinateRotation/coordinateRotation.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -39,7 +39,7 @@ Description Types of coordinateRotation: 1) axesRotation 2) STARCDRotation - 3) localAxesRotation + 3) cylindrical 4) EulerCoordinateRotation diff --git a/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C b/src/meshTools/coordinateSystems/coordinateRotation/cylindrical.C similarity index 75% rename from src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C rename to src/meshTools/coordinateSystems/coordinateRotation/cylindrical.C index 53c18f9fb941cfc2fa3bfef60e549b767d1498a0..8d0c85568c25d79fb0f481f0e7518692383ef505 100644 --- a/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.C +++ b/src/meshTools/coordinateSystems/coordinateRotation/cylindrical.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -23,7 +23,7 @@ License \*---------------------------------------------------------------------------*/ -#include "localAxesRotation.H" +#include "cylindrical.H" #include "axesRotation.H" #include "addToRunTimeSelectionTable.H" #include "polyMesh.H" @@ -33,17 +33,17 @@ License namespace Foam { - defineTypeNameAndDebug(localAxesRotation, 0); + defineTypeNameAndDebug(cylindrical, 0); addToRunTimeSelectionTable ( coordinateRotation, - localAxesRotation, + cylindrical, dictionary ); addToRunTimeSelectionTable ( coordinateRotation, - localAxesRotation, + cylindrical, objectRegistry ); } @@ -51,7 +51,7 @@ namespace Foam // * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * // -void Foam::localAxesRotation::init +void Foam::cylindrical::init ( const objectRegistry& obr, const List<label>& cells @@ -92,7 +92,7 @@ void Foam::localAxesRotation::init // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::localAxesRotation::localAxesRotation +Foam::cylindrical::cylindrical ( const dictionary& dict, const objectRegistry& obr @@ -115,7 +115,7 @@ Foam::localAxesRotation::localAxesRotation } -Foam::localAxesRotation::localAxesRotation +Foam::cylindrical::cylindrical ( const objectRegistry& obr, const vector& axis, @@ -130,7 +130,7 @@ Foam::localAxesRotation::localAxesRotation } -Foam::localAxesRotation::localAxesRotation +Foam::cylindrical::cylindrical ( const objectRegistry& obr, const vector& axis, @@ -146,14 +146,14 @@ Foam::localAxesRotation::localAxesRotation } -Foam::localAxesRotation::localAxesRotation(const dictionary& dict) +Foam::cylindrical::cylindrical(const dictionary& dict) : Rptr_(), origin_(), e3_() { - FatalErrorIn("localAxesRotation(const dictionary&)") - << " localAxesRotation can not be constructed from dictionary " + FatalErrorIn("cylindrical(const dictionary&)") + << " cylindrical can not be constructed from dictionary " << " use the construtctor : " "(" " const dictionary&, const objectRegistry&" @@ -162,7 +162,7 @@ Foam::localAxesRotation::localAxesRotation(const dictionary& dict) } -Foam::localAxesRotation::localAxesRotation(const tensorField& R) +Foam::cylindrical::cylindrical(const tensorField& R) : Rptr_(), origin_(vector::zero), @@ -174,7 +174,7 @@ Foam::localAxesRotation::localAxesRotation(const tensorField& R) // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // -void Foam::localAxesRotation::clear() +void Foam::cylindrical::clear() { if (!Rptr_.empty()) { @@ -183,7 +183,7 @@ void Foam::localAxesRotation::clear() } -void Foam::localAxesRotation::updateCells +void Foam::cylindrical::updateCells ( const polyMesh& mesh, const labelList& cells @@ -203,7 +203,7 @@ void Foam::localAxesRotation::updateCells } -Foam::tmp<Foam::vectorField> Foam::localAxesRotation::transform +Foam::tmp<Foam::vectorField> Foam::cylindrical::transform ( const vectorField& vf ) const @@ -212,7 +212,7 @@ Foam::tmp<Foam::vectorField> Foam::localAxesRotation::transform { FatalErrorIn ( - "tmp<vectorField> localAxesRotation::transform(const vectorField&)" + "tmp<vectorField> cylindrical::transform(const vectorField&)" ) << "vectorField st has different size to tensorField " << abort(FatalError); @@ -222,17 +222,17 @@ Foam::tmp<Foam::vectorField> Foam::localAxesRotation::transform } -Foam::vector Foam::localAxesRotation::transform(const vector& v) const +Foam::vector Foam::cylindrical::transform(const vector& v) const { notImplemented ( - "vector localAxesRotation::transform(const vector&) const" + "vector cylindrical::transform(const vector&) const" ); return vector::zero; } -Foam::vector Foam::localAxesRotation::transform +Foam::vector Foam::cylindrical::transform ( const vector& v, const label cmptI @@ -242,7 +242,7 @@ Foam::vector Foam::localAxesRotation::transform } -Foam::tmp<Foam::vectorField> Foam::localAxesRotation::invTransform +Foam::tmp<Foam::vectorField> Foam::cylindrical::invTransform ( const vectorField& vf ) const @@ -251,17 +251,17 @@ Foam::tmp<Foam::vectorField> Foam::localAxesRotation::invTransform } -Foam::vector Foam::localAxesRotation::invTransform(const vector& v) const +Foam::vector Foam::cylindrical::invTransform(const vector& v) const { notImplemented ( - "vector localAxesRotation::invTransform(const vector&) const" + "vector cylindrical::invTransform(const vector&) const" ); return vector::zero; } -Foam::vector Foam::localAxesRotation::invTransform +Foam::vector Foam::cylindrical::invTransform ( const vector& v, const label cmptI @@ -271,7 +271,7 @@ Foam::vector Foam::localAxesRotation::invTransform } -Foam::tmp<Foam::tensorField> Foam::localAxesRotation::transformTensor +Foam::tmp<Foam::tensorField> Foam::cylindrical::transformTensor ( const tensorField& tf ) const @@ -280,7 +280,7 @@ Foam::tmp<Foam::tensorField> Foam::localAxesRotation::transformTensor { FatalErrorIn ( - "tmp<tensorField> localAxesRotation::transformTensor" + "tmp<tensorField> cylindrical::transformTensor" "(" "const tensorField&" ")" @@ -292,21 +292,21 @@ Foam::tmp<Foam::tensorField> Foam::localAxesRotation::transformTensor } -Foam::tensor Foam::localAxesRotation::transformTensor +Foam::tensor Foam::cylindrical::transformTensor ( const tensor& t ) const { notImplemented ( - "tensor localAxesRotation::transformTensor(const tensor&) const" + "tensor cylindrical::transformTensor(const tensor&) const" ); return tensor::zero; } -Foam::tmp<Foam::tensorField> Foam::localAxesRotation::transformTensor +Foam::tmp<Foam::tensorField> Foam::cylindrical::transformTensor ( const tensorField& tf, const labelList& cellMap @@ -316,7 +316,7 @@ Foam::tmp<Foam::tensorField> Foam::localAxesRotation::transformTensor { FatalErrorIn ( - "tmp<tensorField> localAxesRotation::transformTensor" + "tmp<tensorField> cylindrical::transformTensor" "(" "const tensorField&, " "const labelList&" @@ -340,14 +340,14 @@ Foam::tmp<Foam::tensorField> Foam::localAxesRotation::transformTensor } -Foam::tmp<Foam::symmTensorField> Foam::localAxesRotation::transformVector +Foam::tmp<Foam::symmTensorField> Foam::cylindrical::transformVector ( const vectorField& vf ) const { if (Rptr_->size() != vf.size()) { - FatalErrorIn("localAxesRotation::transformVector(const vectorField&)") + FatalErrorIn("cylindrical::transformVector(const vectorField&)") << "tensorField vf has different size to tensorField Tr" << abort(FatalError); } @@ -364,20 +364,20 @@ Foam::tmp<Foam::symmTensorField> Foam::localAxesRotation::transformVector } -Foam::symmTensor Foam::localAxesRotation::transformVector +Foam::symmTensor Foam::cylindrical::transformVector ( const vector& v ) const { notImplemented ( - "tensor localAxesRotation::transformVector(const vector&) const" + "tensor cylindrical::transformVector(const vector&) const" ); return symmTensor::zero; } -void Foam::localAxesRotation::write(Ostream& os) const +void Foam::cylindrical::write(Ostream& os) const { os.writeKeyword("e3") << e3() << token::END_STATEMENT << nl; } diff --git a/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.H b/src/meshTools/coordinateSystems/coordinateRotation/cylindrical.H similarity index 86% rename from src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.H rename to src/meshTools/coordinateSystems/coordinateRotation/cylindrical.H index 41a12f459bd6b8351334879410727aa11dbfa388..f166f95e71dc09392e38b8130d6f9a8fe8368460 100644 --- a/src/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.H +++ b/src/meshTools/coordinateSystems/coordinateRotation/cylindrical.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::localAxesRotation + Foam::cylindrical Description A local coordinate rotation. @@ -34,7 +34,7 @@ Description (cylindrical coordinates) \verbatim - localAxesRotation + cylindrical { type localAxes; e3 (0 0 1); @@ -45,8 +45,8 @@ Description \*---------------------------------------------------------------------------*/ -#ifndef localAxesRotation_H -#define localAxesRotation_H +#ifndef cylindrical_H +#define cylindrical_H #include "point.H" #include "vector.H" @@ -58,10 +58,10 @@ namespace Foam { /*---------------------------------------------------------------------------*\ - Class localAxesRotation Declaration + Class cylindrical Declaration \*---------------------------------------------------------------------------*/ -class localAxesRotation +class cylindrical : public coordinateRotation { @@ -90,15 +90,15 @@ class localAxesRotation public: //- Runtime type information - TypeName("localAxesRotation"); + TypeName("cylindrical"); // Constructors //- Construct from dictionary and objectRegistry - localAxesRotation(const dictionary&, const objectRegistry&); + cylindrical(const dictionary&, const objectRegistry&); //- Construct from components for all cells - localAxesRotation + cylindrical ( const objectRegistry&, const vector& axis, @@ -106,7 +106,7 @@ public: ); //- Construct from components for list of cells - localAxesRotation + cylindrical ( const objectRegistry&, const vector& axis, @@ -115,20 +115,20 @@ public: ); //- Construct from dictionary - localAxesRotation(const dictionary&); + cylindrical(const dictionary&); //- Construct from tensor Field - localAxesRotation(const tensorField&); + cylindrical(const tensorField&); //- Return clone - autoPtr<localAxesRotation> clone() const + autoPtr<cylindrical> clone() const { - return autoPtr<localAxesRotation>(new localAxesRotation(*this)); + return autoPtr<cylindrical>(new cylindrical(*this)); } //- Destructor - virtual ~localAxesRotation() + virtual ~cylindrical() {} @@ -143,28 +143,28 @@ public: //- Return local-to-global transformation tensor virtual const tensor& R() const { - notImplemented("const tensor& localAxesRotation::R() const"); + notImplemented("const tensor& cylindrical::R() const"); return tensor::zero; } //- Return global-to-local transformation tensor virtual const tensor& Rtr() const { - notImplemented("const tensor& localAxesRotation::Rtr() const"); + notImplemented("const tensor& cylindrical::Rtr() const"); return tensor::zero; } //- Return local Cartesian x-axis virtual const vector e1() const { - notImplemented("const tensor& localAxesRotation::e1() const"); + notImplemented("const tensor& cylindrical::e1() const"); return vector::zero; } //- Return local Cartesian y-axis virtual const vector e2() const { - notImplemented("const tensor& localAxesRotation::e2() const"); + notImplemented("const tensor& cylindrical::e2() const"); return vector::zero; } diff --git a/src/meshTools/coordinateSystems/coordinateSystem.H b/src/meshTools/coordinateSystems/coordinateSystem.H index 7e8b81c0e56cbbdd185b773f7e8984e774eba4f7..34579acf2740ddfa34a5ad5094efc2a817f27ce7 100644 --- a/src/meshTools/coordinateSystems/coordinateSystem.H +++ b/src/meshTools/coordinateSystems/coordinateSystem.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -36,7 +36,7 @@ Description origin (0 0 0); coordinateRotation { - type localAxesRotation; + type cylindrical; e3 (0 0 1); } } @@ -45,7 +45,7 @@ Description Types of coordinateRotation: 1) axesRotation 2) STARCDRotation - 3) localAxesRotation + 3) cylindrical 4) EulerCoordinateRotation Type of co-ordinates: