diff --git a/src/finiteVolume/interpolation/interpolation/interpolation/interpolation.C b/src/finiteVolume/interpolation/interpolation/interpolation/interpolation.C index 4383382640..83936a51c4 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolation/interpolation.C +++ b/src/finiteVolume/interpolation/interpolation/interpolation/interpolation.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -28,15 +28,10 @@ License #include "polyMesh.H" #include "calculatedPointPatchFields.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - // * * * * * * * * * * * * * * * * Constructor * * * * * * * * * * * * * * * // template -interpolation::interpolation +Foam::interpolation::interpolation ( const GeometricField& psi ) @@ -52,10 +47,6 @@ interpolation::interpolation // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -# include "interpolationNew.C" +#include "interpolationNew.C" // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/interpolation/interpolationCell/interpolationCell.C b/src/finiteVolume/interpolation/interpolation/interpolationCell/interpolationCell.C index 7a623378f7..82356d91aa 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolationCell/interpolationCell.C +++ b/src/finiteVolume/interpolation/interpolation/interpolationCell/interpolationCell.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -26,15 +26,10 @@ License #include "interpolationCell.H" #include "volFields.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - // * * * * * * * * * * * * * * * * Constructor * * * * * * * * * * * * * * * // template -interpolationCell::interpolationCell +Foam::interpolationCell::interpolationCell ( const GeometricField& psi ) @@ -46,7 +41,7 @@ interpolationCell::interpolationCell // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template -Type interpolationCell::interpolate +Type Foam::interpolationCell::interpolate ( const vector&, const label cellI, @@ -57,8 +52,4 @@ Type interpolationCell::interpolate } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/interpolation/interpolationCell/makeInterpolationCell.C b/src/finiteVolume/interpolation/interpolation/interpolationCell/makeInterpolationCell.C index 462e0e14c3..6ba82128b8 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolationCell/makeInterpolationCell.C +++ b/src/finiteVolume/interpolation/interpolation/interpolationCell/makeInterpolationCell.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -29,13 +29,7 @@ License namespace Foam { - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -makeInterpolation(interpolationCell); - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam + makeInterpolation(interpolationCell); +} // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/interpolation/interpolationCellPatchConstrained/interpolationCellPatchConstrained.C b/src/finiteVolume/interpolation/interpolation/interpolationCellPatchConstrained/interpolationCellPatchConstrained.C index 34fac09627..3f6bfb5a90 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolationCellPatchConstrained/interpolationCellPatchConstrained.C +++ b/src/finiteVolume/interpolation/interpolation/interpolationCellPatchConstrained/interpolationCellPatchConstrained.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -26,15 +26,10 @@ License #include "interpolationCellPatchConstrained.H" #include "volFields.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - // * * * * * * * * * * * * * * * * Constructor * * * * * * * * * * * * * * * // template -interpolationCellPatchConstrained::interpolationCellPatchConstrained +Foam::interpolationCellPatchConstrained::interpolationCellPatchConstrained ( const GeometricField& psi ) @@ -46,7 +41,7 @@ interpolationCellPatchConstrained::interpolationCellPatchConstrained // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template -Type interpolationCellPatchConstrained::interpolate +Type Foam::interpolationCellPatchConstrained::interpolate ( const vector& pt, const label cellI, @@ -69,8 +64,4 @@ Type interpolationCellPatchConstrained::interpolate } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/interpolation/interpolationCellPatchConstrained/makeInterpolationCellPatchConstrained.C b/src/finiteVolume/interpolation/interpolation/interpolationCellPatchConstrained/makeInterpolationCellPatchConstrained.C index d0cba41cdb..bd0303464d 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolationCellPatchConstrained/makeInterpolationCellPatchConstrained.C +++ b/src/finiteVolume/interpolation/interpolation/interpolationCellPatchConstrained/makeInterpolationCellPatchConstrained.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -29,13 +29,7 @@ License namespace Foam { - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -makeInterpolation(interpolationCellPatchConstrained); - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam + makeInterpolation(interpolationCellPatchConstrained); +} // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/interpolation/interpolationCellPointFace/interpolationCellPointFace.C b/src/finiteVolume/interpolation/interpolation/interpolationCellPointFace/interpolationCellPointFace.C index a1256eb36e..537c686bdb 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolationCellPointFace/interpolationCellPointFace.C +++ b/src/finiteVolume/interpolation/interpolation/interpolationCellPointFace/interpolationCellPointFace.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,15 +31,10 @@ License #include "findCellPointFaceTet.H" #include "findCellPointFaceTriangle.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - // * * * * * * * * * * * * * * * * Constructor * * * * * * * * * * * * * * * // template -interpolationCellPointFace::interpolationCellPointFace +Foam::interpolationCellPointFace::interpolationCellPointFace ( const GeometricField& psi ) @@ -61,7 +56,7 @@ interpolationCellPointFace::interpolationCellPointFace // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template -Type interpolationCellPointFace::interpolate +Type Foam::interpolationCellPointFace::interpolate ( const vector& position, const label cellI, @@ -258,8 +253,7 @@ Type interpolationCellPointFace::interpolate } else { - Info<< "interpolationCellPointFace::interpolate" - << "(const vector&, const label cellI) const : " + InfoInFunction << "search failed; using closest cellFace value" << endl << "cell number " << cellI << tab << "position " << position << endl; @@ -363,8 +357,4 @@ Type interpolationCellPointFace::interpolate } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/interpolation/interpolationCellPointFace/makeInterpolationCellPointFace.C b/src/finiteVolume/interpolation/interpolation/interpolationCellPointFace/makeInterpolationCellPointFace.C index 8acd4f1864..0732e5dcaa 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolationCellPointFace/makeInterpolationCellPointFace.C +++ b/src/finiteVolume/interpolation/interpolation/interpolationCellPointFace/makeInterpolationCellPointFace.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -29,13 +29,7 @@ License namespace Foam { - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -makeInterpolation(interpolationCellPointFace); - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam + makeInterpolation(interpolationCellPointFace); +} // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitFuncs.C b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitFuncs.C index e4f0d4db5c..f966abf7f2 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitFuncs.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitFuncs.C @@ -27,16 +27,9 @@ License // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -namespace Foam -{ - -namespace limitFuncs -{ - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - template -inline tmp magSqr::operator() +inline Foam::tmp +Foam::limitFuncs::magSqr::operator() ( const GeometricField& phi ) const @@ -46,7 +39,8 @@ inline tmp magSqr::operator() template<> -inline tmp magSqr::operator() +inline Foam::tmp +Foam::limitFuncs::magSqr::operator() ( const volScalarField& phi ) const @@ -56,7 +50,8 @@ inline tmp magSqr::operator() template<> -inline tmp magSqr::operator() +inline Foam::tmp +Foam::limitFuncs::magSqr::operator() ( const volSymmTensorField& phi ) const @@ -66,7 +61,8 @@ inline tmp magSqr::operator() template<> -inline tmp magSqr::operator() +inline Foam::tmp +Foam::limitFuncs::magSqr::operator() ( const volTensorField& phi ) const @@ -76,7 +72,8 @@ inline tmp magSqr::operator() template -inline tmp rhoMagSqr::operator() +inline Foam::tmp +Foam::limitFuncs::rhoMagSqr::operator() ( const GeometricField& phi ) const @@ -88,7 +85,8 @@ inline tmp rhoMagSqr::operator() template<> -inline tmp rhoMagSqr::operator() +inline Foam::tmp +Foam::limitFuncs::rhoMagSqr::operator() ( const volScalarField& phi ) const @@ -99,9 +97,4 @@ inline tmp rhoMagSqr::operator() } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace limitFuncs -} // End namespace Foam - // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/limitedSurfaceInterpolationScheme/limitedSurfaceInterpolationScheme.C b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/limitedSurfaceInterpolationScheme/limitedSurfaceInterpolationScheme.C index fa92112352..08f2ad37f9 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/limitedSurfaceInterpolationScheme/limitedSurfaceInterpolationScheme.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/limitedSurfaceInterpolationScheme/limitedSurfaceInterpolationScheme.C @@ -28,16 +28,11 @@ License #include "surfaceFields.H" #include "coupledFvPatchField.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - // * * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * // template -tmp > -limitedSurfaceInterpolationScheme::New +Foam::tmp > +Foam::limitedSurfaceInterpolationScheme::New ( const fvMesh& mesh, Istream& schemeData @@ -84,10 +79,9 @@ limitedSurfaceInterpolationScheme::New } -// Return weighting factors for scheme given by name in dictionary template -tmp > -limitedSurfaceInterpolationScheme::New +Foam::tmp > +Foam::limitedSurfaceInterpolationScheme::New ( const fvMesh& mesh, const surfaceScalarField& faceFlux, @@ -138,14 +132,16 @@ limitedSurfaceInterpolationScheme::New // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template -limitedSurfaceInterpolationScheme::~limitedSurfaceInterpolationScheme() +Foam::limitedSurfaceInterpolationScheme:: +~limitedSurfaceInterpolationScheme() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template -tmp limitedSurfaceInterpolationScheme::weights +Foam::tmp +Foam::limitedSurfaceInterpolationScheme::weights ( const GeometricField& phi, const surfaceScalarField& CDweights, @@ -187,7 +183,8 @@ tmp limitedSurfaceInterpolationScheme::weights } template -tmp limitedSurfaceInterpolationScheme::weights +Foam::tmp +Foam::limitedSurfaceInterpolationScheme::weights ( const GeometricField& phi ) const @@ -201,8 +198,8 @@ tmp limitedSurfaceInterpolationScheme::weights } template -tmp > -limitedSurfaceInterpolationScheme::flux +Foam::tmp > +Foam::limitedSurfaceInterpolationScheme::flux ( const GeometricField& phi ) const @@ -211,8 +208,4 @@ limitedSurfaceInterpolationScheme::flux } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateSurfaceInterpolationScheme/multivariateSurfaceInterpolationScheme.C b/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateSurfaceInterpolationScheme/multivariateSurfaceInterpolationScheme.C index b2f683dac2..059d88ebf2 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateSurfaceInterpolationScheme/multivariateSurfaceInterpolationScheme.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateSurfaceInterpolationScheme/multivariateSurfaceInterpolationScheme.C @@ -31,16 +31,11 @@ Description #include "volFields.H" #include "surfaceFields.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // //- Construct from face-flux field and coefficient template -multivariateSurfaceInterpolationScheme:: +Foam::multivariateSurfaceInterpolationScheme:: multivariateSurfaceInterpolationScheme ( const fvMesh& mesh, @@ -56,10 +51,9 @@ multivariateSurfaceInterpolationScheme // * * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * // -// Return weighting factors for scheme given by name in dictionary template -tmp > -multivariateSurfaceInterpolationScheme::New +Foam::tmp > +Foam::multivariateSurfaceInterpolationScheme::New ( const fvMesh& mesh, const multivariateSurfaceInterpolationScheme::fieldTable& vtfs, @@ -99,13 +93,9 @@ multivariateSurfaceInterpolationScheme::New // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template -multivariateSurfaceInterpolationScheme:: +Foam::multivariateSurfaceInterpolationScheme:: ~multivariateSurfaceInterpolationScheme() {} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolate.C b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolate.C index 1cb9326e32..02bf978128 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolate.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolate.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -27,19 +27,9 @@ License // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -namespace Foam -{ - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace fvc -{ - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -// Return weighting factors for scheme given by name in dictionary template -tmp > scheme +Foam::tmp > +Foam::fvc::scheme ( const surfaceScalarField& faceFlux, Istream& streamData @@ -54,9 +44,8 @@ tmp > scheme } -// Return weighting factors for scheme given by name in dictionary template -tmp > scheme +Foam::tmp > Foam::fvc::scheme ( const surfaceScalarField& faceFlux, const word& name @@ -71,9 +60,8 @@ tmp > scheme } -// Return weighting factors for scheme given by name in dictionary template -tmp > scheme +Foam::tmp > Foam::fvc::scheme ( const fvMesh& mesh, Istream& streamData @@ -87,9 +75,8 @@ tmp > scheme } -// Return weighting factors for scheme given by name in dictionary template -tmp > scheme +Foam::tmp > Foam::fvc::scheme ( const fvMesh& mesh, const word& name @@ -103,10 +90,9 @@ tmp > scheme } -// Interpolate field onto faces using scheme given by name in dictionary template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const GeometricField& vf, const surfaceScalarField& faceFlux, @@ -115,21 +101,18 @@ interpolate { if (surfaceInterpolation::debug) { - Info<< "interpolate" - << "(const GeometricField&, " - << "const surfaceScalarField&, Istream&) : " + InfoInFunction << "interpolating GeometricField " - << endl; + << vf.name() << endl; } return scheme(faceFlux, schemeData)().interpolate(vf); } -// Interpolate field onto faces using scheme given by name in dictionary template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const GeometricField& vf, const surfaceScalarField& faceFlux, @@ -138,21 +121,17 @@ interpolate { if (surfaceInterpolation::debug) { - Info<< "interpolate" - << "(const GeometricField&, " - << "const surfaceScalarField&, const word&) : " + InfoInFunction << "interpolating GeometricField " - << "using " << name - << endl; + << vf.name() << " using " << name << endl; } return scheme(faceFlux, name)().interpolate(vf); } -// Interpolate field onto faces using scheme given by name in dictionary template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const tmp >& tvf, const surfaceScalarField& faceFlux, @@ -167,10 +146,9 @@ interpolate return tsf; } -// Interpolate field onto faces using scheme given by name in dictionary template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const GeometricField& vf, const tmp& tFaceFlux, @@ -185,10 +163,9 @@ interpolate return tsf; } -// Interpolate field onto faces using scheme given by name in dictionary template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const tmp >& tvf, const tmp& tFaceFlux, @@ -205,10 +182,9 @@ interpolate } -// Interpolate field onto faces using scheme given by name in dictionary template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const GeometricField& vf, Istream& schemeData @@ -216,20 +192,17 @@ interpolate { if (surfaceInterpolation::debug) { - Info<< "interpolate" - << "(const GeometricField&, " - << "Istream&) : " + InfoInFunction << "interpolating GeometricField " - << endl; + << vf.name() << endl; } return scheme(vf.mesh(), schemeData)().interpolate(vf); } -// Interpolate field onto faces using scheme given by name in dictionary template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const GeometricField& vf, const word& name @@ -237,21 +210,18 @@ interpolate { if (surfaceInterpolation::debug) { - Info<< "interpolate" - << "(const GeometricField&, " - << "const word&) : " + InfoInFunction << "interpolating GeometricField " - << "using " << name + << vf.name() << " using " << name << endl; } return scheme(vf.mesh(), name)().interpolate(vf); } -// Interpolate field onto faces using scheme given by name in dictionary template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const tmp >& tvf, const word& name @@ -266,20 +236,18 @@ interpolate } -// Interpolate field onto faces using central differencing template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const GeometricField& vf ) { if (surfaceInterpolation::debug) { - Info<< "interpolate" - << "(const GeometricField&) : " + InfoInFunction << "interpolating GeometricField " - << "using run-time selected scheme" + << vf.name() << " using run-time selected scheme" << endl; } @@ -287,10 +255,9 @@ interpolate } -// Interpolate field onto faces using central differencing template -tmp > -interpolate +Foam::tmp > +Foam::fvc::interpolate ( const tmp >& tvf ) @@ -303,7 +270,8 @@ interpolate template -tmp > interpolate +Foam::tmp > +Foam::fvc::interpolate ( const FieldField& fvpff ) @@ -328,7 +296,8 @@ tmp > interpolate template -tmp > interpolate +Foam::tmp > +Foam::fvc::interpolate ( const tmp >& tfvpff ) @@ -339,12 +308,4 @@ tmp > interpolate } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace fvc - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C index 9068212517..788fffab6e 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C @@ -21,9 +21,6 @@ License You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . -Description - Abstract base class for surface interpolation schemes. - \*---------------------------------------------------------------------------*/ #include "surfaceInterpolationScheme.H" @@ -31,16 +28,11 @@ Description #include "surfaceFields.H" #include "coupledFvPatchField.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - // * * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * // -// Return weighting factors for scheme given by name in dictionary template -tmp > surfaceInterpolationScheme::New +Foam::tmp > +Foam::surfaceInterpolationScheme::New ( const fvMesh& mesh, Istream& schemeData @@ -64,7 +56,7 @@ tmp > surfaceInterpolationScheme::New { Info<< "surfaceInterpolationScheme::New" "(const fvMesh&, Istream&)" - " : discretisation scheme = " + " : discretisation scheme === " << schemeName << endl; } @@ -88,9 +80,9 @@ tmp > surfaceInterpolationScheme::New } -// Return weighting factors for scheme given by name in dictionary template -tmp > surfaceInterpolationScheme::New +Foam::tmp > +Foam::surfaceInterpolationScheme::New ( const fvMesh& mesh, const surfaceScalarField& faceFlux, @@ -142,17 +134,15 @@ tmp > surfaceInterpolationScheme::New // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template -surfaceInterpolationScheme::~surfaceInterpolationScheme() +Foam::surfaceInterpolationScheme::~surfaceInterpolationScheme() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -//- Return the face-interpolate of the given cell field -// with the given owner and neighbour weighting factors template -tmp > -surfaceInterpolationScheme::interpolate +Foam::tmp > +Foam::surfaceInterpolationScheme::interpolate ( const GeometricField& vf, const tmp& tlambdas, @@ -234,11 +224,9 @@ surfaceInterpolationScheme::interpolate } -//- Return the face-interpolate of the given cell field -// with the given weighting factors template -tmp > -surfaceInterpolationScheme::interpolate +Foam::tmp > +Foam::surfaceInterpolationScheme::interpolate ( const GeometricField& vf, const tmp& tlambdas @@ -313,11 +301,9 @@ surfaceInterpolationScheme::interpolate } -//- Return the face-interpolate of the given cell field -// with explicit correction template -tmp > -surfaceInterpolationScheme::interpolate +Foam::tmp > +Foam::surfaceInterpolationScheme::interpolate ( const GeometricField& vf ) const @@ -345,11 +331,9 @@ surfaceInterpolationScheme::interpolate } -//- Return the face-interpolate of the given cell field -// with explicit correction template -tmp > -surfaceInterpolationScheme::interpolate +Foam::tmp > +Foam::surfaceInterpolationScheme::interpolate ( const tmp >& tvf ) const @@ -361,8 +345,4 @@ surfaceInterpolationScheme::interpolate } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - // ************************************************************************* // diff --git a/src/finiteVolume/interpolation/volPointInterpolation/pointConstraints.C b/src/finiteVolume/interpolation/volPointInterpolation/pointConstraints.C index 28d3332c1d..480d93c97c 100644 --- a/src/finiteVolume/interpolation/volPointInterpolation/pointConstraints.C +++ b/src/finiteVolume/interpolation/volPointInterpolation/pointConstraints.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,19 +30,17 @@ License #include "globalMeshData.H" #include "twoDPointCorrector.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // namespace Foam { - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -defineTypeNameAndDebug(pointConstraints, 0); + defineTypeNameAndDebug(pointConstraints, 0); +} // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void pointConstraints::makePatchPatchAddressing() +void Foam::pointConstraints::makePatchPatchAddressing() { if (debug) { @@ -325,7 +323,7 @@ void pointConstraints::makePatchPatchAddressing() // * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * // -pointConstraints::pointConstraints(const pointMesh& pm) +Foam::pointConstraints::pointConstraints(const pointMesh& pm) : MeshObject(pm) { @@ -342,7 +340,7 @@ pointConstraints::pointConstraints(const pointMesh& pm) // * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * // -pointConstraints::~pointConstraints() +Foam::pointConstraints::~pointConstraints() { if (debug) { @@ -353,19 +351,19 @@ pointConstraints::~pointConstraints() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -void pointConstraints::updateMesh(const mapPolyMesh&) +void Foam::pointConstraints::updateMesh(const mapPolyMesh&) { makePatchPatchAddressing(); } -bool pointConstraints::movePoints() +bool Foam::pointConstraints::movePoints() { return true; } -void pointConstraints::constrainDisplacement +void Foam::pointConstraints::constrainDisplacement ( pointVectorField& pf, const bool overrideFixedValue @@ -402,10 +400,8 @@ void pointConstraints::constrainDisplacement } -// Specialisation of constrainCorners for scalars because -// no constraint need be applied template<> -void pointConstraints::constrainCorners +void Foam::pointConstraints::constrainCorners ( GeometricField& pf ) const @@ -413,15 +409,11 @@ void pointConstraints::constrainCorners template<> -void pointConstraints::constrainCorners