mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
vector::zero -> Zero
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -132,7 +132,7 @@ void Foam::cyclicAMIPolyPatch::calcTransforms
|
||||
{
|
||||
case ROTATIONAL:
|
||||
{
|
||||
tensor revT = tensor::zero;
|
||||
tensor revT = Zero;
|
||||
|
||||
if (rotationAngleDefined_)
|
||||
{
|
||||
@ -217,8 +217,8 @@ void Foam::cyclicAMIPolyPatch::calcTransforms
|
||||
}
|
||||
else
|
||||
{
|
||||
point n0 = vector::zero;
|
||||
point n1 = vector::zero;
|
||||
point n0 = Zero;
|
||||
point n1 = Zero;
|
||||
if (half0Ctrs.size())
|
||||
{
|
||||
n0 = findFaceNormalMaxRadius(half0Ctrs);
|
||||
@ -485,11 +485,11 @@ Foam::cyclicAMIPolyPatch::cyclicAMIPolyPatch
|
||||
coupledPolyPatch(name, size, start, index, bm, patchType, transform),
|
||||
nbrPatchName_(word::null),
|
||||
nbrPatchID_(-1),
|
||||
rotationAxis_(vector::zero),
|
||||
rotationAxis_(Zero),
|
||||
rotationCentre_(point::zero),
|
||||
rotationAngleDefined_(false),
|
||||
rotationAngle_(0.0),
|
||||
separationVector_(vector::zero),
|
||||
separationVector_(Zero),
|
||||
AMIPtr_(NULL),
|
||||
AMIReverse_(false),
|
||||
AMIRequireMatch_(true),
|
||||
@ -515,11 +515,11 @@ Foam::cyclicAMIPolyPatch::cyclicAMIPolyPatch
|
||||
nbrPatchName_(dict.lookupOrDefault<word>("neighbourPatch", "")),
|
||||
coupleGroup_(dict),
|
||||
nbrPatchID_(-1),
|
||||
rotationAxis_(vector::zero),
|
||||
rotationAxis_(Zero),
|
||||
rotationCentre_(point::zero),
|
||||
rotationAngleDefined_(false),
|
||||
rotationAngle_(0.0),
|
||||
separationVector_(vector::zero),
|
||||
separationVector_(Zero),
|
||||
AMIPtr_(NULL),
|
||||
AMIReverse_(dict.lookupOrDefault<bool>("flipNormals", false)),
|
||||
AMIRequireMatch_(true),
|
||||
|
||||
@ -90,7 +90,7 @@ void Foam::axesRotation::calcTransform
|
||||
<< "Unhandled axes specifictation" << endl
|
||||
<< abort(FatalError);
|
||||
|
||||
Rtr = tensor::zero;
|
||||
Rtr = Zero;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ Foam::cylindrical::cylindrical
|
||||
:
|
||||
Rptr_(),
|
||||
origin_(point::zero),
|
||||
e3_(vector::zero)
|
||||
e3_(Zero)
|
||||
{
|
||||
// If origin is specified in the coordinateSystem
|
||||
if (dict.parent().found("origin"))
|
||||
@ -165,8 +165,8 @@ Foam::cylindrical::cylindrical(const dictionary& dict)
|
||||
Foam::cylindrical::cylindrical(const tensorField& R)
|
||||
:
|
||||
Rptr_(),
|
||||
origin_(vector::zero),
|
||||
e3_(vector::zero)
|
||||
origin_(Zero),
|
||||
e3_(Zero)
|
||||
{
|
||||
Rptr_() = R;
|
||||
}
|
||||
@ -222,7 +222,7 @@ Foam::tmp<Foam::vectorField> Foam::cylindrical::transform
|
||||
Foam::vector Foam::cylindrical::transform(const vector& v) const
|
||||
{
|
||||
NotImplemented;
|
||||
return vector::zero;
|
||||
return Zero;
|
||||
}
|
||||
|
||||
|
||||
@ -248,7 +248,7 @@ Foam::tmp<Foam::vectorField> Foam::cylindrical::invTransform
|
||||
Foam::vector Foam::cylindrical::invTransform(const vector& v) const
|
||||
{
|
||||
NotImplemented;
|
||||
return vector::zero;
|
||||
return Zero;
|
||||
}
|
||||
|
||||
|
||||
@ -284,7 +284,7 @@ Foam::tensor Foam::cylindrical::transformTensor
|
||||
{
|
||||
NotImplemented;
|
||||
|
||||
return tensor::zero;
|
||||
return Zero;
|
||||
}
|
||||
|
||||
|
||||
@ -345,7 +345,7 @@ Foam::symmTensor Foam::cylindrical::transformVector
|
||||
) const
|
||||
{
|
||||
NotImplemented;
|
||||
return symmTensor::zero;
|
||||
return Zero;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -281,7 +281,7 @@ Foam::tmp<Foam::vectorField> Foam::coordinateSystem::globalToLocal
|
||||
void Foam::coordinateSystem::clear()
|
||||
{
|
||||
note_.clear();
|
||||
origin_ = point::zero;
|
||||
origin_ = Zero;
|
||||
R_->clear();
|
||||
}
|
||||
|
||||
|
||||
@ -265,7 +265,7 @@ Foam::volumeType Foam::treeDataFace::getVolumeType
|
||||
// triangle normals)
|
||||
const labelList& pFaces = mesh_.pointFaces()[f[fp]];
|
||||
|
||||
vector pointNormal(vector::zero);
|
||||
vector pointNormal(Zero);
|
||||
|
||||
forAll(pFaces, i)
|
||||
{
|
||||
@ -334,7 +334,7 @@ Foam::volumeType Foam::treeDataFace::getVolumeType
|
||||
// triangle normals)
|
||||
const labelList& eFaces = mesh_.edgeFaces()[myEdges[myEdgeI]];
|
||||
|
||||
vector edgeNormal(vector::zero);
|
||||
vector edgeNormal(Zero);
|
||||
|
||||
forAll(eFaces, i)
|
||||
{
|
||||
|
||||
@ -286,7 +286,7 @@ Foam::volumeType Foam::treeDataPrimitivePatch<PatchType>::getVolumeType
|
||||
// triangle normals)
|
||||
const labelList& eFaces = patch_.edgeFaces()[edgeI];
|
||||
|
||||
vector edgeNormal(vector::zero);
|
||||
vector edgeNormal(Zero);
|
||||
|
||||
forAll(eFaces, i)
|
||||
{
|
||||
|
||||
@ -939,7 +939,7 @@ Foam::mappedPatchBase::mappedPatchBase
|
||||
samplePatch_(""),
|
||||
coupleGroup_(),
|
||||
offsetMode_(UNIFORM),
|
||||
offset_(vector::zero),
|
||||
offset_(Zero),
|
||||
offsets_(pp.size(), offset_),
|
||||
distance_(0),
|
||||
sameRegion_(sampleRegion_ == patch_.boundaryMesh().mesh().name()),
|
||||
@ -966,7 +966,7 @@ Foam::mappedPatchBase::mappedPatchBase
|
||||
samplePatch_(samplePatch),
|
||||
coupleGroup_(),
|
||||
offsetMode_(NONUNIFORM),
|
||||
offset_(vector::zero),
|
||||
offset_(Zero),
|
||||
offsets_(offsets),
|
||||
distance_(0),
|
||||
sameRegion_(sampleRegion_ == patch_.boundaryMesh().mesh().name()),
|
||||
@ -1020,7 +1020,7 @@ Foam::mappedPatchBase::mappedPatchBase
|
||||
samplePatch_(samplePatch),
|
||||
coupleGroup_(),
|
||||
offsetMode_(NORMAL),
|
||||
offset_(vector::zero),
|
||||
offset_(Zero),
|
||||
offsets_(0),
|
||||
distance_(distance),
|
||||
sameRegion_(sampleRegion_ == patch_.boundaryMesh().mesh().name()),
|
||||
@ -1044,7 +1044,7 @@ Foam::mappedPatchBase::mappedPatchBase
|
||||
samplePatch_(dict.lookupOrDefault<word>("samplePatch", "")),
|
||||
coupleGroup_(dict),
|
||||
offsetMode_(UNIFORM),
|
||||
offset_(vector::zero),
|
||||
offset_(Zero),
|
||||
offsets_(0),
|
||||
distance_(0.0),
|
||||
sameRegion_(sampleRegion_ == patch_.boundaryMesh().mesh().name()),
|
||||
@ -1126,7 +1126,7 @@ Foam::mappedPatchBase::mappedPatchBase
|
||||
samplePatch_(dict.lookupOrDefault<word>("samplePatch", "")),
|
||||
coupleGroup_(dict), //dict.lookupOrDefault<word>("coupleGroup", "")),
|
||||
offsetMode_(UNIFORM),
|
||||
offset_(vector::zero),
|
||||
offset_(Zero),
|
||||
offsets_(0),
|
||||
distance_(0.0),
|
||||
sameRegion_(sampleRegion_ == patch_.boundaryMesh().mesh().name()),
|
||||
|
||||
@ -171,7 +171,7 @@ Foam::vectorField Foam::meshTools::calcBoxPointNormals(const primitivePatch& pp)
|
||||
}
|
||||
else
|
||||
{
|
||||
pn[pointI] = vector::zero;
|
||||
pn[pointI] = Zero;
|
||||
|
||||
WarningInFunction
|
||||
<< "No visible octant for point:" << pp.meshPoints()[pointI]
|
||||
|
||||
@ -198,8 +198,8 @@ void Foam::momentOfInertia::massPropertiesShell
|
||||
// Reset properties for accumulation
|
||||
|
||||
mass = 0.0;
|
||||
cM = vector::zero;
|
||||
J = tensor::zero;
|
||||
cM = Zero;
|
||||
J = Zero;
|
||||
|
||||
// Find centre of mass
|
||||
|
||||
@ -337,8 +337,8 @@ Foam::tensor Foam::momentOfInertia::meshInertia
|
||||
}
|
||||
|
||||
scalar m = 0.0;
|
||||
vector cM = vector::zero;
|
||||
tensor J = tensor::zero;
|
||||
vector cM = Zero;
|
||||
tensor J = Zero;
|
||||
|
||||
massPropertiesSolid(mesh.points(), faces, 1.0, m, cM, J);
|
||||
|
||||
|
||||
@ -62,9 +62,9 @@ void Foam::primitiveMeshGeometry::updateFaceCentresAndAreas
|
||||
}
|
||||
else
|
||||
{
|
||||
vector sumN = vector::zero;
|
||||
vector sumN = Zero;
|
||||
scalar sumA = 0.0;
|
||||
vector sumAc = vector::zero;
|
||||
vector sumAc = Zero;
|
||||
|
||||
point fCentre = p[f[0]];
|
||||
for (label pi = 1; pi < nPoints; pi++)
|
||||
@ -101,7 +101,7 @@ void Foam::primitiveMeshGeometry::updateCellCentresAndVols
|
||||
)
|
||||
{
|
||||
// Clear the fields for accumulation
|
||||
UIndirectList<vector>(cellCentres_, changedCells) = vector::zero;
|
||||
UIndirectList<vector>(cellCentres_, changedCells) = Zero;
|
||||
UIndirectList<scalar>(cellVolumes_, changedCells) = 0.0;
|
||||
|
||||
const labelList& own = mesh_.faceOwner();
|
||||
@ -110,7 +110,7 @@ void Foam::primitiveMeshGeometry::updateCellCentresAndVols
|
||||
// first estimate the approximate cell centre as the average of face centres
|
||||
|
||||
vectorField cEst(mesh_.nCells());
|
||||
UIndirectList<vector>(cEst, changedCells) = vector::zero;
|
||||
UIndirectList<vector>(cEst, changedCells) = Zero;
|
||||
scalarField nCellFaces(mesh_.nCells());
|
||||
UIndirectList<scalar>(nCellFaces, changedCells) = 0.0;
|
||||
|
||||
@ -1187,7 +1187,7 @@ bool Foam::primitiveMeshGeometry::checkCellDeterminant
|
||||
{
|
||||
const cell& cFaces = cells[affectedCells[i]];
|
||||
|
||||
tensor areaSum(tensor::zero);
|
||||
tensor areaSum(Zero);
|
||||
scalar magAreaSum = 0;
|
||||
|
||||
forAll(cFaces, cFaceI)
|
||||
|
||||
@ -579,7 +579,7 @@ void Foam::searchableBox::getNormal
|
||||
) const
|
||||
{
|
||||
normal.setSize(info.size());
|
||||
normal = vector::zero;
|
||||
normal = Zero;
|
||||
|
||||
forAll(info, i)
|
||||
{
|
||||
|
||||
@ -93,7 +93,7 @@ Foam::pointIndexHit Foam::searchableCylinder::findNearest
|
||||
|
||||
if (magV < ROOTVSMALL)
|
||||
{
|
||||
v = vector::zero;
|
||||
v = Zero;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -651,7 +651,7 @@ void Foam::searchableCylinder::getNormal
|
||||
) const
|
||||
{
|
||||
normal.setSize(info.size());
|
||||
normal = vector::zero;
|
||||
normal = Zero;
|
||||
|
||||
forAll(info, i)
|
||||
{
|
||||
|
||||
@ -58,7 +58,7 @@ Foam::pointIndexHit Foam::searchableDisk::findNearest
|
||||
|
||||
if (magV < ROOTVSMALL)
|
||||
{
|
||||
v = vector::zero;
|
||||
v = Zero;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -85,7 +85,7 @@ void Foam::searchableDisk::findLine
|
||||
pointIndexHit& info
|
||||
) const
|
||||
{
|
||||
info = pointIndexHit(false, vector::zero, -1);
|
||||
info = pointIndexHit(false, Zero, -1);
|
||||
|
||||
vector v(start - origin_);
|
||||
|
||||
@ -103,7 +103,7 @@ void Foam::searchableDisk::findLine
|
||||
|
||||
if (magV < ROOTVSMALL)
|
||||
{
|
||||
v = vector::zero;
|
||||
v = Zero;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -46,7 +46,7 @@ Foam::pointIndexHit Foam::searchablePlane::findLine
|
||||
const point& end
|
||||
) const
|
||||
{
|
||||
pointIndexHit info(true, vector::zero, 0);
|
||||
pointIndexHit info(true, Zero, 0);
|
||||
|
||||
linePointRef l(start, end);
|
||||
|
||||
|
||||
@ -132,7 +132,7 @@ Foam::pointIndexHit Foam::searchablePlate::findLine
|
||||
pointIndexHit info
|
||||
(
|
||||
true,
|
||||
vector::zero,
|
||||
Zero,
|
||||
0
|
||||
);
|
||||
|
||||
@ -424,7 +424,7 @@ void Foam::searchablePlate::getNormal
|
||||
) const
|
||||
{
|
||||
normal.setSize(info.size());
|
||||
normal = vector::zero;
|
||||
normal = Zero;
|
||||
forAll(normal, i)
|
||||
{
|
||||
normal[i][normalDir_] = 1.0;
|
||||
|
||||
@ -326,7 +326,7 @@ void Foam::searchableSphere::getNormal
|
||||
) const
|
||||
{
|
||||
normal.setSize(info.size());
|
||||
normal = vector::zero;
|
||||
normal = Zero;
|
||||
|
||||
forAll(info, i)
|
||||
{
|
||||
|
||||
@ -47,7 +47,7 @@ Foam::Pair<Foam::vector> Foam::searchableSurfaceWithGaps::offsetVecs
|
||||
const point& end
|
||||
) const
|
||||
{
|
||||
Pair<vector> offsets(vector::zero, vector::zero);
|
||||
Pair<vector> offsets(Zero, Zero);
|
||||
|
||||
vector n(end-start);
|
||||
|
||||
|
||||
@ -862,7 +862,7 @@ Foam::pointIndexHit Foam::searchableSurfacesQueries::facesIntersection
|
||||
// starting point onto the surfaces and the mid point
|
||||
List<point> nearest(surfacesToTest.size()+1);
|
||||
|
||||
point sumNearest = vector::zero;
|
||||
point sumNearest = Zero;
|
||||
|
||||
forAll(surfacesToTest, i)
|
||||
{
|
||||
|
||||
@ -463,7 +463,7 @@ Foam::triSurfaceMesh::edgeTree() const
|
||||
+ nInternalEdges()
|
||||
);
|
||||
|
||||
treeBoundBox bb(vector::zero, vector::zero);
|
||||
treeBoundBox bb(Zero, Zero);
|
||||
|
||||
if (bEdges.size())
|
||||
{
|
||||
@ -678,7 +678,7 @@ void Foam::triSurfaceMesh::getNormal
|
||||
else
|
||||
{
|
||||
// Set to what?
|
||||
normal[i] = vector::zero;
|
||||
normal[i] = Zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -699,7 +699,7 @@ void Foam::triSurfaceMesh::getNormal
|
||||
else
|
||||
{
|
||||
// Set to what?
|
||||
normal[i] = vector::zero;
|
||||
normal[i] = Zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -124,7 +124,7 @@ void Foam::regionToFace::combine(topoSet& set, const bool add) const
|
||||
|
||||
mappedPatchBase::nearInfo ni
|
||||
(
|
||||
pointIndexHit(false, vector::zero, -1),
|
||||
pointIndexHit(false, Zero, -1),
|
||||
Tuple2<scalar, label>
|
||||
(
|
||||
sqr(GREAT),
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -943,7 +943,7 @@ Foam::booleanSurface::booleanSurface
|
||||
const pointField& pts = combinedSurf.points();
|
||||
|
||||
label minFaceI = -1;
|
||||
pointHit minHit(false, vector::zero, GREAT, true);
|
||||
pointHit minHit(false, Zero, GREAT, true);
|
||||
|
||||
forAll(combinedSurf, faceI)
|
||||
{
|
||||
|
||||
@ -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
|
||||
@ -46,7 +46,7 @@ Foam::vector Foam::surfaceLocation::normal(const triSurface& s) const
|
||||
}
|
||||
else
|
||||
{
|
||||
vector edgeNormal(vector::zero);
|
||||
vector edgeNormal(Zero);
|
||||
|
||||
forAll(eFaces, i)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -121,7 +121,7 @@ Foam::triSurfaceRegionSearch::treeByRegion() const
|
||||
);
|
||||
|
||||
// Calculate bb without constructing local point numbering.
|
||||
treeBoundBox bb(vector::zero, vector::zero);
|
||||
treeBoundBox bb(Zero, Zero);
|
||||
|
||||
if (indirectRegionPatches_[regionI].size())
|
||||
{
|
||||
|
||||
@ -200,7 +200,7 @@ Foam::triSurfaceSearch::tree() const
|
||||
if (treePtr_.empty())
|
||||
{
|
||||
// Calculate bb without constructing local point numbering.
|
||||
treeBoundBox bb(vector::zero, vector::zero);
|
||||
treeBoundBox bb(Zero, Zero);
|
||||
|
||||
if (surface().size())
|
||||
{
|
||||
|
||||
@ -2118,7 +2118,7 @@ Foam::vector Foam::triSurfaceTools::surfaceNormal
|
||||
// Calculate edge normal by averaging face normals
|
||||
const labelList& eFaces = surf.edgeFaces()[edgeI];
|
||||
|
||||
vector edgeNormal(vector::zero);
|
||||
vector edgeNormal(Zero);
|
||||
|
||||
forAll(eFaces, i)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -201,7 +201,7 @@ Foam::twoDPointCorrector::twoDPointCorrector(const polyMesh& mesh)
|
||||
planeNormalPtr_(NULL),
|
||||
normalEdgeIndicesPtr_(NULL),
|
||||
isWedge_(false),
|
||||
wedgeAxis_(vector::zero),
|
||||
wedgeAxis_(Zero),
|
||||
wedgeAngle_(0.0)
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user