vector::zero -> Zero
This commit is contained in:
@ -77,6 +77,9 @@ public:
|
||||
//- Construct null
|
||||
inline DiagTensor();
|
||||
|
||||
//- Construct initialized to zero
|
||||
inline DiagTensor(const Foam::zero);
|
||||
|
||||
//- Construct given VectorSpace
|
||||
template<class Cmpt2>
|
||||
inline DiagTensor(const VectorSpace<DiagTensor<Cmpt2>, Cmpt2, 3>&);
|
||||
|
||||
@ -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 Cmpt2>
|
||||
inline Foam::DiagTensor<Cmpt>::DiagTensor
|
||||
|
||||
@ -57,7 +57,7 @@ Foam::anisotropicFilter::anisotropicFilter
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimLength*dimLength, vector::zero),
|
||||
dimensionedVector("zero", dimLength*dimLength, Zero),
|
||||
calculatedFvPatchVectorField::typeName
|
||||
)
|
||||
{
|
||||
@ -94,7 +94,7 @@ Foam::anisotropicFilter::anisotropicFilter
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimLength*dimLength, vector::zero),
|
||||
dimensionedVector("zero", dimLength*dimLength, Zero),
|
||||
calculatedFvPatchScalarField::typeName
|
||||
)
|
||||
{
|
||||
|
||||
@ -39,7 +39,7 @@ Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
|
||||
)
|
||||
:
|
||||
fixedValueFvPatchVectorField(p, iF),
|
||||
tau0_(vector::zero)
|
||||
tau0_(Zero)
|
||||
{}
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
|
||||
)
|
||||
:
|
||||
fixedValueFvPatchVectorField(p, iF),
|
||||
tau0_(dict.lookupOrDefault<vector>("tau", vector::zero))
|
||||
tau0_(dict.lookupOrDefault<vector>("tau", Zero))
|
||||
{
|
||||
fvPatchField<vector>::operator=(patchInternalField());
|
||||
}
|
||||
|
||||
@ -240,7 +240,7 @@ Foam::laminar<BasicTurbulenceModel>::R() const
|
||||
this->mesh_,
|
||||
dimensionedSymmTensor
|
||||
(
|
||||
"R", sqr(this->U_.dimensions()), symmTensor::zero
|
||||
"R", sqr(this->U_.dimensions()), Zero
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@ -67,7 +67,7 @@ Foam::nonlinearEddyViscosity<BasicTurbulenceModel>::nonlinearEddyViscosity
|
||||
(
|
||||
"nonlinearStress",
|
||||
sqr(dimVelocity),
|
||||
symmTensor::zero
|
||||
Zero
|
||||
)
|
||||
)
|
||||
{}
|
||||
|
||||
@ -557,7 +557,7 @@ void Foam::boundaryMesh::read(const polyMesh& mesh)
|
||||
{
|
||||
const face& f = msh[faceI];
|
||||
|
||||
point ctr(vector::zero);
|
||||
point ctr(Zero);
|
||||
|
||||
forAll(f, fp)
|
||||
{
|
||||
|
||||
@ -203,7 +203,7 @@ void extrudePatchMesh::extrudeMesh(const List<polyPatch*>& regionPatches)
|
||||
// Calculate region normals by reducing local region normals
|
||||
pointField localRegionNormals(localToGlobalRegion.size());
|
||||
{
|
||||
pointField localSum(localToGlobalRegion.size(), vector::zero);
|
||||
pointField localSum(localToGlobalRegion.size(), Zero);
|
||||
|
||||
forAll(pointLocalRegions, faceI)
|
||||
{
|
||||
|
||||
@ -1208,7 +1208,7 @@ bool Foam::cellCuts::loopAnchorConsistent
|
||||
|
||||
|
||||
// Get average position of anchor points.
|
||||
vector avg(vector::zero);
|
||||
vector avg(Zero);
|
||||
|
||||
forAll(anchorPoints, ptI)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -384,7 +384,7 @@ bool Foam::geomCellLooper::cut
|
||||
|
||||
// Get points on loop and centre of loop
|
||||
pointField loopPoints(localLoop.size());
|
||||
point ctr(vector::zero);
|
||||
point ctr(Zero);
|
||||
|
||||
forAll(localLoop, i)
|
||||
{
|
||||
|
||||
@ -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
|
||||
@ -33,7 +33,7 @@ License
|
||||
inline Foam::directionInfo::directionInfo()
|
||||
:
|
||||
index_(-3),
|
||||
n_(vector::zero)
|
||||
n_(Zero)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
@ -31,7 +31,7 @@ License
|
||||
Foam::refineCell::refineCell()
|
||||
:
|
||||
cellNo_(-1),
|
||||
direction_(vector::zero)
|
||||
direction_(Zero)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -63,9 +63,9 @@ void Foam::polyMeshGeometry::updateFaceCentresAndAreas
|
||||
}
|
||||
else
|
||||
{
|
||||
vector sumN = vector::zero;
|
||||
vector sumN = Zero;
|
||||
scalar sumA = 0.0;
|
||||
vector sumAc = vector::zero;
|
||||
vector sumAc = Zero;
|
||||
|
||||
point fCentre = p[f[0]];
|
||||
for (label pi = 1; pi < nPoints; pi++)
|
||||
@ -102,7 +102,7 @@ void Foam::polyMeshGeometry::updateCellCentresAndVols
|
||||
)
|
||||
{
|
||||
// Clear the fields for accumulation
|
||||
UIndirectList<vector>(cellCentres_, changedCells) = vector::zero;
|
||||
UIndirectList<vector>(cellCentres_, changedCells) = Zero;
|
||||
UIndirectList<scalar>(cellVolumes_, changedCells) = 0.0;
|
||||
|
||||
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
|
||||
|
||||
vectorField cEst(mesh_.nCells());
|
||||
UIndirectList<vector>(cEst, changedCells) = vector::zero;
|
||||
UIndirectList<vector>(cEst, changedCells) = Zero;
|
||||
scalarField nCellFaces(mesh_.nCells());
|
||||
UIndirectList<scalar>(nCellFaces, changedCells) = 0.0;
|
||||
|
||||
@ -1693,7 +1693,7 @@ bool Foam::polyMeshGeometry::checkFaceTwist
|
||||
|
||||
if (f.size() > 3)
|
||||
{
|
||||
vector nf(vector::zero);
|
||||
vector nf(Zero);
|
||||
|
||||
if (mesh.isInternalFace(faceI))
|
||||
{
|
||||
@ -2118,7 +2118,7 @@ bool Foam::polyMeshGeometry::checkCellDeterminant
|
||||
{
|
||||
const cell& cFaces = cells[affectedCells[i]];
|
||||
|
||||
tensor areaSum(tensor::zero);
|
||||
tensor areaSum(Zero);
|
||||
scalar magAreaSum = 0;
|
||||
|
||||
forAll(cFaces, cFaceI)
|
||||
|
||||
@ -184,7 +184,7 @@ void Foam::faceCoupleInfo::writePointsFaces() const
|
||||
<< " at position " << c[cutFaceI].centre(c.points())
|
||||
<< endl;
|
||||
|
||||
equivMasterFaces[cutFaceI] = vector::zero;
|
||||
equivMasterFaces[cutFaceI] = Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -77,7 +77,7 @@ public:
|
||||
//- Construct null. Used only for list construction
|
||||
polyAddPoint()
|
||||
:
|
||||
p_(vector::zero),
|
||||
p_(Zero),
|
||||
masterPointID_(-1),
|
||||
zoneID_(-1),
|
||||
inCell_(false)
|
||||
|
||||
@ -209,7 +209,7 @@ void Foam::edgeCollapser::collapseToEdge
|
||||
|
||||
if (!maxPriorityPts.empty())
|
||||
{
|
||||
Foam::point averagePt(vector::zero);
|
||||
Foam::point averagePt(Zero);
|
||||
|
||||
forAll(maxPriorityPts, ptI)
|
||||
{
|
||||
@ -259,7 +259,7 @@ void Foam::edgeCollapser::collapseToEdge
|
||||
|
||||
if (!maxPriorityPts.empty())
|
||||
{
|
||||
Foam::point averagePt(vector::zero);
|
||||
Foam::point averagePt(Zero);
|
||||
|
||||
forAll(maxPriorityPts, ptI)
|
||||
{
|
||||
@ -321,7 +321,7 @@ void Foam::edgeCollapser::collapseToPoint
|
||||
|
||||
if (!maxPriorityPts.empty())
|
||||
{
|
||||
Foam::point averagePt(vector::zero);
|
||||
Foam::point averagePt(Zero);
|
||||
|
||||
forAll(maxPriorityPts, ptI)
|
||||
{
|
||||
@ -580,7 +580,7 @@ Foam::edgeCollapser::collapseType Foam::edgeCollapser::collapseFace
|
||||
|
||||
const scalar fA = f.mag(pts);
|
||||
|
||||
vector collapseAxis = vector::zero;
|
||||
vector collapseAxis = Zero;
|
||||
scalar aspectRatio = 1.0;
|
||||
|
||||
faceCollapseAxisAndAspectRatio(f, fC, collapseAxis, aspectRatio);
|
||||
@ -1035,7 +1035,7 @@ Foam::label Foam::edgeCollapser::syncCollapse
|
||||
List<pointEdgeCollapse> allEdgeInfo
|
||||
(
|
||||
mesh_.nEdges(),
|
||||
pointEdgeCollapse(vector::zero, -1, -1)
|
||||
pointEdgeCollapse(Zero, -1, -1)
|
||||
);
|
||||
|
||||
// Mark selected edges for collapse
|
||||
|
||||
@ -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
|
||||
@ -81,7 +81,7 @@ public:
|
||||
polyModifyPoint()
|
||||
:
|
||||
pointID_(-1),
|
||||
location_(vector::zero),
|
||||
location_(Zero),
|
||||
removeFromZone_(false),
|
||||
zoneID_(-1),
|
||||
inCell_(false)
|
||||
|
||||
@ -3117,7 +3117,7 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::polyTopoChange::changeMesh
|
||||
}
|
||||
else
|
||||
{
|
||||
renumberedMeshPoints[newPointI] = vector::zero;
|
||||
renumberedMeshPoints[newPointI] = Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -250,7 +250,7 @@ bool Foam::slidingInterface::projectPoints() const
|
||||
if (projectedSlavePointsPtr_) delete projectedSlavePointsPtr_;
|
||||
|
||||
projectedSlavePointsPtr_ =
|
||||
new pointField(slavePointFaceHits.size(), vector::zero);
|
||||
new pointField(slavePointFaceHits.size(), Zero);
|
||||
pointField& projectedSlavePoints = *projectedSlavePointsPtr_;
|
||||
|
||||
// Adjust projection to type of match
|
||||
|
||||
@ -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
|
||||
@ -136,7 +136,7 @@ inline Foam::vector Foam::extendedEdgeMesh::edgeDirection
|
||||
<< e.start() << " " << e.end()
|
||||
<< exit(FatalError);
|
||||
|
||||
return vector::zero;
|
||||
return Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -166,7 +166,7 @@ void Foam::extendedEdgeMesh::sortPointsAndEdges
|
||||
);
|
||||
}
|
||||
|
||||
vector fC0tofC1(vector::zero);
|
||||
vector fC0tofC1(Zero);
|
||||
|
||||
if (eFaces.size() == 2)
|
||||
{
|
||||
|
||||
@ -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
|
||||
@ -133,7 +133,7 @@ inline Foam::vector Foam::extendedFeatureEdgeMesh::edgeDirection
|
||||
<< e.start() << " " << e.end()
|
||||
<< exit(FatalError);
|
||||
|
||||
return vector::zero;
|
||||
return Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -166,7 +166,7 @@ void Foam::extendedFeatureEdgeMesh::sortPointsAndEdges
|
||||
);
|
||||
}
|
||||
|
||||
vector fC0tofC1(vector::zero);
|
||||
vector fC0tofC1(Zero);
|
||||
|
||||
if (eFaces.size() == 2)
|
||||
{
|
||||
|
||||
@ -423,7 +423,7 @@ void Foam::MRFZone::makeRelative(volVectorField& U) const
|
||||
forAll(includedFaces_[patchi], i)
|
||||
{
|
||||
label patchFacei = includedFaces_[patchi][i];
|
||||
U.boundaryField()[patchi][patchFacei] = vector::zero;
|
||||
U.boundaryField()[patchi][patchFacei] = Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -177,7 +177,7 @@ Foam::tmp<Foam::volVectorField> Foam::MRFZoneList::DDt
|
||||
U.mesh()
|
||||
),
|
||||
U.mesh(),
|
||||
dimensionedVector("0", U.dimensions()/dimTime, vector::zero)
|
||||
dimensionedVector("0", U.dimensions()/dimTime, Zero)
|
||||
)
|
||||
);
|
||||
volVectorField& acceleration = tacceleration.ref();
|
||||
|
||||
@ -62,7 +62,7 @@ Foam::SRF::SRFModel::SRFModel
|
||||
origin_("origin", dimLength, lookup("origin")),
|
||||
axis_(lookup("axis")),
|
||||
SRFModelCoeffs_(subDict(type + "Coeffs")),
|
||||
omega_(dimensionedVector("omega", dimless/dimTime, vector::zero))
|
||||
omega_(dimensionedVector("omega", dimless/dimTime, Zero))
|
||||
{
|
||||
// Normalise the axis
|
||||
axis_ /= mag(axis_);
|
||||
|
||||
@ -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
|
||||
@ -42,7 +42,7 @@ SRFFreestreamVelocityFvPatchVectorField
|
||||
:
|
||||
inletOutletFvPatchVectorField(p, iF),
|
||||
relative_(false),
|
||||
UInf_(vector::zero)
|
||||
UInf_(Zero)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
@ -39,7 +39,7 @@ Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField
|
||||
:
|
||||
fixedValueFvPatchVectorField(p, iF),
|
||||
relative_(0),
|
||||
inletValue_(p.size(), vector::zero)
|
||||
inletValue_(p.size(), Zero)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
|
||||
D_[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].yy() = dXYZ_.value().y();
|
||||
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]);
|
||||
|
||||
// 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].yy() = 0.5*fXYZ_.value().y();
|
||||
F_[zoneI][0].zz() = 0.5*fXYZ_.value().z();
|
||||
@ -111,13 +111,13 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
|
||||
|
||||
forAll(cells, i)
|
||||
{
|
||||
D_[zoneI][i] = tensor::zero;
|
||||
D_[zoneI][i] = Zero;
|
||||
D_[zoneI][i].xx() = dXYZ_.value().x();
|
||||
D_[zoneI][i].yy() = dXYZ_.value().y();
|
||||
D_[zoneI][i].zz() = dXYZ_.value().z();
|
||||
|
||||
// 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].yy() = 0.5*fXYZ_.value().y();
|
||||
F_[zoneI][i].zz() = 0.5*fXYZ_.value().z();
|
||||
@ -143,7 +143,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedTensor("0", dXYZ_.dimensions(), tensor::zero)
|
||||
dimensionedTensor("0", dXYZ_.dimensions(), Zero)
|
||||
);
|
||||
volTensorField Fout
|
||||
(
|
||||
@ -156,7 +156,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedTensor("0", fXYZ_.dimensions(), tensor::zero)
|
||||
dimensionedTensor("0", fXYZ_.dimensions(), Zero)
|
||||
);
|
||||
|
||||
UIndirectList<tensor>(Dout, mesh_.cellZones()[cellZoneIDs_[0]]) = D_[0];
|
||||
@ -177,7 +177,7 @@ void Foam::porosityModels::DarcyForchheimer::calcForce
|
||||
) const
|
||||
{
|
||||
scalarField Udiag(U.size(), 0.0);
|
||||
vectorField Usource(U.size(), vector::zero);
|
||||
vectorField Usource(U.size(), Zero);
|
||||
const scalarField& V = mesh_.V();
|
||||
|
||||
apply(Udiag, Usource, V, rho, mu, U);
|
||||
|
||||
@ -140,13 +140,13 @@ void Foam::porosityModels::fixedCoeff::calcTransformModelData()
|
||||
alpha_[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].yy() = alphaXYZ_.value().y();
|
||||
alpha_[zoneI][0].zz() = alphaXYZ_.value().z();
|
||||
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].yy() = betaXYZ_.value().y();
|
||||
beta_[zoneI][0].zz() = betaXYZ_.value().z();
|
||||
@ -164,12 +164,12 @@ void Foam::porosityModels::fixedCoeff::calcTransformModelData()
|
||||
|
||||
forAll(cells, i)
|
||||
{
|
||||
alpha_[zoneI][i] = tensor::zero;
|
||||
alpha_[zoneI][i] = Zero;
|
||||
alpha_[zoneI][i].xx() = alphaXYZ_.value().x();
|
||||
alpha_[zoneI][i].yy() = alphaXYZ_.value().y();
|
||||
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].yy() = betaXYZ_.value().y();
|
||||
beta_[zoneI][i].zz() = betaXYZ_.value().z();
|
||||
@ -193,7 +193,7 @@ void Foam::porosityModels::fixedCoeff::calcForce
|
||||
) const
|
||||
{
|
||||
scalarField Udiag(U.size(), 0.0);
|
||||
vectorField Usource(U.size(), vector::zero);
|
||||
vectorField Usource(U.size(), Zero);
|
||||
const scalarField& V = mesh_.V();
|
||||
scalar rhoRef = readScalar(coeffs_.lookup("rhoRef"));
|
||||
|
||||
|
||||
@ -154,7 +154,7 @@ Foam::tmp<Foam::vectorField> Foam::porosityModel::porosityModel::force
|
||||
{
|
||||
transformModelData();
|
||||
|
||||
tmp<vectorField> tforce(new vectorField(U.size(), vector::zero));
|
||||
tmp<vectorField> tforce(new vectorField(U.size(), Zero));
|
||||
|
||||
if (!cellZoneIDs_.empty())
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -104,7 +104,7 @@ activeBaffleVelocityFvPatchVectorField
|
||||
maxOpenFractionDelta_(readScalar(dict.lookup("maxOpenFractionDelta"))),
|
||||
curTimeIndex_(-1)
|
||||
{
|
||||
fvPatchVectorField::operator=(vector::zero);
|
||||
fvPatchVectorField::operator=(Zero);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -107,7 +107,7 @@ activePressureForceBaffleVelocityFvPatchVectorField
|
||||
fBased_(readBool(dict.lookup("forceBased"))),
|
||||
baffleActivated_(0)
|
||||
{
|
||||
fvPatchVectorField::operator=(vector::zero);
|
||||
fvPatchVectorField::operator=(Zero);
|
||||
|
||||
if (p.size() > 0)
|
||||
{
|
||||
|
||||
@ -50,7 +50,7 @@ Description
|
||||
this->refValue() =
|
||||
vector(1, 0, 0)
|
||||
*min(10, 0.1*this->db().time().value());
|
||||
this->refGrad() = vector::zero;
|
||||
this->refGrad() = Zero;
|
||||
this->valueFraction() = 1.0;
|
||||
#};
|
||||
|
||||
@ -76,7 +76,7 @@ Description
|
||||
code
|
||||
#{
|
||||
this->refValue() = min(10, 0.1*this->db().time().value());
|
||||
this->refGrad() = vector::zero;
|
||||
this->refGrad() = Zero;
|
||||
this->valueFraction() = 1.0;
|
||||
#};
|
||||
}
|
||||
|
||||
@ -46,9 +46,9 @@ fixedNormalInletOutletVelocityFvPatchVectorField
|
||||
fvPatchVectorField::New("fixedValue", p, iF)
|
||||
)
|
||||
{
|
||||
refValue() = vector::zero;
|
||||
refGrad() = vector::zero;
|
||||
valueFraction() = symmTensor::zero;
|
||||
refValue() = Zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = Zero;
|
||||
}
|
||||
|
||||
|
||||
@ -70,8 +70,8 @@ fixedNormalInletOutletVelocityFvPatchVectorField
|
||||
{
|
||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
||||
refValue() = normalVelocity();
|
||||
refGrad() = vector::zero;
|
||||
valueFraction() = symmTensor::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = Zero;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -39,7 +39,7 @@ interstitialInletVelocityFvPatchVectorField
|
||||
)
|
||||
:
|
||||
fixedValueFvPatchVectorField(p, iF),
|
||||
inletVelocity_(p.size(), vector::zero),
|
||||
inletVelocity_(p.size(), Zero),
|
||||
alphaName_("alpha")
|
||||
{}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -168,7 +168,7 @@ void Foam::mappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
|
||||
{
|
||||
case mappedPolyPatch::NEARESTFACE:
|
||||
{
|
||||
vectorField allUValues(nbrMesh.nFaces(), vector::zero);
|
||||
vectorField allUValues(nbrMesh.nFaces(), Zero);
|
||||
scalarField allPhiValues(nbrMesh.nFaces(), 0.0);
|
||||
|
||||
forAll(UField.boundaryField(), patchI)
|
||||
|
||||
@ -34,7 +34,7 @@ Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField
|
||||
const DimensionedField<vector, volMesh>& iF
|
||||
)
|
||||
:
|
||||
fixedValueFvPatchVectorField(p, iF, vector::zero)
|
||||
fixedValueFvPatchVectorField(p, iF, Zero)
|
||||
{}
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField
|
||||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
fixedValueFvPatchVectorField(p, iF, vector::zero)
|
||||
fixedValueFvPatchVectorField(p, iF, Zero)
|
||||
{}
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField
|
||||
const fvPatchFieldMapper& mapper
|
||||
)
|
||||
:
|
||||
fixedValueFvPatchVectorField(p, iF, vector::zero)
|
||||
fixedValueFvPatchVectorField(p, iF, Zero)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -42,8 +42,8 @@ Foam::outletPhaseMeanVelocityFvPatchVectorField
|
||||
Umean_(0),
|
||||
alphaName_("none")
|
||||
{
|
||||
refValue() = vector::zero;
|
||||
refGrad() = vector::zero;
|
||||
refValue() = Zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 0.0;
|
||||
}
|
||||
|
||||
@ -75,8 +75,8 @@ Foam::outletPhaseMeanVelocityFvPatchVectorField
|
||||
Umean_(readScalar(dict.lookup("Umean"))),
|
||||
alphaName_(dict.lookup("alpha"))
|
||||
{
|
||||
refValue() = vector::zero;
|
||||
refGrad() = vector::zero;
|
||||
refValue() = Zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 0.0;
|
||||
|
||||
if (dict.found("value"))
|
||||
@ -145,7 +145,7 @@ void Foam::outletPhaseMeanVelocityFvPatchVectorField::updateCoeffs()
|
||||
// such that the phase mean is Umean_
|
||||
if (Uzgmean >= Umean_)
|
||||
{
|
||||
refValue() = vector::zero;
|
||||
refValue() = Zero;
|
||||
valueFraction() = 1.0 - Umean_/Uzgmean;
|
||||
}
|
||||
else
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -43,7 +43,7 @@ phaseHydrostaticPressureFvPatchScalarField
|
||||
phaseName_("alpha"),
|
||||
rho_(0.0),
|
||||
pRefValue_(0.0),
|
||||
pRefPoint_(vector::zero)
|
||||
pRefPoint_(Zero)
|
||||
{
|
||||
this->refValue() = 0.0;
|
||||
this->refGrad() = 0.0;
|
||||
|
||||
@ -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
|
||||
@ -44,7 +44,7 @@ pressureDirectedInletOutletVelocityFvPatchVectorField
|
||||
inletDir_(p.size())
|
||||
{
|
||||
refValue() = *this;
|
||||
refGrad() = vector::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 0.0;
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ pressureDirectedInletOutletVelocityFvPatchVectorField
|
||||
{
|
||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
||||
refValue() = *this;
|
||||
refGrad() = vector::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 0.0;
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -44,7 +44,7 @@ pressureInletOutletParSlipVelocityFvPatchVectorField
|
||||
rhoName_("rho")
|
||||
{
|
||||
refValue() = *this;
|
||||
refGrad() = vector::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 0.0;
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ pressureInletOutletParSlipVelocityFvPatchVectorField
|
||||
{
|
||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
||||
refValue() = *this;
|
||||
refGrad() = vector::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 0.0;
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -41,9 +41,9 @@ pressureInletOutletVelocityFvPatchVectorField
|
||||
directionMixedFvPatchVectorField(p, iF),
|
||||
phiName_("phi")
|
||||
{
|
||||
refValue() = vector::zero;
|
||||
refGrad() = vector::zero;
|
||||
valueFraction() = symmTensor::zero;
|
||||
refValue() = Zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = Zero;
|
||||
}
|
||||
|
||||
|
||||
@ -88,11 +88,11 @@ pressureInletOutletVelocityFvPatchVectorField
|
||||
}
|
||||
else
|
||||
{
|
||||
refValue() = vector::zero;
|
||||
refValue() = Zero;
|
||||
}
|
||||
|
||||
refGrad() = vector::zero;
|
||||
valueFraction() = symmTensor::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = Zero;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
@ -44,7 +44,7 @@ pressureNormalInletOutletVelocityFvPatchVectorField
|
||||
rhoName_("rho")
|
||||
{
|
||||
refValue() = *this;
|
||||
refGrad() = vector::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 0.0;
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ pressureNormalInletOutletVelocityFvPatchVectorField
|
||||
{
|
||||
fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
|
||||
refValue() = *this;
|
||||
refGrad() = vector::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 0.0;
|
||||
}
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ rotatingWallVelocityFvPatchVectorField
|
||||
:
|
||||
fixedValueFvPatchField<vector>(p, iF),
|
||||
origin_(),
|
||||
axis_(vector::zero),
|
||||
axis_(Zero),
|
||||
omega_(0)
|
||||
{}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -41,13 +41,13 @@ supersonicFreestreamFvPatchVectorField
|
||||
TName_("T"),
|
||||
pName_("p"),
|
||||
psiName_("thermo:psi"),
|
||||
UInf_(vector::zero),
|
||||
UInf_(Zero),
|
||||
pInf_(0),
|
||||
TInf_(0),
|
||||
gamma_(0)
|
||||
{
|
||||
refValue() = patchInternalField();
|
||||
refGrad() = vector::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 1;
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ supersonicFreestreamFvPatchVectorField
|
||||
}
|
||||
|
||||
refValue() = *this;
|
||||
refGrad() = vector::zero;
|
||||
refGrad() = Zero;
|
||||
valueFraction() = 1;
|
||||
|
||||
if (pInf_ < SMALL)
|
||||
|
||||
@ -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
|
||||
@ -42,7 +42,7 @@ uniformDensityHydrostaticPressureFvPatchScalarField
|
||||
fixedValueFvPatchScalarField(p, iF),
|
||||
rho_(0.0),
|
||||
pRefValue_(0.0),
|
||||
pRefPoint_(vector::zero)
|
||||
pRefPoint_(Zero)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@ void Foam::fv::LeastSquaresVectors<Stencil>::calcLeastSquaresVectors()
|
||||
dd -= dd0;
|
||||
|
||||
// Finalize the gradient weighting vectors
|
||||
lsvi[0] = vector::zero;
|
||||
lsvi[0] = Zero;
|
||||
for (label j=1; j<lsvi.size(); j++)
|
||||
{
|
||||
lsvi[j] = dd & lsvi[j];
|
||||
|
||||
@ -51,7 +51,7 @@ Foam::leastSquaresVectors::leastSquaresVectors(const fvMesh& mesh)
|
||||
false
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", dimless/dimLength, vector::zero)
|
||||
dimensionedVector("zero", dimless/dimLength, Zero)
|
||||
),
|
||||
nVectors_
|
||||
(
|
||||
@ -65,7 +65,7 @@ Foam::leastSquaresVectors::leastSquaresVectors(const fvMesh& mesh)
|
||||
false
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", dimless/dimLength, vector::zero)
|
||||
dimensionedVector("zero", dimless/dimLength, Zero)
|
||||
)
|
||||
{
|
||||
calcLeastSquaresVectors();
|
||||
@ -96,7 +96,7 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
|
||||
const volVectorField& C = mesh.C();
|
||||
|
||||
// Set up temporary storage for the dd tensor (before inversion)
|
||||
symmTensorField dd(mesh_.nCells(), symmTensor::zero);
|
||||
symmTensorField dd(mesh_.nCells(), Zero);
|
||||
|
||||
forAll(owner, facei)
|
||||
{
|
||||
|
||||
@ -51,7 +51,7 @@ Foam::leastSquaresVectors::leastSquaresVectors(const fvMesh& mesh)
|
||||
false
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", dimless/dimLength, vector::zero)
|
||||
dimensionedVector("zero", dimless/dimLength, Zero)
|
||||
),
|
||||
nVectors_
|
||||
(
|
||||
@ -65,7 +65,7 @@ Foam::leastSquaresVectors::leastSquaresVectors(const fvMesh& mesh)
|
||||
false
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", dimless/dimLength, vector::zero)
|
||||
dimensionedVector("zero", dimless/dimLength, Zero)
|
||||
)
|
||||
{
|
||||
calcLeastSquaresVectors();
|
||||
@ -99,7 +99,7 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
|
||||
|
||||
|
||||
// Set up temporary storage for the dd tensor (before inversion)
|
||||
symmTensorField dd(mesh_.nCells(), symmTensor::zero);
|
||||
symmTensorField dd(mesh_.nCells(), Zero);
|
||||
|
||||
forAll(owner, facei)
|
||||
{
|
||||
|
||||
@ -51,7 +51,7 @@ Foam::leastSquaresVectors::leastSquaresVectors(const fvMesh& mesh)
|
||||
false
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", dimless/dimLength, vector::zero)
|
||||
dimensionedVector("zero", dimless/dimLength, Zero)
|
||||
),
|
||||
nVectors_
|
||||
(
|
||||
@ -65,7 +65,7 @@ Foam::leastSquaresVectors::leastSquaresVectors(const fvMesh& mesh)
|
||||
false
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", dimless/dimLength, vector::zero)
|
||||
dimensionedVector("zero", dimless/dimLength, Zero)
|
||||
)
|
||||
{
|
||||
calcLeastSquaresVectors();
|
||||
@ -96,7 +96,7 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
|
||||
const volVectorField& C = mesh.C();
|
||||
|
||||
// Set up temporary storage for the dd tensor (before inversion)
|
||||
symmTensorField dd(mesh_.nCells(), symmTensor::zero);
|
||||
symmTensorField dd(mesh_.nCells(), Zero);
|
||||
|
||||
forAll(owner, facei)
|
||||
{
|
||||
|
||||
@ -140,7 +140,7 @@ Foam::tmp<Foam::vectorField> Foam::cyclicACMIFvPatch::delta() const
|
||||
(
|
||||
interpolate
|
||||
(
|
||||
vectorField(nbrPatchCoupled.size(), vector::zero),
|
||||
vectorField(nbrPatchCoupled.size(), Zero),
|
||||
nbrPatchNonOverlap.delta()()
|
||||
)
|
||||
);
|
||||
|
||||
@ -102,7 +102,7 @@ Foam::tmp<Foam::vectorField> Foam::cyclicAMIFvPatch::delta() const
|
||||
interpolate
|
||||
(
|
||||
nbrPatch.coupledFvPatch::delta(),
|
||||
vectorField(this->size(), vector::zero)
|
||||
vectorField(this->size(), Zero)
|
||||
);
|
||||
}
|
||||
else
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -105,7 +105,7 @@ bool Foam::patchDistMethods::advectionDiffusion::correct
|
||||
false
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("ny", dimless, vector::zero),
|
||||
dimensionedVector("ny", dimless, Zero),
|
||||
patchTypes<vector>(mesh_, patchIDs_)
|
||||
);
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ void Foam::wallDist::constructn() const
|
||||
mesh()
|
||||
),
|
||||
mesh(),
|
||||
dimensionedVector("n" & patchTypeName_, dimless, vector::zero),
|
||||
dimensionedVector("n" & patchTypeName_, dimless, Zero),
|
||||
patchDistMethod::patchTypes<vector>(mesh(), patchIDs_)
|
||||
)
|
||||
);
|
||||
|
||||
@ -118,7 +118,7 @@ Foam::linearUpwindV<Type>::correction
|
||||
{
|
||||
if (maxCorrs < 0)
|
||||
{
|
||||
sfCorr[facei] = vector::zero;
|
||||
sfCorr[facei] = Zero;
|
||||
}
|
||||
else if (sfCorrs > maxCorrs)
|
||||
{
|
||||
@ -185,7 +185,7 @@ Foam::linearUpwindV<Type>::correction
|
||||
{
|
||||
if (maxCorrs < 0)
|
||||
{
|
||||
pSfCorr[facei] = vector::zero;
|
||||
pSfCorr[facei] = Zero;
|
||||
}
|
||||
else if (pSfCorrs > maxCorrs)
|
||||
{
|
||||
|
||||
@ -98,7 +98,7 @@ void Foam::skewCorrectionVectors::calcSkewCorrectionVectors()
|
||||
|
||||
if (!patchSkewCorrVecs.coupled())
|
||||
{
|
||||
patchSkewCorrVecs = vector::zero;
|
||||
patchSkewCorrVecs = Zero;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -364,7 +364,7 @@ void Foam::surfaceInterpolation::makeNonOrthCorrectionVectors() const
|
||||
|
||||
if (!patchCorrVecs.coupled())
|
||||
{
|
||||
patchCorrVecs = vector::zero;
|
||||
patchCorrVecs = Zero;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -74,7 +74,7 @@ Foam::displacementSBRStressFvMotionSolver::displacementSBRStressFvMotionSolver
|
||||
(
|
||||
"cellDisplacement",
|
||||
pointDisplacement().dimensions(),
|
||||
vector::zero
|
||||
Zero
|
||||
),
|
||||
cellMotionBoundaryTypes<vector>(pointDisplacement().boundaryField())
|
||||
),
|
||||
|
||||
@ -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())
|
||||
|
||||
@ -72,7 +72,7 @@ Foam::displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver
|
||||
(
|
||||
"cellDisplacement",
|
||||
pointDisplacement_.dimensions(),
|
||||
vector::zero
|
||||
Zero
|
||||
),
|
||||
cellMotionBoundaryTypes<vector>(pointDisplacement_.boundaryField())
|
||||
),
|
||||
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ Foam::velocityLaplacianFvMotionSolver::velocityLaplacianFvMotionSolver
|
||||
(
|
||||
"cellMotionU",
|
||||
pointMotionU_.dimensions(),
|
||||
vector::zero
|
||||
Zero
|
||||
),
|
||||
cellMotionBoundaryTypes<vector>(pointMotionU_.boundaryField())
|
||||
),
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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)
|
||||
{}
|
||||
|
||||
|
||||
@ -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())
|
||||
{}
|
||||
|
||||
@ -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)
|
||||
{}
|
||||
|
||||
|
||||
@ -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)
|
||||
{}
|
||||
|
||||
|
||||
@ -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"))
|
||||
{
|
||||
|
||||
@ -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
|
||||
@ -40,7 +40,7 @@ void Foam::fv::actuationDiskSource::addActuationDiskAxialInertialResistance
|
||||
{
|
||||
scalar a = 1.0 - Cp_/Ct_;
|
||||
vector uniDiskDir = diskDir_/mag(diskDir_);
|
||||
tensor E(tensor::zero);
|
||||
tensor E(Zero);
|
||||
E.xx() = uniDiskDir.x();
|
||||
E.yy() = uniDiskDir.y();
|
||||
E.zz() = uniDiskDir.z();
|
||||
|
||||
@ -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
|
||||
@ -204,7 +204,7 @@ void Foam::fv::meanVelocityForce::addSup
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", eqn.dimensions()/dimVolume, vector::zero)
|
||||
dimensionedVector("zero", eqn.dimensions()/dimVolume, Zero)
|
||||
);
|
||||
|
||||
scalar gradP = gradP0_ + dGradP_;
|
||||
|
||||
@ -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
|
||||
@ -46,7 +46,7 @@ addRadialActuationDiskAxialInertialResistance
|
||||
scalarField Tr(cells.size());
|
||||
const vector uniDiskDir = diskDir_/mag(diskDir_);
|
||||
|
||||
tensor E(tensor::zero);
|
||||
tensor E(Zero);
|
||||
E.xx() = uniDiskDir.x();
|
||||
E.yy() = uniDiskDir.y();
|
||||
E.zz() = uniDiskDir.z();
|
||||
|
||||
@ -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
|
||||
@ -135,7 +135,7 @@ void Foam::fv::rotorDiskSource::setFaceArea(vector& axis, const bool correct)
|
||||
const vectorField& Sf = mesh_.Sf();
|
||||
const scalarField& magSf = mesh_.magSf();
|
||||
|
||||
vector n = vector::zero;
|
||||
vector n = Zero;
|
||||
|
||||
// Calculate cell addressing for selected cells
|
||||
labelList cellAddr(mesh_.nCells(), -1);
|
||||
@ -263,9 +263,9 @@ void Foam::fv::rotorDiskSource::setFaceArea(vector& axis, const bool correct)
|
||||
void Foam::fv::rotorDiskSource::createCoordinateSystem()
|
||||
{
|
||||
// Construct the local rotor co-prdinate system
|
||||
vector origin(vector::zero);
|
||||
vector axis(vector::zero);
|
||||
vector refDir(vector::zero);
|
||||
vector origin(Zero);
|
||||
vector axis(Zero);
|
||||
vector refDir(Zero);
|
||||
|
||||
geometryModeType gm =
|
||||
geometryModeTypeNames_.read(coeffs_.lookup("geometryMode"));
|
||||
@ -289,7 +289,7 @@ void Foam::fv::rotorDiskSource::createCoordinateSystem()
|
||||
origin /= sumV;
|
||||
|
||||
// Determine first radial vector
|
||||
vector dx1(vector::zero);
|
||||
vector dx1(Zero);
|
||||
scalar magR = -GREAT;
|
||||
forAll(cells_, i)
|
||||
{
|
||||
@ -459,7 +459,7 @@ Foam::tmp<Foam::vectorField> Foam::fv::rotorDiskSource::inflowVelocity
|
||||
}
|
||||
}
|
||||
|
||||
return tmp<vectorField>(new vectorField(mesh_.nCells(), vector::zero));
|
||||
return tmp<vectorField>(new vectorField(mesh_.nCells(), Zero));
|
||||
}
|
||||
|
||||
|
||||
@ -479,10 +479,10 @@ Foam::fv::rotorDiskSource::rotorDiskSource
|
||||
omega_(0.0),
|
||||
nBlades_(0),
|
||||
inletFlow_(ifLocal),
|
||||
inletVelocity_(vector::zero),
|
||||
inletVelocity_(Zero),
|
||||
tipEffect_(1.0),
|
||||
flap_(),
|
||||
x_(cells_.size(), vector::zero),
|
||||
x_(cells_.size(), Zero),
|
||||
R_(cells_.size(), I),
|
||||
invR_(cells_.size(), I),
|
||||
area_(cells_.size(), 0.0),
|
||||
@ -524,7 +524,7 @@ void Foam::fv::rotorDiskSource::addSup
|
||||
(
|
||||
"zero",
|
||||
eqn.dimensions()/dimVolume,
|
||||
vector::zero
|
||||
Zero
|
||||
)
|
||||
);
|
||||
|
||||
@ -565,7 +565,7 @@ void Foam::fv::rotorDiskSource::addSup
|
||||
(
|
||||
"zero",
|
||||
eqn.dimensions()/dimVolume,
|
||||
vector::zero
|
||||
Zero
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ Foam::vector Foam::targetCoeffTrim::calcCoeffs
|
||||
|
||||
scalar coeff1 = alpha_*sqr(rotor_.omega())*mathematical::pi;
|
||||
|
||||
vector cf(vector::zero);
|
||||
vector cf(Zero);
|
||||
forAll(cells, i)
|
||||
{
|
||||
label cellI = cells[i];
|
||||
@ -119,9 +119,9 @@ void Foam::targetCoeffTrim::correctTrim
|
||||
// iterate to find new pitch angles to achieve target force
|
||||
scalar err = GREAT;
|
||||
label iter = 0;
|
||||
tensor J(tensor::zero);
|
||||
tensor J(Zero);
|
||||
|
||||
vector old = vector::zero;
|
||||
vector old = Zero;
|
||||
while ((err > tol_) && (iter < nIter_))
|
||||
{
|
||||
// cache initial theta vector
|
||||
@ -199,8 +199,8 @@ Foam::targetCoeffTrim::targetCoeffTrim
|
||||
trimModel(rotor, dict, typeName),
|
||||
calcFrequency_(-1),
|
||||
useCoeffs_(true),
|
||||
target_(vector::zero),
|
||||
theta_(vector::zero),
|
||||
target_(Zero),
|
||||
theta_(Zero),
|
||||
nIter_(50),
|
||||
tol_(1e-8),
|
||||
relax_(1.0),
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -59,7 +59,7 @@ Foam::fv::tabulatedAccelerationSource::tabulatedAccelerationSource
|
||||
option(name, modelType, dict, mesh),
|
||||
motion_(coeffs_, mesh.time()),
|
||||
UName_(coeffs_.lookupOrDefault<word>("UName", "U")),
|
||||
g0_("g0", dimAcceleration, vector::zero)
|
||||
g0_("g0", dimAcceleration, Zero)
|
||||
{
|
||||
fieldNames_.setSize(1, UName_);
|
||||
applied_.setSize(1, false);
|
||||
|
||||
@ -154,7 +154,7 @@ void Foam::fv::interRegionExplicitPorositySource::addSup
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
nbrMesh,
|
||||
dimensionedVector("zero", U.dimensions(), vector::zero)
|
||||
dimensionedVector("zero", U.dimensions(), Zero)
|
||||
);
|
||||
|
||||
// Map local velocity onto neighbour region
|
||||
@ -175,7 +175,7 @@ void Foam::fv::interRegionExplicitPorositySource::addSup
|
||||
vectorField& Usource = porosityEqn.source();
|
||||
|
||||
Udiag.setSize(eqn.diag().size(), 0.0);
|
||||
Usource.setSize(eqn.source().size(), vector::zero);
|
||||
Usource.setSize(eqn.source().size(), Zero);
|
||||
|
||||
meshInterp().mapTgtToSrc(nbrEqn.diag(), plusEqOp<scalar>(), Udiag);
|
||||
meshInterp().mapTgtToSrc(nbrEqn.source(), plusEqOp<vector>(), Usource);
|
||||
@ -208,7 +208,7 @@ void Foam::fv::interRegionExplicitPorositySource::addSup
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
nbrMesh,
|
||||
dimensionedVector("zero", U.dimensions(), vector::zero)
|
||||
dimensionedVector("zero", U.dimensions(), Zero)
|
||||
);
|
||||
|
||||
// Map local velocity onto neighbour region
|
||||
@ -276,7 +276,7 @@ void Foam::fv::interRegionExplicitPorositySource::addSup
|
||||
vectorField& Usource = porosityEqn.source();
|
||||
|
||||
Udiag.setSize(eqn.diag().size(), 0.0);
|
||||
Usource.setSize(eqn.source().size(), vector::zero);
|
||||
Usource.setSize(eqn.source().size(), Zero);
|
||||
|
||||
meshInterp().mapTgtToSrc(nbrEqn.diag(), plusEqOp<scalar>(), Udiag);
|
||||
meshInterp().mapTgtToSrc(nbrEqn.source(), plusEqOp<vector>(), Usource);
|
||||
|
||||
@ -392,7 +392,7 @@ void Foam::DSMCCloud<ParcelType>::resetFields()
|
||||
(
|
||||
"zero",
|
||||
dimensionSet(1, -1, -2, 0, 0),
|
||||
vector::zero
|
||||
Zero
|
||||
);
|
||||
|
||||
rhoN_ = dimensionedScalar("zero", dimensionSet(0, -3, 0, 0, 0), VSMALL);
|
||||
@ -406,7 +406,7 @@ void Foam::DSMCCloud<ParcelType>::resetFields()
|
||||
(
|
||||
"zero",
|
||||
dimensionSet(1, -2, -1, 0, 0),
|
||||
vector::zero
|
||||
Zero
|
||||
);
|
||||
}
|
||||
|
||||
@ -800,7 +800,7 @@ Foam::DSMCCloud<ParcelType>::DSMCCloud
|
||||
(
|
||||
"zero",
|
||||
dimensionSet(1, -1, -2, 0, 0),
|
||||
vector::zero
|
||||
Zero
|
||||
)
|
||||
),
|
||||
rhoN_
|
||||
@ -896,7 +896,7 @@ Foam::DSMCCloud<ParcelType>::DSMCCloud
|
||||
(
|
||||
"zero",
|
||||
dimensionSet(1, -2, -1, 0, 0),
|
||||
vector::zero
|
||||
Zero
|
||||
)
|
||||
),
|
||||
constProps_(),
|
||||
@ -934,7 +934,7 @@ Foam::DSMCCloud<ParcelType>::DSMCCloud
|
||||
(
|
||||
"zero",
|
||||
dimensionSet(0, 1, -1, 0, 0),
|
||||
vector::zero
|
||||
Zero
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
@ -276,7 +276,7 @@ inline Foam::scalar Foam::DSMCCloud<ParcelType>::massInSystem() const
|
||||
template<class ParcelType>
|
||||
inline Foam::vector Foam::DSMCCloud<ParcelType>::linearMomentumOfSystem() const
|
||||
{
|
||||
vector linearMomentum(vector::zero);
|
||||
vector linearMomentum(Zero);
|
||||
|
||||
forAllConstIter(typename DSMCCloud<ParcelType>, *this, iter)
|
||||
{
|
||||
|
||||
@ -48,7 +48,7 @@ Foam::DSMCParcel<ParcelType>::DSMCParcel
|
||||
)
|
||||
:
|
||||
ParcelType(mesh, is, readFields),
|
||||
U_(vector::zero),
|
||||
U_(Zero),
|
||||
Ei_(0.0),
|
||||
typeId_(-1)
|
||||
{
|
||||
|
||||
@ -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
|
||||
@ -166,7 +166,7 @@ inline Foam::scalar Foam::particle::movingTetLambda
|
||||
point b0 = b00 + stepFraction_*(b - b00);
|
||||
|
||||
// Normal of plane at start of tracking portion
|
||||
vector n0 = vector::zero;
|
||||
vector n0 = Zero;
|
||||
|
||||
{
|
||||
tetIndices tetIs(cellI, tetFaceI, tetPtI, mesh_);
|
||||
|
||||
@ -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
|
||||
@ -820,7 +820,7 @@ void Foam::particle::hitWallFaces
|
||||
lambdaDistanceTolerance
|
||||
);
|
||||
|
||||
pointHit hitInfo(vector::zero);
|
||||
pointHit hitInfo(Zero);
|
||||
|
||||
if (mesh_.moving())
|
||||
{
|
||||
|
||||
@ -43,7 +43,7 @@ Foam::coalCloudList::UTrans() const
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", dimMass*dimVelocity, vector::zero)
|
||||
dimensionedVector("zero", dimMass*dimVelocity, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -367,7 +367,7 @@ Foam::KinematicCloud<CloudType>::KinematicCloud
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector("zero", dimMass*dimVelocity, vector::zero)
|
||||
dimensionedVector("zero", dimMass*dimVelocity, Zero)
|
||||
)
|
||||
),
|
||||
UCoeff_
|
||||
@ -601,7 +601,7 @@ void Foam::KinematicCloud<CloudType>::restoreState()
|
||||
template<class CloudType>
|
||||
void Foam::KinematicCloud<CloudType>::resetSourceTerms()
|
||||
{
|
||||
UTrans().field() = vector::zero;
|
||||
UTrans().field() = Zero;
|
||||
UCoeff().field() = 0.0;
|
||||
}
|
||||
|
||||
@ -729,7 +729,7 @@ void Foam::KinematicCloud<CloudType>::patchData
|
||||
}
|
||||
else
|
||||
{
|
||||
Up = vector::zero;
|
||||
Up = Zero;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -739,7 +739,7 @@ void Foam::KinematicCloud<CloudType>::patchData
|
||||
vector n00 = tetIs.oldFaceTri(mesh_).normal();
|
||||
|
||||
// Difference in normal over timestep
|
||||
vector dn = vector::zero;
|
||||
vector dn = Zero;
|
||||
|
||||
if (mag(n00) > SMALL)
|
||||
{
|
||||
|
||||
@ -285,7 +285,7 @@ template<class CloudType>
|
||||
inline Foam::vector
|
||||
Foam::KinematicCloud<CloudType>::linearMomentumOfSystem() const
|
||||
{
|
||||
vector linearMomentum(vector::zero);
|
||||
vector linearMomentum(Zero);
|
||||
|
||||
forAllConstIter(typename KinematicCloud<CloudType>, *this, iter)
|
||||
{
|
||||
|
||||
@ -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
|
||||
@ -70,9 +70,9 @@ inline Foam::CollidingParcel<ParcelType>::CollidingParcel
|
||||
)
|
||||
:
|
||||
ParcelType(owner, position, cellI, tetFaceI, tetPtI),
|
||||
f_(vector::zero),
|
||||
angularMomentum_(vector::zero),
|
||||
torque_(vector::zero),
|
||||
f_(Zero),
|
||||
angularMomentum_(Zero),
|
||||
torque_(Zero),
|
||||
collisionRecords_()
|
||||
{}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -52,9 +52,9 @@ Foam::CollidingParcel<ParcelType>::CollidingParcel
|
||||
)
|
||||
:
|
||||
ParcelType(mesh, is, readFields),
|
||||
f_(vector::zero),
|
||||
angularMomentum_(vector::zero),
|
||||
torque_(vector::zero),
|
||||
f_(Zero),
|
||||
angularMomentum_(Zero),
|
||||
torque_(Zero),
|
||||
collisionRecords_()
|
||||
{
|
||||
if (readFields)
|
||||
|
||||
@ -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
|
||||
@ -113,13 +113,13 @@ void Foam::KinematicParcel<ParcelType>::calc
|
||||
//~~~~~~~~
|
||||
|
||||
// Explicit momentum source for particle
|
||||
vector Su = vector::zero;
|
||||
vector Su = Zero;
|
||||
|
||||
// Linearised momentum source coefficient
|
||||
scalar Spu = 0.0;
|
||||
|
||||
// Momentum transfer from the particle to the carrier phase
|
||||
vector dUTrans = vector::zero;
|
||||
vector dUTrans = Zero;
|
||||
|
||||
|
||||
// Motion
|
||||
|
||||
@ -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
|
||||
@ -85,13 +85,13 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
|
||||
nParticle_(0),
|
||||
d_(0.0),
|
||||
dTarget_(0.0),
|
||||
U_(vector::zero),
|
||||
U_(Zero),
|
||||
rho_(0.0),
|
||||
age_(0.0),
|
||||
tTurb_(0.0),
|
||||
UTurb_(vector::zero),
|
||||
UTurb_(Zero),
|
||||
rhoc_(0.0),
|
||||
Uc_(vector::zero),
|
||||
Uc_(Zero),
|
||||
muc_(0.0)
|
||||
{}
|
||||
|
||||
@ -122,9 +122,9 @@ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
|
||||
rho_(constProps.rho0()),
|
||||
age_(0.0),
|
||||
tTurb_(0.0),
|
||||
UTurb_(vector::zero),
|
||||
UTurb_(Zero),
|
||||
rhoc_(0.0),
|
||||
Uc_(vector::zero),
|
||||
Uc_(Zero),
|
||||
muc_(0.0)
|
||||
{}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -58,13 +58,13 @@ Foam::KinematicParcel<ParcelType>::KinematicParcel
|
||||
nParticle_(0.0),
|
||||
d_(0.0),
|
||||
dTarget_(0.0),
|
||||
U_(vector::zero),
|
||||
U_(Zero),
|
||||
rho_(0.0),
|
||||
age_(0.0),
|
||||
tTurb_(0.0),
|
||||
UTurb_(vector::zero),
|
||||
UTurb_(Zero),
|
||||
rhoc_(0.0),
|
||||
Uc_(vector::zero),
|
||||
Uc_(Zero),
|
||||
muc_(0.0)
|
||||
{
|
||||
if (readFields)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -36,7 +36,7 @@ inline Foam::MPPICParcel<ParcelType>::MPPICParcel
|
||||
)
|
||||
:
|
||||
ParcelType(owner, position, cellI, tetFaceI, tetPtI),
|
||||
UCorrect_(vector::zero)
|
||||
UCorrect_(Zero)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -51,7 +51,7 @@ Foam::MPPICParcel<ParcelType>::MPPICParcel
|
||||
)
|
||||
:
|
||||
ParcelType(mesh, is, readFields),
|
||||
UCorrect_(vector::zero)
|
||||
UCorrect_(Zero)
|
||||
{
|
||||
if (readFields)
|
||||
{
|
||||
|
||||
@ -150,7 +150,7 @@ Foam::MPPICParcel<ParcelType>::TrackingData<CloudType>::updateAverages
|
||||
volumeAverage_() = 0;
|
||||
radiusAverage_() = 0;
|
||||
rhoAverage_() = 0;
|
||||
uAverage_() = vector::zero;
|
||||
uAverage_() = Zero;
|
||||
uSqrAverage_() = 0;
|
||||
frequencyAverage_() = 0;
|
||||
massAverage_() = 0;
|
||||
|
||||
@ -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
|
||||
@ -197,13 +197,13 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
|
||||
//~~~~~~~~
|
||||
|
||||
// Explicit momentum source for particle
|
||||
vector Su = vector::zero;
|
||||
vector Su = Zero;
|
||||
|
||||
// Linearised momentum source coefficient
|
||||
scalar Spu = 0.0;
|
||||
|
||||
// Momentum transfer from the particle to the carrier phase
|
||||
vector dUTrans = vector::zero;
|
||||
vector dUTrans = Zero;
|
||||
|
||||
// Explicit enthalpy source for particle
|
||||
scalar Sh = 0.0;
|
||||
|
||||
@ -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
|
||||
@ -418,13 +418,13 @@ void Foam::ReactingParcel<ParcelType>::calc
|
||||
// ~~~~~~~
|
||||
|
||||
// Explicit momentum source for particle
|
||||
vector Su = vector::zero;
|
||||
vector Su = Zero;
|
||||
|
||||
// Linearised momentum source coefficient
|
||||
scalar Spu = 0.0;
|
||||
|
||||
// Momentum transfer from the particle to the carrier phase
|
||||
vector dUTrans = vector::zero;
|
||||
vector dUTrans = Zero;
|
||||
|
||||
// Explicit enthalpy source for particle
|
||||
scalar Sh = 0.0;
|
||||
|
||||
@ -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
|
||||
@ -163,13 +163,13 @@ void Foam::ThermoParcel<ParcelType>::calc
|
||||
// ~~~~~~~
|
||||
|
||||
// Explicit momentum source for particle
|
||||
vector Su = vector::zero;
|
||||
vector Su = Zero;
|
||||
|
||||
// Linearised momentum source coefficient
|
||||
scalar Spu = 0.0;
|
||||
|
||||
// Momentum transfer from the particle to the carrier phase
|
||||
vector dUTrans = vector::zero;
|
||||
vector dUTrans = Zero;
|
||||
|
||||
// Explicit enthalpy source for particle
|
||||
scalar Sh = 0.0;
|
||||
|
||||
@ -174,7 +174,7 @@ void Foam::ParticleCollector<CloudType>::initConcentricCircles()
|
||||
// set 4 quadrants for single sector cases
|
||||
nS = 4;
|
||||
|
||||
vector tangent = vector::zero;
|
||||
vector tangent = Zero;
|
||||
scalar magTangent = 0.0;
|
||||
|
||||
Random rnd(1234);
|
||||
|
||||
@ -154,7 +154,7 @@ Foam::forceSuSp Foam::ParticleForceList<CloudType>::calcCoupled
|
||||
const scalar muc
|
||||
) const
|
||||
{
|
||||
forceSuSp value(vector::zero, 0.0);
|
||||
forceSuSp value(Zero, 0.0);
|
||||
|
||||
if (calcCoupled_)
|
||||
{
|
||||
@ -178,7 +178,7 @@ Foam::forceSuSp Foam::ParticleForceList<CloudType>::calcNonCoupled
|
||||
const scalar muc
|
||||
) const
|
||||
{
|
||||
forceSuSp value(vector::zero, 0.0);
|
||||
forceSuSp value(Zero, 0.0);
|
||||
|
||||
if (calcNonCoupled_)
|
||||
{
|
||||
|
||||
@ -47,9 +47,9 @@ void Foam::PairCollision<CloudType>::preInteraction()
|
||||
{
|
||||
typename CloudType::parcelType& p = iter();
|
||||
|
||||
p.f() = vector::zero;
|
||||
p.f() = Zero;
|
||||
|
||||
p.torque() = vector::zero;
|
||||
p.torque() = Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user