vector::zero -> Zero

This commit is contained in:
Henry Weller
2016-04-16 18:34:41 +01:00
parent 69e877a53a
commit 8c6fa81eba
273 changed files with 704 additions and 696 deletions

View File

@ -66,7 +66,7 @@ using namespace Foam;
// // (note:without calculating pointNormals
// // to avoid them being stored)
//
// tmp<pointField> textrudeN(new pointField(p.nPoints(), vector::zero));
// tmp<pointField> textrudeN(new pointField(p.nPoints(), Zero));
// pointField& extrudeN = textrudeN();
// {
// const faceList& localFaces = p.localFaces();
@ -123,7 +123,7 @@ using namespace Foam;
// globalData.globalPointTransformedSlaves();
//
//
// pointField coupledPointNormals(map.constructSize(), vector::zero);
// pointField coupledPointNormals(map.constructSize(), Zero);
//
// forAll(meshPoints, patchPointI)
// {

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -82,7 +82,7 @@ int main(int argc, char *argv[])
IOobject::AUTO_WRITE
),
mesh,
dimensionedVector("zero", dimLength, vector::zero),
dimensionedVector("zero", dimLength, Zero),
patchFieldTypes
);

View File

@ -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
@ -76,7 +76,7 @@ int main(int argc, char *argv[])
point Cf = f.centre(pts);
tensor J = tensor::zero;
tensor J = Zero;
J = f.inertia(pts, Cf, density);
@ -141,8 +141,8 @@ int main(int argc, char *argv[])
tetFaces[3] = triFace(0, 1, 3);
scalar m = 0.0;
vector cM = vector::zero;
tensor J = tensor::zero;
vector cM = Zero;
tensor J = Zero;
momentOfInertia::massPropertiesSolid(pts, tetFaces, density, m, cM, J);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -55,7 +55,7 @@ int main(int argc, char *argv[])
Pout<< "Starting particles:" << particles.size() << endl;
Pout<< "Adding a particle." << endl;
particles.addParticle(new passiveParticle(mesh, vector::zero, -1));
particles.addParticle(new passiveParticle(mesh, Zero, -1));
forAllConstIter(passiveParticleCloud, particles, iter)
{

View File

@ -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
@ -56,7 +56,7 @@ int main(int argc, char *argv[])
IOobject::AUTO_WRITE
),
pMesh,
dimensionedVector("fvmU", dimLength, vector::zero),
dimensionedVector("fvmU", dimLength, Zero),
pointPatchVectorField::calculatedType()
);

View File

@ -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
@ -156,7 +156,7 @@ void writeEdgeFaces
OFstream efStream("edgeFaces.obj");
pointField ctrs(localFaces.size(), vector::zero);
pointField ctrs(localFaces.size(), Zero);
forAll(localFaces, faceI)
{
@ -188,7 +188,7 @@ void writeFaceFaces
OFstream ffStream("faceFaces.obj");
pointField ctrs(localFaces.size(), vector::zero);
pointField ctrs(localFaces.size(), Zero);
forAll(localFaces, faceI)
{