BUGFIX: Minor fixes and formatting. Author: Hrvoje Jasak. Merge: Dominik Christ.
This commit is contained in:
commit
6337756e8c
14 changed files with 40 additions and 29 deletions
|
@ -33,9 +33,9 @@ Description
|
|||
|
||||
#undef yyFlexLexer
|
||||
|
||||
/* ------------------------------------------------------------------------- *\
|
||||
/* ------------------------------------------------------------------------ *\
|
||||
------ local definitions
|
||||
\* ------------------------------------------------------------------------- */
|
||||
\* ------------------------------------------------------------------------ */
|
||||
|
||||
#include <sstream>
|
||||
// For EOF only
|
||||
|
@ -124,9 +124,9 @@ elementType ^{space}"TYPE"{cspace}
|
|||
%}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *\
|
||||
/* ------------------------------------------------------------------------ *\
|
||||
------ Start Lexing ------
|
||||
\* ------------------------------------------------------------------------- */
|
||||
\* ------------------------------------------------------------------------ */
|
||||
|
||||
{node}{label}{cspace}{x}{cspace}{y}{cspace}{z}{space}\n {
|
||||
IStringStream nodeStream(YYText());
|
||||
|
@ -249,16 +249,16 @@ elementType ^{space}"TYPE"{cspace}
|
|||
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *\
|
||||
/* ------------------------------------------------------------------------ *\
|
||||
------ Ignore remaining space and \n s. Any other characters are errors.
|
||||
\* ------------------------------------------------------------------------- */
|
||||
\* ------------------------------------------------------------------------ */
|
||||
|
||||
.|\n {}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *\
|
||||
/* ------------------------------------------------------------------------ *\
|
||||
------ On EOF return to previous file, if none exists terminate.
|
||||
\* ------------------------------------------------------------------------- */
|
||||
\* ------------------------------------------------------------------------ */
|
||||
|
||||
<<EOF>> {
|
||||
yyterminate();
|
||||
|
@ -270,16 +270,24 @@ elementType ^{space}"TYPE"{cspace}
|
|||
#include <fstream>
|
||||
using std::ifstream;
|
||||
|
||||
|
||||
label findFace(const polyMesh& mesh, const face& f)
|
||||
{
|
||||
if (f.empty())
|
||||
{
|
||||
FatalErrorIn("findFace(const polyMesh&, const face&)")
|
||||
<< "Empty face found: " << f
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
const faceList& faces = mesh.faces();
|
||||
|
||||
const labelList& pFaces = mesh.pointFaces()[f[0]];
|
||||
|
||||
forAll(pFaces, i)
|
||||
forAll (pFaces, i)
|
||||
{
|
||||
label faceI = pFaces[i];
|
||||
|
||||
if (mesh.faces()[faceI] == f)
|
||||
if (faces[faceI] == f)
|
||||
{
|
||||
return faceI;
|
||||
}
|
||||
|
|
|
@ -150,7 +150,7 @@ tmp<Field<Type> > cyclicFvPatchField<Type>::patchNeighbourField() const
|
|||
|
||||
if (doTransform())
|
||||
{
|
||||
for (label facei=0; facei<sizeby2; facei++)
|
||||
for (label facei = 0; facei < sizeby2; facei++)
|
||||
{
|
||||
pnf[facei] = transform
|
||||
(
|
||||
|
@ -165,7 +165,7 @@ tmp<Field<Type> > cyclicFvPatchField<Type>::patchNeighbourField() const
|
|||
}
|
||||
else
|
||||
{
|
||||
for (label facei=0; facei<sizeby2; facei++)
|
||||
for (label facei = 0; facei < sizeby2; facei++)
|
||||
{
|
||||
pnf[facei] = iField[faceCells[facei + sizeby2]];
|
||||
pnf[facei + sizeby2] = iField[faceCells[facei]];
|
||||
|
@ -193,7 +193,7 @@ void cyclicFvPatchField<Type>::updateInterfaceMatrix
|
|||
label sizeby2 = this->size()/2;
|
||||
const unallocLabelList& faceCells = cyclicPatch_.faceCells();
|
||||
|
||||
for (label facei=0; facei<sizeby2; facei++)
|
||||
for (label facei = 0; facei < sizeby2; facei++)
|
||||
{
|
||||
pnf[facei] = psiInternal[faceCells[facei + sizeby2]];
|
||||
pnf[facei + sizeby2] = psiInternal[faceCells[facei]];
|
||||
|
|
|
@ -46,7 +46,7 @@ void cyclicFvPatch::makeWeights(scalarField& w) const
|
|||
const scalarField& magFa = magSf();
|
||||
|
||||
// Note: mag in the dot-product.
|
||||
// For all valid meshes, the non-orthogonality will be less that
|
||||
// For all valid meshes, the non-orthogonality will be less than
|
||||
// 90 deg and the dot-product will be positive. For invalid
|
||||
// meshes (d & s <= 0), this will stabilise the calculation
|
||||
// but the result will be poor. HJ, 24/Aug/2011
|
||||
|
|
|
@ -55,7 +55,7 @@ void Foam::cyclicGgiFvPatch::makeWeights(scalarField& w) const
|
|||
vectorField n = nf();
|
||||
|
||||
// Note: mag in the dot-product.
|
||||
// For all valid meshes, the non-orthogonality will be less that
|
||||
// For all valid meshes, the non-orthogonality will be less than
|
||||
// 90 deg and the dot-product will be positive. For invalid
|
||||
// meshes (d & s <= 0), this will stabilise the calculation
|
||||
// but the result will be poor. HJ, 24/Aug/2011
|
||||
|
|
|
@ -65,7 +65,7 @@ void Foam::ggiFvPatch::makeWeights(scalarField& w) const
|
|||
vectorField n = nf();
|
||||
|
||||
// Note: mag in the dot-product.
|
||||
// For all valid meshes, the non-orthogonality will be less that
|
||||
// For all valid meshes, the non-orthogonality will be less than
|
||||
// 90 deg and the dot-product will be positive. For invalid
|
||||
// meshes (d & s <= 0), this will stabilise the calculation
|
||||
// but the result will be poor. HJ, 24/Aug/2011
|
||||
|
|
|
@ -64,7 +64,7 @@ void Foam::mixingPlaneFvPatch::makeWeights(scalarField& w) const
|
|||
vectorField n = nf();
|
||||
|
||||
// Note: mag in the dot-product.
|
||||
// For all valid meshes, the non-orthogonality will be less that
|
||||
// For all valid meshes, the non-orthogonality will be less than
|
||||
// 90 deg and the dot-product will be positive. For invalid
|
||||
// meshes (d & s <= 0), this will stabilise the calculation
|
||||
// but the result will be poor. HJ, 24/Aug/2011
|
||||
|
|
|
@ -52,7 +52,7 @@ void Foam::overlapGgiFvPatch::makeWeights(scalarField& w) const
|
|||
vectorField n = nf();
|
||||
|
||||
// Note: mag in the dot-product.
|
||||
// For all valid meshes, the non-orthogonality will be less that
|
||||
// For all valid meshes, the non-orthogonality will be less than
|
||||
// 90 deg and the dot-product will be positive. For invalid
|
||||
// meshes (d & s <= 0), this will stabilise the calculation
|
||||
// but the result will be poor. HJ, 24/Aug/2011
|
||||
|
|
|
@ -47,7 +47,7 @@ void processorFvPatch::makeWeights(scalarField& w) const
|
|||
// The face normals point in the opposite direction on the other side
|
||||
|
||||
// Note: mag in the dot-product.
|
||||
// For all valid meshes, the non-orthogonality will be less that
|
||||
// For all valid meshes, the non-orthogonality will be less than
|
||||
// 90 deg and the dot-product will be positive. For invalid
|
||||
// meshes (d & s <= 0), this will stabilise the calculation
|
||||
// but the result will be poor. HJ, 24/Aug/2011
|
||||
|
|
|
@ -62,7 +62,7 @@ void Foam::regionCoupleFvPatch::makeWeights(scalarField& w) const
|
|||
vectorField n = nf();
|
||||
|
||||
// Note: mag in the dot-product.
|
||||
// For all valid meshes, the non-orthogonality will be less that
|
||||
// For all valid meshes, the non-orthogonality will be less than
|
||||
// 90 deg and the dot-product will be positive. For invalid
|
||||
// meshes (d & s <= 0), this will stabilise the calculation
|
||||
// but the result will be poor. HJ, 24/Aug/2011
|
||||
|
|
|
@ -171,7 +171,7 @@ void Foam::surfaceInterpolation::makeWeights() const
|
|||
forAll (owner, facei)
|
||||
{
|
||||
// Note: mag in the dot-product.
|
||||
// For all valid meshes, the non-orthogonality will be less that
|
||||
// For all valid meshes, the non-orthogonality will be less than
|
||||
// 90 deg and the dot-product will be positive. For invalid
|
||||
// meshes (d & s <= 0), this will stabilise the calculation
|
||||
// but the result will be poor.
|
||||
|
|
|
@ -87,6 +87,7 @@ class overlapGgiPolyPatch
|
|||
// Number of copies in order to complete 360 degrees
|
||||
const label nCopies_;
|
||||
|
||||
|
||||
// Interpolation
|
||||
|
||||
//- Pointer to expanded master patch
|
||||
|
@ -106,6 +107,7 @@ class overlapGgiPolyPatch
|
|||
//- Reconstructed patch neighbour cell centres
|
||||
mutable vectorField* reconFaceCellCentresPtr_;
|
||||
|
||||
|
||||
// Private member functions
|
||||
|
||||
//- Return reference to patch-to-patch interpolation
|
||||
|
|
|
@ -85,6 +85,7 @@ Foam::overlapGgiPolyPatch::expandData(const Field<Type>& pf) const
|
|||
return texpandField;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
|
@ -138,4 +139,5 @@ Foam::overlapGgiPolyPatch::interpolate(const tmp<Field<Type> >& tpf) const
|
|||
return tint;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
|
@ -410,7 +410,6 @@ void meshToMesh::cellAddresses
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -275,7 +275,7 @@ public:
|
|||
(
|
||||
Field<Type>&,
|
||||
const GeometricField<Type, fvPatchField, volMesh>&,
|
||||
order=INTERPOLATE
|
||||
order = INTERPOLATE
|
||||
) const;
|
||||
|
||||
template<class Type>
|
||||
|
@ -283,7 +283,7 @@ public:
|
|||
(
|
||||
Field<Type>&,
|
||||
const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
|
||||
order=INTERPOLATE
|
||||
order = INTERPOLATE
|
||||
) const;
|
||||
|
||||
|
||||
|
@ -293,7 +293,7 @@ public:
|
|||
(
|
||||
GeometricField<Type, fvPatchField, volMesh>&,
|
||||
const GeometricField<Type, fvPatchField, volMesh>&,
|
||||
order=INTERPOLATE
|
||||
order = INTERPOLATE
|
||||
) const;
|
||||
|
||||
template<class Type>
|
||||
|
@ -301,7 +301,7 @@ public:
|
|||
(
|
||||
GeometricField<Type, fvPatchField, volMesh>&,
|
||||
const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
|
||||
order=INTERPOLATE
|
||||
order = INTERPOLATE
|
||||
) const;
|
||||
|
||||
|
||||
|
@ -310,14 +310,14 @@ public:
|
|||
tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate
|
||||
(
|
||||
const GeometricField<Type, fvPatchField, volMesh>&,
|
||||
order=INTERPOLATE
|
||||
order = INTERPOLATE
|
||||
) const;
|
||||
|
||||
template<class Type>
|
||||
tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate
|
||||
(
|
||||
const tmp<GeometricField<Type, fvPatchField, volMesh> >&,
|
||||
order=INTERPOLATE
|
||||
order = INTERPOLATE
|
||||
) const;
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue