vector::zero -> Zero
This commit is contained in:
@ -1075,25 +1075,25 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
subsetter.subMesh(),
|
||||
map,
|
||||
vector::zero
|
||||
Zero
|
||||
);
|
||||
initCreatedPatches<volSphericalTensorField>
|
||||
(
|
||||
subsetter.subMesh(),
|
||||
map,
|
||||
sphericalTensor::zero
|
||||
Zero
|
||||
);
|
||||
initCreatedPatches<volSymmTensorField>
|
||||
(
|
||||
subsetter.subMesh(),
|
||||
map,
|
||||
symmTensor::zero
|
||||
Zero
|
||||
);
|
||||
initCreatedPatches<volTensorField>
|
||||
(
|
||||
subsetter.subMesh(),
|
||||
map,
|
||||
tensor::zero
|
||||
Zero
|
||||
);
|
||||
|
||||
initCreatedPatches<surfaceScalarField>
|
||||
@ -1106,25 +1106,25 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
subsetter.subMesh(),
|
||||
map,
|
||||
vector::zero
|
||||
Zero
|
||||
);
|
||||
initCreatedPatches<surfaceSphericalTensorField>
|
||||
(
|
||||
subsetter.subMesh(),
|
||||
map,
|
||||
sphericalTensor::zero
|
||||
Zero
|
||||
);
|
||||
initCreatedPatches<surfaceSymmTensorField>
|
||||
(
|
||||
subsetter.subMesh(),
|
||||
map,
|
||||
symmTensor::zero
|
||||
Zero
|
||||
);
|
||||
initCreatedPatches<surfaceTensorField>
|
||||
(
|
||||
subsetter.subMesh(),
|
||||
map,
|
||||
tensor::zero
|
||||
Zero
|
||||
);
|
||||
|
||||
|
||||
|
||||
@ -213,7 +213,7 @@ void ReadVertices
|
||||
|
||||
// Convert to foamPoints
|
||||
foamPoints.setSize(nVertices);
|
||||
foamPoints = vector::zero;
|
||||
foamPoints = Zero;
|
||||
foamPointMap.setSize(nVertices);
|
||||
|
||||
forAll(foamPointMap, i)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -83,7 +83,7 @@ int main(int argc, char *argv[])
|
||||
// We ignore the first layer of points in i and j the biconic meshes
|
||||
label nPointsij = (iPoints - 1)*(jPoints - 1);
|
||||
|
||||
pointField points(nPointsij, vector::zero);
|
||||
pointField points(nPointsij, Zero);
|
||||
|
||||
for (direction comp = 0; comp < 2; comp++)
|
||||
{
|
||||
@ -114,7 +114,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
pointField pointsWedge(nPointsij*2, vector::zero);
|
||||
pointField pointsWedge(nPointsij*2, Zero);
|
||||
|
||||
fileName pointsFile(runTime.constantPath()/"points.tmp");
|
||||
OFstream pFile(pointsFile);
|
||||
|
||||
@ -1089,9 +1089,9 @@ int main(int argc, char *argv[])
|
||||
mesh.boundaryMesh(),
|
||||
neighbPatchName,
|
||||
cyclicPolyPatch::NOORDERING,
|
||||
vector::zero,
|
||||
vector::zero,
|
||||
vector::zero
|
||||
Zero,
|
||||
Zero,
|
||||
Zero
|
||||
);
|
||||
}
|
||||
else
|
||||
|
||||
@ -2296,7 +2296,7 @@ int main(int argc, char *argv[])
|
||||
// Calculate region normals by reducing local region normals
|
||||
pointField localRegionNormals(localToGlobalRegion.size());
|
||||
{
|
||||
pointField localSum(localToGlobalRegion.size(), vector::zero);
|
||||
pointField localSum(localToGlobalRegion.size(), Zero);
|
||||
|
||||
forAll(pointLocalRegions, faceI)
|
||||
{
|
||||
|
||||
@ -533,7 +533,7 @@ bool Foam::backgroundMeshDecomposition::refineCell
|
||||
// pointField samplePoints
|
||||
// (
|
||||
// volRes_*volRes_*volRes_,
|
||||
// vector::zero
|
||||
// Zero
|
||||
// );
|
||||
//
|
||||
// // scalar sampleVol = cellBb.volume()/samplePoints.size();
|
||||
@ -1238,7 +1238,7 @@ Foam::backgroundMeshDecomposition::intersectsProcessors
|
||||
const point& e = ends[sI];
|
||||
|
||||
// Dummy point for treeBoundBox::intersects
|
||||
point p(vector::zero);
|
||||
point p(Zero);
|
||||
|
||||
label nCandidates = 0;
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -40,7 +40,7 @@ Foam::cellAspectRatioControl::cellAspectRatioControl
|
||||
aspectRatioDict_.lookupOrDefault<vector>
|
||||
(
|
||||
"aspectRatioDirection",
|
||||
vector::zero
|
||||
Zero
|
||||
)
|
||||
)
|
||||
{
|
||||
|
||||
@ -177,7 +177,7 @@ Foam::tensor Foam::cellShapeControl::cellAlignment(const point& pt) const
|
||||
|
||||
shapeControlMesh_.barycentricCoords(pt, bary, ch);
|
||||
|
||||
tensor alignment = tensor::zero;
|
||||
tensor alignment = Zero;
|
||||
|
||||
if (shapeControlMesh_.dimension() < 3 || shapeControlMesh_.is_infinite(ch))
|
||||
{
|
||||
@ -249,7 +249,7 @@ void Foam::cellShapeControl::cellSizeAndAlignment
|
||||
|
||||
shapeControlMesh_.barycentricCoords(pt, bary, ch);
|
||||
|
||||
alignment = tensor::zero;
|
||||
alignment = Zero;
|
||||
size = 0;
|
||||
|
||||
if (shapeControlMesh_.dimension() < 3 || shapeControlMesh_.is_infinite(ch))
|
||||
|
||||
@ -601,7 +601,7 @@ void Foam::cellShapeControlMesh::distribute
|
||||
|
||||
Foam::tensorField Foam::cellShapeControlMesh::dumpAlignments() const
|
||||
{
|
||||
tensorField alignmentsTmp(number_of_vertices(), tensor::zero);
|
||||
tensorField alignmentsTmp(number_of_vertices(), Zero);
|
||||
|
||||
label count = 0;
|
||||
for
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -119,7 +119,7 @@ Foam::fileControl::~fileControl()
|
||||
//
|
||||
// label nearest = 0;
|
||||
//
|
||||
// tensor alignment = Foam::tensor::zero;
|
||||
// tensor alignment = Zero;
|
||||
// forAll(bary, pI)
|
||||
// {
|
||||
// //alignment += bary[pI]*ch->vertex(pI)->alignment();
|
||||
@ -155,7 +155,7 @@ Foam::fileControl::~fileControl()
|
||||
// size += bary[pI]*ch->vertex(pI)->size();
|
||||
// }
|
||||
//
|
||||
//// alignment = Foam::tensor::zero;
|
||||
//// alignment = Zero;
|
||||
//// forAll(bary, pI)
|
||||
//// {
|
||||
//// alignment += bary[pI]*ch->vertex(pI)->alignment();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -100,7 +100,7 @@ addToRunTimeSelectionTable
|
||||
//
|
||||
// const tensor Rp = rotationTensor(vector(0,0,1), np);
|
||||
//
|
||||
// vector na = vector::zero;
|
||||
// vector na = Zero;
|
||||
//
|
||||
// scalar smallestAngle = GREAT;
|
||||
//
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -1080,7 +1080,7 @@ void Foam::conformalVoronoiMesh::move()
|
||||
vectorField displacementAccumulator
|
||||
(
|
||||
number_of_vertices(),
|
||||
vector::zero
|
||||
Zero
|
||||
);
|
||||
|
||||
PackedBoolList pointToBeRetained
|
||||
|
||||
@ -1581,7 +1581,7 @@ void Foam::conformalVoronoiMesh::limitDisplacement
|
||||
// Do not allow infinite recursion
|
||||
if (callCount > 7)
|
||||
{
|
||||
displacement = vector::zero;
|
||||
displacement = Zero;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1630,7 +1630,7 @@ void Foam::conformalVoronoiMesh::limitDisplacement
|
||||
if (magSqr(pt - surfHit.hitPoint()) <= searchDistanceSqr)
|
||||
{
|
||||
// Cannot limit displacement, point closer than tolerance
|
||||
displacement = vector::zero;
|
||||
displacement = Zero;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -200,8 +200,8 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
Foam::point externalPtD;
|
||||
Foam::point externalPtE;
|
||||
|
||||
vector convexEdgePlaneCNormal(vector::zero);
|
||||
vector convexEdgePlaneDNormal(vector::zero);
|
||||
vector convexEdgePlaneCNormal(Zero);
|
||||
vector convexEdgePlaneDNormal(Zero);
|
||||
|
||||
const labelList& concaveEdgeNormals = edgeNormals[concaveEdgeI];
|
||||
const labelList& convexEdgeANormals = edgeNormals[convexEdgesI[0]];
|
||||
@ -632,8 +632,8 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
Foam::point externalPtD;
|
||||
Foam::point externalPtE;
|
||||
|
||||
vector concaveEdgePlaneCNormal(vector::zero);
|
||||
vector concaveEdgePlaneDNormal(vector::zero);
|
||||
vector concaveEdgePlaneCNormal(Zero);
|
||||
vector concaveEdgePlaneDNormal(Zero);
|
||||
|
||||
const labelList& convexEdgeNormals = edgeNormals[convexEdgeI];
|
||||
const labelList& concaveEdgeANormals = edgeNormals[concaveEdgesI[0]];
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -23,8 +23,6 @@ License
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
//#include "indexedCellChecks.H"
|
||||
|
||||
template<class Gt, class Cb>
|
||||
Foam::tetCell CGAL::indexedCell<Gt, Cb>::unsortedVertexGlobalIndices
|
||||
(
|
||||
@ -578,8 +576,8 @@ inline bool CGAL::indexedCell<Gt, Cb>::potentialCoplanarCell() const
|
||||
|
||||
if (nMasters == 2 && nSlaves == 2)
|
||||
{
|
||||
Foam::vector vp0(Foam::vector::zero);
|
||||
Foam::vector vp1(Foam::vector::zero);
|
||||
Foam::vector vp0(Foam::Zero);
|
||||
Foam::vector vp1(Foam::Zero);
|
||||
|
||||
if
|
||||
(
|
||||
|
||||
@ -43,7 +43,7 @@ void Foam::conformationSurfaces::hasBoundedVolume
|
||||
List<volumeType>& referenceVolumeTypes
|
||||
) const
|
||||
{
|
||||
vector sum(vector::zero);
|
||||
vector sum(Zero);
|
||||
label totalTriangles = 0;
|
||||
|
||||
forAll(surfaces_, s)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -416,7 +416,7 @@ bool Foam::autoDensity::fillBox
|
||||
|
||||
label nLine = 6*(surfRes_ - 2);
|
||||
|
||||
pointField linePoints(nLine, vector::zero);
|
||||
pointField linePoints(nLine, Zero);
|
||||
|
||||
scalarField lineSizes(nLine, 0.0);
|
||||
|
||||
@ -532,7 +532,7 @@ bool Foam::autoDensity::fillBox
|
||||
pointField samplePoints
|
||||
(
|
||||
volRes_*volRes_*volRes_,
|
||||
vector::zero
|
||||
Zero
|
||||
);
|
||||
|
||||
vector delta = span/volRes_;
|
||||
|
||||
@ -862,7 +862,7 @@ void Foam::CV2D::newPoints()
|
||||
edgei = 0;
|
||||
|
||||
// Initialise the displacement for the centre and sum-weights
|
||||
vector2D disp = vector2D::zero;
|
||||
vector2D disp = Zero;
|
||||
scalar sumw = 0;
|
||||
|
||||
do
|
||||
|
||||
@ -426,7 +426,7 @@ Foam::shortEdgeFilter2D::filter()
|
||||
|
||||
label totalNewPoints = points.size() - nPointsToRemove;
|
||||
|
||||
pointField newPoints(totalNewPoints, vector::zero);
|
||||
pointField newPoints(totalNewPoints, Zero);
|
||||
labelList newPointNumbers(points.size(), -1);
|
||||
label numberRemoved = 0;
|
||||
|
||||
|
||||
@ -285,7 +285,7 @@ namespace Foam
|
||||
label n = 0;
|
||||
|
||||
// Extract for every face the i'th position
|
||||
pointField ptsAtIndex(pts.size(), vector::zero);
|
||||
pointField ptsAtIndex(pts.size(), Zero);
|
||||
forAll(cpp, faceI)
|
||||
{
|
||||
const pointField& facePts = pts[faceI];
|
||||
|
||||
Reference in New Issue
Block a user