Skip to content
Snippets Groups Projects
Commit fd658a4a authored by andy's avatar andy
Browse files

ENH: took code out of Foam namespace and apply Foam:: prefix instead

parent a83647f6
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -28,19 +28,17 @@ License ...@@ -28,19 +28,17 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
template<class Type> template<class Type>
const word& fvPatchField<Type>::calculatedType() const Foam::word& Foam::fvPatchField<Type>::calculatedType()
{ {
return calculatedFvPatchField<Type>::typeName; return calculatedFvPatchField<Type>::typeName;
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type> template<class Type>
calculatedFvPatchField<Type>::calculatedFvPatchField Foam::calculatedFvPatchField<Type>::calculatedFvPatchField
( (
const fvPatch& p, const fvPatch& p,
const DimensionedField<Type, volMesh>& iF const DimensionedField<Type, volMesh>& iF
...@@ -51,7 +49,7 @@ calculatedFvPatchField<Type>::calculatedFvPatchField ...@@ -51,7 +49,7 @@ calculatedFvPatchField<Type>::calculatedFvPatchField
template<class Type> template<class Type>
calculatedFvPatchField<Type>::calculatedFvPatchField Foam::calculatedFvPatchField<Type>::calculatedFvPatchField
( (
const calculatedFvPatchField<Type>& ptf, const calculatedFvPatchField<Type>& ptf,
const fvPatch& p, const fvPatch& p,
...@@ -64,7 +62,7 @@ calculatedFvPatchField<Type>::calculatedFvPatchField ...@@ -64,7 +62,7 @@ calculatedFvPatchField<Type>::calculatedFvPatchField
template<class Type> template<class Type>
calculatedFvPatchField<Type>::calculatedFvPatchField Foam::calculatedFvPatchField<Type>::calculatedFvPatchField
( (
const fvPatch& p, const fvPatch& p,
const DimensionedField<Type, volMesh>& iF, const DimensionedField<Type, volMesh>& iF,
...@@ -77,7 +75,7 @@ calculatedFvPatchField<Type>::calculatedFvPatchField ...@@ -77,7 +75,7 @@ calculatedFvPatchField<Type>::calculatedFvPatchField
template<class Type> template<class Type>
calculatedFvPatchField<Type>::calculatedFvPatchField Foam::calculatedFvPatchField<Type>::calculatedFvPatchField
( (
const calculatedFvPatchField<Type>& ptf const calculatedFvPatchField<Type>& ptf
) )
...@@ -87,7 +85,7 @@ calculatedFvPatchField<Type>::calculatedFvPatchField ...@@ -87,7 +85,7 @@ calculatedFvPatchField<Type>::calculatedFvPatchField
template<class Type> template<class Type>
calculatedFvPatchField<Type>::calculatedFvPatchField Foam::calculatedFvPatchField<Type>::calculatedFvPatchField
( (
const calculatedFvPatchField<Type>& ptf, const calculatedFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF const DimensionedField<Type, volMesh>& iF
...@@ -99,7 +97,8 @@ calculatedFvPatchField<Type>::calculatedFvPatchField ...@@ -99,7 +97,8 @@ calculatedFvPatchField<Type>::calculatedFvPatchField
template<class Type> template<class Type>
template<class Type2> template<class Type2>
tmp<fvPatchField<Type> > fvPatchField<Type>::NewCalculatedType Foam::tmp<Foam::fvPatchField<Type> >
Foam::fvPatchField<Type>::NewCalculatedType
( (
const fvPatchField<Type2>& pf const fvPatchField<Type2>& pf
) )
...@@ -132,7 +131,8 @@ tmp<fvPatchField<Type> > fvPatchField<Type>::NewCalculatedType ...@@ -132,7 +131,8 @@ tmp<fvPatchField<Type> > fvPatchField<Type>::NewCalculatedType
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<Field<Type> > calculatedFvPatchField<Type>::valueInternalCoeffs Foam::tmp<Foam::Field<Type> >
Foam::calculatedFvPatchField<Type>::valueInternalCoeffs
( (
const tmp<scalarField>& const tmp<scalarField>&
) const ) const
...@@ -155,7 +155,8 @@ tmp<Field<Type> > calculatedFvPatchField<Type>::valueInternalCoeffs ...@@ -155,7 +155,8 @@ tmp<Field<Type> > calculatedFvPatchField<Type>::valueInternalCoeffs
template<class Type> template<class Type>
tmp<Field<Type> > calculatedFvPatchField<Type>::valueBoundaryCoeffs Foam::tmp<Foam::Field<Type> >
Foam::calculatedFvPatchField<Type>::valueBoundaryCoeffs
( (
const tmp<scalarField>& const tmp<scalarField>&
) const ) const
...@@ -177,7 +178,8 @@ tmp<Field<Type> > calculatedFvPatchField<Type>::valueBoundaryCoeffs ...@@ -177,7 +178,8 @@ tmp<Field<Type> > calculatedFvPatchField<Type>::valueBoundaryCoeffs
} }
template<class Type> template<class Type>
tmp<Field<Type> > calculatedFvPatchField<Type>::gradientInternalCoeffs() const Foam::tmp<Foam::Field<Type> >
Foam::calculatedFvPatchField<Type>::gradientInternalCoeffs() const
{ {
FatalErrorIn FatalErrorIn
( (
...@@ -197,7 +199,8 @@ tmp<Field<Type> > calculatedFvPatchField<Type>::gradientInternalCoeffs() const ...@@ -197,7 +199,8 @@ tmp<Field<Type> > calculatedFvPatchField<Type>::gradientInternalCoeffs() const
} }
template<class Type> template<class Type>
tmp<Field<Type> > calculatedFvPatchField<Type>::gradientBoundaryCoeffs() const Foam::tmp<Foam::Field<Type> >
Foam::calculatedFvPatchField<Type>::gradientBoundaryCoeffs() const
{ {
FatalErrorIn FatalErrorIn
( (
...@@ -217,17 +220,12 @@ tmp<Field<Type> > calculatedFvPatchField<Type>::gradientBoundaryCoeffs() const ...@@ -217,17 +220,12 @@ tmp<Field<Type> > calculatedFvPatchField<Type>::gradientBoundaryCoeffs() const
} }
// Write
template<class Type> template<class Type>
void calculatedFvPatchField<Type>::write(Ostream& os) const void Foam::calculatedFvPatchField<Type>::write(Ostream& os) const
{ {
fvPatchField<Type>::write(os); fvPatchField<Type>::write(os);
this->writeEntry("value", os); this->writeEntry("value", os);
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment