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:
@ -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)
|
||||
// {
|
||||
|
||||
@ -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
|
||||
);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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()
|
||||
);
|
||||
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user