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

@ -74,7 +74,7 @@ Foam::displacementSBRStressFvMotionSolver::displacementSBRStressFvMotionSolver
(
"cellDisplacement",
pointDisplacement().dimensions(),
vector::zero
Zero
),
cellMotionBoundaryTypes<vector>(pointDisplacement().boundaryField())
),

View File

@ -316,7 +316,7 @@ Foam::displacementInterpolationMotionSolver::curPoints() const
pointField& curPoints = tcurPoints.ref();
// Interpolate the displacement of the face zones.
vectorField zoneDisp(displacements_.size(), vector::zero);
vectorField zoneDisp(displacements_.size(), Zero);
forAll(zoneDisp, zoneI)
{
if (times_[zoneI].size())

View File

@ -72,7 +72,7 @@ Foam::displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver
(
"cellDisplacement",
pointDisplacement_.dimensions(),
vector::zero
Zero
),
cellMotionBoundaryTypes<vector>(pointDisplacement_.boundaryField())
),

View File

@ -164,7 +164,7 @@ void Foam::displacementLayeredMotionMotionSolver::walkStructured
points0()[pointI], // location of data
vector::max, // not valid
0.0,
vector::zero // passive data
Zero // passive data
);
}
}
@ -182,7 +182,7 @@ void Foam::displacementLayeredMotionMotionSolver::walkStructured
mesh().edges()[edgeI].centre(points0()), // location of data
vector::max, // not valid
0.0,
vector::zero
Zero
);
}
}

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
@ -61,7 +61,7 @@ inline Foam::pointEdgeStructuredWalk::pointEdgeStructuredWalk()
point0_(vector::max),
previousPoint_(vector::max),
dist_(0),
data_(vector::zero)
data_(Zero)
{}

View File

@ -69,7 +69,7 @@ Foam::velocityLaplacianFvMotionSolver::velocityLaplacianFvMotionSolver
(
"cellMotionU",
pointMotionU_.dimensions(),
vector::zero
Zero
),
cellMotionBoundaryTypes<vector>(pointMotionU_.boundaryField())
),

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
@ -44,8 +44,8 @@ angularOscillatingDisplacementPointPatchVectorField
)
:
fixedValuePointPatchField<vector>(p, iF),
axis_(vector::zero),
origin_(vector::zero),
axis_(Zero),
origin_(Zero),
angle0_(0.0),
amplitude_(0.0),
omega_(0.0),

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
@ -44,8 +44,8 @@ angularOscillatingVelocityPointPatchVectorField
)
:
fixedValuePointPatchField<vector>(p, iF),
axis_(vector::zero),
origin_(vector::zero),
axis_(Zero),
origin_(Zero),
angle0_(0.0),
amplitude_(0.0),
omega_(0.0),

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
@ -44,7 +44,7 @@ oscillatingDisplacementPointPatchVectorField
)
:
fixedValuePointPatchField<vector>(p, iF),
amplitude_(vector::zero),
amplitude_(Zero),
omega_(0.0)
{}

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
@ -44,7 +44,7 @@ oscillatingVelocityPointPatchVectorField
)
:
fixedValuePointPatchField<vector>(p, iF),
amplitude_(vector::zero),
amplitude_(Zero),
omega_(0.0),
p0_(p.localPoints())
{}

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
@ -72,7 +72,7 @@ void surfaceDisplacementPointPatchVectorField::calcProjection
const scalar projectLen = mag(mesh.bounds().max()-mesh.bounds().min());
// For case of fixed projection vector:
vector projectVec(vector::zero);
vector projectVec(Zero);
if (projectMode_ == FIXEDNORMAL)
{
vector n = projectDir_/mag(projectDir_);
@ -308,9 +308,9 @@ surfaceDisplacementPointPatchVectorField
)
:
fixedValuePointPatchVectorField(p, iF),
velocity_(vector::zero),
velocity_(Zero),
projectMode_(NEAREST),
projectDir_(vector::zero),
projectDir_(Zero),
wedgePlane_(-1)
{}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -308,7 +308,7 @@ surfaceSlipDisplacementPointPatchVectorField
:
pointPatchVectorField(p, iF),
projectMode_(NEAREST),
projectDir_(vector::zero),
projectDir_(Zero),
wedgePlane_(-1)
{}

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
@ -39,9 +39,9 @@ waveDisplacementPointPatchVectorField
)
:
fixedValuePointPatchField<vector>(p, iF),
amplitude_(vector::zero),
amplitude_(Zero),
omega_(0.0),
waveNumber_(vector::zero)
waveNumber_(Zero)
{}
@ -56,7 +56,7 @@ waveDisplacementPointPatchVectorField
fixedValuePointPatchField<vector>(p, iF, dict),
amplitude_(dict.lookup("amplitude")),
omega_(readScalar(dict.lookup("omega"))),
waveNumber_(dict.lookupOrDefault<vector>("waveNumber", vector::zero))
waveNumber_(dict.lookupOrDefault<vector>("waveNumber", Zero))
{
if (!dict.found("value"))
{