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

@ -12,7 +12,7 @@ volVectorField U
mesh mesh
); );
U = dimensionedVector("0", U.dimensions(), vector::zero); U = dimensionedVector("0", U.dimensions(), Zero);
surfaceScalarField phi surfaceScalarField phi
( (

View File

@ -80,7 +80,7 @@
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh, mesh,
dimensionedVector("zero", dimVelocity, vector::zero) dimensionedVector("zero", dimVelocity, Zero)
); );
#include "createPhi.H" #include "createPhi.H"

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -72,7 +72,7 @@ public:
inline magnet() inline magnet()
: :
remanence_("Mr", dimensionSet(0, -1, 0, 0, 0, 1, 0), 0), remanence_("Mr", dimensionSet(0, -1, 0, 0, 0, 1, 0), 0),
orientation_(vector::zero) orientation_(Zero)
{} {}
//- Construct from components //- Construct from components
@ -94,7 +94,7 @@ public:
inline magnet(Istream& is) inline magnet(Istream& is)
: :
remanence_("Mr", dimensionSet(0, -1, 0, 0, 0, 1, 0), 0), remanence_("Mr", dimensionSet(0, -1, 0, 0, 0, 1, 0), 0),
orientation_(vector::zero) orientation_(Zero)
{ {
is >> *this; is >> *this;
} }

View File

@ -55,7 +55,7 @@
( (
"zero", "zero",
tkappaByCp().dimensions(), tkappaByCp().dimensions(),
symmTensor::zero Zero
), ),
zeroGradientFvPatchSymmTensorField::typeName zeroGradientFvPatchSymmTensorField::typeName
) )

View File

@ -45,5 +45,5 @@ dimensionedVector gradP
( (
"gradP", "gradP",
dimensionSet(0, 1, -2, 0, 0), dimensionSet(0, 1, -2, 0, 0),
vector::zero Zero
); );

View File

@ -3,7 +3,7 @@
label faceId(-1); label faceId(-1);
label patchId(-1); label patchId(-1);
label nWallFaces(0); label nWallFaces(0);
vector wallNormal(vector::zero); vector wallNormal(Zero);
const fvPatchList& patches = mesh.boundary(); const fvPatchList& patches = mesh.boundary();

View File

@ -102,14 +102,14 @@ int main(int argc, char *argv[])
( (
"0", "0",
cloudSU.dimensions()/dimVolume, cloudSU.dimensions()/dimVolume,
vector::zero Zero
), ),
zeroGradientFvPatchVectorField::typeName zeroGradientFvPatchVectorField::typeName
); );
cloudVolSUSu.internalField() = -cloudSU.source()/mesh.V(); cloudVolSUSu.internalField() = -cloudSU.source()/mesh.V();
cloudVolSUSu.correctBoundaryConditions(); cloudVolSUSu.correctBoundaryConditions();
cloudSU.source() = vector::zero; cloudSU.source() = Zero;
// --- Pressure-velocity PIMPLE corrector loop // --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop()) while (pimple.loop())

View File

@ -59,7 +59,7 @@ Foam::relativeVelocityModel::relativeVelocityModel
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
alphac_.mesh(), alphac_.mesh(),
dimensionedVector("Udm", dimVelocity, vector::zero) dimensionedVector("Udm", dimVelocity, Zero)
) )
{} {}

View File

@ -23,7 +23,7 @@ volVectorField U
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
mesh, mesh,
dimensionedVector("U", dimVelocity, vector::zero) dimensionedVector("U", dimVelocity, Zero)
); );
surfaceScalarField phi surfaceScalarField phi

View File

@ -634,7 +634,7 @@ Foam::tmp<Foam::volVectorField> Foam::multiphaseSystem::Svm
( (
"Svm", "Svm",
dimensionSet(1, -2, -2, 0, 0), dimensionSet(1, -2, -2, 0, 0),
vector::zero Zero
) )
) )
); );
@ -677,7 +677,7 @@ Foam::tmp<Foam::volVectorField> Foam::multiphaseSystem::Svm
) )
) )
{ {
tSvm.ref().boundaryField()[patchi] = vector::zero; tSvm.ref().boundaryField()[patchi] = Zero;
} }
} }

View File

@ -99,7 +99,7 @@ Foam::phaseModel::phaseModel
mesh mesh
), ),
mesh, mesh,
dimensionedVector("0", dimVelocity/dimTime, vector::zero) dimensionedVector("0", dimVelocity/dimTime, Zero)
), ),
alphaPhi_ alphaPhi_
( (

View File

@ -264,7 +264,7 @@
mSfGradp = pEqnIncomp.flux()/rAUf; mSfGradp = pEqnIncomp.flux()/rAUf;
U = dimensionedVector("U", dimVelocity, vector::zero); U = dimensionedVector("U", dimVelocity, Zero);
phasei = 0; phasei = 0;
forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter) forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)

View File

@ -49,7 +49,7 @@ volVectorField zeta
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
mesh, mesh,
dimensionedVector("zero", dimLength, vector::zero) dimensionedVector("zero", dimLength, Zero)
); );
Info<< "Creating field p_gh\n" << endl; Info<< "Creating field p_gh\n" << endl;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -101,7 +101,7 @@ Foam::tmp<Foam::volVectorField> Foam::liftModels::noLift::F() const
false false
), ),
mesh, mesh,
dimensionedVector("zero", dimF, vector::zero) dimensionedVector("zero", dimF, Zero)
) )
); );
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -107,7 +107,7 @@ Foam::turbulentDispersionModels::noTurbulentDispersion::F() const
mesh mesh
), ),
mesh, mesh,
dimensionedVector("zero", dimF, vector::zero) dimensionedVector("zero", dimF, Zero)
) )
); );
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -83,7 +83,7 @@ Foam::wallLubricationModels::noWallLubrication::Fi() const
false false
), ),
mesh, mesh,
dimensionedVector("zero", dimF, vector::zero) dimensionedVector("zero", dimF, Zero)
) )
); );
} }
@ -108,7 +108,7 @@ Foam::wallLubricationModels::noWallLubrication::F() const
false false
), ),
mesh, mesh,
dimensionedVector("zero", dimF, vector::zero) dimensionedVector("zero", dimF, Zero)
) )
); );
} }

View File

@ -317,7 +317,7 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::F
false false
), ),
this->mesh_, this->mesh_,
dimensionedVector("zero", liftModel::dimF, vector::zero) dimensionedVector("zero", liftModel::dimF, Zero)
) )
); );
} }
@ -533,7 +533,7 @@ Foam::volVectorField& Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::setF
false false
), ),
this->mesh_, this->mesh_,
dimensionedVector("zero", liftModel::dimF, vector::zero) dimensionedVector("zero", liftModel::dimF, Zero)
) )
); );
} }

View File

@ -173,7 +173,7 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
fluid.mesh() fluid.mesh()
), ),
fluid.mesh(), fluid.mesh(),
dimensionedVector("0", dimAcceleration, vector::zero) dimensionedVector("0", dimAcceleration, Zero)
), ),
divU_(NULL), divU_(NULL),
turbulence_ turbulence_

View File

@ -144,7 +144,7 @@ Foam::RASModels::phasePressureModel::R() const
( (
"R", "R",
dimensionSet(0, 2, -2, 0, 0), dimensionSet(0, 2, -2, 0, 0),
symmTensor::zero Zero
) )
) )
); );
@ -227,7 +227,7 @@ Foam::RASModels::phasePressureModel::devRhoReff() const
( (
"R", "R",
rho_.dimensions()*dimensionSet(0, 2, -2, 0, 0), rho_.dimensions()*dimensionSet(0, 2, -2, 0, 0),
symmTensor::zero Zero
) )
) )
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -101,7 +101,7 @@ Foam::tmp<Foam::volVectorField> Foam::liftModels::noLift::F() const
false false
), ),
mesh, mesh,
dimensionedVector("zero", dimF, vector::zero) dimensionedVector("zero", dimF, Zero)
) )
); );
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -107,7 +107,7 @@ Foam::turbulentDispersionModels::noTurbulentDispersion::F() const
mesh mesh
), ),
mesh, mesh,
dimensionedVector("zero", dimF, vector::zero) dimensionedVector("zero", dimF, Zero)
) )
); );
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -83,7 +83,7 @@ Foam::wallLubricationModels::noWallLubrication::Fi() const
false false
), ),
mesh, mesh,
dimensionedVector("zero", dimF, vector::zero) dimensionedVector("zero", dimF, Zero)
) )
); );
} }
@ -108,7 +108,7 @@ Foam::wallLubricationModels::noWallLubrication::F() const
false false
), ),
mesh, mesh,
dimensionedVector("zero", dimF, vector::zero) dimensionedVector("zero", dimF, Zero)
) )
); );
} }

View File

@ -150,7 +150,7 @@ Foam::RASModels::phasePressureModel::R() const
( (
"R", "R",
dimensionSet(0, 2, -2, 0, 0), dimensionSet(0, 2, -2, 0, 0),
symmTensor::zero Zero
) )
) )
); );
@ -233,7 +233,7 @@ Foam::RASModels::phasePressureModel::devRhoReff() const
( (
"R", "R",
rho_.dimensions()*dimensionSet(0, 2, -2, 0, 0), rho_.dimensions()*dimensionSet(0, 2, -2, 0, 0),
symmTensor::zero Zero
) )
) )
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -42,11 +42,11 @@ tractionDisplacementFvPatchVectorField
) )
: :
fixedGradientFvPatchVectorField(p, iF), fixedGradientFvPatchVectorField(p, iF),
traction_(p.size(), vector::zero), traction_(p.size(), Zero),
pressure_(p.size(), 0.0) pressure_(p.size(), 0.0)
{ {
fvPatchVectorField::operator=(patchInternalField()); fvPatchVectorField::operator=(patchInternalField());
gradient() = vector::zero; gradient() = Zero;
} }
@ -78,7 +78,7 @@ tractionDisplacementFvPatchVectorField
pressure_("pressure", dict, p.size()) pressure_("pressure", dict, p.size())
{ {
fvPatchVectorField::operator=(patchInternalField()); fvPatchVectorField::operator=(patchInternalField());
gradient() = vector::zero; gradient() = Zero;
} }

View File

@ -14,6 +14,6 @@ if (!(runTime.timeIndex() % 5))
if (smi < -SMALL) if (smi < -SMALL)
{ {
Info<< "Resetting Dcorr to 0" << endl; Info<< "Resetting Dcorr to 0" << endl;
Dcorr == dimensionedVector("0", Dcorr.dimensions(), vector::zero); Dcorr == dimensionedVector("0", Dcorr.dimensions(), Zero);
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -42,11 +42,11 @@ tractionDisplacementCorrectionFvPatchVectorField
) )
: :
fixedGradientFvPatchVectorField(p, iF), fixedGradientFvPatchVectorField(p, iF),
traction_(p.size(), vector::zero), traction_(p.size(), Zero),
pressure_(p.size(), 0.0) pressure_(p.size(), 0.0)
{ {
fvPatchVectorField::operator=(patchInternalField()); fvPatchVectorField::operator=(patchInternalField());
gradient() = vector::zero; gradient() = Zero;
} }
@ -78,7 +78,7 @@ tractionDisplacementCorrectionFvPatchVectorField
pressure_("pressure", dict, p.size()) pressure_("pressure", dict, p.size())
{ {
fvPatchVectorField::operator=(patchInternalField()); fvPatchVectorField::operator=(patchInternalField());
gradient() = vector::zero; gradient() = Zero;
} }

View File

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

View File

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

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -76,7 +76,7 @@ int main(int argc, char *argv[])
point Cf = f.centre(pts); point Cf = f.centre(pts);
tensor J = tensor::zero; tensor J = Zero;
J = f.inertia(pts, Cf, density); J = f.inertia(pts, Cf, density);
@ -141,8 +141,8 @@ int main(int argc, char *argv[])
tetFaces[3] = triFace(0, 1, 3); tetFaces[3] = triFace(0, 1, 3);
scalar m = 0.0; scalar m = 0.0;
vector cM = vector::zero; vector cM = Zero;
tensor J = tensor::zero; tensor J = Zero;
momentOfInertia::massPropertiesSolid(pts, tetFaces, density, m, cM, J); momentOfInertia::massPropertiesSolid(pts, tetFaces, density, m, cM, J);

View File

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

View File

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

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -156,7 +156,7 @@ void writeEdgeFaces
OFstream efStream("edgeFaces.obj"); OFstream efStream("edgeFaces.obj");
pointField ctrs(localFaces.size(), vector::zero); pointField ctrs(localFaces.size(), Zero);
forAll(localFaces, faceI) forAll(localFaces, faceI)
{ {
@ -188,7 +188,7 @@ void writeFaceFaces
OFstream ffStream("faceFaces.obj"); OFstream ffStream("faceFaces.obj");
pointField ctrs(localFaces.size(), vector::zero); pointField ctrs(localFaces.size(), Zero);
forAll(localFaces, faceI) forAll(localFaces, faceI)
{ {

View File

@ -1075,25 +1075,25 @@ int main(int argc, char *argv[])
( (
subsetter.subMesh(), subsetter.subMesh(),
map, map,
vector::zero Zero
); );
initCreatedPatches<volSphericalTensorField> initCreatedPatches<volSphericalTensorField>
( (
subsetter.subMesh(), subsetter.subMesh(),
map, map,
sphericalTensor::zero Zero
); );
initCreatedPatches<volSymmTensorField> initCreatedPatches<volSymmTensorField>
( (
subsetter.subMesh(), subsetter.subMesh(),
map, map,
symmTensor::zero Zero
); );
initCreatedPatches<volTensorField> initCreatedPatches<volTensorField>
( (
subsetter.subMesh(), subsetter.subMesh(),
map, map,
tensor::zero Zero
); );
initCreatedPatches<surfaceScalarField> initCreatedPatches<surfaceScalarField>
@ -1106,25 +1106,25 @@ int main(int argc, char *argv[])
( (
subsetter.subMesh(), subsetter.subMesh(),
map, map,
vector::zero Zero
); );
initCreatedPatches<surfaceSphericalTensorField> initCreatedPatches<surfaceSphericalTensorField>
( (
subsetter.subMesh(), subsetter.subMesh(),
map, map,
sphericalTensor::zero Zero
); );
initCreatedPatches<surfaceSymmTensorField> initCreatedPatches<surfaceSymmTensorField>
( (
subsetter.subMesh(), subsetter.subMesh(),
map, map,
symmTensor::zero Zero
); );
initCreatedPatches<surfaceTensorField> initCreatedPatches<surfaceTensorField>
( (
subsetter.subMesh(), subsetter.subMesh(),
map, map,
tensor::zero Zero
); );

View File

@ -213,7 +213,7 @@ void ReadVertices
// Convert to foamPoints // Convert to foamPoints
foamPoints.setSize(nVertices); foamPoints.setSize(nVertices);
foamPoints = vector::zero; foamPoints = Zero;
foamPointMap.setSize(nVertices); foamPointMap.setSize(nVertices);
forAll(foamPointMap, i) forAll(foamPointMap, i)

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License 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 // We ignore the first layer of points in i and j the biconic meshes
label nPointsij = (iPoints - 1)*(jPoints - 1); label nPointsij = (iPoints - 1)*(jPoints - 1);
pointField points(nPointsij, vector::zero); pointField points(nPointsij, Zero);
for (direction comp = 0; comp < 2; comp++) 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"); fileName pointsFile(runTime.constantPath()/"points.tmp");
OFstream pFile(pointsFile); OFstream pFile(pointsFile);

View File

@ -1089,9 +1089,9 @@ int main(int argc, char *argv[])
mesh.boundaryMesh(), mesh.boundaryMesh(),
neighbPatchName, neighbPatchName,
cyclicPolyPatch::NOORDERING, cyclicPolyPatch::NOORDERING,
vector::zero, Zero,
vector::zero, Zero,
vector::zero Zero
); );
} }
else else

View File

@ -2296,7 +2296,7 @@ int main(int argc, char *argv[])
// Calculate region normals by reducing local region normals // Calculate region normals by reducing local region normals
pointField localRegionNormals(localToGlobalRegion.size()); pointField localRegionNormals(localToGlobalRegion.size());
{ {
pointField localSum(localToGlobalRegion.size(), vector::zero); pointField localSum(localToGlobalRegion.size(), Zero);
forAll(pointLocalRegions, faceI) forAll(pointLocalRegions, faceI)
{ {

View File

@ -533,7 +533,7 @@ bool Foam::backgroundMeshDecomposition::refineCell
// pointField samplePoints // pointField samplePoints
// ( // (
// volRes_*volRes_*volRes_, // volRes_*volRes_*volRes_,
// vector::zero // Zero
// ); // );
// //
// // scalar sampleVol = cellBb.volume()/samplePoints.size(); // // scalar sampleVol = cellBb.volume()/samplePoints.size();
@ -1238,7 +1238,7 @@ Foam::backgroundMeshDecomposition::intersectsProcessors
const point& e = ends[sI]; const point& e = ends[sI];
// Dummy point for treeBoundBox::intersects // Dummy point for treeBoundBox::intersects
point p(vector::zero); point p(Zero);
label nCandidates = 0; label nCandidates = 0;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -40,7 +40,7 @@ Foam::cellAspectRatioControl::cellAspectRatioControl
aspectRatioDict_.lookupOrDefault<vector> aspectRatioDict_.lookupOrDefault<vector>
( (
"aspectRatioDirection", "aspectRatioDirection",
vector::zero Zero
) )
) )
{ {

View File

@ -177,7 +177,7 @@ Foam::tensor Foam::cellShapeControl::cellAlignment(const point& pt) const
shapeControlMesh_.barycentricCoords(pt, bary, ch); shapeControlMesh_.barycentricCoords(pt, bary, ch);
tensor alignment = tensor::zero; tensor alignment = Zero;
if (shapeControlMesh_.dimension() < 3 || shapeControlMesh_.is_infinite(ch)) if (shapeControlMesh_.dimension() < 3 || shapeControlMesh_.is_infinite(ch))
{ {
@ -249,7 +249,7 @@ void Foam::cellShapeControl::cellSizeAndAlignment
shapeControlMesh_.barycentricCoords(pt, bary, ch); shapeControlMesh_.barycentricCoords(pt, bary, ch);
alignment = tensor::zero; alignment = Zero;
size = 0; size = 0;
if (shapeControlMesh_.dimension() < 3 || shapeControlMesh_.is_infinite(ch)) if (shapeControlMesh_.dimension() < 3 || shapeControlMesh_.is_infinite(ch))

View File

@ -601,7 +601,7 @@ void Foam::cellShapeControlMesh::distribute
Foam::tensorField Foam::cellShapeControlMesh::dumpAlignments() const Foam::tensorField Foam::cellShapeControlMesh::dumpAlignments() const
{ {
tensorField alignmentsTmp(number_of_vertices(), tensor::zero); tensorField alignmentsTmp(number_of_vertices(), Zero);
label count = 0; label count = 0;
for for

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -119,7 +119,7 @@ Foam::fileControl::~fileControl()
// //
// label nearest = 0; // label nearest = 0;
// //
// tensor alignment = Foam::tensor::zero; // tensor alignment = Zero;
// forAll(bary, pI) // forAll(bary, pI)
// { // {
// //alignment += bary[pI]*ch->vertex(pI)->alignment(); // //alignment += bary[pI]*ch->vertex(pI)->alignment();
@ -155,7 +155,7 @@ Foam::fileControl::~fileControl()
// size += bary[pI]*ch->vertex(pI)->size(); // size += bary[pI]*ch->vertex(pI)->size();
// } // }
// //
//// alignment = Foam::tensor::zero; //// alignment = Zero;
//// forAll(bary, pI) //// forAll(bary, pI)
//// { //// {
//// alignment += bary[pI]*ch->vertex(pI)->alignment(); //// alignment += bary[pI]*ch->vertex(pI)->alignment();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -100,7 +100,7 @@ addToRunTimeSelectionTable
// //
// const tensor Rp = rotationTensor(vector(0,0,1), np); // const tensor Rp = rotationTensor(vector(0,0,1), np);
// //
// vector na = vector::zero; // vector na = Zero;
// //
// scalar smallestAngle = GREAT; // scalar smallestAngle = GREAT;
// //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -1080,7 +1080,7 @@ void Foam::conformalVoronoiMesh::move()
vectorField displacementAccumulator vectorField displacementAccumulator
( (
number_of_vertices(), number_of_vertices(),
vector::zero Zero
); );
PackedBoolList pointToBeRetained PackedBoolList pointToBeRetained

View File

@ -1581,7 +1581,7 @@ void Foam::conformalVoronoiMesh::limitDisplacement
// Do not allow infinite recursion // Do not allow infinite recursion
if (callCount > 7) if (callCount > 7)
{ {
displacement = vector::zero; displacement = Zero;
return; return;
} }
@ -1630,7 +1630,7 @@ void Foam::conformalVoronoiMesh::limitDisplacement
if (magSqr(pt - surfHit.hitPoint()) <= searchDistanceSqr) if (magSqr(pt - surfHit.hitPoint()) <= searchDistanceSqr)
{ {
// Cannot limit displacement, point closer than tolerance // Cannot limit displacement, point closer than tolerance
displacement = vector::zero; displacement = Zero;
return; return;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -200,8 +200,8 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
Foam::point externalPtD; Foam::point externalPtD;
Foam::point externalPtE; Foam::point externalPtE;
vector convexEdgePlaneCNormal(vector::zero); vector convexEdgePlaneCNormal(Zero);
vector convexEdgePlaneDNormal(vector::zero); vector convexEdgePlaneDNormal(Zero);
const labelList& concaveEdgeNormals = edgeNormals[concaveEdgeI]; const labelList& concaveEdgeNormals = edgeNormals[concaveEdgeI];
const labelList& convexEdgeANormals = edgeNormals[convexEdgesI[0]]; const labelList& convexEdgeANormals = edgeNormals[convexEdgesI[0]];
@ -632,8 +632,8 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
Foam::point externalPtD; Foam::point externalPtD;
Foam::point externalPtE; Foam::point externalPtE;
vector concaveEdgePlaneCNormal(vector::zero); vector concaveEdgePlaneCNormal(Zero);
vector concaveEdgePlaneDNormal(vector::zero); vector concaveEdgePlaneDNormal(Zero);
const labelList& convexEdgeNormals = edgeNormals[convexEdgeI]; const labelList& convexEdgeNormals = edgeNormals[convexEdgeI];
const labelList& concaveEdgeANormals = edgeNormals[concaveEdgesI[0]]; const labelList& concaveEdgeANormals = edgeNormals[concaveEdgesI[0]];

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -23,8 +23,6 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
//#include "indexedCellChecks.H"
template<class Gt, class Cb> template<class Gt, class Cb>
Foam::tetCell CGAL::indexedCell<Gt, Cb>::unsortedVertexGlobalIndices Foam::tetCell CGAL::indexedCell<Gt, Cb>::unsortedVertexGlobalIndices
( (
@ -578,8 +576,8 @@ inline bool CGAL::indexedCell<Gt, Cb>::potentialCoplanarCell() const
if (nMasters == 2 && nSlaves == 2) if (nMasters == 2 && nSlaves == 2)
{ {
Foam::vector vp0(Foam::vector::zero); Foam::vector vp0(Foam::Zero);
Foam::vector vp1(Foam::vector::zero); Foam::vector vp1(Foam::Zero);
if if
( (

View File

@ -43,7 +43,7 @@ void Foam::conformationSurfaces::hasBoundedVolume
List<volumeType>& referenceVolumeTypes List<volumeType>& referenceVolumeTypes
) const ) const
{ {
vector sum(vector::zero); vector sum(Zero);
label totalTriangles = 0; label totalTriangles = 0;
forAll(surfaces_, s) forAll(surfaces_, s)

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -416,7 +416,7 @@ bool Foam::autoDensity::fillBox
label nLine = 6*(surfRes_ - 2); label nLine = 6*(surfRes_ - 2);
pointField linePoints(nLine, vector::zero); pointField linePoints(nLine, Zero);
scalarField lineSizes(nLine, 0.0); scalarField lineSizes(nLine, 0.0);
@ -532,7 +532,7 @@ bool Foam::autoDensity::fillBox
pointField samplePoints pointField samplePoints
( (
volRes_*volRes_*volRes_, volRes_*volRes_*volRes_,
vector::zero Zero
); );
vector delta = span/volRes_; vector delta = span/volRes_;

View File

@ -862,7 +862,7 @@ void Foam::CV2D::newPoints()
edgei = 0; edgei = 0;
// Initialise the displacement for the centre and sum-weights // Initialise the displacement for the centre and sum-weights
vector2D disp = vector2D::zero; vector2D disp = Zero;
scalar sumw = 0; scalar sumw = 0;
do do

View File

@ -426,7 +426,7 @@ Foam::shortEdgeFilter2D::filter()
label totalNewPoints = points.size() - nPointsToRemove; label totalNewPoints = points.size() - nPointsToRemove;
pointField newPoints(totalNewPoints, vector::zero); pointField newPoints(totalNewPoints, Zero);
labelList newPointNumbers(points.size(), -1); labelList newPointNumbers(points.size(), -1);
label numberRemoved = 0; label numberRemoved = 0;

View File

@ -285,7 +285,7 @@ namespace Foam
label n = 0; label n = 0;
// Extract for every face the i'th position // Extract for every face the i'th position
pointField ptsAtIndex(pts.size(), vector::zero); pointField ptsAtIndex(pts.size(), Zero);
forAll(cpp, faceI) forAll(cpp, faceI)
{ {
const pointField& facePts = pts[faceI]; const pointField& facePts = pts[faceI];

View File

@ -704,7 +704,7 @@ void Foam::vtkPV3Foam::renderPatchNames(vtkRenderer* renderer, const bool show)
// Create storage for additional zone centres // Create storage for additional zone centres
forAll(zoneNFaces, zoneI) forAll(zoneNFaces, zoneI)
{ {
zoneCentre[patchI].append(vector::zero); zoneCentre[patchI].append(Zero);
} }
// Do averaging per individual zone // Do averaging per individual zone

View File

@ -708,7 +708,7 @@ void Foam::vtkPVFoam::renderPatchNames
// Create storage for additional zone centres // Create storage for additional zone centres
forAll(zoneNFaces, zoneI) forAll(zoneNFaces, zoneI)
{ {
zoneCentre[patchI].append(vector::zero); zoneCentre[patchI].append(Zero);
} }
// Do averaging per individual zone // Do averaging per individual zone

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -84,7 +84,7 @@ int main(int argc, char *argv[])
( (
"wallGradU", "wallGradU",
U.dimensions()/dimLength, U.dimensions()/dimLength,
vector::zero Zero
) )
); );

View File

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

View File

@ -738,7 +738,7 @@ int main(int argc, char *argv[])
{ {
const boundBox& box = mesh.bounds(); const boundBox& box = mesh.bounds();
const Vector<label>& dirs = mesh.geometricD(); const Vector<label>& dirs = mesh.geometricD();
vector emptyDir = vector::zero; vector emptyDir = Zero;
forAll(dirs, i) forAll(dirs, i)
{ {
if (dirs[i] == -1) if (dirs[i] == -1)

View File

@ -504,7 +504,7 @@ int main(int argc, char *argv[])
label nFeatEds = inter.cutEdges().size(); label nFeatEds = inter.cutEdges().size();
DynamicList<vector> normals(2*nFeatEds); DynamicList<vector> normals(2*nFeatEds);
vectorField edgeDirections(nFeatEds, vector::zero); vectorField edgeDirections(nFeatEds, Zero);
DynamicList<extendedFeatureEdgeMesh::sideVolumeType> normalVolumeTypes DynamicList<extendedFeatureEdgeMesh::sideVolumeType> normalVolumeTypes
( (
2*nFeatEds 2*nFeatEds

View File

@ -196,7 +196,7 @@ vectorField calcVertexNormals(const triSurface& surf)
Info<< "Calculating vertex normals" << endl; Info<< "Calculating vertex normals" << endl;
vectorField pointNormals(surf.nPoints(), vector::zero); vectorField pointNormals(surf.nPoints(), Zero);
const pointField& points = surf.points(); const pointField& points = surf.points();
const labelListList& pointFaces = surf.pointFaces(); const labelListList& pointFaces = surf.pointFaces();
@ -276,8 +276,8 @@ triSurfacePointScalarField calcCurvature
const edgeList fEdges = f.edges(); const edgeList fEdges = f.edges();
// Calculate the edge vectors and the normal differences // Calculate the edge vectors and the normal differences
vectorField edgeVectors(f.size(), vector::zero); vectorField edgeVectors(f.size(), Zero);
vectorField normalDifferences(f.size(), vector::zero); vectorField normalDifferences(f.size(), Zero);
forAll(fEdges, feI) forAll(fEdges, feI)
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -83,14 +83,14 @@ int main(int argc, char *argv[])
const fileName surfFileName = args[1]; const fileName surfFileName = args[1];
const scalar density = args.optionLookupOrDefault("density", 1.0); const scalar density = args.optionLookupOrDefault("density", 1.0);
vector refPt = vector::zero; vector refPt = Zero;
bool calcAroundRefPt = args.optionReadIfPresent("referencePoint", refPt); bool calcAroundRefPt = args.optionReadIfPresent("referencePoint", refPt);
triSurface surf(surfFileName); triSurface surf(surfFileName);
scalar m = 0.0; scalar m = 0.0;
vector cM = vector::zero; vector cM = Zero;
tensor J = tensor::zero; tensor J = Zero;
if (args.optionFound("shellProperties")) if (args.optionFound("shellProperties"))
{ {

View File

@ -56,7 +56,7 @@ tmp<pointField> avg
{ {
const labelListList& pointEdges = s.pointEdges(); const labelListList& pointEdges = s.pointEdges();
tmp<pointField> tavg(new pointField(s.nPoints(), vector::zero)); tmp<pointField> tavg(new pointField(s.nPoints(), Zero));
pointField& avg = tavg.ref(); pointField& avg = tavg.ref();
forAll(pointEdges, vertI) forAll(pointEdges, vertI)

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -558,7 +558,7 @@ void calcPointVecs
// Determine vector as average of the vectors in the two faces. // Determine vector as average of the vectors in the two faces.
// If there is only one face available use only one vector. // If there is only one face available use only one vector.
vector midVec(vector::zero); vector midVec(Zero);
if (face0I != -1) if (face0I != -1)
{ {

View File

@ -77,6 +77,9 @@ public:
//- Construct null //- Construct null
inline DiagTensor(); inline DiagTensor();
//- Construct initialized to zero
inline DiagTensor(const Foam::zero);
//- Construct given VectorSpace //- Construct given VectorSpace
template<class Cmpt2> template<class Cmpt2>
inline DiagTensor(const VectorSpace<DiagTensor<Cmpt2>, Cmpt2, 3>&); inline DiagTensor(const VectorSpace<DiagTensor<Cmpt2>, Cmpt2, 3>&);

View File

@ -33,6 +33,13 @@ inline Foam::DiagTensor<Cmpt>::DiagTensor()
{} {}
template<class Cmpt>
inline Foam::DiagTensor<Cmpt>::DiagTensor(const Foam::zero)
:
VectorSpace<DiagTensor<Cmpt>, Cmpt, 3>(Zero)
{}
template<class Cmpt> template<class Cmpt>
template<class Cmpt2> template<class Cmpt2>
inline Foam::DiagTensor<Cmpt>::DiagTensor inline Foam::DiagTensor<Cmpt>::DiagTensor

View File

@ -57,7 +57,7 @@ Foam::anisotropicFilter::anisotropicFilter
mesh mesh
), ),
mesh, mesh,
dimensionedVector("zero", dimLength*dimLength, vector::zero), dimensionedVector("zero", dimLength*dimLength, Zero),
calculatedFvPatchVectorField::typeName calculatedFvPatchVectorField::typeName
) )
{ {
@ -94,7 +94,7 @@ Foam::anisotropicFilter::anisotropicFilter
mesh mesh
), ),
mesh, mesh,
dimensionedVector("zero", dimLength*dimLength, vector::zero), dimensionedVector("zero", dimLength*dimLength, Zero),
calculatedFvPatchScalarField::typeName calculatedFvPatchScalarField::typeName
) )
{ {

View File

@ -39,7 +39,7 @@ Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
) )
: :
fixedValueFvPatchVectorField(p, iF), fixedValueFvPatchVectorField(p, iF),
tau0_(vector::zero) tau0_(Zero)
{} {}
@ -51,7 +51,7 @@ Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
) )
: :
fixedValueFvPatchVectorField(p, iF), fixedValueFvPatchVectorField(p, iF),
tau0_(dict.lookupOrDefault<vector>("tau", vector::zero)) tau0_(dict.lookupOrDefault<vector>("tau", Zero))
{ {
fvPatchField<vector>::operator=(patchInternalField()); fvPatchField<vector>::operator=(patchInternalField());
} }

View File

@ -240,7 +240,7 @@ Foam::laminar<BasicTurbulenceModel>::R() const
this->mesh_, this->mesh_,
dimensionedSymmTensor dimensionedSymmTensor
( (
"R", sqr(this->U_.dimensions()), symmTensor::zero "R", sqr(this->U_.dimensions()), Zero
) )
) )
); );

View File

@ -67,7 +67,7 @@ Foam::nonlinearEddyViscosity<BasicTurbulenceModel>::nonlinearEddyViscosity
( (
"nonlinearStress", "nonlinearStress",
sqr(dimVelocity), sqr(dimVelocity),
symmTensor::zero Zero
) )
) )
{} {}

View File

@ -557,7 +557,7 @@ void Foam::boundaryMesh::read(const polyMesh& mesh)
{ {
const face& f = msh[faceI]; const face& f = msh[faceI];
point ctr(vector::zero); point ctr(Zero);
forAll(f, fp) forAll(f, fp)
{ {

View File

@ -203,7 +203,7 @@ void extrudePatchMesh::extrudeMesh(const List<polyPatch*>& regionPatches)
// Calculate region normals by reducing local region normals // Calculate region normals by reducing local region normals
pointField localRegionNormals(localToGlobalRegion.size()); pointField localRegionNormals(localToGlobalRegion.size());
{ {
pointField localSum(localToGlobalRegion.size(), vector::zero); pointField localSum(localToGlobalRegion.size(), Zero);
forAll(pointLocalRegions, faceI) forAll(pointLocalRegions, faceI)
{ {

View File

@ -1208,7 +1208,7 @@ bool Foam::cellCuts::loopAnchorConsistent
// Get average position of anchor points. // Get average position of anchor points.
vector avg(vector::zero); vector avg(Zero);
forAll(anchorPoints, ptI) forAll(anchorPoints, ptI)
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -384,7 +384,7 @@ bool Foam::geomCellLooper::cut
// Get points on loop and centre of loop // Get points on loop and centre of loop
pointField loopPoints(localLoop.size()); pointField loopPoints(localLoop.size());
point ctr(vector::zero); point ctr(Zero);
forAll(localLoop, i) forAll(localLoop, i)
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -33,7 +33,7 @@ License
inline Foam::directionInfo::directionInfo() inline Foam::directionInfo::directionInfo()
: :
index_(-3), index_(-3),
n_(vector::zero) n_(Zero)
{} {}

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,7 +31,7 @@ License
Foam::refineCell::refineCell() Foam::refineCell::refineCell()
: :
cellNo_(-1), cellNo_(-1),
direction_(vector::zero) direction_(Zero)
{} {}

View File

@ -63,9 +63,9 @@ void Foam::polyMeshGeometry::updateFaceCentresAndAreas
} }
else else
{ {
vector sumN = vector::zero; vector sumN = Zero;
scalar sumA = 0.0; scalar sumA = 0.0;
vector sumAc = vector::zero; vector sumAc = Zero;
point fCentre = p[f[0]]; point fCentre = p[f[0]];
for (label pi = 1; pi < nPoints; pi++) for (label pi = 1; pi < nPoints; pi++)
@ -102,7 +102,7 @@ void Foam::polyMeshGeometry::updateCellCentresAndVols
) )
{ {
// Clear the fields for accumulation // Clear the fields for accumulation
UIndirectList<vector>(cellCentres_, changedCells) = vector::zero; UIndirectList<vector>(cellCentres_, changedCells) = Zero;
UIndirectList<scalar>(cellVolumes_, changedCells) = 0.0; UIndirectList<scalar>(cellVolumes_, changedCells) = 0.0;
const labelList& own = mesh_.faceOwner(); const labelList& own = mesh_.faceOwner();
@ -111,7 +111,7 @@ void Foam::polyMeshGeometry::updateCellCentresAndVols
// first estimate the approximate cell centre as the average of face centres // first estimate the approximate cell centre as the average of face centres
vectorField cEst(mesh_.nCells()); vectorField cEst(mesh_.nCells());
UIndirectList<vector>(cEst, changedCells) = vector::zero; UIndirectList<vector>(cEst, changedCells) = Zero;
scalarField nCellFaces(mesh_.nCells()); scalarField nCellFaces(mesh_.nCells());
UIndirectList<scalar>(nCellFaces, changedCells) = 0.0; UIndirectList<scalar>(nCellFaces, changedCells) = 0.0;
@ -1693,7 +1693,7 @@ bool Foam::polyMeshGeometry::checkFaceTwist
if (f.size() > 3) if (f.size() > 3)
{ {
vector nf(vector::zero); vector nf(Zero);
if (mesh.isInternalFace(faceI)) if (mesh.isInternalFace(faceI))
{ {
@ -2118,7 +2118,7 @@ bool Foam::polyMeshGeometry::checkCellDeterminant
{ {
const cell& cFaces = cells[affectedCells[i]]; const cell& cFaces = cells[affectedCells[i]];
tensor areaSum(tensor::zero); tensor areaSum(Zero);
scalar magAreaSum = 0; scalar magAreaSum = 0;
forAll(cFaces, cFaceI) forAll(cFaces, cFaceI)

View File

@ -184,7 +184,7 @@ void Foam::faceCoupleInfo::writePointsFaces() const
<< " at position " << c[cutFaceI].centre(c.points()) << " at position " << c[cutFaceI].centre(c.points())
<< endl; << endl;
equivMasterFaces[cutFaceI] = vector::zero; equivMasterFaces[cutFaceI] = Zero;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -77,7 +77,7 @@ public:
//- Construct null. Used only for list construction //- Construct null. Used only for list construction
polyAddPoint() polyAddPoint()
: :
p_(vector::zero), p_(Zero),
masterPointID_(-1), masterPointID_(-1),
zoneID_(-1), zoneID_(-1),
inCell_(false) inCell_(false)

View File

@ -209,7 +209,7 @@ void Foam::edgeCollapser::collapseToEdge
if (!maxPriorityPts.empty()) if (!maxPriorityPts.empty())
{ {
Foam::point averagePt(vector::zero); Foam::point averagePt(Zero);
forAll(maxPriorityPts, ptI) forAll(maxPriorityPts, ptI)
{ {
@ -259,7 +259,7 @@ void Foam::edgeCollapser::collapseToEdge
if (!maxPriorityPts.empty()) if (!maxPriorityPts.empty())
{ {
Foam::point averagePt(vector::zero); Foam::point averagePt(Zero);
forAll(maxPriorityPts, ptI) forAll(maxPriorityPts, ptI)
{ {
@ -321,7 +321,7 @@ void Foam::edgeCollapser::collapseToPoint
if (!maxPriorityPts.empty()) if (!maxPriorityPts.empty())
{ {
Foam::point averagePt(vector::zero); Foam::point averagePt(Zero);
forAll(maxPriorityPts, ptI) forAll(maxPriorityPts, ptI)
{ {
@ -580,7 +580,7 @@ Foam::edgeCollapser::collapseType Foam::edgeCollapser::collapseFace
const scalar fA = f.mag(pts); const scalar fA = f.mag(pts);
vector collapseAxis = vector::zero; vector collapseAxis = Zero;
scalar aspectRatio = 1.0; scalar aspectRatio = 1.0;
faceCollapseAxisAndAspectRatio(f, fC, collapseAxis, aspectRatio); faceCollapseAxisAndAspectRatio(f, fC, collapseAxis, aspectRatio);
@ -1035,7 +1035,7 @@ Foam::label Foam::edgeCollapser::syncCollapse
List<pointEdgeCollapse> allEdgeInfo List<pointEdgeCollapse> allEdgeInfo
( (
mesh_.nEdges(), mesh_.nEdges(),
pointEdgeCollapse(vector::zero, -1, -1) pointEdgeCollapse(Zero, -1, -1)
); );
// Mark selected edges for collapse // Mark selected edges for collapse

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -81,7 +81,7 @@ public:
polyModifyPoint() polyModifyPoint()
: :
pointID_(-1), pointID_(-1),
location_(vector::zero), location_(Zero),
removeFromZone_(false), removeFromZone_(false),
zoneID_(-1), zoneID_(-1),
inCell_(false) inCell_(false)

View File

@ -3117,7 +3117,7 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::polyTopoChange::changeMesh
} }
else else
{ {
renumberedMeshPoints[newPointI] = vector::zero; renumberedMeshPoints[newPointI] = Zero;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -250,7 +250,7 @@ bool Foam::slidingInterface::projectPoints() const
if (projectedSlavePointsPtr_) delete projectedSlavePointsPtr_; if (projectedSlavePointsPtr_) delete projectedSlavePointsPtr_;
projectedSlavePointsPtr_ = projectedSlavePointsPtr_ =
new pointField(slavePointFaceHits.size(), vector::zero); new pointField(slavePointFaceHits.size(), Zero);
pointField& projectedSlavePoints = *projectedSlavePointsPtr_; pointField& projectedSlavePoints = *projectedSlavePointsPtr_;
// Adjust projection to type of match // Adjust projection to type of match

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -136,7 +136,7 @@ inline Foam::vector Foam::extendedEdgeMesh::edgeDirection
<< e.start() << " " << e.end() << e.start() << " " << e.end()
<< exit(FatalError); << exit(FatalError);
return vector::zero; return Zero;
} }
} }

View File

@ -166,7 +166,7 @@ void Foam::extendedEdgeMesh::sortPointsAndEdges
); );
} }
vector fC0tofC1(vector::zero); vector fC0tofC1(Zero);
if (eFaces.size() == 2) if (eFaces.size() == 2)
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -133,7 +133,7 @@ inline Foam::vector Foam::extendedFeatureEdgeMesh::edgeDirection
<< e.start() << " " << e.end() << e.start() << " " << e.end()
<< exit(FatalError); << exit(FatalError);
return vector::zero; return Zero;
} }
} }

View File

@ -166,7 +166,7 @@ void Foam::extendedFeatureEdgeMesh::sortPointsAndEdges
); );
} }
vector fC0tofC1(vector::zero); vector fC0tofC1(Zero);
if (eFaces.size() == 2) if (eFaces.size() == 2)
{ {

View File

@ -423,7 +423,7 @@ void Foam::MRFZone::makeRelative(volVectorField& U) const
forAll(includedFaces_[patchi], i) forAll(includedFaces_[patchi], i)
{ {
label patchFacei = includedFaces_[patchi][i]; label patchFacei = includedFaces_[patchi][i];
U.boundaryField()[patchi][patchFacei] = vector::zero; U.boundaryField()[patchi][patchFacei] = Zero;
} }
} }

View File

@ -177,7 +177,7 @@ Foam::tmp<Foam::volVectorField> Foam::MRFZoneList::DDt
U.mesh() U.mesh()
), ),
U.mesh(), U.mesh(),
dimensionedVector("0", U.dimensions()/dimTime, vector::zero) dimensionedVector("0", U.dimensions()/dimTime, Zero)
) )
); );
volVectorField& acceleration = tacceleration.ref(); volVectorField& acceleration = tacceleration.ref();

View File

@ -62,7 +62,7 @@ Foam::SRF::SRFModel::SRFModel
origin_("origin", dimLength, lookup("origin")), origin_("origin", dimLength, lookup("origin")),
axis_(lookup("axis")), axis_(lookup("axis")),
SRFModelCoeffs_(subDict(type + "Coeffs")), SRFModelCoeffs_(subDict(type + "Coeffs")),
omega_(dimensionedVector("omega", dimless/dimTime, vector::zero)) omega_(dimensionedVector("omega", dimless/dimTime, Zero))
{ {
// Normalise the axis // Normalise the axis
axis_ /= mag(axis_); axis_ /= mag(axis_);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -42,7 +42,7 @@ SRFFreestreamVelocityFvPatchVectorField
: :
inletOutletFvPatchVectorField(p, iF), inletOutletFvPatchVectorField(p, iF),
relative_(false), relative_(false),
UInf_(vector::zero) UInf_(Zero)
{} {}

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -39,7 +39,7 @@ Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
: :
fixedValueFvPatchVectorField(p, iF), fixedValueFvPatchVectorField(p, iF),
relative_(0), relative_(0),
inletValue_(p.size(), vector::zero) inletValue_(p.size(), Zero)
{} {}

View File

@ -84,7 +84,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
D_[zoneI].setSize(1); D_[zoneI].setSize(1);
F_[zoneI].setSize(1); F_[zoneI].setSize(1);
D_[zoneI][0] = tensor::zero; D_[zoneI][0] = Zero;
D_[zoneI][0].xx() = dXYZ_.value().x(); D_[zoneI][0].xx() = dXYZ_.value().x();
D_[zoneI][0].yy() = dXYZ_.value().y(); D_[zoneI][0].yy() = dXYZ_.value().y();
D_[zoneI][0].zz() = dXYZ_.value().z(); D_[zoneI][0].zz() = dXYZ_.value().z();
@ -92,7 +92,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
D_[zoneI][0] = coordSys_.R().transformTensor(D_[zoneI][0]); D_[zoneI][0] = coordSys_.R().transformTensor(D_[zoneI][0]);
// leading 0.5 is from 1/2*rho // leading 0.5 is from 1/2*rho
F_[zoneI][0] = tensor::zero; F_[zoneI][0] = Zero;
F_[zoneI][0].xx() = 0.5*fXYZ_.value().x(); F_[zoneI][0].xx() = 0.5*fXYZ_.value().x();
F_[zoneI][0].yy() = 0.5*fXYZ_.value().y(); F_[zoneI][0].yy() = 0.5*fXYZ_.value().y();
F_[zoneI][0].zz() = 0.5*fXYZ_.value().z(); F_[zoneI][0].zz() = 0.5*fXYZ_.value().z();
@ -111,13 +111,13 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
forAll(cells, i) forAll(cells, i)
{ {
D_[zoneI][i] = tensor::zero; D_[zoneI][i] = Zero;
D_[zoneI][i].xx() = dXYZ_.value().x(); D_[zoneI][i].xx() = dXYZ_.value().x();
D_[zoneI][i].yy() = dXYZ_.value().y(); D_[zoneI][i].yy() = dXYZ_.value().y();
D_[zoneI][i].zz() = dXYZ_.value().z(); D_[zoneI][i].zz() = dXYZ_.value().z();
// leading 0.5 is from 1/2*rho // leading 0.5 is from 1/2*rho
F_[zoneI][i] = tensor::zero; F_[zoneI][i] = Zero;
F_[zoneI][i].xx() = 0.5*fXYZ_.value().x(); F_[zoneI][i].xx() = 0.5*fXYZ_.value().x();
F_[zoneI][i].yy() = 0.5*fXYZ_.value().y(); F_[zoneI][i].yy() = 0.5*fXYZ_.value().y();
F_[zoneI][i].zz() = 0.5*fXYZ_.value().z(); F_[zoneI][i].zz() = 0.5*fXYZ_.value().z();
@ -143,7 +143,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh_, mesh_,
dimensionedTensor("0", dXYZ_.dimensions(), tensor::zero) dimensionedTensor("0", dXYZ_.dimensions(), Zero)
); );
volTensorField Fout volTensorField Fout
( (
@ -156,7 +156,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh_, mesh_,
dimensionedTensor("0", fXYZ_.dimensions(), tensor::zero) dimensionedTensor("0", fXYZ_.dimensions(), Zero)
); );
UIndirectList<tensor>(Dout, mesh_.cellZones()[cellZoneIDs_[0]]) = D_[0]; UIndirectList<tensor>(Dout, mesh_.cellZones()[cellZoneIDs_[0]]) = D_[0];
@ -177,7 +177,7 @@ void Foam::porosityModels::DarcyForchheimer::calcForce
) const ) const
{ {
scalarField Udiag(U.size(), 0.0); scalarField Udiag(U.size(), 0.0);
vectorField Usource(U.size(), vector::zero); vectorField Usource(U.size(), Zero);
const scalarField& V = mesh_.V(); const scalarField& V = mesh_.V();
apply(Udiag, Usource, V, rho, mu, U); apply(Udiag, Usource, V, rho, mu, U);

View File

@ -140,13 +140,13 @@ void Foam::porosityModels::fixedCoeff::calcTransformModelData()
alpha_[zoneI].setSize(1); alpha_[zoneI].setSize(1);
beta_[zoneI].setSize(1); beta_[zoneI].setSize(1);
alpha_[zoneI][0] = tensor::zero; alpha_[zoneI][0] = Zero;
alpha_[zoneI][0].xx() = alphaXYZ_.value().x(); alpha_[zoneI][0].xx() = alphaXYZ_.value().x();
alpha_[zoneI][0].yy() = alphaXYZ_.value().y(); alpha_[zoneI][0].yy() = alphaXYZ_.value().y();
alpha_[zoneI][0].zz() = alphaXYZ_.value().z(); alpha_[zoneI][0].zz() = alphaXYZ_.value().z();
alpha_[zoneI][0] = coordSys_.R().transformTensor(alpha_[zoneI][0]); alpha_[zoneI][0] = coordSys_.R().transformTensor(alpha_[zoneI][0]);
beta_[zoneI][0] = tensor::zero; beta_[zoneI][0] = Zero;
beta_[zoneI][0].xx() = betaXYZ_.value().x(); beta_[zoneI][0].xx() = betaXYZ_.value().x();
beta_[zoneI][0].yy() = betaXYZ_.value().y(); beta_[zoneI][0].yy() = betaXYZ_.value().y();
beta_[zoneI][0].zz() = betaXYZ_.value().z(); beta_[zoneI][0].zz() = betaXYZ_.value().z();
@ -164,12 +164,12 @@ void Foam::porosityModels::fixedCoeff::calcTransformModelData()
forAll(cells, i) forAll(cells, i)
{ {
alpha_[zoneI][i] = tensor::zero; alpha_[zoneI][i] = Zero;
alpha_[zoneI][i].xx() = alphaXYZ_.value().x(); alpha_[zoneI][i].xx() = alphaXYZ_.value().x();
alpha_[zoneI][i].yy() = alphaXYZ_.value().y(); alpha_[zoneI][i].yy() = alphaXYZ_.value().y();
alpha_[zoneI][i].zz() = alphaXYZ_.value().z(); alpha_[zoneI][i].zz() = alphaXYZ_.value().z();
beta_[zoneI][i] = tensor::zero; beta_[zoneI][i] = Zero;
beta_[zoneI][i].xx() = betaXYZ_.value().x(); beta_[zoneI][i].xx() = betaXYZ_.value().x();
beta_[zoneI][i].yy() = betaXYZ_.value().y(); beta_[zoneI][i].yy() = betaXYZ_.value().y();
beta_[zoneI][i].zz() = betaXYZ_.value().z(); beta_[zoneI][i].zz() = betaXYZ_.value().z();
@ -193,7 +193,7 @@ void Foam::porosityModels::fixedCoeff::calcForce
) const ) const
{ {
scalarField Udiag(U.size(), 0.0); scalarField Udiag(U.size(), 0.0);
vectorField Usource(U.size(), vector::zero); vectorField Usource(U.size(), Zero);
const scalarField& V = mesh_.V(); const scalarField& V = mesh_.V();
scalar rhoRef = readScalar(coeffs_.lookup("rhoRef")); scalar rhoRef = readScalar(coeffs_.lookup("rhoRef"));

View File

@ -154,7 +154,7 @@ Foam::tmp<Foam::vectorField> Foam::porosityModel::porosityModel::force
{ {
transformModelData(); transformModelData();
tmp<vectorField> tforce(new vectorField(U.size(), vector::zero)); tmp<vectorField> tforce(new vectorField(U.size(), Zero));
if (!cellZoneIDs_.empty()) if (!cellZoneIDs_.empty())
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,7 +104,7 @@ activeBaffleVelocityFvPatchVectorField
maxOpenFractionDelta_(readScalar(dict.lookup("maxOpenFractionDelta"))), maxOpenFractionDelta_(readScalar(dict.lookup("maxOpenFractionDelta"))),
curTimeIndex_(-1) curTimeIndex_(-1)
{ {
fvPatchVectorField::operator=(vector::zero); fvPatchVectorField::operator=(Zero);
} }

View File

@ -107,7 +107,7 @@ activePressureForceBaffleVelocityFvPatchVectorField
fBased_(readBool(dict.lookup("forceBased"))), fBased_(readBool(dict.lookup("forceBased"))),
baffleActivated_(0) baffleActivated_(0)
{ {
fvPatchVectorField::operator=(vector::zero); fvPatchVectorField::operator=(Zero);
if (p.size() > 0) if (p.size() > 0)
{ {

View File

@ -50,7 +50,7 @@ Description
this->refValue() = this->refValue() =
vector(1, 0, 0) vector(1, 0, 0)
*min(10, 0.1*this->db().time().value()); *min(10, 0.1*this->db().time().value());
this->refGrad() = vector::zero; this->refGrad() = Zero;
this->valueFraction() = 1.0; this->valueFraction() = 1.0;
#}; #};
@ -76,7 +76,7 @@ Description
code code
#{ #{
this->refValue() = min(10, 0.1*this->db().time().value()); this->refValue() = min(10, 0.1*this->db().time().value());
this->refGrad() = vector::zero; this->refGrad() = Zero;
this->valueFraction() = 1.0; this->valueFraction() = 1.0;
#}; #};
} }

View File

@ -46,9 +46,9 @@ fixedNormalInletOutletVelocityFvPatchVectorField
fvPatchVectorField::New("fixedValue", p, iF) fvPatchVectorField::New("fixedValue", p, iF)
) )
{ {
refValue() = vector::zero; refValue() = Zero;
refGrad() = vector::zero; refGrad() = Zero;
valueFraction() = symmTensor::zero; valueFraction() = Zero;
} }
@ -70,8 +70,8 @@ fixedNormalInletOutletVelocityFvPatchVectorField
{ {
fvPatchVectorField::operator=(vectorField("value", dict, p.size())); fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
refValue() = normalVelocity(); refValue() = normalVelocity();
refGrad() = vector::zero; refGrad() = Zero;
valueFraction() = symmTensor::zero; valueFraction() = Zero;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -39,7 +39,7 @@ interstitialInletVelocityFvPatchVectorField
) )
: :
fixedValueFvPatchVectorField(p, iF), fixedValueFvPatchVectorField(p, iF),
inletVelocity_(p.size(), vector::zero), inletVelocity_(p.size(), Zero),
alphaName_("alpha") alphaName_("alpha")
{} {}

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -168,7 +168,7 @@ void Foam::mappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
{ {
case mappedPolyPatch::NEARESTFACE: case mappedPolyPatch::NEARESTFACE:
{ {
vectorField allUValues(nbrMesh.nFaces(), vector::zero); vectorField allUValues(nbrMesh.nFaces(), Zero);
scalarField allPhiValues(nbrMesh.nFaces(), 0.0); scalarField allPhiValues(nbrMesh.nFaces(), 0.0);
forAll(UField.boundaryField(), patchI) forAll(UField.boundaryField(), patchI)

View File

@ -34,7 +34,7 @@ Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) )
: :
fixedValueFvPatchVectorField(p, iF, vector::zero) fixedValueFvPatchVectorField(p, iF, Zero)
{} {}
@ -45,7 +45,7 @@ Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField
const dictionary& dict const dictionary& dict
) )
: :
fixedValueFvPatchVectorField(p, iF, vector::zero) fixedValueFvPatchVectorField(p, iF, Zero)
{} {}
@ -57,7 +57,7 @@ Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField
const fvPatchFieldMapper& mapper const fvPatchFieldMapper& mapper
) )
: :
fixedValueFvPatchVectorField(p, iF, vector::zero) fixedValueFvPatchVectorField(p, iF, Zero)
{} {}

Some files were not shown because too many files have changed in this diff Show More