STYLE: add Foam:: qualifier to some method names

This commit is contained in:
Mark Olesen
2010-12-17 15:15:08 +01:00
parent 85bae17943
commit 5f9d20e1d8
53 changed files with 718 additions and 952 deletions

View File

@ -26,15 +26,11 @@ License
#include "DimensionedField.H"
#include "IOstreams.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template<class Type, class GeoMesh>
void DimensionedField<Type, GeoMesh>::readField
void Foam::DimensionedField<Type, GeoMesh>::readField
(
const dictionary& fieldDict,
const word& fieldDictEntry
@ -48,7 +44,10 @@ void DimensionedField<Type, GeoMesh>::readField
template<class Type, class GeoMesh>
void DimensionedField<Type, GeoMesh>::readIfPresent(const word& fieldDictEntry)
void Foam::DimensionedField<Type, GeoMesh>::readIfPresent
(
const word& fieldDictEntry
)
{
if
(
@ -65,7 +64,7 @@ void DimensionedField<Type, GeoMesh>::readIfPresent(const word& fieldDictEntry)
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type, class GeoMesh>
DimensionedField<Type, GeoMesh>::DimensionedField
Foam::DimensionedField<Type, GeoMesh>::DimensionedField
(
const IOobject& io,
const Mesh& mesh,
@ -84,7 +83,7 @@ DimensionedField<Type, GeoMesh>::DimensionedField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type, class GeoMesh>
bool DimensionedField<Type, GeoMesh>::writeData
bool Foam::DimensionedField<Type, GeoMesh>::writeData
(
Ostream& os,
const word& fieldDictEntry
@ -107,7 +106,7 @@ bool DimensionedField<Type, GeoMesh>::writeData
template<class Type, class GeoMesh>
bool DimensionedField<Type, GeoMesh>::writeData(Ostream& os) const
bool Foam::DimensionedField<Type, GeoMesh>::writeData(Ostream& os) const
{
return writeData(os, "value");
}
@ -116,7 +115,11 @@ bool DimensionedField<Type, GeoMesh>::writeData(Ostream& os) const
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
template<class Type, class GeoMesh>
Ostream& operator<<(Ostream& os, const DimensionedField<Type, GeoMesh>& df)
Foam::Ostream& Foam::operator<<
(
Ostream& os,
const DimensionedField<Type, GeoMesh>& df
)
{
df.writeData(os);
@ -125,7 +128,7 @@ Ostream& operator<<(Ostream& os, const DimensionedField<Type, GeoMesh>& df)
template<class Type, class GeoMesh>
Ostream& operator<<
Foam::Ostream& Foam::operator<<
(
Ostream& os,
const tmp<DimensionedField<Type, GeoMesh> >& tdf
@ -138,8 +141,4 @@ Ostream& operator<<
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -28,42 +28,37 @@ License
#include "dictionary.H"
#include "contiguous.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * Static Members * * * * * * * * * * * * * * //
template<class Type>
const char* const Field<Type>::typeName("Field");
const char* const Foam::Field<Type>::typeName("Field");
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
Field<Type>::Field()
Foam::Field<Type>::Field()
:
List<Type>()
{}
template<class Type>
Field<Type>::Field(const label size)
Foam::Field<Type>::Field(const label size)
:
List<Type>(size)
{}
template<class Type>
Field<Type>::Field(const label size, const Type& t)
Foam::Field<Type>::Field(const label size, const Type& t)
:
List<Type>(size, t)
{}
template<class Type>
Field<Type>::Field
Foam::Field<Type>::Field
(
const UList<Type>& mapF,
const labelUList& mapAddressing
@ -74,8 +69,9 @@ Field<Type>::Field
map(mapF, mapAddressing);
}
template<class Type>
Field<Type>::Field
Foam::Field<Type>::Field
(
const tmp<Field<Type> >& tmapF,
const labelUList& mapAddressing
@ -88,7 +84,7 @@ Field<Type>::Field
template<class Type>
Field<Type>::Field
Foam::Field<Type>::Field
(
const UList<Type>& mapF,
const labelListList& mapAddressing,
@ -100,8 +96,9 @@ Field<Type>::Field
map(mapF, mapAddressing, mapWeights);
}
template<class Type>
Field<Type>::Field
Foam::Field<Type>::Field
(
const tmp<Field<Type> >& tmapF,
const labelListList& mapAddressing,
@ -115,7 +112,7 @@ Field<Type>::Field
template<class Type>
Field<Type>::Field
Foam::Field<Type>::Field
(
const UList<Type>& mapF,
const FieldMapper& mapper
@ -126,8 +123,9 @@ Field<Type>::Field
map(mapF, mapper);
}
template<class Type>
Field<Type>::Field
Foam::Field<Type>::Field
(
const tmp<Field<Type> >& tmapF,
const FieldMapper& mapper
@ -140,7 +138,7 @@ Field<Type>::Field
template<class Type>
Field<Type>::Field(const Field<Type>& f)
Foam::Field<Type>::Field(const Field<Type>& f)
:
refCount(),
List<Type>(f)
@ -148,35 +146,38 @@ Field<Type>::Field(const Field<Type>& f)
template<class Type>
Field<Type>::Field(Field<Type>& f, bool reUse)
Foam::Field<Type>::Field(Field<Type>& f, bool reUse)
:
List<Type>(f, reUse)
{}
template<class Type>
Field<Type>::Field(const Xfer<List<Type> >& f)
Foam::Field<Type>::Field(const Xfer<List<Type> >& f)
:
List<Type>(f)
{}
template<class Type>
Field<Type>::Field(const Xfer<Field<Type> >& f)
Foam::Field<Type>::Field(const Xfer<Field<Type> >& f)
:
List<Type>(f)
{}
#ifndef __GNUC__
// Not needed for clang/gcc
template<class Type>
Field<Type>::Field(const typename Field<Type>::subField& sf)
Foam::Field<Type>::Field(const typename Field<Type>::subField& sf)
:
List<Type>(sf)
{}
#endif
template<class Type>
Field<Type>::Field(const UList<Type>& list)
Foam::Field<Type>::Field(const UList<Type>& list)
:
List<Type>(list)
{}
@ -185,7 +186,7 @@ Field<Type>::Field(const UList<Type>& list)
// Construct as copy of tmp<Field>
#ifdef ConstructFromTmp
template<class Type>
Field<Type>::Field(const tmp<Field<Type> >& tf)
Foam::Field<Type>::Field(const tmp<Field<Type> >& tf)
:
List<Type>(const_cast<Field<Type>&>(tf()), tf.isTmp())
{
@ -195,14 +196,14 @@ Field<Type>::Field(const tmp<Field<Type> >& tf)
template<class Type>
Field<Type>::Field(Istream& is)
Foam::Field<Type>::Field(Istream& is)
:
List<Type>(is)
{}
template<class Type>
Field<Type>::Field
Foam::Field<Type>::Field
(
const word& keyword,
const dictionary& dict,
@ -285,7 +286,7 @@ Field<Type>::Field
template<class Type>
tmp<Field<Type> > Field<Type>::clone() const
Foam::tmp<Foam::Field<Type> > Foam::Field<Type>::clone() const
{
return tmp<Field<Type> >(new Field<Type>(*this));
}
@ -294,7 +295,7 @@ tmp<Field<Type> > Field<Type>::clone() const
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void Field<Type>::map
void Foam::Field<Type>::map
(
const UList<Type>& mapF,
const labelUList& mapAddressing
@ -323,7 +324,7 @@ void Field<Type>::map
template<class Type>
void Field<Type>::map
void Foam::Field<Type>::map
(
const tmp<Field<Type> >& tmapF,
const labelUList& mapAddressing
@ -335,7 +336,7 @@ void Field<Type>::map
template<class Type>
void Field<Type>::map
void Foam::Field<Type>::map
(
const UList<Type>& mapF,
const labelListList& mapAddressing,
@ -378,8 +379,9 @@ void Field<Type>::map
}
}
template<class Type>
void Field<Type>::map
void Foam::Field<Type>::map
(
const tmp<Field<Type> >& tmapF,
const labelListList& mapAddressing,
@ -392,7 +394,7 @@ void Field<Type>::map
template<class Type>
void Field<Type>::map
void Foam::Field<Type>::map
(
const UList<Type>& mapF,
const FieldMapper& mapper
@ -413,8 +415,9 @@ void Field<Type>::map
}
}
template<class Type>
void Field<Type>::map
void Foam::Field<Type>::map
(
const tmp<Field<Type> >& tmapF,
const FieldMapper& mapper
@ -426,7 +429,7 @@ void Field<Type>::map
template<class Type>
void Field<Type>::autoMap
void Foam::Field<Type>::autoMap
(
const FieldMapper& mapper
)
@ -452,7 +455,7 @@ void Field<Type>::autoMap
template<class Type>
void Field<Type>::rmap
void Foam::Field<Type>::rmap
(
const UList<Type>& mapF,
const labelUList& mapAddressing
@ -471,8 +474,9 @@ void Field<Type>::rmap
}
}
template<class Type>
void Field<Type>::rmap
void Foam::Field<Type>::rmap
(
const tmp<Field<Type> >& tmapF,
const labelUList& mapAddressing
@ -484,7 +488,7 @@ void Field<Type>::rmap
template<class Type>
void Field<Type>::rmap
void Foam::Field<Type>::rmap
(
const UList<Type>& mapF,
const labelUList& mapAddressing,
@ -501,8 +505,9 @@ void Field<Type>::rmap
}
}
template<class Type>
void Field<Type>::rmap
void Foam::Field<Type>::rmap
(
const tmp<Field<Type> >& tmapF,
const labelUList& mapAddressing,
@ -515,14 +520,15 @@ void Field<Type>::rmap
template<class Type>
void Field<Type>::negate()
void Foam::Field<Type>::negate()
{
TFOR_ALL_F_OP_OP_F(Type, *this, =, -, Type, *this)
}
template<class Type>
tmp<Field<typename Field<Type>::cmptType> > Field<Type>::component
Foam::tmp<Foam::Field<typename Foam::Field<Type>::cmptType> >
Foam::Field<Type>::component
(
const direction d
) const
@ -534,7 +540,7 @@ tmp<Field<typename Field<Type>::cmptType> > Field<Type>::component
template<class Type>
void Field<Type>::replace
void Foam::Field<Type>::replace
(
const direction d,
const UList<cmptType>& sf
@ -546,7 +552,7 @@ void Field<Type>::replace
template<class Type>
void Field<Type>::replace
void Foam::Field<Type>::replace
(
const direction d,
const tmp<Field<cmptType> >& tsf
@ -558,7 +564,7 @@ void Field<Type>::replace
template<class Type>
void Field<Type>::replace
void Foam::Field<Type>::replace
(
const direction d,
const cmptType& c
@ -570,7 +576,7 @@ void Field<Type>::replace
template<class Type>
tmp<Field<Type> > Field<Type>::T() const
Foam::tmp<Foam::Field<Type> > Foam::Field<Type>::T() const
{
tmp<Field<Type> > transpose(new Field<Type>(this->size()));
::Foam::T(transpose(), *this);
@ -579,7 +585,7 @@ tmp<Field<Type> > Field<Type>::T() const
template<class Type>
void Field<Type>::writeEntry(const word& keyword, Ostream& os) const
void Foam::Field<Type>::writeEntry(const word& keyword, Ostream& os) const
{
os.writeKeyword(keyword);
@ -617,7 +623,7 @@ void Field<Type>::writeEntry(const word& keyword, Ostream& os) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Type>
void Field<Type>::operator=(const Field<Type>& rhs)
void Foam::Field<Type>::operator=(const Field<Type>& rhs)
{
if (this == &rhs)
{
@ -631,21 +637,21 @@ void Field<Type>::operator=(const Field<Type>& rhs)
template<class Type>
void Field<Type>::operator=(const SubField<Type>& rhs)
void Foam::Field<Type>::operator=(const SubField<Type>& rhs)
{
List<Type>::operator=(rhs);
}
template<class Type>
void Field<Type>::operator=(const UList<Type>& rhs)
void Foam::Field<Type>::operator=(const UList<Type>& rhs)
{
List<Type>::operator=(rhs);
}
template<class Type>
void Field<Type>::operator=(const tmp<Field>& rhs)
void Foam::Field<Type>::operator=(const tmp<Field>& rhs)
{
if (this == &(rhs()))
{
@ -662,7 +668,7 @@ void Field<Type>::operator=(const tmp<Field>& rhs)
template<class Type>
void Field<Type>::operator=(const Type& t)
void Foam::Field<Type>::operator=(const Type& t)
{
List<Type>::operator=(t);
}
@ -670,7 +676,7 @@ void Field<Type>::operator=(const Type& t)
template<class Type>
template<class Form, class Cmpt, int nCmpt>
void Field<Type>::operator=(const VectorSpace<Form,Cmpt,nCmpt>& vs)
void Foam::Field<Type>::operator=(const VectorSpace<Form,Cmpt,nCmpt>& vs)
{
typedef VectorSpace<Form,Cmpt,nCmpt> VSType;
TFOR_ALL_F_OP_S(Type, *this, =, VSType, vs)
@ -680,20 +686,20 @@ void Field<Type>::operator=(const VectorSpace<Form,Cmpt,nCmpt>& vs)
#define COMPUTED_ASSIGNMENT(TYPE, op) \
\
template<class Type> \
void Field<Type>::operator op(const UList<TYPE>& f) \
void Foam::Field<Type>::operator op(const UList<TYPE>& f) \
{ \
TFOR_ALL_F_OP_F(Type, *this, op, TYPE, f) \
} \
\
template<class Type> \
void Field<Type>::operator op(const tmp<Field<TYPE> >& tf) \
void Foam::Field<Type>::operator op(const tmp<Field<TYPE> >& tf) \
{ \
operator op(tf()); \
tf.clear(); \
} \
\
template<class Type> \
void Field<Type>::operator op(const TYPE& t) \
void Foam::Field<Type>::operator op(const TYPE& t) \
{ \
TFOR_ALL_F_OP_S(Type, *this, op, TYPE, t) \
}
@ -709,7 +715,7 @@ COMPUTED_ASSIGNMENT(scalar, /=)
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
template<class Type>
Ostream& operator<<(Ostream& os, const Field<Type>& f)
Foam::Ostream& Foam::operator<<(Ostream& os, const Field<Type>& f)
{
os << static_cast<const List<Type>&>(f);
return os;
@ -717,7 +723,7 @@ Ostream& operator<<(Ostream& os, const Field<Type>& f)
template<class Type>
Ostream& operator<<(Ostream& os, const tmp<Field<Type> >& tf)
Foam::Ostream& Foam::operator<<(Ostream& os, const tmp<Field<Type> >& tf)
{
os << tf();
tf.clear();
@ -727,10 +733,6 @@ Ostream& operator<<(Ostream& os, const tmp<Field<Type> >& tf)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
# include "FieldFunctions.C"
#include "FieldFunctions.C"
// ************************************************************************* //

View File

@ -27,15 +27,11 @@ License
#include "transformField.H"
#include "symmTransformField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
Foam::basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -46,7 +42,7 @@ basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
template<class Type>
basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
Foam::basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -58,7 +54,7 @@ basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
template<class Type>
basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
Foam::basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
(
const basicSymmetryPointPatchField<Type>& ptf,
const pointPatch& p,
@ -71,7 +67,7 @@ basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
template<class Type>
basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
Foam::basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
(
const basicSymmetryPointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -84,7 +80,10 @@ basicSymmetryPointPatchField<Type>::basicSymmetryPointPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void basicSymmetryPointPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::basicSymmetryPointPatchField<Type>::evaluate
(
const Pstream::commsTypes
)
{
const vectorField& nHat = this->patch().pointNormals();
@ -103,8 +102,4 @@ void basicSymmetryPointPatchField<Type>::evaluate(const Pstream::commsTypes)
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -26,15 +26,11 @@ License
#include "mixedPointPatchField.H"
#include "pointPatchFieldMapper.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template<class Type>
void mixedPointPatchField<Type>::checkFieldSize() const
void Foam::mixedPointPatchField<Type>::checkFieldSize() const
{
if
(
@ -59,7 +55,7 @@ void mixedPointPatchField<Type>::checkFieldSize() const
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
mixedPointPatchField<Type>::mixedPointPatchField
Foam::mixedPointPatchField<Type>::mixedPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -72,7 +68,7 @@ mixedPointPatchField<Type>::mixedPointPatchField
template<class Type>
mixedPointPatchField<Type>::mixedPointPatchField
Foam::mixedPointPatchField<Type>::mixedPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -86,7 +82,7 @@ mixedPointPatchField<Type>::mixedPointPatchField
template<class Type>
mixedPointPatchField<Type>::mixedPointPatchField
Foam::mixedPointPatchField<Type>::mixedPointPatchField
(
const mixedPointPatchField<Type>& ptf,
const pointPatch& p,
@ -108,7 +104,7 @@ mixedPointPatchField<Type>::mixedPointPatchField
template<class Type>
mixedPointPatchField<Type>::mixedPointPatchField
Foam::mixedPointPatchField<Type>::mixedPointPatchField
(
const mixedPointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -124,7 +120,7 @@ mixedPointPatchField<Type>::mixedPointPatchField
// Map and resize from self given a mapper
template<class Type>
void mixedPointPatchField<Type>::autoMap
void Foam::mixedPointPatchField<Type>::autoMap
(
const pointPatchFieldMapper& m
)
@ -137,7 +133,7 @@ void mixedPointPatchField<Type>::autoMap
// Grab the values using rmap
template<class Type>
void mixedPointPatchField<Type>::rmap
void Foam::mixedPointPatchField<Type>::rmap
(
const pointPatchField<Type>& ptf,
const labelList& addr
@ -154,7 +150,7 @@ void mixedPointPatchField<Type>::rmap
// Evaluate patch field
template<class Type>
void mixedPointPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::mixedPointPatchField<Type>::evaluate(const Pstream::commsTypes)
{
Field<Type>::operator=
(
@ -171,7 +167,7 @@ void mixedPointPatchField<Type>::evaluate(const Pstream::commsTypes)
// Write
template<class Type>
void mixedPointPatchField<Type>::write(Ostream& os) const
void Foam::mixedPointPatchField<Type>::write(Ostream& os) const
{
pointPatchField<Type>::write(os);
refValue_.writeEntry("refValue", os);
@ -179,8 +175,4 @@ void mixedPointPatchField<Type>::write(Ostream& os) const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -26,15 +26,10 @@ License
#include "valuePointPatchField.H"
#include "pointPatchFieldMapper.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template<class Type>
void valuePointPatchField<Type>::checkFieldSize() const
void Foam::valuePointPatchField<Type>::checkFieldSize() const
{
if (size() != this->patch().size())
{
@ -52,7 +47,7 @@ void valuePointPatchField<Type>::checkFieldSize() const
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
template<class Type>
valuePointPatchField<Type>::valuePointPatchField
Foam::valuePointPatchField<Type>::valuePointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -64,7 +59,7 @@ valuePointPatchField<Type>::valuePointPatchField
template<class Type>
valuePointPatchField<Type>::valuePointPatchField
Foam::valuePointPatchField<Type>::valuePointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -105,7 +100,7 @@ valuePointPatchField<Type>::valuePointPatchField
template<class Type>
valuePointPatchField<Type>::valuePointPatchField
Foam::valuePointPatchField<Type>::valuePointPatchField
(
const valuePointPatchField<Type>& ptf,
const pointPatch& p,
@ -119,7 +114,7 @@ valuePointPatchField<Type>::valuePointPatchField
template<class Type>
valuePointPatchField<Type>::valuePointPatchField
Foam::valuePointPatchField<Type>::valuePointPatchField
(
const valuePointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -133,7 +128,7 @@ valuePointPatchField<Type>::valuePointPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void valuePointPatchField<Type>::autoMap
void Foam::valuePointPatchField<Type>::autoMap
(
const pointPatchFieldMapper& m
)
@ -143,7 +138,7 @@ void valuePointPatchField<Type>::autoMap
template<class Type>
void valuePointPatchField<Type>::rmap
void Foam::valuePointPatchField<Type>::rmap
(
const pointPatchField<Type>& ptf,
const labelList& addr
@ -161,7 +156,7 @@ void valuePointPatchField<Type>::rmap
template<class Type>
void valuePointPatchField<Type>::updateCoeffs()
void Foam::valuePointPatchField<Type>::updateCoeffs()
{
if (this->updated())
{
@ -178,7 +173,7 @@ void valuePointPatchField<Type>::updateCoeffs()
template<class Type>
void valuePointPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::valuePointPatchField<Type>::evaluate(const Pstream::commsTypes)
{
// Get internal field to insert values into
Field<Type>& iF = const_cast<Field<Type>&>(this->internalField());
@ -190,7 +185,7 @@ void valuePointPatchField<Type>::evaluate(const Pstream::commsTypes)
template<class Type>
void valuePointPatchField<Type>::write(Ostream& os) const
void Foam::valuePointPatchField<Type>::write(Ostream& os) const
{
pointPatchField<Type>::write(os);
this->writeEntry("value", os);
@ -200,7 +195,7 @@ void valuePointPatchField<Type>::write(Ostream& os) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class Type>
void valuePointPatchField<Type>::operator=
void Foam::valuePointPatchField<Type>::operator=
(
const valuePointPatchField<Type>& ptf
)
@ -210,7 +205,7 @@ void valuePointPatchField<Type>::operator=
template<class Type>
void valuePointPatchField<Type>::operator=
void Foam::valuePointPatchField<Type>::operator=
(
const pointPatchField<Type>& ptf
)
@ -220,7 +215,7 @@ void valuePointPatchField<Type>::operator=
template<class Type>
void valuePointPatchField<Type>::operator=
void Foam::valuePointPatchField<Type>::operator=
(
const Field<Type>& tf
)
@ -230,7 +225,7 @@ void valuePointPatchField<Type>::operator=
template<class Type>
void valuePointPatchField<Type>::operator=
void Foam::valuePointPatchField<Type>::operator=
(
const Type& t
)
@ -241,7 +236,7 @@ void valuePointPatchField<Type>::operator=
// Force an assignment
template<class Type>
void valuePointPatchField<Type>::operator==
void Foam::valuePointPatchField<Type>::operator==
(
const valuePointPatchField<Type>& ptf
)
@ -251,7 +246,7 @@ void valuePointPatchField<Type>::operator==
template<class Type>
void valuePointPatchField<Type>::operator==
void Foam::valuePointPatchField<Type>::operator==
(
const pointPatchField<Type>& ptf
)
@ -261,7 +256,7 @@ void valuePointPatchField<Type>::operator==
template<class Type>
void valuePointPatchField<Type>::operator==
void Foam::valuePointPatchField<Type>::operator==
(
const Field<Type>& tf
)
@ -271,7 +266,7 @@ void valuePointPatchField<Type>::operator==
template<class Type>
void valuePointPatchField<Type>::operator==
void Foam::valuePointPatchField<Type>::operator==
(
const Type& t
)
@ -280,8 +275,4 @@ void valuePointPatchField<Type>::operator==
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -28,15 +28,10 @@ License
#include "transformField.H"
#include "pointFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
cyclicPointPatchField<Type>::cyclicPointPatchField
Foam::cyclicPointPatchField<Type>::cyclicPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -48,7 +43,7 @@ cyclicPointPatchField<Type>::cyclicPointPatchField
template<class Type>
cyclicPointPatchField<Type>::cyclicPointPatchField
Foam::cyclicPointPatchField<Type>::cyclicPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -77,7 +72,7 @@ cyclicPointPatchField<Type>::cyclicPointPatchField
template<class Type>
cyclicPointPatchField<Type>::cyclicPointPatchField
Foam::cyclicPointPatchField<Type>::cyclicPointPatchField
(
const cyclicPointPatchField<Type>& ptf,
const pointPatch& p,
@ -109,7 +104,7 @@ cyclicPointPatchField<Type>::cyclicPointPatchField
template<class Type>
cyclicPointPatchField<Type>::cyclicPointPatchField
Foam::cyclicPointPatchField<Type>::cyclicPointPatchField
(
const cyclicPointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -123,7 +118,7 @@ cyclicPointPatchField<Type>::cyclicPointPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void cyclicPointPatchField<Type>::swapAddSeparated
void Foam::cyclicPointPatchField<Type>::swapAddSeparated
(
const Pstream::commsTypes,
Field<Type>& pField
@ -183,8 +178,4 @@ void cyclicPointPatchField<Type>::swapAddSeparated
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -27,15 +27,11 @@ License
#include "transformField.H"
#include "symmTransformField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
Foam::cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -46,7 +42,7 @@ cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
template<class Type>
cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
Foam::cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -58,7 +54,7 @@ cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
template<class Type>
cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
Foam::cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
(
const cyclicSlipPointPatchField<Type>& ptf,
const pointPatch& p,
@ -71,7 +67,7 @@ cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
template<class Type>
cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
Foam::cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
(
const cyclicSlipPointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -84,7 +80,7 @@ cyclicSlipPointPatchField<Type>::cyclicSlipPointPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void cyclicSlipPointPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::cyclicSlipPointPatchField<Type>::evaluate(const Pstream::commsTypes)
{
const vectorField& nHat = this->patch().pointNormals();
@ -103,8 +99,4 @@ void cyclicSlipPointPatchField<Type>::evaluate(const Pstream::commsTypes)
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -27,15 +27,11 @@ License
#include "transformField.H"
#include "symmTransformField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
nonuniformTransformCyclicPointPatchField<Type>::
Foam::nonuniformTransformCyclicPointPatchField<Type>::
nonuniformTransformCyclicPointPatchField
(
const pointPatch& p,
@ -47,7 +43,7 @@ nonuniformTransformCyclicPointPatchField
template<class Type>
nonuniformTransformCyclicPointPatchField<Type>::
Foam::nonuniformTransformCyclicPointPatchField<Type>::
nonuniformTransformCyclicPointPatchField
(
const pointPatch& p,
@ -60,7 +56,7 @@ nonuniformTransformCyclicPointPatchField
template<class Type>
nonuniformTransformCyclicPointPatchField<Type>::
Foam::nonuniformTransformCyclicPointPatchField<Type>::
nonuniformTransformCyclicPointPatchField
(
const nonuniformTransformCyclicPointPatchField<Type>& ptf,
@ -74,7 +70,7 @@ nonuniformTransformCyclicPointPatchField
template<class Type>
nonuniformTransformCyclicPointPatchField<Type>::
Foam::nonuniformTransformCyclicPointPatchField<Type>::
nonuniformTransformCyclicPointPatchField
(
const nonuniformTransformCyclicPointPatchField<Type>& ptf,
@ -88,7 +84,7 @@ nonuniformTransformCyclicPointPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void nonuniformTransformCyclicPointPatchField<Type>::evaluate
void Foam::nonuniformTransformCyclicPointPatchField<Type>::evaluate
(
const Pstream::commsTypes
)
@ -110,8 +106,4 @@ void nonuniformTransformCyclicPointPatchField<Type>::evaluate
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -27,15 +27,11 @@ License
#include "transformField.H"
#include "processorPolyPatch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
Foam::processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -47,7 +43,7 @@ processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
template<class Type>
processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
Foam::processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -60,7 +56,7 @@ processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
template<class Type>
processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
Foam::processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
(
const processorCyclicPointPatchField<Type>& ptf,
const pointPatch& p,
@ -74,7 +70,7 @@ processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
template<class Type>
processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
Foam::processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
(
const processorCyclicPointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -88,14 +84,14 @@ processorCyclicPointPatchField<Type>::processorCyclicPointPatchField
// * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
template<class Type>
processorCyclicPointPatchField<Type>::~processorCyclicPointPatchField()
Foam::processorCyclicPointPatchField<Type>::~processorCyclicPointPatchField()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void processorCyclicPointPatchField<Type>::initSwapAddSeparated
void Foam::processorCyclicPointPatchField<Type>::initSwapAddSeparated
(
const Pstream::commsTypes commsType,
Field<Type>& pField
@ -126,7 +122,7 @@ void processorCyclicPointPatchField<Type>::initSwapAddSeparated
template<class Type>
void processorCyclicPointPatchField<Type>::swapAddSeparated
void Foam::processorCyclicPointPatchField<Type>::swapAddSeparated
(
const Pstream::commsTypes commsType,
Field<Type>& pField
@ -160,8 +156,4 @@ void processorCyclicPointPatchField<Type>::swapAddSeparated
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -26,15 +26,11 @@ License
#include "wedgePointPatchField.H"
#include "transformField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
wedgePointPatchField<Type>::wedgePointPatchField
Foam::wedgePointPatchField<Type>::wedgePointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -45,7 +41,7 @@ wedgePointPatchField<Type>::wedgePointPatchField
template<class Type>
wedgePointPatchField<Type>::wedgePointPatchField
Foam::wedgePointPatchField<Type>::wedgePointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -73,7 +69,7 @@ wedgePointPatchField<Type>::wedgePointPatchField
template<class Type>
wedgePointPatchField<Type>::wedgePointPatchField
Foam::wedgePointPatchField<Type>::wedgePointPatchField
(
const wedgePointPatchField<Type>& ptf,
const pointPatch& p,
@ -104,7 +100,7 @@ wedgePointPatchField<Type>::wedgePointPatchField
template<class Type>
wedgePointPatchField<Type>::wedgePointPatchField
Foam::wedgePointPatchField<Type>::wedgePointPatchField
(
const wedgePointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -117,7 +113,7 @@ wedgePointPatchField<Type>::wedgePointPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void wedgePointPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::wedgePointPatchField<Type>::evaluate(const Pstream::commsTypes)
{
// In order to ensure that the wedge patch is always flat, take the
// normal vector from the first point
@ -133,8 +129,4 @@ void wedgePointPatchField<Type>::evaluate(const Pstream::commsTypes)
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -25,15 +25,10 @@ License
#include "fixedNormalSlipPointPatchField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
Foam::fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF
@ -45,7 +40,7 @@ fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
template<class Type>
fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
Foam::fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
(
const pointPatch& p,
const DimensionedField<Type, pointMesh>& iF,
@ -58,7 +53,7 @@ fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
template<class Type>
fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
Foam::fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
(
const fixedNormalSlipPointPatchField<Type>& ptf,
const pointPatch& p,
@ -72,7 +67,7 @@ fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
template<class Type>
fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
Foam::fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
(
const fixedNormalSlipPointPatchField<Type>& ptf,
const DimensionedField<Type, pointMesh>& iF
@ -86,7 +81,10 @@ fixedNormalSlipPointPatchField<Type>::fixedNormalSlipPointPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void fixedNormalSlipPointPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::fixedNormalSlipPointPatchField<Type>::evaluate
(
const Pstream::commsTypes
)
{
tmp<Field<Type> > tvalues =
transform(I - n_*n_, this->patchInternalField());
@ -99,7 +97,7 @@ void fixedNormalSlipPointPatchField<Type>::evaluate(const Pstream::commsTypes)
template<class Type>
void fixedNormalSlipPointPatchField<Type>::write(Ostream& os) const
void Foam::fixedNormalSlipPointPatchField<Type>::write(Ostream& os) const
{
slipPointPatchField<Type>::write(os);
os.writeKeyword("n")
@ -107,8 +105,4 @@ void fixedNormalSlipPointPatchField<Type>::write(Ostream& os) const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -29,14 +29,9 @@ License
#include "SRFModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF
@ -48,7 +43,7 @@ SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
{}
SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
(
const SRFVelocityFvPatchVectorField& ptf,
const fvPatch& p,
@ -62,7 +57,7 @@ SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
{}
SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
@ -77,7 +72,7 @@ SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
}
SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
(
const SRFVelocityFvPatchVectorField& srfvpvf
)
@ -88,7 +83,7 @@ SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
{}
SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
(
const SRFVelocityFvPatchVectorField& srfvpvf,
const DimensionedField<vector, volMesh>& iF
@ -102,7 +97,7 @@ SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void SRFVelocityFvPatchVectorField::autoMap
void Foam::SRFVelocityFvPatchVectorField::autoMap
(
const fvPatchFieldMapper& m
)
@ -112,7 +107,7 @@ void SRFVelocityFvPatchVectorField::autoMap
}
void SRFVelocityFvPatchVectorField::rmap
void Foam::SRFVelocityFvPatchVectorField::rmap
(
const fvPatchVectorField& ptf,
const labelList& addr
@ -127,7 +122,7 @@ void SRFVelocityFvPatchVectorField::rmap
}
void SRFVelocityFvPatchVectorField::updateCoeffs()
void Foam::SRFVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -156,7 +151,7 @@ void SRFVelocityFvPatchVectorField::updateCoeffs()
}
void SRFVelocityFvPatchVectorField::write(Ostream& os) const
void Foam::SRFVelocityFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
os.writeKeyword("relative") << relative_ << token::END_STATEMENT << nl;
@ -167,14 +162,13 @@ void SRFVelocityFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
SRFVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -26,15 +26,11 @@ License
#include "basicSymmetryFvPatchField.H"
#include "symmTransformField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -45,7 +41,7 @@ basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
template<class Type>
basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
(
const basicSymmetryFvPatchField<Type>& ptf,
const fvPatch& p,
@ -58,7 +54,7 @@ basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
template<class Type>
basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -72,7 +68,7 @@ basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
template<class Type>
basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
(
const basicSymmetryFvPatchField<Type>& ptf
)
@ -82,7 +78,7 @@ basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
template<class Type>
basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
(
const basicSymmetryFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF
@ -95,7 +91,8 @@ basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
tmp<Field<Type> > basicSymmetryFvPatchField<Type>::snGrad() const
Foam::tmp<Foam::Field<Type> >
Foam::basicSymmetryFvPatchField<Type>::snGrad() const
{
vectorField nHat = this->patch().nf();
@ -108,7 +105,7 @@ tmp<Field<Type> > basicSymmetryFvPatchField<Type>::snGrad() const
template<class Type>
void basicSymmetryFvPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::basicSymmetryFvPatchField<Type>::evaluate(const Pstream::commsTypes)
{
if (!this->updated())
{
@ -130,7 +127,8 @@ void basicSymmetryFvPatchField<Type>::evaluate(const Pstream::commsTypes)
template<class Type>
tmp<Field<Type> > basicSymmetryFvPatchField<Type>::snGradTransformDiag() const
Foam::tmp<Foam::Field<Type> >
Foam::basicSymmetryFvPatchField<Type>::snGradTransformDiag() const
{
vectorField nHat = this->patch().nf();
@ -144,8 +142,4 @@ tmp<Field<Type> > basicSymmetryFvPatchField<Type>::snGradTransformDiag() const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -29,15 +29,11 @@ License
#include "symmTransform.H"
#include "diagTensor.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
wedgeFvPatchField<Type>::wedgeFvPatchField
Foam::wedgeFvPatchField<Type>::wedgeFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -48,7 +44,7 @@ wedgeFvPatchField<Type>::wedgeFvPatchField
template<class Type>
wedgeFvPatchField<Type>::wedgeFvPatchField
Foam::wedgeFvPatchField<Type>::wedgeFvPatchField
(
const wedgeFvPatchField<Type>& ptf,
const fvPatch& p,
@ -80,7 +76,7 @@ wedgeFvPatchField<Type>::wedgeFvPatchField
template<class Type>
wedgeFvPatchField<Type>::wedgeFvPatchField
Foam::wedgeFvPatchField<Type>::wedgeFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -113,7 +109,7 @@ wedgeFvPatchField<Type>::wedgeFvPatchField
template<class Type>
wedgeFvPatchField<Type>::wedgeFvPatchField
Foam::wedgeFvPatchField<Type>::wedgeFvPatchField
(
const wedgeFvPatchField<Type>& ptf
)
@ -123,7 +119,7 @@ wedgeFvPatchField<Type>::wedgeFvPatchField
template<class Type>
wedgeFvPatchField<Type>::wedgeFvPatchField
Foam::wedgeFvPatchField<Type>::wedgeFvPatchField
(
const wedgeFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF
@ -136,7 +132,7 @@ wedgeFvPatchField<Type>::wedgeFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
tmp<Field<Type> > wedgeFvPatchField<Type>::snGrad() const
Foam::tmp<Foam::Field<Type> > Foam::wedgeFvPatchField<Type>::snGrad() const
{
Field<Type> pif = this->patchInternalField();
return
@ -147,7 +143,7 @@ tmp<Field<Type> > wedgeFvPatchField<Type>::snGrad() const
template<class Type>
void wedgeFvPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::wedgeFvPatchField<Type>::evaluate(const Pstream::commsTypes)
{
if (!this->updated())
{
@ -166,7 +162,8 @@ void wedgeFvPatchField<Type>::evaluate(const Pstream::commsTypes)
template<class Type>
tmp<Field<Type> > wedgeFvPatchField<Type>::snGradTransformDiag() const
Foam::tmp<Foam::Field<Type> >
Foam::wedgeFvPatchField<Type>::snGradTransformDiag() const
{
const diagTensor diagT =
0.5*diag(I - refCast<const wedgeFvPatch>(this->patch()).cellT());
@ -192,8 +189,4 @@ tmp<Field<Type> > wedgeFvPatchField<Type>::snGradTransformDiag() const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -31,15 +31,11 @@ License
#include "CrankNicholsonDdtScheme.H"
#include "backwardDdtScheme.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
advectiveFvPatchField<Type>::advectiveFvPatchField
Foam::advectiveFvPatchField<Type>::advectiveFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -58,7 +54,7 @@ advectiveFvPatchField<Type>::advectiveFvPatchField
template<class Type>
advectiveFvPatchField<Type>::advectiveFvPatchField
Foam::advectiveFvPatchField<Type>::advectiveFvPatchField
(
const advectiveFvPatchField& ptf,
const fvPatch& p,
@ -75,7 +71,7 @@ advectiveFvPatchField<Type>::advectiveFvPatchField
template<class Type>
advectiveFvPatchField<Type>::advectiveFvPatchField
Foam::advectiveFvPatchField<Type>::advectiveFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -127,7 +123,7 @@ advectiveFvPatchField<Type>::advectiveFvPatchField
template<class Type>
advectiveFvPatchField<Type>::advectiveFvPatchField
Foam::advectiveFvPatchField<Type>::advectiveFvPatchField
(
const advectiveFvPatchField& ptpsf
)
@ -141,7 +137,7 @@ advectiveFvPatchField<Type>::advectiveFvPatchField
template<class Type>
advectiveFvPatchField<Type>::advectiveFvPatchField
Foam::advectiveFvPatchField<Type>::advectiveFvPatchField
(
const advectiveFvPatchField& ptpsf,
const DimensionedField<Type, volMesh>& iF
@ -158,7 +154,8 @@ advectiveFvPatchField<Type>::advectiveFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
tmp<scalarField> advectiveFvPatchField<Type>::advectionSpeed() const
Foam::tmp<Foam::scalarField>
Foam::advectiveFvPatchField<Type>::advectionSpeed() const
{
const surfaceScalarField& phi =
this->db().objectRegistry::lookupObject<surfaceScalarField>(phiName_);
@ -189,7 +186,7 @@ tmp<scalarField> advectiveFvPatchField<Type>::advectionSpeed() const
template<class Type>
void advectiveFvPatchField<Type>::updateCoeffs()
void Foam::advectiveFvPatchField<Type>::updateCoeffs()
{
if (this->updated())
{
@ -304,7 +301,7 @@ void advectiveFvPatchField<Type>::updateCoeffs()
template<class Type>
void advectiveFvPatchField<Type>::write(Ostream& os) const
void Foam::advectiveFvPatchField<Type>::write(Ostream& os) const
{
fvPatchField<Type>::write(os);
@ -329,8 +326,4 @@ void advectiveFvPatchField<Type>::write(Ostream& os) const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -29,14 +29,10 @@ License
#include "volFields.H"
#include "uniformDimensionedFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
buoyantPressureFvPatchScalarField::
Foam::buoyantPressureFvPatchScalarField::
buoyantPressureFvPatchScalarField
(
const fvPatch& p,
@ -48,7 +44,7 @@ buoyantPressureFvPatchScalarField
{}
buoyantPressureFvPatchScalarField::
Foam::buoyantPressureFvPatchScalarField::
buoyantPressureFvPatchScalarField
(
const fvPatch& p,
@ -64,7 +60,7 @@ buoyantPressureFvPatchScalarField
}
buoyantPressureFvPatchScalarField::
Foam::buoyantPressureFvPatchScalarField::
buoyantPressureFvPatchScalarField
(
const buoyantPressureFvPatchScalarField& ptf,
@ -78,7 +74,7 @@ buoyantPressureFvPatchScalarField
{}
buoyantPressureFvPatchScalarField::
Foam::buoyantPressureFvPatchScalarField::
buoyantPressureFvPatchScalarField
(
const buoyantPressureFvPatchScalarField& ptf
@ -89,7 +85,7 @@ buoyantPressureFvPatchScalarField
{}
buoyantPressureFvPatchScalarField::
Foam::buoyantPressureFvPatchScalarField::
buoyantPressureFvPatchScalarField
(
const buoyantPressureFvPatchScalarField& ptf,
@ -103,7 +99,7 @@ buoyantPressureFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void buoyantPressureFvPatchScalarField::updateCoeffs()
void Foam::buoyantPressureFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -137,7 +133,7 @@ void buoyantPressureFvPatchScalarField::updateCoeffs()
}
void buoyantPressureFvPatchScalarField::write(Ostream& os) const
void Foam::buoyantPressureFvPatchScalarField::write(Ostream& os) const
{
fixedGradientFvPatchScalarField::write(os);
writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);
@ -147,14 +143,14 @@ void buoyantPressureFvPatchScalarField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
buoyantPressureFvPatchScalarField
);
);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -30,14 +30,10 @@ License
#include "surfaceFields.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
directMappedVelocityFluxFixedValueFvPatchField::
Foam::directMappedVelocityFluxFixedValueFvPatchField::
directMappedVelocityFluxFixedValueFvPatchField
(
const fvPatch& p,
@ -49,7 +45,7 @@ directMappedVelocityFluxFixedValueFvPatchField
{}
directMappedVelocityFluxFixedValueFvPatchField::
Foam::directMappedVelocityFluxFixedValueFvPatchField::
directMappedVelocityFluxFixedValueFvPatchField
(
const directMappedVelocityFluxFixedValueFvPatchField& ptf,
@ -83,7 +79,7 @@ directMappedVelocityFluxFixedValueFvPatchField
}
directMappedVelocityFluxFixedValueFvPatchField::
Foam::directMappedVelocityFluxFixedValueFvPatchField::
directMappedVelocityFluxFixedValueFvPatchField
(
const fvPatch& p,
@ -138,7 +134,7 @@ directMappedVelocityFluxFixedValueFvPatchField
}
directMappedVelocityFluxFixedValueFvPatchField::
Foam::directMappedVelocityFluxFixedValueFvPatchField::
directMappedVelocityFluxFixedValueFvPatchField
(
const directMappedVelocityFluxFixedValueFvPatchField& ptf
@ -149,7 +145,7 @@ directMappedVelocityFluxFixedValueFvPatchField
{}
directMappedVelocityFluxFixedValueFvPatchField::
Foam::directMappedVelocityFluxFixedValueFvPatchField::
directMappedVelocityFluxFixedValueFvPatchField
(
const directMappedVelocityFluxFixedValueFvPatchField& ptf,
@ -163,7 +159,7 @@ directMappedVelocityFluxFixedValueFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
void Foam::directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
{
if (updated())
{
@ -253,23 +249,27 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
}
void directMappedVelocityFluxFixedValueFvPatchField::write(Ostream& os) const
void Foam::directMappedVelocityFluxFixedValueFvPatchField::write
(
Ostream& os
) const
{
fvPatchVectorField::write(os);
writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
this->writeEntry("value", os);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
directMappedVelocityFluxFixedValueFvPatchField
);
);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -26,15 +26,10 @@ License
#include "fanFvPatchField.H"
#include "IOmanip.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
fanFvPatchField<Type>::fanFvPatchField
Foam::fanFvPatchField<Type>::fanFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -47,7 +42,7 @@ fanFvPatchField<Type>::fanFvPatchField
template<class Type>
fanFvPatchField<Type>::fanFvPatchField
Foam::fanFvPatchField<Type>::fanFvPatchField
(
const fanFvPatchField<Type>& ptf,
const fvPatch& p,
@ -62,7 +57,7 @@ fanFvPatchField<Type>::fanFvPatchField
template<class Type>
fanFvPatchField<Type>::fanFvPatchField
Foam::fanFvPatchField<Type>::fanFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -96,7 +91,7 @@ fanFvPatchField<Type>::fanFvPatchField
template<class Type>
fanFvPatchField<Type>::fanFvPatchField
Foam::fanFvPatchField<Type>::fanFvPatchField
(
const fanFvPatchField<Type>& ptf
)
@ -109,7 +104,7 @@ fanFvPatchField<Type>::fanFvPatchField
template<class Type>
fanFvPatchField<Type>::fanFvPatchField
Foam::fanFvPatchField<Type>::fanFvPatchField
(
const fanFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF
@ -124,7 +119,7 @@ fanFvPatchField<Type>::fanFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void fanFvPatchField<Type>::autoMap
void Foam::fanFvPatchField<Type>::autoMap
(
const fvPatchFieldMapper& m
)
@ -135,7 +130,7 @@ void fanFvPatchField<Type>::autoMap
template<class Type>
void fanFvPatchField<Type>::rmap
void Foam::fanFvPatchField<Type>::rmap
(
const fvPatchField<Type>& ptf,
const labelList& addr
@ -150,7 +145,7 @@ void fanFvPatchField<Type>::rmap
template<class Type>
void fanFvPatchField<Type>::write(Ostream& os) const
void Foam::fanFvPatchField<Type>::write(Ostream& os) const
{
fvPatchField<Type>::write(os);
os.writeKeyword("patchType") << "cyclic" << token::END_STATEMENT << nl;
@ -163,8 +158,4 @@ void fanFvPatchField<Type>::write(Ostream& os) const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -26,15 +26,11 @@ License
#include "fixedNormalSlipFvPatchField.H"
#include "symmTransformField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
Foam::fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -46,7 +42,7 @@ fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
template<class Type>
fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
Foam::fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
(
const fixedNormalSlipFvPatchField<Type>& ptf,
const fvPatch& p,
@ -60,7 +56,7 @@ fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
template<class Type>
fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
Foam::fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -75,7 +71,7 @@ fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
template<class Type>
fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
Foam::fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
(
const fixedNormalSlipFvPatchField<Type>& ptf
)
@ -86,7 +82,7 @@ fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
template<class Type>
fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
Foam::fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
(
const fixedNormalSlipFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF
@ -100,7 +96,7 @@ fixedNormalSlipFvPatchField<Type>::fixedNormalSlipFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void fixedNormalSlipFvPatchField<Type>::autoMap
void Foam::fixedNormalSlipFvPatchField<Type>::autoMap
(
const fvPatchFieldMapper& m
)
@ -111,7 +107,7 @@ void fixedNormalSlipFvPatchField<Type>::autoMap
template<class Type>
void fixedNormalSlipFvPatchField<Type>::rmap
void Foam::fixedNormalSlipFvPatchField<Type>::rmap
(
const fvPatchField<Type>& ptf,
const labelList& addr
@ -127,7 +123,8 @@ void fixedNormalSlipFvPatchField<Type>::rmap
template<class Type>
tmp<Field<Type> > fixedNormalSlipFvPatchField<Type>::snGrad() const
Foam::tmp<Foam::Field<Type> >
Foam::fixedNormalSlipFvPatchField<Type>::snGrad() const
{
vectorField nHat = this->patch().nf();
Field<Type> pif = this->patchInternalField();
@ -140,7 +137,10 @@ tmp<Field<Type> > fixedNormalSlipFvPatchField<Type>::snGrad() const
template<class Type>
void fixedNormalSlipFvPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::fixedNormalSlipFvPatchField<Type>::evaluate
(
const Pstream::commsTypes
)
{
if (!this->updated())
{
@ -160,7 +160,8 @@ void fixedNormalSlipFvPatchField<Type>::evaluate(const Pstream::commsTypes)
template<class Type>
tmp<Field<Type> > fixedNormalSlipFvPatchField<Type>::snGradTransformDiag() const
Foam::tmp<Foam::Field<Type> >
Foam::fixedNormalSlipFvPatchField<Type>::snGradTransformDiag() const
{
vectorField nHat = this->patch().nf();
vectorField diag(nHat.size());
@ -174,15 +175,11 @@ tmp<Field<Type> > fixedNormalSlipFvPatchField<Type>::snGradTransformDiag() const
template<class Type>
void fixedNormalSlipFvPatchField<Type>::write(Ostream& os) const
void Foam::fixedNormalSlipFvPatchField<Type>::write(Ostream& os) const
{
transformFvPatchField<Type>::write(os);
fixedValue_.writeEntry("fixedValue", os);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -29,14 +29,9 @@ License
#include "surfaceFields.H"
#include "volFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
fixedPressureCompressibleDensityFvPatchScalarField::
Foam::fixedPressureCompressibleDensityFvPatchScalarField::
fixedPressureCompressibleDensityFvPatchScalarField
(
const fvPatch& p,
@ -48,7 +43,7 @@ fixedPressureCompressibleDensityFvPatchScalarField
{}
fixedPressureCompressibleDensityFvPatchScalarField::
Foam::fixedPressureCompressibleDensityFvPatchScalarField::
fixedPressureCompressibleDensityFvPatchScalarField
(
const fixedPressureCompressibleDensityFvPatchScalarField& ptf,
@ -62,7 +57,7 @@ fixedPressureCompressibleDensityFvPatchScalarField
{}
fixedPressureCompressibleDensityFvPatchScalarField::
Foam::fixedPressureCompressibleDensityFvPatchScalarField::
fixedPressureCompressibleDensityFvPatchScalarField
(
const fvPatch& p,
@ -75,7 +70,7 @@ fixedPressureCompressibleDensityFvPatchScalarField
{}
fixedPressureCompressibleDensityFvPatchScalarField::
Foam::fixedPressureCompressibleDensityFvPatchScalarField::
fixedPressureCompressibleDensityFvPatchScalarField
(
const fixedPressureCompressibleDensityFvPatchScalarField& ptf
@ -86,7 +81,7 @@ fixedPressureCompressibleDensityFvPatchScalarField
{}
fixedPressureCompressibleDensityFvPatchScalarField::
Foam::fixedPressureCompressibleDensityFvPatchScalarField::
fixedPressureCompressibleDensityFvPatchScalarField
(
const fixedPressureCompressibleDensityFvPatchScalarField& ptf,
@ -100,7 +95,7 @@ fixedPressureCompressibleDensityFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void fixedPressureCompressibleDensityFvPatchScalarField::updateCoeffs()
void Foam::fixedPressureCompressibleDensityFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -127,7 +122,7 @@ void fixedPressureCompressibleDensityFvPatchScalarField::updateCoeffs()
}
void fixedPressureCompressibleDensityFvPatchScalarField::write
void Foam::fixedPressureCompressibleDensityFvPatchScalarField::write
(
Ostream& os
) const
@ -140,15 +135,13 @@ void fixedPressureCompressibleDensityFvPatchScalarField::write
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
fixedPressureCompressibleDensityFvPatchScalarField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -32,12 +32,10 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
Foam::freestreamPressureFvPatchScalarField::
freestreamPressureFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
@ -47,7 +45,8 @@ freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
{}
freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
Foam::freestreamPressureFvPatchScalarField::
freestreamPressureFvPatchScalarField
(
const freestreamPressureFvPatchScalarField& ptf,
const fvPatch& p,
@ -59,7 +58,8 @@ freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
{}
freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
Foam::freestreamPressureFvPatchScalarField::
freestreamPressureFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
@ -70,7 +70,8 @@ freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
{}
freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
Foam::freestreamPressureFvPatchScalarField::
freestreamPressureFvPatchScalarField
(
const freestreamPressureFvPatchScalarField& wbppsf
)
@ -79,7 +80,8 @@ freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
{}
freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
Foam::freestreamPressureFvPatchScalarField::
freestreamPressureFvPatchScalarField
(
const freestreamPressureFvPatchScalarField& wbppsf,
const DimensionedField<scalar, volMesh>& iF
@ -91,7 +93,7 @@ freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void freestreamPressureFvPatchScalarField::updateCoeffs()
void Foam::freestreamPressureFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -140,10 +142,13 @@ void freestreamPressureFvPatchScalarField::updateCoeffs()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField(fvPatchScalarField, freestreamPressureFvPatchScalarField);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
freestreamPressureFvPatchScalarField
);
}
// ************************************************************************* //

View File

@ -29,14 +29,11 @@ License
#include "surfaceFields.H"
#include "fvcMeshPhi.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
Foam::movingWallVelocityFvPatchVectorField::
movingWallVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF
@ -47,7 +44,8 @@ movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
{}
movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
Foam::movingWallVelocityFvPatchVectorField::
movingWallVelocityFvPatchVectorField
(
const movingWallVelocityFvPatchVectorField& ptf,
const fvPatch& p,
@ -60,7 +58,8 @@ movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
{}
movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
Foam::movingWallVelocityFvPatchVectorField::
movingWallVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
@ -74,7 +73,8 @@ movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
}
movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
Foam::movingWallVelocityFvPatchVectorField::
movingWallVelocityFvPatchVectorField
(
const movingWallVelocityFvPatchVectorField& mwvpvf
)
@ -84,7 +84,8 @@ movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
{}
movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
Foam::movingWallVelocityFvPatchVectorField::
movingWallVelocityFvPatchVectorField
(
const movingWallVelocityFvPatchVectorField& mwvpvf,
const DimensionedField<vector, volMesh>& iF
@ -97,7 +98,7 @@ movingWallVelocityFvPatchVectorField::movingWallVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void movingWallVelocityFvPatchVectorField::updateCoeffs()
void Foam::movingWallVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -133,7 +134,7 @@ void movingWallVelocityFvPatchVectorField::updateCoeffs()
}
void movingWallVelocityFvPatchVectorField::write(Ostream& os) const
void Foam::movingWallVelocityFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
writeEntryIfDifferent<word>(os, "U", "U", UName_);
@ -143,14 +144,13 @@ void movingWallVelocityFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
movingWallVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -27,15 +27,10 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
outletMappedUniformInletFvPatchField<Type>::
Foam::outletMappedUniformInletFvPatchField<Type>::
outletMappedUniformInletFvPatchField
(
const fvPatch& p,
@ -49,7 +44,7 @@ outletMappedUniformInletFvPatchField
template<class Type>
outletMappedUniformInletFvPatchField<Type>::
Foam::outletMappedUniformInletFvPatchField<Type>::
outletMappedUniformInletFvPatchField
(
const outletMappedUniformInletFvPatchField<Type>& ptf,
@ -65,7 +60,7 @@ outletMappedUniformInletFvPatchField
template<class Type>
outletMappedUniformInletFvPatchField<Type>::
Foam::outletMappedUniformInletFvPatchField<Type>::
outletMappedUniformInletFvPatchField
(
const fvPatch& p,
@ -80,7 +75,7 @@ outletMappedUniformInletFvPatchField
template<class Type>
outletMappedUniformInletFvPatchField<Type>::
Foam::outletMappedUniformInletFvPatchField<Type>::
outletMappedUniformInletFvPatchField
(
const outletMappedUniformInletFvPatchField<Type>& ptf
@ -94,7 +89,7 @@ outletMappedUniformInletFvPatchField
template<class Type>
outletMappedUniformInletFvPatchField<Type>::
Foam::outletMappedUniformInletFvPatchField<Type>::
outletMappedUniformInletFvPatchField
(
const outletMappedUniformInletFvPatchField<Type>& ptf,
@ -110,7 +105,7 @@ outletMappedUniformInletFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void outletMappedUniformInletFvPatchField<Type>::updateCoeffs()
void Foam::outletMappedUniformInletFvPatchField<Type>::updateCoeffs()
{
if (this->updated())
{
@ -170,7 +165,7 @@ void outletMappedUniformInletFvPatchField<Type>::updateCoeffs()
template<class Type>
void outletMappedUniformInletFvPatchField<Type>::write(Ostream& os) const
void Foam::outletMappedUniformInletFvPatchField<Type>::write(Ostream& os) const
{
fvPatchField<Type>::write(os);
os.writeKeyword("outletPatchName")
@ -183,8 +178,4 @@ void outletMappedUniformInletFvPatchField<Type>::write(Ostream& os) const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -26,15 +26,10 @@ License
#include "partialSlipFvPatchField.H"
#include "symmTransformField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
partialSlipFvPatchField<Type>::partialSlipFvPatchField
Foam::partialSlipFvPatchField<Type>::partialSlipFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -46,7 +41,7 @@ partialSlipFvPatchField<Type>::partialSlipFvPatchField
template<class Type>
partialSlipFvPatchField<Type>::partialSlipFvPatchField
Foam::partialSlipFvPatchField<Type>::partialSlipFvPatchField
(
const partialSlipFvPatchField<Type>& ptf,
const fvPatch& p,
@ -60,7 +55,7 @@ partialSlipFvPatchField<Type>::partialSlipFvPatchField
template<class Type>
partialSlipFvPatchField<Type>::partialSlipFvPatchField
Foam::partialSlipFvPatchField<Type>::partialSlipFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -75,7 +70,7 @@ partialSlipFvPatchField<Type>::partialSlipFvPatchField
template<class Type>
partialSlipFvPatchField<Type>::partialSlipFvPatchField
Foam::partialSlipFvPatchField<Type>::partialSlipFvPatchField
(
const partialSlipFvPatchField<Type>& ptf
)
@ -86,7 +81,7 @@ partialSlipFvPatchField<Type>::partialSlipFvPatchField
template<class Type>
partialSlipFvPatchField<Type>::partialSlipFvPatchField
Foam::partialSlipFvPatchField<Type>::partialSlipFvPatchField
(
const partialSlipFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF
@ -100,7 +95,7 @@ partialSlipFvPatchField<Type>::partialSlipFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void partialSlipFvPatchField<Type>::autoMap
void Foam::partialSlipFvPatchField<Type>::autoMap
(
const fvPatchFieldMapper& m
)
@ -111,7 +106,7 @@ void partialSlipFvPatchField<Type>::autoMap
template<class Type>
void partialSlipFvPatchField<Type>::rmap
void Foam::partialSlipFvPatchField<Type>::rmap
(
const fvPatchField<Type>& ptf,
const labelList& addr
@ -127,7 +122,8 @@ void partialSlipFvPatchField<Type>::rmap
template<class Type>
tmp<Field<Type> > partialSlipFvPatchField<Type>::snGrad() const
Foam::tmp<Foam::Field<Type> >
Foam::partialSlipFvPatchField<Type>::snGrad() const
{
vectorField nHat = this->patch().nf();
Field<Type> pif = this->patchInternalField();
@ -140,7 +136,10 @@ tmp<Field<Type> > partialSlipFvPatchField<Type>::snGrad() const
template<class Type>
void partialSlipFvPatchField<Type>::evaluate(const Pstream::commsTypes)
void Foam::partialSlipFvPatchField<Type>::evaluate
(
const Pstream::commsTypes
)
{
if (!this->updated())
{
@ -160,7 +159,8 @@ void partialSlipFvPatchField<Type>::evaluate(const Pstream::commsTypes)
template<class Type>
tmp<Field<Type> > partialSlipFvPatchField<Type>::snGradTransformDiag() const
Foam::tmp<Foam::Field<Type> >
Foam::partialSlipFvPatchField<Type>::snGradTransformDiag() const
{
vectorField nHat = this->patch().nf();
vectorField diag(nHat.size());
@ -177,15 +177,11 @@ tmp<Field<Type> > partialSlipFvPatchField<Type>::snGradTransformDiag() const
template<class Type>
void partialSlipFvPatchField<Type>::write(Ostream& os) const
void Foam::partialSlipFvPatchField<Type>::write(Ostream& os) const
{
transformFvPatchField<Type>::write(os);
valueFraction_.writeEntry("valueFraction", os);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -29,14 +29,9 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
pressureDirectedInletOutletVelocityFvPatchVectorField::
Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::
pressureDirectedInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -54,7 +49,7 @@ pressureDirectedInletOutletVelocityFvPatchVectorField
}
pressureDirectedInletOutletVelocityFvPatchVectorField::
Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::
pressureDirectedInletOutletVelocityFvPatchVectorField
(
const pressureDirectedInletOutletVelocityFvPatchVectorField& ptf,
@ -70,7 +65,7 @@ pressureDirectedInletOutletVelocityFvPatchVectorField
{}
pressureDirectedInletOutletVelocityFvPatchVectorField::
Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::
pressureDirectedInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -90,7 +85,7 @@ pressureDirectedInletOutletVelocityFvPatchVectorField
}
pressureDirectedInletOutletVelocityFvPatchVectorField::
Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::
pressureDirectedInletOutletVelocityFvPatchVectorField
(
const pressureDirectedInletOutletVelocityFvPatchVectorField& pivpvf
@ -103,7 +98,7 @@ pressureDirectedInletOutletVelocityFvPatchVectorField
{}
pressureDirectedInletOutletVelocityFvPatchVectorField::
Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::
pressureDirectedInletOutletVelocityFvPatchVectorField
(
const pressureDirectedInletOutletVelocityFvPatchVectorField& pivpvf,
@ -119,7 +114,7 @@ pressureDirectedInletOutletVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void pressureDirectedInletOutletVelocityFvPatchVectorField::autoMap
void Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::autoMap
(
const fvPatchFieldMapper& m
)
@ -129,7 +124,7 @@ void pressureDirectedInletOutletVelocityFvPatchVectorField::autoMap
}
void pressureDirectedInletOutletVelocityFvPatchVectorField::rmap
void Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::rmap
(
const fvPatchVectorField& ptf,
const labelList& addr
@ -145,7 +140,7 @@ void pressureDirectedInletOutletVelocityFvPatchVectorField::rmap
}
void pressureDirectedInletOutletVelocityFvPatchVectorField::updateCoeffs()
void Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -191,8 +186,10 @@ void pressureDirectedInletOutletVelocityFvPatchVectorField::updateCoeffs()
}
void pressureDirectedInletOutletVelocityFvPatchVectorField::
write(Ostream& os) const
void Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::write
(
Ostream& os
) const
{
fvPatchVectorField::write(os);
writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
@ -204,7 +201,7 @@ write(Ostream& os) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
void pressureDirectedInletOutletVelocityFvPatchVectorField::operator=
void Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::operator=
(
const fvPatchField<vector>& pvf
)
@ -219,14 +216,13 @@ void pressureDirectedInletOutletVelocityFvPatchVectorField::operator=
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
pressureDirectedInletOutletVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -29,14 +29,10 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
pressureDirectedInletVelocityFvPatchVectorField::
Foam::pressureDirectedInletVelocityFvPatchVectorField::
pressureDirectedInletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -50,7 +46,7 @@ pressureDirectedInletVelocityFvPatchVectorField
{}
pressureDirectedInletVelocityFvPatchVectorField::
Foam::pressureDirectedInletVelocityFvPatchVectorField::
pressureDirectedInletVelocityFvPatchVectorField
(
const pressureDirectedInletVelocityFvPatchVectorField& ptf,
@ -66,7 +62,7 @@ pressureDirectedInletVelocityFvPatchVectorField
{}
pressureDirectedInletVelocityFvPatchVectorField::
Foam::pressureDirectedInletVelocityFvPatchVectorField::
pressureDirectedInletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -83,7 +79,7 @@ pressureDirectedInletVelocityFvPatchVectorField
}
pressureDirectedInletVelocityFvPatchVectorField::
Foam::pressureDirectedInletVelocityFvPatchVectorField::
pressureDirectedInletVelocityFvPatchVectorField
(
const pressureDirectedInletVelocityFvPatchVectorField& pivpvf
@ -96,7 +92,7 @@ pressureDirectedInletVelocityFvPatchVectorField
{}
pressureDirectedInletVelocityFvPatchVectorField::
Foam::pressureDirectedInletVelocityFvPatchVectorField::
pressureDirectedInletVelocityFvPatchVectorField
(
const pressureDirectedInletVelocityFvPatchVectorField& pivpvf,
@ -112,7 +108,7 @@ pressureDirectedInletVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void pressureDirectedInletVelocityFvPatchVectorField::autoMap
void Foam::pressureDirectedInletVelocityFvPatchVectorField::autoMap
(
const fvPatchFieldMapper& m
)
@ -122,7 +118,7 @@ void pressureDirectedInletVelocityFvPatchVectorField::autoMap
}
void pressureDirectedInletVelocityFvPatchVectorField::rmap
void Foam::pressureDirectedInletVelocityFvPatchVectorField::rmap
(
const fvPatchVectorField& ptf,
const labelList& addr
@ -137,7 +133,7 @@ void pressureDirectedInletVelocityFvPatchVectorField::rmap
}
void pressureDirectedInletVelocityFvPatchVectorField::updateCoeffs()
void Foam::pressureDirectedInletVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -180,7 +176,10 @@ void pressureDirectedInletVelocityFvPatchVectorField::updateCoeffs()
}
void pressureDirectedInletVelocityFvPatchVectorField::write(Ostream& os) const
void Foam::pressureDirectedInletVelocityFvPatchVectorField::write
(
Ostream& os
) const
{
fvPatchVectorField::write(os);
writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
@ -192,7 +191,7 @@ void pressureDirectedInletVelocityFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
void pressureDirectedInletVelocityFvPatchVectorField::operator=
void Foam::pressureDirectedInletVelocityFvPatchVectorField::operator=
(
const fvPatchField<vector>& pvf
)
@ -203,15 +202,13 @@ void pressureDirectedInletVelocityFvPatchVectorField::operator=
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
pressureDirectedInletVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -28,14 +28,10 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
pressureInletOutletVelocityFvPatchVectorField::
Foam::pressureInletOutletVelocityFvPatchVectorField::
pressureInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -51,7 +47,7 @@ pressureInletOutletVelocityFvPatchVectorField
}
pressureInletOutletVelocityFvPatchVectorField::
Foam::pressureInletOutletVelocityFvPatchVectorField::
pressureInletOutletVelocityFvPatchVectorField
(
const pressureInletOutletVelocityFvPatchVectorField& ptf,
@ -70,7 +66,7 @@ pressureInletOutletVelocityFvPatchVectorField
}
pressureInletOutletVelocityFvPatchVectorField::
Foam::pressureInletOutletVelocityFvPatchVectorField::
pressureInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -100,7 +96,7 @@ pressureInletOutletVelocityFvPatchVectorField
}
pressureInletOutletVelocityFvPatchVectorField::
Foam::pressureInletOutletVelocityFvPatchVectorField::
pressureInletOutletVelocityFvPatchVectorField
(
const pressureInletOutletVelocityFvPatchVectorField& pivpvf
@ -112,7 +108,7 @@ pressureInletOutletVelocityFvPatchVectorField
{}
pressureInletOutletVelocityFvPatchVectorField::
Foam::pressureInletOutletVelocityFvPatchVectorField::
pressureInletOutletVelocityFvPatchVectorField
(
const pressureInletOutletVelocityFvPatchVectorField& pivpvf,
@ -127,7 +123,7 @@ pressureInletOutletVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void pressureInletOutletVelocityFvPatchVectorField::
void Foam::pressureInletOutletVelocityFvPatchVectorField::
setTangentialVelocity(const vectorField& tangentialVelocity)
{
tangentialVelocity_ = tangentialVelocity;
@ -136,7 +132,7 @@ setTangentialVelocity(const vectorField& tangentialVelocity)
}
void pressureInletOutletVelocityFvPatchVectorField::autoMap
void Foam::pressureInletOutletVelocityFvPatchVectorField::autoMap
(
const fvPatchFieldMapper& m
)
@ -149,7 +145,7 @@ void pressureInletOutletVelocityFvPatchVectorField::autoMap
}
void pressureInletOutletVelocityFvPatchVectorField::rmap
void Foam::pressureInletOutletVelocityFvPatchVectorField::rmap
(
const fvPatchVectorField& ptf,
const labelList& addr
@ -167,7 +163,7 @@ void pressureInletOutletVelocityFvPatchVectorField::rmap
}
void pressureInletOutletVelocityFvPatchVectorField::updateCoeffs()
void Foam::pressureInletOutletVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -184,7 +180,11 @@ void pressureInletOutletVelocityFvPatchVectorField::updateCoeffs()
}
void pressureInletOutletVelocityFvPatchVectorField::write(Ostream& os) const
void Foam::pressureInletOutletVelocityFvPatchVectorField::write
(
Ostream& os
)
const
{
fvPatchVectorField::write(os);
writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
@ -198,7 +198,7 @@ void pressureInletOutletVelocityFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
void pressureInletOutletVelocityFvPatchVectorField::operator=
void Foam::pressureInletOutletVelocityFvPatchVectorField::operator=
(
const fvPatchField<vector>& pvf
)
@ -211,14 +211,13 @@ void pressureInletOutletVelocityFvPatchVectorField::operator=
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
pressureInletOutletVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -28,14 +28,9 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
pressureInletUniformVelocityFvPatchVectorField::
Foam::pressureInletUniformVelocityFvPatchVectorField::
pressureInletUniformVelocityFvPatchVectorField
(
const fvPatch& p,
@ -46,7 +41,7 @@ pressureInletUniformVelocityFvPatchVectorField
{}
pressureInletUniformVelocityFvPatchVectorField::
Foam::pressureInletUniformVelocityFvPatchVectorField::
pressureInletUniformVelocityFvPatchVectorField
(
const pressureInletUniformVelocityFvPatchVectorField& ptf,
@ -59,7 +54,7 @@ pressureInletUniformVelocityFvPatchVectorField
{}
pressureInletUniformVelocityFvPatchVectorField::
Foam::pressureInletUniformVelocityFvPatchVectorField::
pressureInletUniformVelocityFvPatchVectorField
(
const fvPatch& p,
@ -71,7 +66,7 @@ pressureInletUniformVelocityFvPatchVectorField
{}
pressureInletUniformVelocityFvPatchVectorField::
Foam::pressureInletUniformVelocityFvPatchVectorField::
pressureInletUniformVelocityFvPatchVectorField
(
const pressureInletUniformVelocityFvPatchVectorField& pivpvf
@ -81,7 +76,7 @@ pressureInletUniformVelocityFvPatchVectorField
{}
pressureInletUniformVelocityFvPatchVectorField::
Foam::pressureInletUniformVelocityFvPatchVectorField::
pressureInletUniformVelocityFvPatchVectorField
(
const pressureInletUniformVelocityFvPatchVectorField& pivpvf,
@ -94,7 +89,7 @@ pressureInletUniformVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void pressureInletUniformVelocityFvPatchVectorField::updateCoeffs()
void Foam::pressureInletUniformVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -109,7 +104,7 @@ void pressureInletUniformVelocityFvPatchVectorField::updateCoeffs()
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
void pressureInletUniformVelocityFvPatchVectorField::operator=
void Foam::pressureInletUniformVelocityFvPatchVectorField::operator=
(
const fvPatchField<vector>& pvf
)
@ -120,14 +115,13 @@ void pressureInletUniformVelocityFvPatchVectorField::operator=
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
pressureInletUniformVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -28,14 +28,10 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
Foam::pressureInletVelocityFvPatchVectorField::
pressureInletVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF
@ -47,7 +43,8 @@ pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
{}
pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
Foam::pressureInletVelocityFvPatchVectorField::
pressureInletVelocityFvPatchVectorField
(
const pressureInletVelocityFvPatchVectorField& ptf,
const fvPatch& p,
@ -61,7 +58,8 @@ pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
{}
pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
Foam::pressureInletVelocityFvPatchVectorField::
pressureInletVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
@ -76,7 +74,8 @@ pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
}
pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
Foam::pressureInletVelocityFvPatchVectorField::
pressureInletVelocityFvPatchVectorField
(
const pressureInletVelocityFvPatchVectorField& pivpvf
)
@ -87,7 +86,8 @@ pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
{}
pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
Foam::pressureInletVelocityFvPatchVectorField::
pressureInletVelocityFvPatchVectorField
(
const pressureInletVelocityFvPatchVectorField& pivpvf,
const DimensionedField<vector, volMesh>& iF
@ -101,7 +101,7 @@ pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void pressureInletVelocityFvPatchVectorField::updateCoeffs()
void Foam::pressureInletVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -142,7 +142,7 @@ void pressureInletVelocityFvPatchVectorField::updateCoeffs()
}
void pressureInletVelocityFvPatchVectorField::write(Ostream& os) const
void Foam::pressureInletVelocityFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
@ -153,7 +153,7 @@ void pressureInletVelocityFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
void pressureInletVelocityFvPatchVectorField::operator=
void Foam::pressureInletVelocityFvPatchVectorField::operator=
(
const fvPatchField<vector>& pvf
)
@ -164,14 +164,13 @@ void pressureInletVelocityFvPatchVectorField::operator=
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
pressureInletVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -29,14 +29,10 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
pressureNormalInletOutletVelocityFvPatchVectorField::
Foam::pressureNormalInletOutletVelocityFvPatchVectorField::
pressureNormalInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -53,7 +49,7 @@ pressureNormalInletOutletVelocityFvPatchVectorField
}
pressureNormalInletOutletVelocityFvPatchVectorField::
Foam::pressureNormalInletOutletVelocityFvPatchVectorField::
pressureNormalInletOutletVelocityFvPatchVectorField
(
const pressureNormalInletOutletVelocityFvPatchVectorField& ptf,
@ -68,7 +64,7 @@ pressureNormalInletOutletVelocityFvPatchVectorField
{}
pressureNormalInletOutletVelocityFvPatchVectorField::
Foam::pressureNormalInletOutletVelocityFvPatchVectorField::
pressureNormalInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -87,7 +83,7 @@ pressureNormalInletOutletVelocityFvPatchVectorField
}
pressureNormalInletOutletVelocityFvPatchVectorField::
Foam::pressureNormalInletOutletVelocityFvPatchVectorField::
pressureNormalInletOutletVelocityFvPatchVectorField
(
const pressureNormalInletOutletVelocityFvPatchVectorField& pivpvf
@ -99,7 +95,7 @@ pressureNormalInletOutletVelocityFvPatchVectorField
{}
pressureNormalInletOutletVelocityFvPatchVectorField::
Foam::pressureNormalInletOutletVelocityFvPatchVectorField::
pressureNormalInletOutletVelocityFvPatchVectorField
(
const pressureNormalInletOutletVelocityFvPatchVectorField& pivpvf,
@ -114,7 +110,7 @@ pressureNormalInletOutletVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void pressureNormalInletOutletVelocityFvPatchVectorField::updateCoeffs()
void Foam::pressureNormalInletOutletVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -160,8 +156,10 @@ void pressureNormalInletOutletVelocityFvPatchVectorField::updateCoeffs()
}
void pressureNormalInletOutletVelocityFvPatchVectorField::
write(Ostream& os) const
void Foam::pressureNormalInletOutletVelocityFvPatchVectorField::write
(
Ostream& os
) const
{
fvPatchVectorField::write(os);
os.writeKeyword("phi") << phiName_ << token::END_STATEMENT << nl;
@ -172,7 +170,7 @@ write(Ostream& os) const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
void pressureNormalInletOutletVelocityFvPatchVectorField::operator=
void Foam::pressureNormalInletOutletVelocityFvPatchVectorField::operator=
(
const fvPatchField<vector>& pvf
)
@ -187,14 +185,13 @@ void pressureNormalInletOutletVelocityFvPatchVectorField::operator=
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
pressureNormalInletOutletVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -28,28 +28,25 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void rotatingPressureInletOutletVelocityFvPatchVectorField::
void Foam::rotatingPressureInletOutletVelocityFvPatchVectorField::
calcTangentialVelocity()
{
vector axisHat = omega_/mag(omega_);
vectorField tangentialVelocity =
(-omega_) ^ (patch().Cf() - axisHat*(axisHat & patch().Cf()));
const vectorField tangentialVelocity
(
(-omega_) ^ (patch().Cf() - axisHat*(axisHat & patch().Cf()))
);
vectorField n = patch().nf();
const vectorField n(patch().nf());
refValue() = tangentialVelocity - n*(n & tangentialVelocity);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
rotatingPressureInletOutletVelocityFvPatchVectorField::
Foam::rotatingPressureInletOutletVelocityFvPatchVectorField::
rotatingPressureInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -61,7 +58,7 @@ rotatingPressureInletOutletVelocityFvPatchVectorField
{}
rotatingPressureInletOutletVelocityFvPatchVectorField::
Foam::rotatingPressureInletOutletVelocityFvPatchVectorField::
rotatingPressureInletOutletVelocityFvPatchVectorField
(
const rotatingPressureInletOutletVelocityFvPatchVectorField& ptf,
@ -77,7 +74,7 @@ rotatingPressureInletOutletVelocityFvPatchVectorField
}
rotatingPressureInletOutletVelocityFvPatchVectorField::
Foam::rotatingPressureInletOutletVelocityFvPatchVectorField::
rotatingPressureInletOutletVelocityFvPatchVectorField
(
const fvPatch& p,
@ -92,7 +89,7 @@ rotatingPressureInletOutletVelocityFvPatchVectorField
}
rotatingPressureInletOutletVelocityFvPatchVectorField::
Foam::rotatingPressureInletOutletVelocityFvPatchVectorField::
rotatingPressureInletOutletVelocityFvPatchVectorField
(
const rotatingPressureInletOutletVelocityFvPatchVectorField& pivpvf
@ -105,7 +102,7 @@ rotatingPressureInletOutletVelocityFvPatchVectorField
}
rotatingPressureInletOutletVelocityFvPatchVectorField::
Foam::rotatingPressureInletOutletVelocityFvPatchVectorField::
rotatingPressureInletOutletVelocityFvPatchVectorField
(
const rotatingPressureInletOutletVelocityFvPatchVectorField& pivpvf,
@ -121,8 +118,10 @@ rotatingPressureInletOutletVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void rotatingPressureInletOutletVelocityFvPatchVectorField::
write(Ostream& os) const
void Foam::rotatingPressureInletOutletVelocityFvPatchVectorField::write
(
Ostream& os
) const
{
fvPatchVectorField::write(os);
os.writeKeyword("phi") << phiName() << token::END_STATEMENT << nl;
@ -133,14 +132,13 @@ write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
rotatingPressureInletOutletVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -29,14 +29,10 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
Foam::rotatingTotalPressureFvPatchScalarField::
rotatingTotalPressureFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
@ -47,7 +43,8 @@ rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
{}
rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
Foam::rotatingTotalPressureFvPatchScalarField::
rotatingTotalPressureFvPatchScalarField
(
const rotatingTotalPressureFvPatchScalarField& ptf,
const fvPatch& p,
@ -60,7 +57,8 @@ rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
{}
rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
Foam::rotatingTotalPressureFvPatchScalarField::
rotatingTotalPressureFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
@ -72,7 +70,8 @@ rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
{}
rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
Foam::rotatingTotalPressureFvPatchScalarField::
rotatingTotalPressureFvPatchScalarField
(
const rotatingTotalPressureFvPatchScalarField& tppsf
)
@ -82,7 +81,8 @@ rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
{}
rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
Foam::rotatingTotalPressureFvPatchScalarField::
rotatingTotalPressureFvPatchScalarField
(
const rotatingTotalPressureFvPatchScalarField& tppsf,
const DimensionedField<scalar, volMesh>& iF
@ -95,7 +95,7 @@ rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void rotatingTotalPressureFvPatchScalarField::updateCoeffs()
void Foam::rotatingTotalPressureFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -113,7 +113,7 @@ void rotatingTotalPressureFvPatchScalarField::updateCoeffs()
}
void rotatingTotalPressureFvPatchScalarField::write(Ostream& os) const
void Foam::rotatingTotalPressureFvPatchScalarField::write(Ostream& os) const
{
totalPressureFvPatchScalarField::write(os);
os.writeKeyword("omega")<< omega_ << token::END_STATEMENT << nl;
@ -122,14 +122,13 @@ void rotatingTotalPressureFvPatchScalarField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
rotatingTotalPressureFvPatchScalarField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -28,14 +28,10 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
Foam::rotatingWallVelocityFvPatchVectorField::
rotatingWallVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF
@ -48,7 +44,8 @@ rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
{}
rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
Foam::rotatingWallVelocityFvPatchVectorField::
rotatingWallVelocityFvPatchVectorField
(
const rotatingWallVelocityFvPatchVectorField& ptf,
const fvPatch& p,
@ -63,7 +60,8 @@ rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
{}
rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
Foam::rotatingWallVelocityFvPatchVectorField::
rotatingWallVelocityFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
@ -80,7 +78,8 @@ rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
}
rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
Foam::rotatingWallVelocityFvPatchVectorField::
rotatingWallVelocityFvPatchVectorField
(
const rotatingWallVelocityFvPatchVectorField& pivpvf
)
@ -92,7 +91,8 @@ rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
{}
rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
Foam::rotatingWallVelocityFvPatchVectorField::
rotatingWallVelocityFvPatchVectorField
(
const rotatingWallVelocityFvPatchVectorField& pivpvf,
const DimensionedField<vector, volMesh>& iF
@ -107,7 +107,7 @@ rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void rotatingWallVelocityFvPatchVectorField::updateCoeffs()
void Foam::rotatingWallVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -126,7 +126,7 @@ void rotatingWallVelocityFvPatchVectorField::updateCoeffs()
}
void rotatingWallVelocityFvPatchVectorField::write(Ostream& os) const
void Foam::rotatingWallVelocityFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
os.writeKeyword("origin") << origin_ << token::END_STATEMENT << nl;
@ -138,15 +138,13 @@ void rotatingWallVelocityFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
rotatingWallVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -28,14 +28,10 @@ License
#include "fvPatchFieldMapper.H"
#include "volFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
Foam::supersonicFreestreamFvPatchVectorField::
supersonicFreestreamFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF
@ -53,7 +49,8 @@ supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
}
supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
Foam::supersonicFreestreamFvPatchVectorField::
supersonicFreestreamFvPatchVectorField
(
const supersonicFreestreamFvPatchVectorField& ptf,
const fvPatch& p,
@ -69,7 +66,8 @@ supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
{}
supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
Foam::supersonicFreestreamFvPatchVectorField::
supersonicFreestreamFvPatchVectorField
(
const fvPatch& p,
const DimensionedField<vector, volMesh>& iF,
@ -115,7 +113,8 @@ supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
}
supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
Foam::supersonicFreestreamFvPatchVectorField::
supersonicFreestreamFvPatchVectorField
(
const supersonicFreestreamFvPatchVectorField& sfspvf
)
@ -128,7 +127,8 @@ supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
{}
supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
Foam::supersonicFreestreamFvPatchVectorField::
supersonicFreestreamFvPatchVectorField
(
const supersonicFreestreamFvPatchVectorField& sfspvf,
const DimensionedField<vector, volMesh>& iF
@ -144,7 +144,7 @@ supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void supersonicFreestreamFvPatchVectorField::updateCoeffs()
void Foam::supersonicFreestreamFvPatchVectorField::updateCoeffs()
{
if (!size() || updated())
{
@ -290,7 +290,7 @@ void supersonicFreestreamFvPatchVectorField::updateCoeffs()
}
void supersonicFreestreamFvPatchVectorField::write(Ostream& os) const
void Foam::supersonicFreestreamFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
os.writeKeyword("UInf") << UInf_ << token::END_STATEMENT << nl;
@ -303,14 +303,13 @@ void supersonicFreestreamFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
supersonicFreestreamFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -28,14 +28,9 @@ License
#include "volFields.H"
#include "fvPatchFieldMapper.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
surfaceNormalFixedValueFvPatchVectorField::
Foam::surfaceNormalFixedValueFvPatchVectorField::
surfaceNormalFixedValueFvPatchVectorField
(
const fvPatch& p,
@ -47,7 +42,7 @@ surfaceNormalFixedValueFvPatchVectorField
{}
surfaceNormalFixedValueFvPatchVectorField::
Foam::surfaceNormalFixedValueFvPatchVectorField::
surfaceNormalFixedValueFvPatchVectorField
(
const surfaceNormalFixedValueFvPatchVectorField& ptf,
@ -63,7 +58,7 @@ surfaceNormalFixedValueFvPatchVectorField
}
surfaceNormalFixedValueFvPatchVectorField::
Foam::surfaceNormalFixedValueFvPatchVectorField::
surfaceNormalFixedValueFvPatchVectorField
(
const fvPatch& p,
@ -78,7 +73,7 @@ surfaceNormalFixedValueFvPatchVectorField
}
surfaceNormalFixedValueFvPatchVectorField::
Foam::surfaceNormalFixedValueFvPatchVectorField::
surfaceNormalFixedValueFvPatchVectorField
(
const surfaceNormalFixedValueFvPatchVectorField& pivpvf
@ -89,7 +84,7 @@ surfaceNormalFixedValueFvPatchVectorField
{}
surfaceNormalFixedValueFvPatchVectorField::
Foam::surfaceNormalFixedValueFvPatchVectorField::
surfaceNormalFixedValueFvPatchVectorField
(
const surfaceNormalFixedValueFvPatchVectorField& pivpvf,
@ -103,7 +98,7 @@ surfaceNormalFixedValueFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void surfaceNormalFixedValueFvPatchVectorField::autoMap
void Foam::surfaceNormalFixedValueFvPatchVectorField::autoMap
(
const fvPatchFieldMapper& m
)
@ -113,7 +108,7 @@ void surfaceNormalFixedValueFvPatchVectorField::autoMap
}
void surfaceNormalFixedValueFvPatchVectorField::rmap
void Foam::surfaceNormalFixedValueFvPatchVectorField::rmap
(
const fvPatchVectorField& ptf,
const labelList& addr
@ -128,7 +123,7 @@ void surfaceNormalFixedValueFvPatchVectorField::rmap
}
void surfaceNormalFixedValueFvPatchVectorField::write(Ostream& os) const
void Foam::surfaceNormalFixedValueFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
refValue_.writeEntry("refValue", os);
@ -137,15 +132,13 @@ void surfaceNormalFixedValueFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
surfaceNormalFixedValueFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -29,14 +29,9 @@ License
#include "fvPatchFieldMapper.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
Foam::syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
@ -47,7 +42,7 @@ syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
{}
syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
Foam::syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
(
const syringePressureFvPatchScalarField& sppsf,
const fvPatch& p,
@ -71,7 +66,7 @@ syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
{}
syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
Foam::syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
@ -97,7 +92,7 @@ syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
}
syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
Foam::syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
(
const syringePressureFvPatchScalarField& sppsf,
const DimensionedField<scalar, volMesh>& iF
@ -119,7 +114,7 @@ syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
{}
syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
Foam::syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
(
const syringePressureFvPatchScalarField& sppsf
)
@ -142,7 +137,7 @@ syringePressureFvPatchScalarField::syringePressureFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar syringePressureFvPatchScalarField::Vs(const scalar t) const
Foam::scalar Foam::syringePressureFvPatchScalarField::Vs(const scalar t) const
{
if (t < tas_)
{
@ -181,7 +176,7 @@ scalar syringePressureFvPatchScalarField::Vs(const scalar t) const
}
void syringePressureFvPatchScalarField::updateCoeffs()
void Foam::syringePressureFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -229,7 +224,7 @@ void syringePressureFvPatchScalarField::updateCoeffs()
}
void syringePressureFvPatchScalarField::write(Ostream& os) const
void Foam::syringePressureFvPatchScalarField::write(Ostream& os) const
{
fvPatchScalarField::write(os);
@ -250,14 +245,13 @@ void syringePressureFvPatchScalarField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
syringePressureFvPatchScalarField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -28,14 +28,9 @@ License
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
translatingWallVelocityFvPatchVectorField::
Foam::translatingWallVelocityFvPatchVectorField::
translatingWallVelocityFvPatchVectorField
(
const fvPatch& p,
@ -47,7 +42,7 @@ translatingWallVelocityFvPatchVectorField
{}
translatingWallVelocityFvPatchVectorField::
Foam::translatingWallVelocityFvPatchVectorField::
translatingWallVelocityFvPatchVectorField
(
const translatingWallVelocityFvPatchVectorField& ptf,
@ -61,7 +56,7 @@ translatingWallVelocityFvPatchVectorField
{}
translatingWallVelocityFvPatchVectorField::
Foam::translatingWallVelocityFvPatchVectorField::
translatingWallVelocityFvPatchVectorField
(
const fvPatch& p,
@ -77,7 +72,7 @@ translatingWallVelocityFvPatchVectorField
}
translatingWallVelocityFvPatchVectorField::
Foam::translatingWallVelocityFvPatchVectorField::
translatingWallVelocityFvPatchVectorField
(
const translatingWallVelocityFvPatchVectorField& twvpvf
@ -88,7 +83,7 @@ translatingWallVelocityFvPatchVectorField
{}
translatingWallVelocityFvPatchVectorField::
Foam::translatingWallVelocityFvPatchVectorField::
translatingWallVelocityFvPatchVectorField
(
const translatingWallVelocityFvPatchVectorField& twvpvf,
@ -102,7 +97,7 @@ translatingWallVelocityFvPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void translatingWallVelocityFvPatchVectorField::updateCoeffs()
void Foam::translatingWallVelocityFvPatchVectorField::updateCoeffs()
{
if (updated())
{
@ -117,7 +112,7 @@ void translatingWallVelocityFvPatchVectorField::updateCoeffs()
}
void translatingWallVelocityFvPatchVectorField::write(Ostream& os) const
void Foam::translatingWallVelocityFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
os.writeKeyword("U") << U_ << token::END_STATEMENT << nl;
@ -127,15 +122,13 @@ void translatingWallVelocityFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchVectorField,
translatingWallVelocityFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -31,15 +31,10 @@ License
#include "CrankNicholsonDdtScheme.H"
#include "backwardDdtScheme.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
Foam::waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -52,7 +47,7 @@ waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
Foam::waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
(
const waveTransmissiveFvPatchField& ptf,
const fvPatch& p,
@ -67,7 +62,7 @@ waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
Foam::waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -81,7 +76,7 @@ waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
Foam::waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
(
const waveTransmissiveFvPatchField& ptpsf
)
@ -93,7 +88,7 @@ waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
Foam::waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
(
const waveTransmissiveFvPatchField& ptpsf,
const DimensionedField<Type, volMesh>& iF
@ -108,7 +103,8 @@ waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
tmp<scalarField> waveTransmissiveFvPatchField<Type>::advectionSpeed() const
Foam::tmp<Foam::scalarField>
Foam::waveTransmissiveFvPatchField<Type>::advectionSpeed() const
{
// Lookup the velocity and compressibility of the patch
const fvPatchField<scalar>& psip = this->patch().lookupPatchField
@ -149,7 +145,7 @@ tmp<scalarField> waveTransmissiveFvPatchField<Type>::advectionSpeed() const
template<class Type>
void waveTransmissiveFvPatchField<Type>::write(Ostream& os) const
void Foam::waveTransmissiveFvPatchField<Type>::write(Ostream& os) const
{
fvPatchField<Type>::write(os);
@ -179,8 +175,4 @@ void waveTransmissiveFvPatchField<Type>::write(Ostream& os) const
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -28,21 +28,19 @@ License
#include "fvMesh.H"
#include "transform.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defineTypeNameAndDebug(cyclicFvPatch, 0);
addToRunTimeSelectionTable(fvPatch, cyclicFvPatch, polyPatch);
defineTypeNameAndDebug(cyclicFvPatch, 0);
addToRunTimeSelectionTable(fvPatch, cyclicFvPatch, polyPatch);
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Make patch weighting factors
void cyclicFvPatch::makeWeights(scalarField& w) const
void Foam::cyclicFvPatch::makeWeights(scalarField& w) const
{
const cyclicFvPatch& nbrPatch = neighbFvPatch();
@ -58,7 +56,7 @@ void cyclicFvPatch::makeWeights(scalarField& w) const
if (mag(magFa[facei] - nbrMagFa[facei])/avFa > 1e-4)
{
FatalErrorIn("cyclicFvPatch::makeWeights(scalarField& w) const")
FatalErrorIn("cyclicFvPatch::makeWeights(scalarField&) const")
<< "face " << facei << " areas do not match by "
<< 100*mag(magFa[facei] - nbrMagFa[facei])/avFa
<< "% -- possible face ordering problem"
@ -74,7 +72,7 @@ void cyclicFvPatch::makeWeights(scalarField& w) const
// Make patch face - neighbour cell distances
void cyclicFvPatch::makeDeltaCoeffs(scalarField& dc) const
void Foam::cyclicFvPatch::makeDeltaCoeffs(scalarField& dc) const
{
//const cyclicPolyPatch& nbrPatch = cyclicPolyPatch_.neighbPatch();
const cyclicFvPatch& nbrPatch = neighbFvPatch();
@ -93,7 +91,7 @@ void cyclicFvPatch::makeDeltaCoeffs(scalarField& dc) const
// Return delta (P to N) vectors across coupled patch
tmp<vectorField> cyclicFvPatch::delta() const
Foam::tmp<Foam::vectorField> Foam::cyclicFvPatch::delta() const
{
vectorField patchD = fvPatch::delta();
vectorField nbrPatchD = neighbFvPatch().fvPatch::delta();
@ -127,7 +125,7 @@ tmp<vectorField> cyclicFvPatch::delta() const
}
tmp<labelField> cyclicFvPatch::interfaceInternalField
Foam::tmp<Foam::labelField> Foam::cyclicFvPatch::interfaceInternalField
(
const labelUList& internalData
) const
@ -136,7 +134,7 @@ tmp<labelField> cyclicFvPatch::interfaceInternalField
}
tmp<labelField> cyclicFvPatch::internalFieldTransfer
Foam::tmp<Foam::labelField> Foam::cyclicFvPatch::internalFieldTransfer
(
const Pstream::commsTypes commsType,
const labelUList& iF
@ -146,8 +144,4 @@ tmp<labelField> cyclicFvPatch::internalFieldTransfer
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -30,13 +30,9 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type, class Limiter, template<class> class LimitFunc>
tmp<surfaceScalarField> LimitedScheme<Type, Limiter, LimitFunc>::limiter
Foam::tmp<Foam::surfaceScalarField>
Foam::LimitedScheme<Type, Limiter, LimitFunc>::limiter
(
const GeometricField<Type, fvPatchField, volMesh>& phi
) const
@ -154,8 +150,4 @@ tmp<surfaceScalarField> LimitedScheme<Type, Limiter, LimitFunc>::limiter
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -31,13 +31,9 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type, class PhiLimiter>
tmp<surfaceScalarField> PhiScheme<Type, PhiLimiter>::limiter
Foam::tmp<Foam::surfaceScalarField>
Foam::PhiScheme<Type, PhiLimiter>::limiter
(
const GeometricField<Type, fvPatchField, volMesh>& phi
) const
@ -145,8 +141,4 @@ tmp<surfaceScalarField> PhiScheme<Type, PhiLimiter>::limiter
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -29,13 +29,8 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type, class Scheme>
multivariateScheme<Type, Scheme>::multivariateScheme
Foam::multivariateScheme<Type, Scheme>::multivariateScheme
(
const fvMesh& mesh,
const typename multivariateSurfaceInterpolationScheme<Type>::
@ -86,8 +81,4 @@ multivariateScheme<Type, Scheme>::multivariateScheme
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -29,15 +29,11 @@ License
#include "surfaceFields.H"
#include "upwind.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type>
multivariateSelectionScheme<Type>::multivariateSelectionScheme
Foam::multivariateSelectionScheme<Type>::multivariateSelectionScheme
(
const fvMesh& mesh,
const typename multivariateSurfaceInterpolationScheme<Type>::
@ -100,8 +96,4 @@ multivariateSelectionScheme<Type>::multivariateSelectionScheme
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -28,15 +28,11 @@ License
#include "volMesh.H"
#include "pointFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>
cellMotionFvPatchField<Type>::cellMotionFvPatchField
Foam::cellMotionFvPatchField<Type>::cellMotionFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF
@ -47,7 +43,7 @@ cellMotionFvPatchField<Type>::cellMotionFvPatchField
template<class Type>
cellMotionFvPatchField<Type>::cellMotionFvPatchField
Foam::cellMotionFvPatchField<Type>::cellMotionFvPatchField
(
const cellMotionFvPatchField<Type>& ptf,
const fvPatch& p,
@ -60,7 +56,7 @@ cellMotionFvPatchField<Type>::cellMotionFvPatchField
template<class Type>
cellMotionFvPatchField<Type>::cellMotionFvPatchField
Foam::cellMotionFvPatchField<Type>::cellMotionFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
@ -74,7 +70,7 @@ cellMotionFvPatchField<Type>::cellMotionFvPatchField
template<class Type>
cellMotionFvPatchField<Type>::cellMotionFvPatchField
Foam::cellMotionFvPatchField<Type>::cellMotionFvPatchField
(
const cellMotionFvPatchField<Type>& ptf
)
@ -84,7 +80,7 @@ cellMotionFvPatchField<Type>::cellMotionFvPatchField
template<class Type>
cellMotionFvPatchField<Type>::cellMotionFvPatchField
Foam::cellMotionFvPatchField<Type>::cellMotionFvPatchField
(
const cellMotionFvPatchField<Type>& ptf,
const DimensionedField<Type, volMesh>& iF
@ -97,7 +93,7 @@ cellMotionFvPatchField<Type>::cellMotionFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void cellMotionFvPatchField<Type>::updateCoeffs()
void Foam::cellMotionFvPatchField<Type>::updateCoeffs()
{
if (this->updated())
{
@ -129,15 +125,10 @@ void cellMotionFvPatchField<Type>::updateCoeffs()
template<class Type>
void cellMotionFvPatchField<Type>::write(Ostream& os) const
void Foam::cellMotionFvPatchField<Type>::write(Ostream& os) const
{
fvPatchField<Type>::write(os);
this->writeEntry("value", os);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -32,7 +32,7 @@ using namespace Foam::constant::mathematical;
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template<class CloudType>
Foam::scalarField Foam::LiquidEvaporation<CloudType>::calcXc
Foam::tmp<Foam::scalarField> Foam::LiquidEvaporation<CloudType>::calcXc
(
const label cellI
) const

View File

@ -30,15 +30,10 @@ License
#include "Ek.H"
#include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// from components
turbGen::turbGen(const Kmesh& k, const scalar EA, const scalar K0)
Foam::turbGen::turbGen(const Kmesh& k, const scalar EA, const scalar K0)
:
K(k),
Ea(EA),
@ -49,8 +44,7 @@ turbGen::turbGen(const Kmesh& k, const scalar EA, const scalar K0)
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// generate and return a velocity field
vectorField turbGen::U()
Foam::vectorField Foam::turbGen::U()
{
vectorField s(K.size());
scalarField rndPhases(K.size());
@ -78,9 +72,4 @@ vectorField turbGen::U()
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View File

@ -29,14 +29,10 @@ License
#include "volFields.H"
#include "basicThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
Foam::fixedInternalEnergyFvPatchScalarField::
fixedInternalEnergyFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
@ -46,7 +42,8 @@ fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
{}
fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
Foam::fixedInternalEnergyFvPatchScalarField::
fixedInternalEnergyFvPatchScalarField
(
const fixedInternalEnergyFvPatchScalarField& ptf,
const fvPatch& p,
@ -58,7 +55,8 @@ fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
{}
fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
Foam::fixedInternalEnergyFvPatchScalarField::
fixedInternalEnergyFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
@ -69,7 +67,8 @@ fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
{}
fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
Foam::fixedInternalEnergyFvPatchScalarField::
fixedInternalEnergyFvPatchScalarField
(
const fixedInternalEnergyFvPatchScalarField& tppsf
)
@ -78,7 +77,8 @@ fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
{}
fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
Foam::fixedInternalEnergyFvPatchScalarField::
fixedInternalEnergyFvPatchScalarField
(
const fixedInternalEnergyFvPatchScalarField& tppsf,
const DimensionedField<scalar, volMesh>& iF
@ -90,7 +90,7 @@ fixedInternalEnergyFvPatchScalarField::fixedInternalEnergyFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void fixedInternalEnergyFvPatchScalarField::updateCoeffs()
void Foam::fixedInternalEnergyFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -115,10 +115,13 @@ void fixedInternalEnergyFvPatchScalarField::updateCoeffs()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField(fvPatchScalarField, fixedInternalEnergyFvPatchScalarField);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
fixedInternalEnergyFvPatchScalarField
);
}
// ************************************************************************* //

View File

@ -29,14 +29,9 @@ License
#include "volFields.H"
#include "basicThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
gradientInternalEnergyFvPatchScalarField::
Foam::gradientInternalEnergyFvPatchScalarField::
gradientInternalEnergyFvPatchScalarField
(
const fvPatch& p,
@ -47,7 +42,7 @@ gradientInternalEnergyFvPatchScalarField
{}
gradientInternalEnergyFvPatchScalarField::
Foam::gradientInternalEnergyFvPatchScalarField::
gradientInternalEnergyFvPatchScalarField
(
const gradientInternalEnergyFvPatchScalarField& ptf,
@ -60,7 +55,7 @@ gradientInternalEnergyFvPatchScalarField
{}
gradientInternalEnergyFvPatchScalarField::
Foam::gradientInternalEnergyFvPatchScalarField::
gradientInternalEnergyFvPatchScalarField
(
const fvPatch& p,
@ -72,7 +67,7 @@ gradientInternalEnergyFvPatchScalarField
{}
gradientInternalEnergyFvPatchScalarField::
Foam::gradientInternalEnergyFvPatchScalarField::
gradientInternalEnergyFvPatchScalarField
(
const gradientInternalEnergyFvPatchScalarField& tppsf
@ -82,7 +77,7 @@ gradientInternalEnergyFvPatchScalarField
{}
gradientInternalEnergyFvPatchScalarField::
Foam::gradientInternalEnergyFvPatchScalarField::
gradientInternalEnergyFvPatchScalarField
(
const gradientInternalEnergyFvPatchScalarField& tppsf,
@ -95,7 +90,7 @@ gradientInternalEnergyFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void gradientInternalEnergyFvPatchScalarField::updateCoeffs()
void Foam::gradientInternalEnergyFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -127,14 +122,13 @@ void gradientInternalEnergyFvPatchScalarField::updateCoeffs()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
gradientInternalEnergyFvPatchScalarField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -29,14 +29,11 @@ License
#include "volFields.H"
#include "basicThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
Foam::mixedInternalEnergyFvPatchScalarField::
mixedInternalEnergyFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
@ -50,7 +47,8 @@ mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
}
mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
Foam::mixedInternalEnergyFvPatchScalarField::
mixedInternalEnergyFvPatchScalarField
(
const mixedInternalEnergyFvPatchScalarField& ptf,
const fvPatch& p,
@ -62,7 +60,8 @@ mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
{}
mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
Foam::mixedInternalEnergyFvPatchScalarField::
mixedInternalEnergyFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
@ -73,7 +72,8 @@ mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
{}
mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
Foam::mixedInternalEnergyFvPatchScalarField::
mixedInternalEnergyFvPatchScalarField
(
const mixedInternalEnergyFvPatchScalarField& tppsf
)
@ -82,7 +82,8 @@ mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
{}
mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
Foam::mixedInternalEnergyFvPatchScalarField::
mixedInternalEnergyFvPatchScalarField
(
const mixedInternalEnergyFvPatchScalarField& tppsf,
const DimensionedField<scalar, volMesh>& iF
@ -94,7 +95,7 @@ mixedInternalEnergyFvPatchScalarField::mixedInternalEnergyFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void mixedInternalEnergyFvPatchScalarField::updateCoeffs()
void Foam::mixedInternalEnergyFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -131,10 +132,13 @@ void mixedInternalEnergyFvPatchScalarField::updateCoeffs()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField(fvPatchScalarField, mixedInternalEnergyFvPatchScalarField);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
mixedInternalEnergyFvPatchScalarField
);
}
// ************************************************************************* //

View File

@ -29,14 +29,11 @@ License
#include "volFields.H"
#include "hhuCombustionThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
Foam::fixedUnburntEnthalpyFvPatchScalarField::
fixedUnburntEnthalpyFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
@ -46,7 +43,8 @@ fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
{}
fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
Foam::fixedUnburntEnthalpyFvPatchScalarField::
fixedUnburntEnthalpyFvPatchScalarField
(
const fixedUnburntEnthalpyFvPatchScalarField& ptf,
const fvPatch& p,
@ -58,7 +56,8 @@ fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
{}
fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
Foam::fixedUnburntEnthalpyFvPatchScalarField::
fixedUnburntEnthalpyFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
@ -69,7 +68,8 @@ fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
{}
fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
Foam::fixedUnburntEnthalpyFvPatchScalarField::
fixedUnburntEnthalpyFvPatchScalarField
(
const fixedUnburntEnthalpyFvPatchScalarField& tppsf
)
@ -78,7 +78,8 @@ fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
{}
fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
Foam::fixedUnburntEnthalpyFvPatchScalarField::
fixedUnburntEnthalpyFvPatchScalarField
(
const fixedUnburntEnthalpyFvPatchScalarField& tppsf,
const DimensionedField<scalar, volMesh>& iF
@ -90,7 +91,7 @@ fixedUnburntEnthalpyFvPatchScalarField::fixedUnburntEnthalpyFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void fixedUnburntEnthalpyFvPatchScalarField::updateCoeffs()
void Foam::fixedUnburntEnthalpyFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -115,10 +116,13 @@ void fixedUnburntEnthalpyFvPatchScalarField::updateCoeffs()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField(fvPatchScalarField, fixedUnburntEnthalpyFvPatchScalarField);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
fixedUnburntEnthalpyFvPatchScalarField
);
}
// ************************************************************************* //

View File

@ -29,14 +29,9 @@ License
#include "volFields.H"
#include "hhuCombustionThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
gradientUnburntEnthalpyFvPatchScalarField::
Foam::gradientUnburntEnthalpyFvPatchScalarField::
gradientUnburntEnthalpyFvPatchScalarField
(
const fvPatch& p,
@ -47,7 +42,7 @@ gradientUnburntEnthalpyFvPatchScalarField
{}
gradientUnburntEnthalpyFvPatchScalarField::
Foam::gradientUnburntEnthalpyFvPatchScalarField::
gradientUnburntEnthalpyFvPatchScalarField
(
const gradientUnburntEnthalpyFvPatchScalarField& ptf,
@ -60,7 +55,7 @@ gradientUnburntEnthalpyFvPatchScalarField
{}
gradientUnburntEnthalpyFvPatchScalarField::
Foam::gradientUnburntEnthalpyFvPatchScalarField::
gradientUnburntEnthalpyFvPatchScalarField
(
const fvPatch& p,
@ -72,7 +67,7 @@ gradientUnburntEnthalpyFvPatchScalarField
{}
gradientUnburntEnthalpyFvPatchScalarField::
Foam::gradientUnburntEnthalpyFvPatchScalarField::
gradientUnburntEnthalpyFvPatchScalarField
(
const gradientUnburntEnthalpyFvPatchScalarField& tppsf
@ -82,7 +77,7 @@ gradientUnburntEnthalpyFvPatchScalarField
{}
gradientUnburntEnthalpyFvPatchScalarField::
Foam::gradientUnburntEnthalpyFvPatchScalarField::
gradientUnburntEnthalpyFvPatchScalarField
(
const gradientUnburntEnthalpyFvPatchScalarField& tppsf,
@ -95,7 +90,7 @@ gradientUnburntEnthalpyFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void gradientUnburntEnthalpyFvPatchScalarField::updateCoeffs()
void Foam::gradientUnburntEnthalpyFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -127,14 +122,13 @@ void gradientUnburntEnthalpyFvPatchScalarField::updateCoeffs()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
(
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
gradientUnburntEnthalpyFvPatchScalarField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
);
}
// ************************************************************************* //

View File

@ -29,14 +29,10 @@ License
#include "volFields.H"
#include "hhuCombustionThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
Foam::mixedUnburntEnthalpyFvPatchScalarField::
mixedUnburntEnthalpyFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF
@ -50,7 +46,8 @@ mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
}
mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
Foam::mixedUnburntEnthalpyFvPatchScalarField::
mixedUnburntEnthalpyFvPatchScalarField
(
const mixedUnburntEnthalpyFvPatchScalarField& ptf,
const fvPatch& p,
@ -62,7 +59,8 @@ mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
{}
mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
Foam::mixedUnburntEnthalpyFvPatchScalarField::
mixedUnburntEnthalpyFvPatchScalarField
(
const fvPatch& p,
const DimensionedField<scalar, volMesh>& iF,
@ -73,7 +71,8 @@ mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
{}
mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
Foam::mixedUnburntEnthalpyFvPatchScalarField::
mixedUnburntEnthalpyFvPatchScalarField
(
const mixedUnburntEnthalpyFvPatchScalarField& tppsf
)
@ -82,7 +81,8 @@ mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
{}
mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
Foam::mixedUnburntEnthalpyFvPatchScalarField::
mixedUnburntEnthalpyFvPatchScalarField
(
const mixedUnburntEnthalpyFvPatchScalarField& tppsf,
const DimensionedField<scalar, volMesh>& iF
@ -94,7 +94,7 @@ mixedUnburntEnthalpyFvPatchScalarField::mixedUnburntEnthalpyFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void mixedUnburntEnthalpyFvPatchScalarField::updateCoeffs()
void Foam::mixedUnburntEnthalpyFvPatchScalarField::updateCoeffs()
{
if (updated())
{
@ -130,10 +130,13 @@ void mixedUnburntEnthalpyFvPatchScalarField::updateCoeffs()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField(fvPatchScalarField, mixedUnburntEnthalpyFvPatchScalarField);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
namespace Foam
{
makePatchTypeField
(
fvPatchScalarField,
mixedUnburntEnthalpyFvPatchScalarField
);
}
// ************************************************************************* //