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:
@ -1677,7 +1677,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree<Type>::findLine
|
|||||||
if ((startBit & endBit) != 0)
|
if ((startBit & endBit) != 0)
|
||||||
{
|
{
|
||||||
// Both start and end outside domain and in same block.
|
// Both start and end outside domain and in same block.
|
||||||
return pointIndexHit(false, vector::zero, -1);
|
return pointIndexHit(false, Zero, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1691,7 +1691,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree<Type>::findLine
|
|||||||
// Track start to inside domain.
|
// Track start to inside domain.
|
||||||
if (!treeBb.intersects(start, end, trackStart))
|
if (!treeBb.intersects(start, end, trackStart))
|
||||||
{
|
{
|
||||||
return pointIndexHit(false, vector::zero, -1);
|
return pointIndexHit(false, Zero, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1700,7 +1700,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree<Type>::findLine
|
|||||||
// Track end to inside domain.
|
// Track end to inside domain.
|
||||||
if (!treeBb.intersects(end, trackStart, trackEnd))
|
if (!treeBb.intersects(end, trackStart, trackEnd))
|
||||||
{
|
{
|
||||||
return pointIndexHit(false, vector::zero, -1);
|
return pointIndexHit(false, Zero, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2129,7 +2129,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree<Type>::findNearest
|
|||||||
{
|
{
|
||||||
scalar nearestDistSqr = startDistSqr;
|
scalar nearestDistSqr = startDistSqr;
|
||||||
label nearestShapeI = -1;
|
label nearestShapeI = -1;
|
||||||
point nearestPoint = vector::zero;
|
point nearestPoint = Zero;
|
||||||
|
|
||||||
if (nodes_.size())
|
if (nodes_.size())
|
||||||
{
|
{
|
||||||
@ -2174,7 +2174,7 @@ Foam::pointIndexHit Foam::dynamicIndexedOctree<Type>::findNearest
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nearestPoint = vector::zero;
|
nearestPoint = Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pointIndexHit(nearestShapeI != -1, nearestPoint, nearestShapeI);
|
return pointIndexHit(nearestShapeI != -1, nearestPoint, nearestShapeI);
|
||||||
|
|||||||
@ -1710,7 +1710,7 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findLine
|
|||||||
if ((startBit & endBit) != 0)
|
if ((startBit & endBit) != 0)
|
||||||
{
|
{
|
||||||
// Both start and end outside domain and in same block.
|
// Both start and end outside domain and in same block.
|
||||||
return pointIndexHit(false, vector::zero, -1);
|
return pointIndexHit(false, Zero, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1724,7 +1724,7 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findLine
|
|||||||
// Track start to inside domain.
|
// Track start to inside domain.
|
||||||
if (!treeBb.intersects(start, end, trackStart))
|
if (!treeBb.intersects(start, end, trackStart))
|
||||||
{
|
{
|
||||||
return pointIndexHit(false, vector::zero, -1);
|
return pointIndexHit(false, Zero, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1733,7 +1733,7 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findLine
|
|||||||
// Track end to inside domain.
|
// Track end to inside domain.
|
||||||
if (!treeBb.intersects(end, trackStart, trackEnd))
|
if (!treeBb.intersects(end, trackStart, trackEnd))
|
||||||
{
|
{
|
||||||
return pointIndexHit(false, vector::zero, -1);
|
return pointIndexHit(false, Zero, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2350,7 +2350,7 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findNearest
|
|||||||
{
|
{
|
||||||
scalar nearestDistSqr = startDistSqr;
|
scalar nearestDistSqr = startDistSqr;
|
||||||
label nearestShapeI = -1;
|
label nearestShapeI = -1;
|
||||||
point nearestPoint = vector::zero;
|
point nearestPoint = Zero;
|
||||||
|
|
||||||
if (nodes_.size())
|
if (nodes_.size())
|
||||||
{
|
{
|
||||||
@ -2401,7 +2401,7 @@ Foam::pointIndexHit Foam::indexedOctree<Type>::findNearest
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
label nearestShapeI = -1;
|
label nearestShapeI = -1;
|
||||||
point nearestPoint = vector::zero;
|
point nearestPoint = Zero;
|
||||||
|
|
||||||
if (nodes_.size())
|
if (nodes_.size())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
@ -27,7 +27,7 @@ License
|
|||||||
|
|
||||||
inline Foam::pointConstraint::pointConstraint()
|
inline Foam::pointConstraint::pointConstraint()
|
||||||
:
|
:
|
||||||
Tuple2<label, vector>(0, vector::zero)
|
Tuple2<label, vector>(0, Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ void Foam::pointConstraint::applyConstraint(const vector& cd)
|
|||||||
if (mag(cd & second()) > 1e-3)
|
if (mag(cd & second()) > 1e-3)
|
||||||
{
|
{
|
||||||
first() = 3;
|
first() = 3;
|
||||||
second() = vector::zero;
|
second() = Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -103,13 +103,13 @@ void Foam::pointConstraint::combine(const pointConstraint& pc)
|
|||||||
{
|
{
|
||||||
// Different directions
|
// Different directions
|
||||||
first() = 3;
|
first() = 3;
|
||||||
second() = vector::zero;
|
second() = Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
first() = 3;
|
first() = 3;
|
||||||
second() = vector::zero;
|
second() = Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ Foam::tensor Foam::pointConstraint::constraintTransformation() const
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return tensor::zero;
|
return Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ const
|
|||||||
// Knock out remaining vectors
|
// Knock out remaining vectors
|
||||||
for (direction dir = n; dir < vecs.size(); dir++)
|
for (direction dir = n; dir < vecs.size(); dir++)
|
||||||
{
|
{
|
||||||
vecs[dir] = vector::zero;
|
vecs[dir] = Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
tt = tensor(vecs[0], vecs[1], vecs[2]);
|
tt = tensor(vecs[0], vecs[1], vecs[2]);
|
||||||
|
|||||||
@ -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
|
||||||
@ -80,7 +80,7 @@ void PatchToPatchInterpolation<FromPatch, ToPatch>::calcPointAddressing() const
|
|||||||
const typename FromPatch::FaceType& hitFace =
|
const typename FromPatch::FaceType& hitFace =
|
||||||
fromPatchFaces[proj[pointI].hitObject()];
|
fromPatchFaces[proj[pointI].hitObject()];
|
||||||
|
|
||||||
point hitPoint = point::zero;
|
point hitPoint = Zero;
|
||||||
|
|
||||||
if (proj[pointI].hit())
|
if (proj[pointI].hit())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -51,8 +51,8 @@ void Foam::boundBox::calculate(const UList<point>& points, const bool doReduce)
|
|||||||
{
|
{
|
||||||
if (points.empty())
|
if (points.empty())
|
||||||
{
|
{
|
||||||
min_ = point::zero;
|
min_ = Zero;
|
||||||
max_ = point::zero;
|
max_ = Zero;
|
||||||
|
|
||||||
if (doReduce && Pstream::parRun())
|
if (doReduce && Pstream::parRun())
|
||||||
{
|
{
|
||||||
@ -87,8 +87,8 @@ void Foam::boundBox::calculate(const UList<point>& points, const bool doReduce)
|
|||||||
|
|
||||||
Foam::boundBox::boundBox(const UList<point>& points, const bool doReduce)
|
Foam::boundBox::boundBox(const UList<point>& points, const bool doReduce)
|
||||||
:
|
:
|
||||||
min_(point::zero),
|
min_(Zero),
|
||||||
max_(point::zero)
|
max_(Zero)
|
||||||
{
|
{
|
||||||
calculate(points, doReduce);
|
calculate(points, doReduce);
|
||||||
}
|
}
|
||||||
@ -96,8 +96,8 @@ Foam::boundBox::boundBox(const UList<point>& points, const bool doReduce)
|
|||||||
|
|
||||||
Foam::boundBox::boundBox(const tmp<pointField>& points, const bool doReduce)
|
Foam::boundBox::boundBox(const tmp<pointField>& points, const bool doReduce)
|
||||||
:
|
:
|
||||||
min_(point::zero),
|
min_(Zero),
|
||||||
max_(point::zero)
|
max_(Zero)
|
||||||
{
|
{
|
||||||
calculate(points(), doReduce);
|
calculate(points(), doReduce);
|
||||||
points.clear();
|
points.clear();
|
||||||
@ -111,8 +111,8 @@ Foam::boundBox::boundBox
|
|||||||
const bool doReduce
|
const bool doReduce
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
min_(point::zero),
|
min_(Zero),
|
||||||
max_(point::zero)
|
max_(Zero)
|
||||||
{
|
{
|
||||||
if (points.empty() || indices.empty())
|
if (points.empty() || indices.empty())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
@ -31,8 +31,8 @@ License
|
|||||||
|
|
||||||
inline Foam::boundBox::boundBox()
|
inline Foam::boundBox::boundBox()
|
||||||
:
|
:
|
||||||
min_(point::zero),
|
min_(Zero),
|
||||||
max_(point::zero)
|
max_(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
@ -38,8 +38,8 @@ Foam::boundBox::boundBox
|
|||||||
const bool doReduce
|
const bool doReduce
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
min_(point::zero),
|
min_(Zero),
|
||||||
max_(point::zero)
|
max_(Zero)
|
||||||
{
|
{
|
||||||
// a FixedList is never empty
|
// a FixedList is never empty
|
||||||
if (points.empty())
|
if (points.empty())
|
||||||
|
|||||||
@ -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
|
||||||
@ -192,7 +192,7 @@ Foam::point Foam::cell::centre
|
|||||||
|
|
||||||
// first calculate the aproximate cell centre as the average of all
|
// first calculate the aproximate cell centre as the average of all
|
||||||
// face centres
|
// face centres
|
||||||
vector cEst = vector::zero;
|
vector cEst = Zero;
|
||||||
scalar sumArea = 0;
|
scalar sumArea = 0;
|
||||||
|
|
||||||
const labelList& faces = *this;
|
const labelList& faces = *this;
|
||||||
@ -208,7 +208,7 @@ Foam::point Foam::cell::centre
|
|||||||
|
|
||||||
// Calculate the centre by breaking the cell into pyramids and
|
// Calculate the centre by breaking the cell into pyramids and
|
||||||
// volume-weighted averaging their centres
|
// volume-weighted averaging their centres
|
||||||
vector sumVc = vector::zero;
|
vector sumVc = Zero;
|
||||||
|
|
||||||
scalar sumV = 0;
|
scalar sumV = 0;
|
||||||
|
|
||||||
@ -251,7 +251,7 @@ Foam::scalar Foam::cell::mag
|
|||||||
|
|
||||||
// first calculate the aproximate cell centre as the average of all
|
// first calculate the aproximate cell centre as the average of all
|
||||||
// face centres
|
// face centres
|
||||||
vector cEst = vector::zero;
|
vector cEst = Zero;
|
||||||
scalar nCellFaces = 0;
|
scalar nCellFaces = 0;
|
||||||
|
|
||||||
const labelList& faces = *this;
|
const labelList& faces = *this;
|
||||||
|
|||||||
@ -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
|
||||||
@ -35,7 +35,7 @@ Foam::vector Foam::cellModel::centre
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
// Estimate centre of cell
|
// Estimate centre of cell
|
||||||
vector cEst = vector::zero;
|
vector cEst = Zero;
|
||||||
|
|
||||||
// Sum the points idicated by the label list
|
// Sum the points idicated by the label list
|
||||||
forAll(pointLabels, i)
|
forAll(pointLabels, i)
|
||||||
@ -50,7 +50,7 @@ Foam::vector Foam::cellModel::centre
|
|||||||
// Calculate the centre by breaking the cell into pyramids and
|
// Calculate the centre by breaking the cell into pyramids and
|
||||||
// volume-weighted averaging their centres
|
// volume-weighted averaging their centres
|
||||||
scalar sumV = 0.0;
|
scalar sumV = 0.0;
|
||||||
vector sumVc = vector::zero;
|
vector sumVc = Zero;
|
||||||
|
|
||||||
const faceList cellFaces = faces(pointLabels);
|
const faceList cellFaces = faces(pointLabels);
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ Foam::scalar Foam::cellModel::mag
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
// Estimate centre of cell
|
// Estimate centre of cell
|
||||||
vector cEst = vector::zero;
|
vector cEst = Zero;
|
||||||
|
|
||||||
// Sum the points idicated by the label list
|
// Sum the points idicated by the label list
|
||||||
forAll(pointLabels, i)
|
forAll(pointLabels, i)
|
||||||
|
|||||||
@ -505,7 +505,7 @@ Foam::point Foam::face::centre(const pointField& points) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
point centrePoint = point::zero;
|
point centrePoint = Zero;
|
||||||
for (label pI=0; pI<nPoints; ++pI)
|
for (label pI=0; pI<nPoints; ++pI)
|
||||||
{
|
{
|
||||||
centrePoint += points[operator[](pI)];
|
centrePoint += points[operator[](pI)];
|
||||||
@ -513,7 +513,7 @@ Foam::point Foam::face::centre(const pointField& points) const
|
|||||||
centrePoint /= nPoints;
|
centrePoint /= nPoints;
|
||||||
|
|
||||||
scalar sumA = 0;
|
scalar sumA = 0;
|
||||||
vector sumAc = vector::zero;
|
vector sumAc = Zero;
|
||||||
|
|
||||||
for (label pI=0; pI<nPoints; ++pI)
|
for (label pI=0; pI<nPoints; ++pI)
|
||||||
{
|
{
|
||||||
@ -572,14 +572,14 @@ Foam::vector Foam::face::normal(const pointField& p) const
|
|||||||
|
|
||||||
label pI;
|
label pI;
|
||||||
|
|
||||||
point centrePoint = vector::zero;
|
point centrePoint = Zero;
|
||||||
for (pI = 0; pI < nPoints; ++pI)
|
for (pI = 0; pI < nPoints; ++pI)
|
||||||
{
|
{
|
||||||
centrePoint += p[operator[](pI)];
|
centrePoint += p[operator[](pI)];
|
||||||
}
|
}
|
||||||
centrePoint /= nPoints;
|
centrePoint /= nPoints;
|
||||||
|
|
||||||
vector n = vector::zero;
|
vector n = Zero;
|
||||||
|
|
||||||
point nextPoint = centrePoint;
|
point nextPoint = centrePoint;
|
||||||
|
|
||||||
@ -742,7 +742,7 @@ Foam::tensor Foam::face::inertia
|
|||||||
|
|
||||||
const point ctr = centre(p);
|
const point ctr = centre(p);
|
||||||
|
|
||||||
tensor J = tensor::zero;
|
tensor J = Zero;
|
||||||
|
|
||||||
forAll(*this, i)
|
forAll(*this, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -70,7 +70,7 @@ Type Foam::face::average
|
|||||||
|
|
||||||
label nPoints = size();
|
label nPoints = size();
|
||||||
|
|
||||||
point centrePoint = point::zero;
|
point centrePoint = Zero;
|
||||||
Type cf = Zero;
|
Type cf = Zero;
|
||||||
|
|
||||||
for (label pI=0; pI<nPoints; pI++)
|
for (label pI=0; pI<nPoints; pI++)
|
||||||
|
|||||||
@ -1917,7 +1917,7 @@ Foam::pointField Foam::globalMeshData::sharedPoints() const
|
|||||||
(
|
(
|
||||||
Pstream::blocking,
|
Pstream::blocking,
|
||||||
slave,
|
slave,
|
||||||
sharedPoints.size()*sizeof(vector::zero)
|
sharedPoints.size()*sizeof(Zero)
|
||||||
);
|
);
|
||||||
toSlave << sharedPoints;
|
toSlave << sharedPoints;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -62,8 +62,8 @@ void Foam::polyMesh::calcDirections() const
|
|||||||
label nEmptyPatches = 0;
|
label nEmptyPatches = 0;
|
||||||
label nWedgePatches = 0;
|
label nWedgePatches = 0;
|
||||||
|
|
||||||
vector emptyDirVec = vector::zero;
|
vector emptyDirVec = Zero;
|
||||||
vector wedgeDirVec = vector::zero;
|
vector wedgeDirVec = Zero;
|
||||||
|
|
||||||
forAll(boundaryMesh(), patchi)
|
forAll(boundaryMesh(), patchi)
|
||||||
{
|
{
|
||||||
@ -205,8 +205,8 @@ Foam::polyMesh::polyMesh(const IOobject& io)
|
|||||||
),
|
),
|
||||||
bounds_(points_),
|
bounds_(points_),
|
||||||
comm_(UPstream::worldComm),
|
comm_(UPstream::worldComm),
|
||||||
geometricD_(Vector<label>::zero),
|
geometricD_(Zero),
|
||||||
solutionD_(Vector<label>::zero),
|
solutionD_(Zero),
|
||||||
tetBasePtIsPtr_(NULL),
|
tetBasePtIsPtr_(NULL),
|
||||||
cellTreePtr_(NULL),
|
cellTreePtr_(NULL),
|
||||||
pointZones_
|
pointZones_
|
||||||
@ -399,8 +399,8 @@ Foam::polyMesh::polyMesh
|
|||||||
),
|
),
|
||||||
bounds_(points_, syncPar),
|
bounds_(points_, syncPar),
|
||||||
comm_(UPstream::worldComm),
|
comm_(UPstream::worldComm),
|
||||||
geometricD_(Vector<label>::zero),
|
geometricD_(Zero),
|
||||||
solutionD_(Vector<label>::zero),
|
solutionD_(Zero),
|
||||||
tetBasePtIsPtr_(NULL),
|
tetBasePtIsPtr_(NULL),
|
||||||
cellTreePtr_(NULL),
|
cellTreePtr_(NULL),
|
||||||
pointZones_
|
pointZones_
|
||||||
@ -550,8 +550,8 @@ Foam::polyMesh::polyMesh
|
|||||||
),
|
),
|
||||||
bounds_(points_, syncPar),
|
bounds_(points_, syncPar),
|
||||||
comm_(UPstream::worldComm),
|
comm_(UPstream::worldComm),
|
||||||
geometricD_(Vector<label>::zero),
|
geometricD_(Zero),
|
||||||
solutionD_(Vector<label>::zero),
|
solutionD_(Zero),
|
||||||
tetBasePtIsPtr_(NULL),
|
tetBasePtIsPtr_(NULL),
|
||||||
cellTreePtr_(NULL),
|
cellTreePtr_(NULL),
|
||||||
pointZones_
|
pointZones_
|
||||||
@ -888,8 +888,8 @@ void Foam::polyMesh::addPatches
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reset valid directions
|
// Reset valid directions
|
||||||
geometricD_ = Vector<label>::zero;
|
geometricD_ = Zero;
|
||||||
solutionD_ = Vector<label>::zero;
|
solutionD_ = Zero;
|
||||||
|
|
||||||
boundary_.setSize(p.size());
|
boundary_.setSize(p.size());
|
||||||
|
|
||||||
@ -1110,8 +1110,8 @@ Foam::tmp<Foam::scalarField> Foam::polyMesh::movePoints
|
|||||||
cellZones_.movePoints(points_);
|
cellZones_.movePoints(points_);
|
||||||
|
|
||||||
// Reset valid directions (could change with rotation)
|
// Reset valid directions (could change with rotation)
|
||||||
geometricD_ = Vector<label>::zero;
|
geometricD_ = Zero;
|
||||||
solutionD_ = Vector<label>::zero;
|
solutionD_ = Zero;
|
||||||
|
|
||||||
meshObject::movePoints<polyMesh>(*this);
|
meshObject::movePoints<polyMesh>(*this);
|
||||||
meshObject::movePoints<pointMesh>(*this);
|
meshObject::movePoints<pointMesh>(*this);
|
||||||
|
|||||||
@ -66,8 +66,8 @@ void Foam::polyMesh::clearGeom()
|
|||||||
boundary_.clearGeom();
|
boundary_.clearGeom();
|
||||||
|
|
||||||
// Reset valid directions (could change with rotation)
|
// Reset valid directions (could change with rotation)
|
||||||
geometricD_ = Vector<label>::zero;
|
geometricD_ = Zero;
|
||||||
solutionD_ = Vector<label>::zero;
|
solutionD_ = Zero;
|
||||||
|
|
||||||
// Remove the stored tet base points
|
// Remove the stored tet base points
|
||||||
tetBasePtIsPtr_.clear();
|
tetBasePtIsPtr_.clear();
|
||||||
@ -134,8 +134,8 @@ void Foam::polyMesh::clearAddressing(const bool isMeshUpdate)
|
|||||||
globalMeshDataPtr_.clear();
|
globalMeshDataPtr_.clear();
|
||||||
|
|
||||||
// Reset valid directions
|
// Reset valid directions
|
||||||
geometricD_ = Vector<label>::zero;
|
geometricD_ = Zero;
|
||||||
solutionD_ = Vector<label>::zero;
|
solutionD_ = Zero;
|
||||||
|
|
||||||
// Update zones
|
// Update zones
|
||||||
pointZones_.clearAddressing();
|
pointZones_.clearAddressing();
|
||||||
|
|||||||
@ -473,8 +473,8 @@ Foam::polyMesh::polyMesh
|
|||||||
),
|
),
|
||||||
bounds_(points_, syncPar),
|
bounds_(points_, syncPar),
|
||||||
comm_(UPstream::worldComm),
|
comm_(UPstream::worldComm),
|
||||||
geometricD_(Vector<label>::zero),
|
geometricD_(Zero),
|
||||||
solutionD_(Vector<label>::zero),
|
solutionD_(Zero),
|
||||||
tetBasePtIsPtr_(NULL),
|
tetBasePtIsPtr_(NULL),
|
||||||
cellTreePtr_(NULL),
|
cellTreePtr_(NULL),
|
||||||
pointZones_
|
pointZones_
|
||||||
@ -757,8 +757,8 @@ Foam::polyMesh::polyMesh
|
|||||||
),
|
),
|
||||||
bounds_(points_, syncPar),
|
bounds_(points_, syncPar),
|
||||||
comm_(UPstream::worldComm),
|
comm_(UPstream::worldComm),
|
||||||
geometricD_(Vector<label>::zero),
|
geometricD_(Zero),
|
||||||
solutionD_(Vector<label>::zero),
|
solutionD_(Zero),
|
||||||
tetBasePtIsPtr_(NULL),
|
tetBasePtIsPtr_(NULL),
|
||||||
cellTreePtr_(NULL),
|
cellTreePtr_(NULL),
|
||||||
pointZones_
|
pointZones_
|
||||||
|
|||||||
@ -268,8 +268,8 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()
|
|||||||
|
|
||||||
// Derived info
|
// Derived info
|
||||||
bounds_ = boundBox(points_);
|
bounds_ = boundBox(points_);
|
||||||
geometricD_ = Vector<label>::zero;
|
geometricD_ = Zero;
|
||||||
solutionD_ = Vector<label>::zero;
|
solutionD_ = Zero;
|
||||||
|
|
||||||
// Zones
|
// Zones
|
||||||
pointZoneMesh newPointZones
|
pointZoneMesh newPointZones
|
||||||
@ -442,8 +442,8 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()
|
|||||||
bounds_ = boundBox(points_);
|
bounds_ = boundBox(points_);
|
||||||
|
|
||||||
// Rotation can cause direction vector to change
|
// Rotation can cause direction vector to change
|
||||||
geometricD_ = Vector<label>::zero;
|
geometricD_ = Zero;
|
||||||
solutionD_ = Vector<label>::zero;
|
solutionD_ = Zero;
|
||||||
|
|
||||||
return polyMesh::POINTS_MOVED;
|
return polyMesh::POINTS_MOVED;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -95,8 +95,8 @@ void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm)
|
|||||||
meshObject::updateMesh<pointMesh>(*this, mpm);
|
meshObject::updateMesh<pointMesh>(*this, mpm);
|
||||||
|
|
||||||
// Reset valid directions (could change by faces put into empty patches)
|
// Reset valid directions (could change by faces put into empty patches)
|
||||||
geometricD_ = Vector<label>::zero;
|
geometricD_ = Zero;
|
||||||
solutionD_ = Vector<label>::zero;
|
solutionD_ = Zero;
|
||||||
|
|
||||||
const_cast<Time&>(time()).functionObjects().updateMesh(mpm);
|
const_cast<Time&>(time()).functionObjects().updateMesh(mpm);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
@ -607,9 +607,9 @@ Foam::cyclicPolyPatch::cyclicPolyPatch
|
|||||||
coupledPolyPatch(name, size, start, index, bm, patchType, transform),
|
coupledPolyPatch(name, size, start, index, bm, patchType, transform),
|
||||||
neighbPatchName_(word::null),
|
neighbPatchName_(word::null),
|
||||||
neighbPatchID_(-1),
|
neighbPatchID_(-1),
|
||||||
rotationAxis_(vector::zero),
|
rotationAxis_(Zero),
|
||||||
rotationCentre_(point::zero),
|
rotationCentre_(Zero),
|
||||||
separationVector_(vector::zero),
|
separationVector_(Zero),
|
||||||
coupledPointsPtr_(NULL),
|
coupledPointsPtr_(NULL),
|
||||||
coupledEdgesPtr_(NULL)
|
coupledEdgesPtr_(NULL)
|
||||||
{
|
{
|
||||||
@ -659,9 +659,9 @@ Foam::cyclicPolyPatch::cyclicPolyPatch
|
|||||||
neighbPatchName_(dict.lookupOrDefault("neighbourPatch", word::null)),
|
neighbPatchName_(dict.lookupOrDefault("neighbourPatch", word::null)),
|
||||||
coupleGroup_(dict),
|
coupleGroup_(dict),
|
||||||
neighbPatchID_(-1),
|
neighbPatchID_(-1),
|
||||||
rotationAxis_(vector::zero),
|
rotationAxis_(Zero),
|
||||||
rotationCentre_(point::zero),
|
rotationCentre_(Zero),
|
||||||
separationVector_(vector::zero),
|
separationVector_(Zero),
|
||||||
coupledPointsPtr_(NULL),
|
coupledPointsPtr_(NULL),
|
||||||
coupledEdgesPtr_(NULL)
|
coupledEdgesPtr_(NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -571,9 +571,9 @@ Foam::oldCyclicPolyPatch::oldCyclicPolyPatch
|
|||||||
:
|
:
|
||||||
coupledPolyPatch(name, size, start, index, bm, patchType, transform),
|
coupledPolyPatch(name, size, start, index, bm, patchType, transform),
|
||||||
featureCos_(0.9),
|
featureCos_(0.9),
|
||||||
rotationAxis_(vector::zero),
|
rotationAxis_(Zero),
|
||||||
rotationCentre_(point::zero),
|
rotationCentre_(Zero),
|
||||||
separationVector_(vector::zero)
|
separationVector_(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -588,9 +588,9 @@ Foam::oldCyclicPolyPatch::oldCyclicPolyPatch
|
|||||||
:
|
:
|
||||||
coupledPolyPatch(name, dict, index, bm, patchType),
|
coupledPolyPatch(name, dict, index, bm, patchType),
|
||||||
featureCos_(0.9),
|
featureCos_(0.9),
|
||||||
rotationAxis_(vector::zero),
|
rotationAxis_(Zero),
|
||||||
rotationCentre_(point::zero),
|
rotationCentre_(Zero),
|
||||||
separationVector_(vector::zero)
|
separationVector_(Zero)
|
||||||
{
|
{
|
||||||
if (dict.found("neighbourPatch"))
|
if (dict.found("neighbourPatch"))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -589,7 +589,7 @@ void Foam::processorPolyPatch::initOrder
|
|||||||
// Get the average of the points of each face. This is needed in
|
// Get the average of the points of each face. This is needed in
|
||||||
// case the face centroid calculation is incorrect due to the face
|
// case the face centroid calculation is incorrect due to the face
|
||||||
// having a very high aspect ratio.
|
// having a very high aspect ratio.
|
||||||
pointField facePointAverages(pp.size(), point::zero);
|
pointField facePointAverages(pp.size(), Zero);
|
||||||
forAll(pp, fI)
|
forAll(pp, fI)
|
||||||
{
|
{
|
||||||
const labelList& facePoints = pp[fI];
|
const labelList& facePoints = pp[fI];
|
||||||
@ -949,7 +949,7 @@ bool Foam::processorPolyPatch::order
|
|||||||
{
|
{
|
||||||
const pointField& ppPoints = pp.points();
|
const pointField& ppPoints = pp.points();
|
||||||
|
|
||||||
pointField facePointAverages(pp.size(), point::zero);
|
pointField facePointAverages(pp.size(), Zero);
|
||||||
forAll(pp, fI)
|
forAll(pp, fI)
|
||||||
{
|
{
|
||||||
const labelList& facePoints = pp[fI];
|
const labelList& facePoints = pp[fI];
|
||||||
|
|||||||
@ -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
|
||||||
@ -143,8 +143,8 @@ Foam::wedgePolyPatch::wedgePolyPatch
|
|||||||
centreNormal_(vector::rootMax),
|
centreNormal_(vector::rootMax),
|
||||||
n_(vector::rootMax),
|
n_(vector::rootMax),
|
||||||
cosAngle_(0.0),
|
cosAngle_(0.0),
|
||||||
faceT_(tensor::zero),
|
faceT_(Zero),
|
||||||
cellT_(tensor::zero)
|
cellT_(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -162,8 +162,8 @@ Foam::wedgePolyPatch::wedgePolyPatch
|
|||||||
centreNormal_(vector::rootMax),
|
centreNormal_(vector::rootMax),
|
||||||
n_(vector::rootMax),
|
n_(vector::rootMax),
|
||||||
cosAngle_(0.0),
|
cosAngle_(0.0),
|
||||||
faceT_(tensor::zero),
|
faceT_(Zero),
|
||||||
cellT_(tensor::zero)
|
cellT_(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ Foam::PatchTools::pointNormals
|
|||||||
// patch points since the master point does not have to be on the
|
// patch points since the master point does not have to be on the
|
||||||
// patch!
|
// patch!
|
||||||
|
|
||||||
pointField coupledPointNormals(map.constructSize(), vector::zero);
|
pointField coupledPointNormals(map.constructSize(), Zero);
|
||||||
|
|
||||||
{
|
{
|
||||||
// Collect local pointFaces (sized on patch points only)
|
// Collect local pointFaces (sized on patch points only)
|
||||||
@ -158,7 +158,7 @@ Foam::PatchTools::pointNormals
|
|||||||
// 1. Start off with local normals (note:without calculating pointNormals
|
// 1. Start off with local normals (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.ref();
|
pointField& extrudeN = textrudeN.ref();
|
||||||
{
|
{
|
||||||
const faceList& localFaces = p.localFaces();
|
const faceList& localFaces = p.localFaces();
|
||||||
@ -212,7 +212,7 @@ Foam::PatchTools::edgeNormals
|
|||||||
{
|
{
|
||||||
// 1. Start off with local normals
|
// 1. Start off with local normals
|
||||||
|
|
||||||
tmp<pointField> tedgeNormals(new pointField(p.nEdges(), vector::zero));
|
tmp<pointField> tedgeNormals(new pointField(p.nEdges(), Zero));
|
||||||
pointField& edgeNormals = tedgeNormals.ref();
|
pointField& edgeNormals = tedgeNormals.ref();
|
||||||
{
|
{
|
||||||
const labelListList& edgeFaces = p.edgeFaces();
|
const labelListList& edgeFaces = p.edgeFaces();
|
||||||
@ -239,7 +239,7 @@ Foam::PatchTools::edgeNormals
|
|||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
//- Construct with all data in consistent orientation
|
//- Construct with all data in consistent orientation
|
||||||
pointField cppEdgeData(map.constructSize(), vector::zero);
|
pointField cppEdgeData(map.constructSize(), Zero);
|
||||||
|
|
||||||
forAll(patchEdges, i)
|
forAll(patchEdges, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
@ -78,7 +78,7 @@ void Foam::primitiveMesh::makeCellCentresAndVols
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
// Clear the fields for accumulation
|
// Clear the fields for accumulation
|
||||||
cellCtrs = vector::zero;
|
cellCtrs = Zero;
|
||||||
cellVols = 0.0;
|
cellVols = 0.0;
|
||||||
|
|
||||||
const labelList& own = faceOwner();
|
const labelList& own = faceOwner();
|
||||||
@ -87,7 +87,7 @@ void Foam::primitiveMesh::makeCellCentresAndVols
|
|||||||
// first estimate the approximate cell centre as the average of
|
// first estimate the approximate cell centre as the average of
|
||||||
// face centres
|
// face centres
|
||||||
|
|
||||||
vectorField cEst(nCells(), vector::zero);
|
vectorField cEst(nCells(), Zero);
|
||||||
labelField nCellFaces(nCells(), 0);
|
labelField nCellFaces(nCells(), 0);
|
||||||
|
|
||||||
forAll(own, facei)
|
forAll(own, facei)
|
||||||
|
|||||||
@ -58,7 +58,7 @@ bool Foam::primitiveMesh::checkClosedBoundary
|
|||||||
// Loop through all boundary faces and sum up the face area vectors.
|
// Loop through all boundary faces and sum up the face area vectors.
|
||||||
// For a closed boundary, this should be zero in all vector components
|
// For a closed boundary, this should be zero in all vector components
|
||||||
|
|
||||||
vector sumClosed(vector::zero);
|
vector sumClosed(Zero);
|
||||||
scalar sumMagClosedBoundary = 0;
|
scalar sumMagClosedBoundary = 0;
|
||||||
|
|
||||||
for (label faceI = nInternalFaces(); faceI < areas.size(); faceI++)
|
for (label faceI = nInternalFaces(); faceI < areas.size(); faceI++)
|
||||||
|
|||||||
@ -254,8 +254,8 @@ void Foam::primitiveMeshTools::cellClosedness
|
|||||||
// Loop through cell faces and sum up the face area vectors for each cell.
|
// Loop through cell faces and sum up the face area vectors for each cell.
|
||||||
// This should be zero in all vector components
|
// This should be zero in all vector components
|
||||||
|
|
||||||
vectorField sumClosed(mesh.nCells(), vector::zero);
|
vectorField sumClosed(mesh.nCells(), Zero);
|
||||||
vectorField sumMagClosed(mesh.nCells(), vector::zero);
|
vectorField sumMagClosed(mesh.nCells(), Zero);
|
||||||
|
|
||||||
forAll(own, faceI)
|
forAll(own, faceI)
|
||||||
{
|
{
|
||||||
@ -511,7 +511,7 @@ Foam::tmp<Foam::scalarField> Foam::primitiveMeshTools::cellDeterminant
|
|||||||
{
|
{
|
||||||
avgArea /= nInternalFaces;
|
avgArea /= nInternalFaces;
|
||||||
|
|
||||||
symmTensor areaTensor(symmTensor::zero);
|
symmTensor areaTensor(Zero);
|
||||||
|
|
||||||
forAll(curFaces, i)
|
forAll(curFaces, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
@ -93,9 +93,9 @@ void Foam::primitiveMesh::makeFaceCentresAndAreas
|
|||||||
}
|
}
|
||||||
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++)
|
||||||
@ -123,7 +123,7 @@ void Foam::primitiveMesh::makeFaceCentresAndAreas
|
|||||||
if (sumA < ROOTVSMALL)
|
if (sumA < ROOTVSMALL)
|
||||||
{
|
{
|
||||||
fCtrs[facei] = fCentre;
|
fCtrs[facei] = fCentre;
|
||||||
fAreas[facei] = vector::zero;
|
fAreas[facei] = Zero;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
@ -85,7 +85,7 @@ public:
|
|||||||
PointHit()
|
PointHit()
|
||||||
:
|
:
|
||||||
hit_(false),
|
hit_(false),
|
||||||
hitPoint_(vector::zero),
|
hitPoint_(Zero),
|
||||||
distance_(GREAT),
|
distance_(GREAT),
|
||||||
eligibleMiss_(false)
|
eligibleMiss_(false)
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -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
|
||||||
@ -89,7 +89,7 @@ public:
|
|||||||
PointIndexHit()
|
PointIndexHit()
|
||||||
:
|
:
|
||||||
hit_(false),
|
hit_(false),
|
||||||
hitPoint_(vector::zero),
|
hitPoint_(Zero),
|
||||||
index_(-1)
|
index_(-1)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
@ -65,7 +65,7 @@ public:
|
|||||||
//- Construct null
|
//- Construct null
|
||||||
pointHitSort()
|
pointHitSort()
|
||||||
:
|
:
|
||||||
inter_(false, vector::zero, GREAT, false),
|
inter_(false, Zero, GREAT, false),
|
||||||
index_(-1)
|
index_(-1)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -112,7 +112,7 @@ void Foam::plane::calcPntAndVec
|
|||||||
Foam::plane::plane(const vector& normalVector)
|
Foam::plane::plane(const vector& normalVector)
|
||||||
:
|
:
|
||||||
unitVector_(normalVector),
|
unitVector_(normalVector),
|
||||||
basePoint_(vector::zero)
|
basePoint_(Zero)
|
||||||
{
|
{
|
||||||
scalar magUnitVector(mag(unitVector_));
|
scalar magUnitVector(mag(unitVector_));
|
||||||
|
|
||||||
@ -168,8 +168,8 @@ Foam::plane::plane
|
|||||||
|
|
||||||
Foam::plane::plane(const dictionary& dict)
|
Foam::plane::plane(const dictionary& dict)
|
||||||
:
|
:
|
||||||
unitVector_(vector::zero),
|
unitVector_(Zero),
|
||||||
basePoint_(point::zero)
|
basePoint_(Zero)
|
||||||
{
|
{
|
||||||
const word planeType(dict.lookup("planeType"));
|
const word planeType(dict.lookup("planeType"));
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
@ -470,7 +470,7 @@ bool Foam::tetrahedron<Point, PointRef>::inside(const point& pt) const
|
|||||||
// planeBase[2] = tetBasePt = b_
|
// planeBase[2] = tetBasePt = b_
|
||||||
// planeBase[3] = tetBasePt = b_
|
// planeBase[3] = tetBasePt = b_
|
||||||
|
|
||||||
vector n = vector::zero;
|
vector n = Zero;
|
||||||
|
|
||||||
{
|
{
|
||||||
// 0, a
|
// 0, a
|
||||||
|
|||||||
@ -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
|
||||||
@ -439,7 +439,7 @@ inline Foam::pointHit Foam::triangle<Point, PointRef>::intersection
|
|||||||
const scalar det = edge1 & pVec;
|
const scalar det = edge1 & pVec;
|
||||||
|
|
||||||
// Initialise to miss
|
// Initialise to miss
|
||||||
pointHit intersection(false, vector::zero, GREAT, false);
|
pointHit intersection(false, Zero, GREAT, false);
|
||||||
|
|
||||||
if (alg == intersection::VISIBLE)
|
if (alg == intersection::VISIBLE)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -34,15 +34,15 @@ const char* const Foam::vectorTensorTransform::typeName =
|
|||||||
|
|
||||||
const Foam::vectorTensorTransform Foam::vectorTensorTransform::zero
|
const Foam::vectorTensorTransform Foam::vectorTensorTransform::zero
|
||||||
(
|
(
|
||||||
vector::zero,
|
Zero,
|
||||||
tensor::zero,
|
Zero,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
const Foam::vectorTensorTransform Foam::vectorTensorTransform::I
|
const Foam::vectorTensorTransform Foam::vectorTensorTransform::I
|
||||||
(
|
(
|
||||||
vector::zero,
|
Zero,
|
||||||
sphericalTensor::I,
|
sphericalTensor::I,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|||||||
@ -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
|
||||||
@ -27,7 +27,7 @@ License
|
|||||||
|
|
||||||
inline Foam::vectorTensorTransform::vectorTensorTransform()
|
inline Foam::vectorTensorTransform::vectorTensorTransform()
|
||||||
:
|
:
|
||||||
t_(vector::zero),
|
t_(Zero),
|
||||||
R_(sphericalTensor::I),
|
R_(sphericalTensor::I),
|
||||||
hasR_(false)
|
hasR_(false)
|
||||||
{}
|
{}
|
||||||
@ -56,7 +56,7 @@ inline Foam::vectorTensorTransform::vectorTensorTransform(const vector& t)
|
|||||||
|
|
||||||
inline Foam::vectorTensorTransform::vectorTensorTransform(const tensor& R)
|
inline Foam::vectorTensorTransform::vectorTensorTransform(const tensor& R)
|
||||||
:
|
:
|
||||||
t_(vector::zero),
|
t_(Zero),
|
||||||
R_(R),
|
R_(R),
|
||||||
hasR_(true)
|
hasR_(true)
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -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
|
||||||
@ -75,7 +75,7 @@ Foam::quaternion Foam::exp(const quaternion& q)
|
|||||||
|
|
||||||
if (magV == 0)
|
if (magV == 0)
|
||||||
{
|
{
|
||||||
return quaternion(1, vector::zero);
|
return quaternion(1, Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
const scalar expW = exp(q.w());
|
const scalar expW = exp(q.w());
|
||||||
|
|||||||
@ -67,7 +67,7 @@ inline Foam::quaternion::quaternion
|
|||||||
inline Foam::quaternion::quaternion(const scalar w)
|
inline Foam::quaternion::quaternion(const scalar w)
|
||||||
:
|
:
|
||||||
w_(w),
|
w_(w),
|
||||||
v_(vector::zero)
|
v_(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -515,7 +515,7 @@ inline Foam::vector Foam::quaternion::eulerAngles
|
|||||||
default:
|
default:
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "Unknown rotation sequence " << rs << abort(FatalError);
|
<< "Unknown rotation sequence " << rs << abort(FatalError);
|
||||||
return vector::zero;
|
return Zero;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,7 +38,7 @@ Foam::tensor Foam::spatialTransform::Erx() const
|
|||||||
inline Foam::spatialTransform::spatialTransform()
|
inline Foam::spatialTransform::spatialTransform()
|
||||||
:
|
:
|
||||||
E_(tensor::I),
|
E_(tensor::I),
|
||||||
r_(vector::zero)
|
r_(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ inline Foam::spatialTransform::operator spatialTensor() const
|
|||||||
{
|
{
|
||||||
return spatialTensor
|
return spatialTensor
|
||||||
(
|
(
|
||||||
E_, tensor::zero,
|
E_, Zero,
|
||||||
-Erx(), E_
|
-Erx(), E_
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -181,7 +181,7 @@ inline Foam::spatialTransform::transpose::operator spatialTensor() const
|
|||||||
return spatialTensor
|
return spatialTensor
|
||||||
(
|
(
|
||||||
X_.E().T(), -X_.Erx().T(),
|
X_.E().T(), -X_.Erx().T(),
|
||||||
tensor::zero, X_.E().T()
|
Zero, X_.E().T()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ inline Foam::spatialTransform::dual::operator spatialTensor() const
|
|||||||
return spatialTensor
|
return spatialTensor
|
||||||
(
|
(
|
||||||
X_.E(), -X_.Erx(),
|
X_.E(), -X_.Erx(),
|
||||||
tensor::zero, X_.E()
|
Zero, X_.E()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,25 +254,25 @@ namespace Foam
|
|||||||
//- Rotational spatial transformation tensor about the x-axis by omega radians
|
//- Rotational spatial transformation tensor about the x-axis by omega radians
|
||||||
inline spatialTransform Xrx(const scalar& omega)
|
inline spatialTransform Xrx(const scalar& omega)
|
||||||
{
|
{
|
||||||
return spatialTransform(Rx(omega), vector::zero);
|
return spatialTransform(Rx(omega), Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Rotational spatial transformation tensor about the x-axis by omega radians
|
//- Rotational spatial transformation tensor about the x-axis by omega radians
|
||||||
inline spatialTransform Xry(const scalar& omega)
|
inline spatialTransform Xry(const scalar& omega)
|
||||||
{
|
{
|
||||||
return spatialTransform(Ry(omega), vector::zero);
|
return spatialTransform(Ry(omega), Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Rotational spatial transformation tensor about the z-axis by omega radians
|
//- Rotational spatial transformation tensor about the z-axis by omega radians
|
||||||
inline spatialTransform Xrz(const scalar& omega)
|
inline spatialTransform Xrz(const scalar& omega)
|
||||||
{
|
{
|
||||||
return spatialTransform(Rz(omega), vector::zero);
|
return spatialTransform(Rz(omega), Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Rotational spatial transformation tensor about axis a by omega radians
|
//- Rotational spatial transformation tensor about axis a by omega radians
|
||||||
inline spatialTransform Xr(const vector& a, const scalar omega)
|
inline spatialTransform Xr(const vector& a, const scalar omega)
|
||||||
{
|
{
|
||||||
return spatialTransform(Ra(a, omega), vector::zero);
|
return spatialTransform(Ra(a, omega), Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Translational spatial transformation tensor for translation r
|
//- Translational spatial transformation tensor for translation r
|
||||||
|
|||||||
@ -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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -60,7 +60,7 @@ inline Foam::triad::triad(Istream& is)
|
|||||||
|
|
||||||
inline bool Foam::triad::set(const direction d) const
|
inline bool Foam::triad::set(const direction d) const
|
||||||
{
|
{
|
||||||
return operator[](d)[0] < GREAT; // vector::zero;
|
return operator[](d)[0] < GREAT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user