Corrected typos in comments
found using cspell. Patch contributed by Timo Niemi, VTT. Resolves patch request https://bugs.openfoam.org/view.php?id=3372
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -145,7 +145,7 @@ int main(int argc, char *argv[])
|
|||||||
fcs[1] = face(labelList(2, 222));
|
fcs[1] = face(labelList(2, 222));
|
||||||
|
|
||||||
CompactListList<label, face> compactFcs(fcs);
|
CompactListList<label, face> compactFcs(fcs);
|
||||||
Info<< "comactFcs:" << compactFcs << endl;
|
Info<< "compactFcs:" << compactFcs << endl;
|
||||||
|
|
||||||
faceList fcs2 = compactFcs();
|
faceList fcs2 = compactFcs();
|
||||||
Info<< "fcs2:" << fcs2 << endl;
|
Info<< "fcs2:" << fcs2 << endl;
|
||||||
|
|||||||
@ -22,7 +22,7 @@ main()
|
|||||||
|
|
||||||
cerr << "deallocated ints\n";
|
cerr << "deallocated ints\n";
|
||||||
|
|
||||||
cerr << "alloacting doubles\n";
|
cerr << "allocating doubles\n";
|
||||||
|
|
||||||
double* doubles = new double[500000];
|
double* doubles = new double[500000];
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -517,7 +517,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Could not insert mesh edge " << edgeI
|
Info<< "Could not insert mesh edge " << edgeI
|
||||||
<< " for input point " << pts.first() << nl
|
<< " for input point " << pts.first() << nl
|
||||||
<< "Perhaps the edge is already marked for collaping?" << endl;
|
<< "Perhaps the edge is already marked for collapsing?" << endl;
|
||||||
|
|
||||||
validInputs = false;
|
validInputs = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -112,7 +112,7 @@ hexBlock::hexBlock(const label nx, const label ny, const label nz)
|
|||||||
void hexBlock::readPoints
|
void hexBlock::readPoints
|
||||||
(
|
(
|
||||||
const bool readBlank,
|
const bool readBlank,
|
||||||
const scalar twoDThicknes,
|
const scalar twoDThickness,
|
||||||
Istream& is
|
Istream& is
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -120,7 +120,7 @@ void hexBlock::readPoints
|
|||||||
|
|
||||||
label nPoints = points_.size();
|
label nPoints = points_.size();
|
||||||
|
|
||||||
if (twoDThicknes > 0)
|
if (twoDThickness > 0)
|
||||||
{
|
{
|
||||||
nPoints /= 2;
|
nPoints /= 2;
|
||||||
}
|
}
|
||||||
@ -137,7 +137,7 @@ void hexBlock::readPoints
|
|||||||
is >> points_[i].y();
|
is >> points_[i].y();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (twoDThicknes > 0)
|
if (twoDThickness > 0)
|
||||||
{
|
{
|
||||||
Info<< "Extruding " << nPoints << " points in z direction..." << endl;
|
Info<< "Extruding " << nPoints << " points in z direction..." << endl;
|
||||||
// Duplicate points
|
// Duplicate points
|
||||||
@ -148,7 +148,7 @@ void hexBlock::readPoints
|
|||||||
for (label i=0; i < nPoints; i++)
|
for (label i=0; i < nPoints; i++)
|
||||||
{
|
{
|
||||||
points_[i].z() = 0;
|
points_[i].z() = 0;
|
||||||
points_[i+nPoints].z() = twoDThicknes;
|
points_[i+nPoints].z() = twoDThickness;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -149,7 +149,7 @@ public:
|
|||||||
void readPoints
|
void readPoints
|
||||||
(
|
(
|
||||||
const bool readBlank,
|
const bool readBlank,
|
||||||
const scalar twoDThicknes,
|
const scalar twoDThickness,
|
||||||
Istream&
|
Istream&
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -93,7 +93,7 @@ void Foam::sammMesh::fixCollapsedEdges()
|
|||||||
forAll(vertexLabels, vI)
|
forAll(vertexLabels, vI)
|
||||||
{
|
{
|
||||||
// In order for a face to be a valid entity, duplicate
|
// In order for a face to be a valid entity, duplicate
|
||||||
// vertices can only be consecutive (othervise, the
|
// vertices can only be consecutive (otherwise, the
|
||||||
// collapse creates an invalid face). We shall use this
|
// collapse creates an invalid face). We shall use this
|
||||||
// property in the creation of the collapsed face
|
// property in the creation of the collapsed face
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ void Foam::sammMesh::fixCollapsedEdges()
|
|||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "face " << facei << " of cell " << celli
|
<< "face " << facei << " of cell " << celli
|
||||||
<< " is colapsed down to a point or edge, which is "
|
<< " is collapsed down to a point or edge, which is "
|
||||||
<< "not permitted" << endl
|
<< "not permitted" << endl
|
||||||
<< "original face: " << vertexLabels << endl
|
<< "original face: " << vertexLabels << endl
|
||||||
<< "purged face: " << newFace << endl
|
<< "purged face: " << newFace << endl
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -92,7 +92,7 @@ void Foam::starMesh::fixCollapsedEdges()
|
|||||||
forAll(vertexLabels, vI)
|
forAll(vertexLabels, vI)
|
||||||
{
|
{
|
||||||
// In order for a face to be a valid entity, duplicate
|
// In order for a face to be a valid entity, duplicate
|
||||||
// vertices can only be consecutive (othervise, the
|
// vertices can only be consecutive (otherwise, the
|
||||||
// collapse creates an invalid face). We shall use this
|
// collapse creates an invalid face). We shall use this
|
||||||
// property in the creation of the collapsed face
|
// property in the creation of the collapsed face
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ void Foam::starMesh::fixCollapsedEdges()
|
|||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "Face " << facei << " of cell " << celli
|
<< "Face " << facei << " of cell " << celli
|
||||||
<< " is colapsed down to a point or edge, which is "
|
<< " is collapsed down to a point or edge, which is "
|
||||||
<< "not permitted" << endl
|
<< "not permitted" << endl
|
||||||
<< "original face: " << vertexLabels << endl
|
<< "original face: " << vertexLabels << endl
|
||||||
<< "purged face: " << newFace << endl
|
<< "purged face: " << newFace << endl
|
||||||
|
|||||||
@ -268,7 +268,7 @@ int main(int argc, char *argv[])
|
|||||||
if (nElemAttr != 0)
|
if (nElemAttr != 0)
|
||||||
{
|
{
|
||||||
WarningInFunction
|
WarningInFunction
|
||||||
<< "Element attributes (third elemenent in .ele header)"
|
<< "Element attributes (third element in .ele header)"
|
||||||
<< " not used" << endl;
|
<< " not used" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -232,7 +232,7 @@ private:
|
|||||||
void checkCoeffs
|
void checkCoeffs
|
||||||
(
|
(
|
||||||
const scalarList& reactionCoeffs,
|
const scalarList& reactionCoeffs,
|
||||||
const char* reationRateName,
|
const char* reactionRateName,
|
||||||
const label nCoeffs
|
const label nCoeffs
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -94,7 +94,7 @@ Foam::LduMatrix<Type, DType, LUType>::preconditioner::New
|
|||||||
FatalIOErrorInFunction
|
FatalIOErrorInFunction
|
||||||
(
|
(
|
||||||
preconditionerDict
|
preconditionerDict
|
||||||
) << "cannot preconditione incomplete matrix, "
|
) << "cannot precondition incomplete matrix, "
|
||||||
"no diagonal or off-diagonal coefficient"
|
"no diagonal or off-diagonal coefficient"
|
||||||
<< exit(FatalIOError);
|
<< exit(FatalIOError);
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -142,7 +142,7 @@ Foam::processorGAMGInterface::processorGAMGInterface
|
|||||||
const label index,
|
const label index,
|
||||||
const lduInterfacePtrsList& coarseInterfaces,
|
const lduInterfacePtrsList& coarseInterfaces,
|
||||||
const labelUList& faceCells,
|
const labelUList& faceCells,
|
||||||
const labelUList& faceRestrictAddresssing,
|
const labelUList& faceRestrictAddressing,
|
||||||
const label coarseComm,
|
const label coarseComm,
|
||||||
const label myProcNo,
|
const label myProcNo,
|
||||||
const label neighbProcNo,
|
const label neighbProcNo,
|
||||||
@ -155,7 +155,7 @@ Foam::processorGAMGInterface::processorGAMGInterface
|
|||||||
index,
|
index,
|
||||||
coarseInterfaces,
|
coarseInterfaces,
|
||||||
faceCells,
|
faceCells,
|
||||||
faceRestrictAddresssing
|
faceRestrictAddressing
|
||||||
),
|
),
|
||||||
comm_(coarseComm),
|
comm_(coarseComm),
|
||||||
myProcNo_(myProcNo),
|
myProcNo_(myProcNo),
|
||||||
|
|||||||
@ -5642,7 +5642,7 @@ void Foam::hexRef8::setUnrefinement
|
|||||||
if (facesToRemove.size() != splitFaces.size())
|
if (facesToRemove.size() != splitFaces.size())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "Ininitial set of split points to unrefine does not"
|
<< "Initial set of split points to unrefine does not"
|
||||||
<< " seem to be consistent or not mid points of refined cells"
|
<< " seem to be consistent or not mid points of refined cells"
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
@ -5685,7 +5685,7 @@ void Foam::hexRef8::setUnrefinement
|
|||||||
if (region == -1)
|
if (region == -1)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "Ininitial set of split points to unrefine does not"
|
<< "Initial set of split points to unrefine does not"
|
||||||
<< " seem to be consistent or not mid points"
|
<< " seem to be consistent or not mid points"
|
||||||
<< " of refined cells" << nl
|
<< " of refined cells" << nl
|
||||||
<< "cell:" << celli << " on splitPoint " << pointi
|
<< "cell:" << celli << " on splitPoint " << pointi
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -246,7 +246,7 @@ void Foam::FreeStream<CloudType>::inflow()
|
|||||||
// Cumulative triangle area fractions
|
// Cumulative triangle area fractions
|
||||||
List<scalar> cTriAFracs(faceTets.size(), 0.0);
|
List<scalar> cTriAFracs(faceTets.size(), 0.0);
|
||||||
|
|
||||||
scalar previousCummulativeSum = 0.0;
|
scalar previousCumulativeSum = 0.0;
|
||||||
|
|
||||||
forAll(faceTets, triI)
|
forAll(faceTets, triI)
|
||||||
{
|
{
|
||||||
@ -254,9 +254,9 @@ void Foam::FreeStream<CloudType>::inflow()
|
|||||||
|
|
||||||
cTriAFracs[triI] =
|
cTriAFracs[triI] =
|
||||||
faceTetIs.faceTri(mesh).mag()/fA
|
faceTetIs.faceTri(mesh).mag()/fA
|
||||||
+ previousCummulativeSum;
|
+ previousCumulativeSum;
|
||||||
|
|
||||||
previousCummulativeSum = cTriAFracs[triI];
|
previousCumulativeSum = cTriAFracs[triI];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Force the last area fraction value to 1.0 to avoid any
|
// Force the last area fraction value to 1.0 to avoid any
|
||||||
|
|||||||
@ -45,7 +45,7 @@ const dictionary& autocorrelationFunctionDict
|
|||||||
|
|
||||||
//- Velocity autocorrelation function
|
//- Velocity autocorrelation function
|
||||||
|
|
||||||
Info << tab << "velocty" << endl;
|
Info << tab << "velocity" << endl;
|
||||||
|
|
||||||
const dictionary& velocityACFDict
|
const dictionary& velocityACFDict
|
||||||
(
|
(
|
||||||
|
|||||||
@ -42,7 +42,7 @@ void Foam::reducedUnits::calcRefValues()
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "One of more referencence values too small for floating point "
|
<< "One of more reference values too small for floating point "
|
||||||
<< "calculation: "
|
<< "calculation: "
|
||||||
<< "refTime_ = " << refTime_
|
<< "refTime_ = " << refTime_
|
||||||
<< ", refLength = " << refTemp_
|
<< ", refLength = " << refTemp_
|
||||||
|
|||||||
@ -392,8 +392,8 @@ Foam::layerParameters::layerParameters
|
|||||||
Foam::scalar Foam::layerParameters::layerThickness
|
Foam::scalar Foam::layerParameters::layerThickness
|
||||||
(
|
(
|
||||||
const label nLayers,
|
const label nLayers,
|
||||||
const scalar firstLayerThickess,
|
const scalar firstLayerThickness,
|
||||||
const scalar finalLayerThickess,
|
const scalar finalLayerThickness,
|
||||||
const scalar totalThickness,
|
const scalar totalThickness,
|
||||||
const scalar expansionRatio
|
const scalar expansionRatio
|
||||||
) const
|
) const
|
||||||
@ -412,11 +412,11 @@ Foam::scalar Foam::layerParameters::layerThickness
|
|||||||
{
|
{
|
||||||
if (mag(expansionRatio-1) < small)
|
if (mag(expansionRatio-1) < small)
|
||||||
{
|
{
|
||||||
return firstLayerThickess * nLayers;
|
return firstLayerThickness * nLayers;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return firstLayerThickess
|
return firstLayerThickness
|
||||||
*(1 - pow(expansionRatio, nLayers))
|
*(1 - pow(expansionRatio, nLayers))
|
||||||
/(1 - expansionRatio);
|
/(1 - expansionRatio);
|
||||||
}
|
}
|
||||||
@ -427,13 +427,13 @@ Foam::scalar Foam::layerParameters::layerThickness
|
|||||||
{
|
{
|
||||||
if (mag(expansionRatio-1) < small)
|
if (mag(expansionRatio-1) < small)
|
||||||
{
|
{
|
||||||
return finalLayerThickess * nLayers;
|
return finalLayerThickness * nLayers;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const scalar invExpansion = 1.0/expansionRatio;
|
const scalar invExpansion = 1.0/expansionRatio;
|
||||||
|
|
||||||
return finalLayerThickess
|
return finalLayerThickness
|
||||||
*(1 - pow(invExpansion, nLayers))
|
*(1 - pow(invExpansion, nLayers))
|
||||||
/(1 - invExpansion);
|
/(1 - invExpansion);
|
||||||
}
|
}
|
||||||
@ -453,8 +453,8 @@ Foam::scalar Foam::layerParameters::layerThickness
|
|||||||
Foam::scalar Foam::layerParameters::layerExpansionRatio
|
Foam::scalar Foam::layerParameters::layerExpansionRatio
|
||||||
(
|
(
|
||||||
const label nLayers,
|
const label nLayers,
|
||||||
const scalar firstLayerThickess,
|
const scalar firstLayerThickness,
|
||||||
const scalar finalLayerThickess,
|
const scalar finalLayerThickness,
|
||||||
const scalar totalThickness,
|
const scalar totalThickness,
|
||||||
const scalar expansionRatio
|
const scalar expansionRatio
|
||||||
) const
|
) const
|
||||||
@ -474,7 +474,7 @@ Foam::scalar Foam::layerParameters::layerExpansionRatio
|
|||||||
return layerExpansionRatio
|
return layerExpansionRatio
|
||||||
(
|
(
|
||||||
nLayers,
|
nLayers,
|
||||||
totalThickness/firstLayerThickess
|
totalThickness/firstLayerThickness
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -486,7 +486,7 @@ Foam::scalar Foam::layerParameters::layerExpansionRatio
|
|||||||
/layerExpansionRatio
|
/layerExpansionRatio
|
||||||
(
|
(
|
||||||
nLayers,
|
nLayers,
|
||||||
totalThickness/finalLayerThickess
|
totalThickness/finalLayerThickness
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -504,8 +504,8 @@ Foam::scalar Foam::layerParameters::layerExpansionRatio
|
|||||||
Foam::scalar Foam::layerParameters::firstLayerThickness
|
Foam::scalar Foam::layerParameters::firstLayerThickness
|
||||||
(
|
(
|
||||||
const label nLayers,
|
const label nLayers,
|
||||||
const scalar firstLayerThickess,
|
const scalar firstLayerThickness,
|
||||||
const scalar finalLayerThickess,
|
const scalar finalLayerThickness,
|
||||||
const scalar totalThickness,
|
const scalar totalThickness,
|
||||||
const scalar expansionRatio
|
const scalar expansionRatio
|
||||||
) const
|
) const
|
||||||
@ -515,12 +515,12 @@ Foam::scalar Foam::layerParameters::firstLayerThickness
|
|||||||
case FIRST_AND_EXPANSION:
|
case FIRST_AND_EXPANSION:
|
||||||
case FIRST_AND_TOTAL:
|
case FIRST_AND_TOTAL:
|
||||||
{
|
{
|
||||||
return firstLayerThickess;
|
return firstLayerThickness;
|
||||||
}
|
}
|
||||||
|
|
||||||
case FINAL_AND_EXPANSION:
|
case FINAL_AND_EXPANSION:
|
||||||
{
|
{
|
||||||
return finalLayerThickess*pow(1.0/expansionRatio, nLayers-1);
|
return finalLayerThickness*pow(1.0/expansionRatio, nLayers-1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -529,13 +529,13 @@ Foam::scalar Foam::layerParameters::firstLayerThickness
|
|||||||
const scalar r = layerExpansionRatio
|
const scalar r = layerExpansionRatio
|
||||||
(
|
(
|
||||||
nLayers,
|
nLayers,
|
||||||
firstLayerThickess,
|
firstLayerThickness,
|
||||||
finalLayerThickess,
|
finalLayerThickness,
|
||||||
totalThickness,
|
totalThickness,
|
||||||
expansionRatio
|
expansionRatio
|
||||||
);
|
);
|
||||||
|
|
||||||
return finalLayerThickess/pow(r, nLayers-1);
|
return finalLayerThickness/pow(r, nLayers-1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@ -414,7 +414,7 @@ void Foam::snappyLayerDriver::handleFeatureAngle
|
|||||||
|
|
||||||
forAll(eFaces, i)
|
forAll(eFaces, i)
|
||||||
{
|
{
|
||||||
nomalsCombine()
|
normalsCombine()
|
||||||
(
|
(
|
||||||
edgeNormal[meshEdgeI],
|
edgeNormal[meshEdgeI],
|
||||||
pp.faceNormals()[eFaces[i]]
|
pp.faceNormals()[eFaces[i]]
|
||||||
@ -426,7 +426,7 @@ void Foam::snappyLayerDriver::handleFeatureAngle
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
edgeNormal,
|
edgeNormal,
|
||||||
nomalsCombine(),
|
normalsCombine(),
|
||||||
point::max // null value
|
point::max // null value
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -970,7 +970,7 @@ void Foam::snappyLayerDriver::determineSidePatches
|
|||||||
// Sometimes edges-to-be-extruded are on more than 2 processors.
|
// Sometimes edges-to-be-extruded are on more than 2 processors.
|
||||||
// Work out which 2 hold the faces to be extruded and thus which procpatch
|
// Work out which 2 hold the faces to be extruded and thus which procpatch
|
||||||
// the side-face should be in. As an additional complication this might
|
// the side-face should be in. As an additional complication this might
|
||||||
// mean that 2 procesors that were only edge-connected now suddenly need
|
// mean that 2 processors that were only edge-connected now suddenly need
|
||||||
// to become face-connected i.e. have a processor patch between them.
|
// to become face-connected i.e. have a processor patch between them.
|
||||||
|
|
||||||
fvMesh& mesh = meshRefiner_.mesh();
|
fvMesh& mesh = meshRefiner_.mesh();
|
||||||
@ -2738,7 +2738,7 @@ bool Foam::snappyLayerDriver::writeLayerData
|
|||||||
faceRealThickness
|
faceRealThickness
|
||||||
);
|
);
|
||||||
|
|
||||||
// Convert patchReal to relavtive thickness
|
// Convert patchReal to relative thickness
|
||||||
scalarField pfld(patchReal.size(), 0.0);
|
scalarField pfld(patchReal.size(), 0.0);
|
||||||
forAll(patchReal, i)
|
forAll(patchReal, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -75,7 +75,7 @@ private:
|
|||||||
// Private classes
|
// Private classes
|
||||||
|
|
||||||
//- Combine operator class to combine normal with other normal.
|
//- Combine operator class to combine normal with other normal.
|
||||||
class nomalsCombine
|
class normalsCombine
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ void Foam::axesRotation::calcTransform
|
|||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "Unhandled axes specifictation" << endl
|
<< "Unhandled axes specification" << endl
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
|
|
||||||
Rtr = Zero;
|
Rtr = Zero;
|
||||||
|
|||||||
@ -165,7 +165,7 @@ Foam::cylindrical::cylindrical(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< " cylindrical can not be constructed from dictionary "
|
<< " cylindrical can not be constructed from dictionary "
|
||||||
<< " use the construtctor : "
|
<< " use the constructor : "
|
||||||
"("
|
"("
|
||||||
" const dictionary&, const objectRegistry&"
|
" const dictionary&, const objectRegistry&"
|
||||||
")"
|
")"
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,7 +43,7 @@ Foam::topoSetSource::addToUsageTable Foam::rotatedBoxToCell::usage_
|
|||||||
rotatedBoxToCell::typeName,
|
rotatedBoxToCell::typeName,
|
||||||
"\n Usage: rotatedBoxToCell (originx originy originz)"
|
"\n Usage: rotatedBoxToCell (originx originy originz)"
|
||||||
" (ix iy iz) (jx jy jz) (kx ky kz)\n\n"
|
" (ix iy iz) (jx jy jz) (kx ky kz)\n\n"
|
||||||
" Select all cells with cellCentre within parallelopiped\n\n"
|
" Select all cells with cellCentre within parallelepiped\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -306,7 +306,7 @@ void Foam::hierarchGeomDecomp::findBinary
|
|||||||
if (returnReduce(hasNotChanged, andOp<bool>()))
|
if (returnReduce(hasNotChanged, andOp<bool>()))
|
||||||
{
|
{
|
||||||
WarningInFunction
|
WarningInFunction
|
||||||
<< "unable to find desired deomposition split, making do!"
|
<< "unable to find desired decomposition split, making do!"
|
||||||
<< endl;
|
<< endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -543,7 +543,7 @@ Foam::label Foam::ptscotchDecomp::decompose
|
|||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Info<< "ptscotchDecomp : Using procesor weights "
|
Info<< "ptscotchDecomp : Using processor weights "
|
||||||
<< processorWeights
|
<< processorWeights
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -375,7 +375,7 @@ Foam::label Foam::scotchDecomp::decomposeOneProc
|
|||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Info<< "scotchDecomp : Using procesor weights " << processorWeights
|
Info<< "scotchDecomp : Using processor weights " << processorWeights
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
check
|
check
|
||||||
|
|||||||
Reference in New Issue
Block a user