mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required
This commit is contained in:
@ -122,7 +122,7 @@ Foam::tmp<Foam::volScalarField> Foam::XiEqModels::basicSubGrid::XiEq() const
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
nsv.dimensions(),
|
nsv.dimensions(),
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
ns.internalField() = nsv.internalField()*Cw;
|
ns.internalField() = nsv.internalField()*Cw;
|
||||||
|
|||||||
@ -108,7 +108,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::PDRDragModels::basic::Dcu() const
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
dimMass/dimTime/pow(dimLength, 3),
|
dimMass/dimTime/pow(dimLength, 3),
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -131,7 +131,7 @@ Foam::XiEqModel::calculateSchelkinEffect(const scalar uPrimeCoef) const
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
nsv.dimensions(),
|
nsv.dimensions(),
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
ns.internalField() = nsv.internalField()*pow(mesh.V(), 2.0/3.0);
|
ns.internalField() = nsv.internalField()*pow(mesh.V(), 2.0/3.0);
|
||||||
|
|||||||
@ -60,7 +60,7 @@ void zeroCells
|
|||||||
{
|
{
|
||||||
forAll(cells, i)
|
forAll(cells, i)
|
||||||
{
|
{
|
||||||
vf[cells[i]] = pTraits<Type>::zero;
|
vf[cells[i]] = Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ void Foam::BlendedInterfacialModel<ModelType>::correctFixedFluxBCs
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
field.boundaryField()[patchI]
|
field.boundaryField()[patchI]
|
||||||
= pTraits<typename GeometricField::value_type>::zero;
|
= Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -382,7 +382,7 @@ Foam::BlendedInterfacialModel<ModelType>::F() const
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
phase1_.mesh(),
|
phase1_.mesh(),
|
||||||
dimensioned<Type>("zero", ModelType::dimF, pTraits<Type>::zero)
|
dimensioned<Type>("zero", ModelType::dimF, Zero)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ void Foam::BlendedInterfacialModel<modelType>::correctFixedFluxBCs
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
field.boundaryField()[patchI]
|
field.boundaryField()[patchI]
|
||||||
= pTraits<typename GeometricField::value_type>::zero;
|
= Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -280,7 +280,7 @@ Foam::BlendedInterfacialModel<modelType>::F() const
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
pair_.phase1().mesh(),
|
pair_.phase1().mesh(),
|
||||||
dimensioned<Type>("zero", modelType::dimF, pTraits<Type>::zero)
|
dimensioned<Type>("zero", modelType::dimF, Zero)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -147,7 +147,7 @@ int main(int argc, char *argv[])
|
|||||||
const volVectorField& fld = mesh.C();
|
const volVectorField& fld = mesh.C();
|
||||||
|
|
||||||
// 1. Construct cell data in compact addressing
|
// 1. Construct cell data in compact addressing
|
||||||
List<point> compactFld(map.constructSize(), pTraits<point>::zero);
|
List<point> compactFld(map.constructSize(), Zero);
|
||||||
|
|
||||||
// Insert my internal values
|
// Insert my internal values
|
||||||
forAll(fld, cellI)
|
forAll(fld, cellI)
|
||||||
|
|||||||
@ -781,7 +781,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<scalar>::zero,
|
scalar(Zero),
|
||||||
volScalarField::typeName,
|
volScalarField::typeName,
|
||||||
scalarFlds
|
scalarFlds
|
||||||
);
|
);
|
||||||
@ -793,7 +793,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<vector>::zero,
|
vector(Zero),
|
||||||
volVectorField::typeName,
|
volVectorField::typeName,
|
||||||
vectorFlds
|
vectorFlds
|
||||||
);
|
);
|
||||||
@ -811,7 +811,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<sphericalTensor>::zero,
|
sphericalTensor(Zero),
|
||||||
volSphericalTensorField::typeName,
|
volSphericalTensorField::typeName,
|
||||||
sphericalTensorFlds
|
sphericalTensorFlds
|
||||||
);
|
);
|
||||||
@ -823,7 +823,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<symmTensor>::zero,
|
symmTensor(Zero),
|
||||||
volSymmTensorField::typeName,
|
volSymmTensorField::typeName,
|
||||||
symmTensorFlds
|
symmTensorFlds
|
||||||
);
|
);
|
||||||
@ -835,7 +835,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<tensor>::zero,
|
tensor(Zero),
|
||||||
volTensorField::typeName,
|
volTensorField::typeName,
|
||||||
tensorFlds
|
tensorFlds
|
||||||
);
|
);
|
||||||
@ -849,7 +849,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<scalar>::zero,
|
scalar(Zero),
|
||||||
surfaceScalarField::typeName,
|
surfaceScalarField::typeName,
|
||||||
surfScalarFlds
|
surfScalarFlds
|
||||||
);
|
);
|
||||||
@ -861,7 +861,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<vector>::zero,
|
vector(Zero),
|
||||||
surfaceVectorField::typeName,
|
surfaceVectorField::typeName,
|
||||||
surfVectorFlds
|
surfVectorFlds
|
||||||
);
|
);
|
||||||
@ -879,7 +879,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<sphericalTensor>::zero,
|
sphericalTensor(Zero),
|
||||||
surfaceSphericalTensorField::typeName,
|
surfaceSphericalTensorField::typeName,
|
||||||
surfSphericalTensorFlds
|
surfSphericalTensorFlds
|
||||||
);
|
);
|
||||||
@ -899,7 +899,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<symmTensor>::zero,
|
symmTensor(Zero),
|
||||||
surfaceSymmTensorField::typeName,
|
surfaceSymmTensorField::typeName,
|
||||||
surfSymmTensorFlds
|
surfSymmTensorFlds
|
||||||
);
|
);
|
||||||
@ -911,7 +911,7 @@ int main(int argc, char *argv[])
|
|||||||
subsetter,
|
subsetter,
|
||||||
objects,
|
objects,
|
||||||
defaultPatchI,
|
defaultPatchI,
|
||||||
pTraits<tensor>::zero,
|
tensor(Zero),
|
||||||
surfaceTensorField::typeName,
|
surfaceTensorField::typeName,
|
||||||
surfTensorFlds
|
surfTensorFlds
|
||||||
);
|
);
|
||||||
|
|||||||
@ -182,7 +182,7 @@ void subsetVolFields
|
|||||||
if (addedPatches.found(patchI))
|
if (addedPatches.found(patchI))
|
||||||
{
|
{
|
||||||
tSubFld.ref().boundaryField()[patchI] ==
|
tSubFld.ref().boundaryField()[patchI] ==
|
||||||
pTraits<typename GeoField::value_type>::zero;
|
typename GeoField::value_type(Zero);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ void subsetSurfaceFields
|
|||||||
if (addedPatches.found(patchI))
|
if (addedPatches.found(patchI))
|
||||||
{
|
{
|
||||||
tSubFld.ref().boundaryField()[patchI] ==
|
tSubFld.ref().boundaryField()[patchI] ==
|
||||||
pTraits<typename GeoField::value_type>::zero;
|
typename GeoField::value_type(Zero);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -94,7 +94,7 @@ void Foam::helpTypes::helpBoundary::fixedValueFieldConditions
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<Type>("zero", dimless, pTraits<Type>::zero)
|
dimensioned<Type>("zero", dimless, 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-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -102,7 +102,7 @@ void ensightCloudField
|
|||||||
|
|
||||||
if (mag(v) < 1.0e-90)
|
if (mag(v) < 1.0e-90)
|
||||||
{
|
{
|
||||||
v = pTraits<Type>::zero;
|
v = Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (direction cmpt=0; cmpt<pTraits<Type>::nComponents; cmpt++)
|
for (direction cmpt=0; cmpt<pTraits<Type>::nComponents; cmpt++)
|
||||||
|
|||||||
@ -182,7 +182,7 @@ void Foam::ensightLagrangianField
|
|||||||
|
|
||||||
if (mag(val) < 1.0e-90)
|
if (mag(val) < 1.0e-90)
|
||||||
{
|
{
|
||||||
val = pTraits<Type>::zero;
|
val = Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (direction cmpt=0; cmpt < pTraits<Type>::nComponents; cmpt++)
|
for (direction cmpt=0; cmpt < pTraits<Type>::nComponents; cmpt++)
|
||||||
|
|||||||
@ -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
|
||||||
@ -86,7 +86,7 @@ void ReadAndMapFields
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
readField.dimensions(),
|
readField.dimensions(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -252,7 +252,7 @@ int main(int argc, char *argv[])
|
|||||||
objects,
|
objects,
|
||||||
tetDualMesh,
|
tetDualMesh,
|
||||||
pointDualAddressing,
|
pointDualAddressing,
|
||||||
pTraits<scalar>::zero, // nullValue
|
Zero, // nullValue
|
||||||
psFlds
|
psFlds
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -263,7 +263,7 @@ int main(int argc, char *argv[])
|
|||||||
objects,
|
objects,
|
||||||
tetDualMesh,
|
tetDualMesh,
|
||||||
pointDualAddressing,
|
pointDualAddressing,
|
||||||
pTraits<vector>::zero, // nullValue
|
Zero, // nullValue
|
||||||
pvFlds
|
pvFlds
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -274,7 +274,7 @@ int main(int argc, char *argv[])
|
|||||||
objects,
|
objects,
|
||||||
tetDualMesh,
|
tetDualMesh,
|
||||||
pointDualAddressing,
|
pointDualAddressing,
|
||||||
pTraits<sphericalTensor>::zero, // nullValue
|
Zero, // nullValue
|
||||||
pstFlds
|
pstFlds
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ int main(int argc, char *argv[])
|
|||||||
objects,
|
objects,
|
||||||
tetDualMesh,
|
tetDualMesh,
|
||||||
pointDualAddressing,
|
pointDualAddressing,
|
||||||
pTraits<symmTensor>::zero, // nullValue
|
Zero, // nullValue
|
||||||
psymmtFlds
|
psymmtFlds
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -296,7 +296,7 @@ int main(int argc, char *argv[])
|
|||||||
objects,
|
objects,
|
||||||
tetDualMesh,
|
tetDualMesh,
|
||||||
pointDualAddressing,
|
pointDualAddressing,
|
||||||
pTraits<tensor>::zero, // nullValue
|
Zero, // nullValue
|
||||||
ptFlds
|
ptFlds
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
@ -30,7 +30,7 @@ License
|
|||||||
template<class T>
|
template<class T>
|
||||||
Foam::Field<T> Foam::channelIndex::regionSum(const Field<T>& cellField) const
|
Foam::Field<T> Foam::channelIndex::regionSum(const Field<T>& cellField) const
|
||||||
{
|
{
|
||||||
Field<T> regionField(cellRegion_().nRegions(), pTraits<T>::zero);
|
Field<T> regionField(cellRegion_().nRegions(), Zero);
|
||||||
|
|
||||||
forAll(cellRegion_(), cellI)
|
forAll(cellRegion_(), cellI)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
@ -51,7 +51,7 @@ void printAverage
|
|||||||
FieldType field(fieldHeader, mesh);
|
FieldType field(fieldHeader, mesh);
|
||||||
|
|
||||||
typename FieldType::value_type sumField =
|
typename FieldType::value_type sumField =
|
||||||
pTraits<typename FieldType::value_type>::zero;
|
Zero;
|
||||||
|
|
||||||
if (area > 0)
|
if (area > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -584,8 +584,8 @@ int main(int argc, char *argv[])
|
|||||||
// I need coarse Sf (Ai), fine Sf (dAi) and fine Cf(r) to calculate Fij
|
// I need coarse Sf (Ai), fine Sf (dAi) and fine Cf(r) to calculate Fij
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
pointField compactCoarseCf(map.constructSize(), pTraits<vector>::zero);
|
pointField compactCoarseCf(map.constructSize(), Zero);
|
||||||
pointField compactCoarseSf(map.constructSize(), pTraits<vector>::zero);
|
pointField compactCoarseSf(map.constructSize(), Zero);
|
||||||
List<List<point>> compactFineSf(map.constructSize());
|
List<List<point>> compactFineSf(map.constructSize());
|
||||||
List<List<point>> compactFineCf(map.constructSize());
|
List<List<point>> compactFineCf(map.constructSize());
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -34,8 +34,8 @@ namespace Foam
|
|||||||
|
|
||||||
atmBoundaryLayer::atmBoundaryLayer()
|
atmBoundaryLayer::atmBoundaryLayer()
|
||||||
:
|
:
|
||||||
flowDir_(pTraits<vector>::zero),
|
flowDir_(Zero),
|
||||||
zDir_(pTraits<vector>::zero),
|
zDir_(Zero),
|
||||||
kappa_(0.41),
|
kappa_(0.41),
|
||||||
Cmu_(0.09),
|
Cmu_(0.09),
|
||||||
Uref_(0),
|
Uref_(0),
|
||||||
|
|||||||
@ -209,9 +209,9 @@ nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
nutWallFunctionFvPatchScalarField(p, iF),
|
nutWallFunctionFvPatchScalarField(p, iF),
|
||||||
roughnessHeight_(pTraits<scalar>::zero),
|
roughnessHeight_(Zero),
|
||||||
roughnessConstant_(pTraits<scalar>::zero),
|
roughnessConstant_(Zero),
|
||||||
roughnessFactor_(pTraits<scalar>::zero)
|
roughnessFactor_(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2215,11 +2215,11 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::fvMeshDistribute::distribute
|
|||||||
// from nothing so explicitly reset.
|
// from nothing so explicitly reset.
|
||||||
initPatchFields<volScalarField, processorFvPatchField<scalar>>
|
initPatchFields<volScalarField, processorFvPatchField<scalar>>
|
||||||
(
|
(
|
||||||
pTraits<scalar>::zero
|
Zero
|
||||||
);
|
);
|
||||||
initPatchFields<volVectorField, processorFvPatchField<vector>>
|
initPatchFields<volVectorField, processorFvPatchField<vector>>
|
||||||
(
|
(
|
||||||
pTraits<vector>::zero
|
Zero
|
||||||
);
|
);
|
||||||
initPatchFields
|
initPatchFields
|
||||||
<
|
<
|
||||||
@ -2227,24 +2227,24 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::fvMeshDistribute::distribute
|
|||||||
processorFvPatchField<sphericalTensor>
|
processorFvPatchField<sphericalTensor>
|
||||||
>
|
>
|
||||||
(
|
(
|
||||||
pTraits<sphericalTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
initPatchFields<volSymmTensorField, processorFvPatchField<symmTensor>>
|
initPatchFields<volSymmTensorField, processorFvPatchField<symmTensor>>
|
||||||
(
|
(
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
initPatchFields<volTensorField, processorFvPatchField<tensor>>
|
initPatchFields<volTensorField, processorFvPatchField<tensor>>
|
||||||
(
|
(
|
||||||
pTraits<tensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
|
|
||||||
initPatchFields<surfaceScalarField, processorFvsPatchField<scalar>>
|
initPatchFields<surfaceScalarField, processorFvsPatchField<scalar>>
|
||||||
(
|
(
|
||||||
pTraits<scalar>::zero
|
Zero
|
||||||
);
|
);
|
||||||
initPatchFields<surfaceVectorField, processorFvsPatchField<vector>>
|
initPatchFields<surfaceVectorField, processorFvsPatchField<vector>>
|
||||||
(
|
(
|
||||||
pTraits<vector>::zero
|
Zero
|
||||||
);
|
);
|
||||||
initPatchFields
|
initPatchFields
|
||||||
<
|
<
|
||||||
@ -2252,7 +2252,7 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::fvMeshDistribute::distribute
|
|||||||
processorFvsPatchField<sphericalTensor>
|
processorFvsPatchField<sphericalTensor>
|
||||||
>
|
>
|
||||||
(
|
(
|
||||||
pTraits<sphericalTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
initPatchFields
|
initPatchFields
|
||||||
<
|
<
|
||||||
@ -2260,11 +2260,11 @@ Foam::autoPtr<Foam::mapDistributePolyMesh> Foam::fvMeshDistribute::distribute
|
|||||||
processorFvsPatchField<symmTensor>
|
processorFvsPatchField<symmTensor>
|
||||||
>
|
>
|
||||||
(
|
(
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
initPatchFields<surfaceTensorField, processorFvsPatchField<tensor>>
|
initPatchFields<surfaceTensorField, processorFvsPatchField<tensor>>
|
||||||
(
|
(
|
||||||
pTraits<tensor>::zero
|
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) 2012-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -107,35 +107,35 @@ Foam::label Foam::fvMeshTools::addPatch
|
|||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<scalar>::zero
|
Zero
|
||||||
);
|
);
|
||||||
addPatchFields<volVectorField>
|
addPatchFields<volVectorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<vector>::zero
|
Zero
|
||||||
);
|
);
|
||||||
addPatchFields<volSphericalTensorField>
|
addPatchFields<volSphericalTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<sphericalTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
addPatchFields<volSymmTensorField>
|
addPatchFields<volSymmTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
addPatchFields<volTensorField>
|
addPatchFields<volTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<tensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
|
|
||||||
// Surface fields
|
// Surface fields
|
||||||
@ -145,35 +145,35 @@ Foam::label Foam::fvMeshTools::addPatch
|
|||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<scalar>::zero
|
Zero
|
||||||
);
|
);
|
||||||
addPatchFields<surfaceVectorField>
|
addPatchFields<surfaceVectorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<vector>::zero
|
Zero
|
||||||
);
|
);
|
||||||
addPatchFields<surfaceSphericalTensorField>
|
addPatchFields<surfaceSphericalTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<sphericalTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
addPatchFields<surfaceSymmTensorField>
|
addPatchFields<surfaceSymmTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
addPatchFields<surfaceTensorField>
|
addPatchFields<surfaceTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchFieldDict,
|
patchFieldDict,
|
||||||
defaultPatchFieldType,
|
defaultPatchFieldType,
|
||||||
pTraits<tensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create reordering list
|
// Create reordering list
|
||||||
@ -237,36 +237,36 @@ void Foam::fvMeshTools::setPatchFields
|
|||||||
|
|
||||||
void Foam::fvMeshTools::zeroPatchFields(fvMesh& mesh, const label patchI)
|
void Foam::fvMeshTools::zeroPatchFields(fvMesh& mesh, const label patchI)
|
||||||
{
|
{
|
||||||
setPatchFields<volScalarField>(mesh, patchI, pTraits<scalar>::zero);
|
setPatchFields<volScalarField>(mesh, patchI, Zero);
|
||||||
setPatchFields<volVectorField>(mesh, patchI, pTraits<vector>::zero);
|
setPatchFields<volVectorField>(mesh, patchI, Zero);
|
||||||
setPatchFields<volSphericalTensorField>
|
setPatchFields<volSphericalTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchI,
|
patchI,
|
||||||
pTraits<sphericalTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
setPatchFields<volSymmTensorField>
|
setPatchFields<volSymmTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchI,
|
patchI,
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
setPatchFields<volTensorField>(mesh, patchI, pTraits<tensor>::zero);
|
setPatchFields<volTensorField>(mesh, patchI, Zero);
|
||||||
setPatchFields<surfaceScalarField>(mesh, patchI, pTraits<scalar>::zero);
|
setPatchFields<surfaceScalarField>(mesh, patchI, Zero);
|
||||||
setPatchFields<surfaceVectorField>(mesh, patchI, pTraits<vector>::zero);
|
setPatchFields<surfaceVectorField>(mesh, patchI, Zero);
|
||||||
setPatchFields<surfaceSphericalTensorField>
|
setPatchFields<surfaceSphericalTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchI,
|
patchI,
|
||||||
pTraits<sphericalTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
setPatchFields<surfaceSymmTensorField>
|
setPatchFields<surfaceSymmTensorField>
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
patchI,
|
patchI,
|
||||||
pTraits<symmTensor>::zero
|
Zero
|
||||||
);
|
);
|
||||||
setPatchFields<surfaceTensorField>(mesh, patchI, pTraits<tensor>::zero);
|
setPatchFields<surfaceTensorField>(mesh, patchI, Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -155,7 +155,7 @@ Foam::motionSmootherAlgo::avg
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
fld.mesh(),
|
fld.mesh(),
|
||||||
dimensioned<Type>("zero", fld.dimensions(), pTraits<Type>::zero)
|
dimensioned<Type>("zero", fld.dimensions(), Zero)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
GeometricField<Type, pointPatchField, pointMesh>& res = tres.ref();
|
GeometricField<Type, pointPatchField, pointMesh>& res = tres.ref();
|
||||||
@ -197,7 +197,7 @@ Foam::motionSmootherAlgo::avg
|
|||||||
mesh,
|
mesh,
|
||||||
res,
|
res,
|
||||||
plusEqOp<Type>(),
|
plusEqOp<Type>(),
|
||||||
pTraits<Type>::zero // null value
|
Type(Zero) // null value
|
||||||
);
|
);
|
||||||
syncTools::syncPointList
|
syncTools::syncPointList
|
||||||
(
|
(
|
||||||
|
|||||||
@ -36,7 +36,7 @@ Foam::fixedProfileFvPatchField<Type>::fixedProfileFvPatchField
|
|||||||
:
|
:
|
||||||
fixedValueFvPatchField<Type>(p, iF),
|
fixedValueFvPatchField<Type>(p, iF),
|
||||||
profile_(),
|
profile_(),
|
||||||
dir_(pTraits<vector>::zero),
|
dir_(Zero),
|
||||||
origin_(0)
|
origin_(0)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ Foam::fixedProfileFvPatchField<Type>::fixedProfileFvPatchField
|
|||||||
:
|
:
|
||||||
fixedValueFvPatchField<Type>(p, iF, fld),
|
fixedValueFvPatchField<Type>(p, iF, fld),
|
||||||
profile_(),
|
profile_(),
|
||||||
dir_(pTraits<vector>::zero),
|
dir_(Zero),
|
||||||
origin_(0)
|
origin_(0)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -95,7 +95,7 @@ Foam::fixedValueFvsPatchField<Type>::valueInternalCoeffs
|
|||||||
{
|
{
|
||||||
return tmp<Field<Type>>
|
return tmp<Field<Type>>
|
||||||
(
|
(
|
||||||
new Field<Type>(this->size(), pTraits<Type>::zero)
|
new Field<Type>(this->size(), Zero)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@ steadyStateD2dt2Scheme<Type>::fvcD2dt2
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
vf.dimensions()/dimTime/dimTime,
|
vf.dimensions()/dimTime/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -95,7 +95,7 @@ steadyStateD2dt2Scheme<Type>::fvcD2dt2
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
rho.dimensions()*vf.dimensions()/dimTime/dimTime,
|
rho.dimensions()*vf.dimensions()/dimTime/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -178,7 +178,7 @@ CoEulerDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -201,7 +201,7 @@ CoEulerDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
),
|
),
|
||||||
calculatedFvPatchField<Type>::typeName
|
calculatedFvPatchField<Type>::typeName
|
||||||
)
|
)
|
||||||
|
|||||||
@ -162,7 +162,7 @@ CrankNicolsonDdtScheme<Type>::ddt0_
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dims/dimTime,
|
dims/dimTime,
|
||||||
pTraits<typename GeoField::value_type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -310,7 +310,7 @@ CrankNicolsonDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -68,7 +68,7 @@ EulerDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -90,7 +90,7 @@ EulerDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
),
|
),
|
||||||
calculatedFvPatchField<Type>::typeName
|
calculatedFvPatchField<Type>::typeName
|
||||||
)
|
)
|
||||||
|
|||||||
@ -178,7 +178,7 @@ SLTSDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -200,7 +200,7 @@ SLTSDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
),
|
),
|
||||||
calculatedFvPatchField<Type>::typeName
|
calculatedFvPatchField<Type>::typeName
|
||||||
)
|
)
|
||||||
|
|||||||
@ -106,7 +106,7 @@ backwardDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -130,7 +130,7 @@ backwardDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
),
|
),
|
||||||
calculatedFvPatchField<Type>::typeName
|
calculatedFvPatchField<Type>::typeName
|
||||||
)
|
)
|
||||||
|
|||||||
@ -74,7 +74,7 @@ localEulerDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -97,7 +97,7 @@ localEulerDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
),
|
),
|
||||||
calculatedFvPatchField<Type>::typeName
|
calculatedFvPatchField<Type>::typeName
|
||||||
)
|
)
|
||||||
|
|||||||
@ -61,7 +61,7 @@ steadyStateDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
dt.dimensions()/dimTime,
|
dt.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -90,7 +90,7 @@ steadyStateDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
vf.dimensions()/dimTime,
|
vf.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -120,7 +120,7 @@ steadyStateDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
rho.dimensions()*vf.dimensions()/dimTime,
|
rho.dimensions()*vf.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -150,7 +150,7 @@ steadyStateDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
rho.dimensions()*vf.dimensions()/dimTime,
|
rho.dimensions()*vf.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -181,7 +181,7 @@ steadyStateDdtScheme<Type>::fvcDdt
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
rho.dimensions()*vf.dimensions()/dimTime,
|
rho.dimensions()*vf.dimensions()/dimTime,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -295,7 +295,7 @@ steadyStateDdtScheme<Type>::fvcDdtUfCorr
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
Uf.dimensions()*dimArea/dimTime,
|
Uf.dimensions()*dimArea/dimTime,
|
||||||
pTraits<typename flux<Type>::type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -325,7 +325,7 @@ steadyStateDdtScheme<Type>::fvcDdtPhiCorr
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
phi.dimensions()/dimTime,
|
phi.dimensions()/dimTime,
|
||||||
pTraits<typename flux<Type>::type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -358,7 +358,7 @@ steadyStateDdtScheme<Type>::fvcDdtUfCorr
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
Uf.dimensions()*dimArea/dimTime,
|
Uf.dimensions()*dimArea/dimTime,
|
||||||
pTraits<typename flux<Type>::type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -391,7 +391,7 @@ steadyStateDdtScheme<Type>::fvcDdtPhiCorr
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
phi.dimensions()/dimTime,
|
phi.dimensions()/dimTime,
|
||||||
pTraits<typename flux<Type>::type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -65,7 +65,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<Type>("0", ssf.dimensions(), pTraits<Type>::zero),
|
dimensioned<Type>("0", ssf.dimensions(), Zero),
|
||||||
extrapolatedCalculatedFvPatchField<Type>::typeName
|
extrapolatedCalculatedFvPatchField<Type>::typeName
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -79,7 +79,7 @@ reconstruct
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
ssf.dimensions()/dimArea,
|
ssf.dimensions()/dimArea,
|
||||||
pTraits<GradType>::zero
|
Zero
|
||||||
),
|
),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
||||||
)
|
)
|
||||||
|
|||||||
@ -102,7 +102,7 @@ surfaceIntegrate
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
ssf.dimensions()/dimVol,
|
ssf.dimensions()/dimVol,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
),
|
),
|
||||||
extrapolatedCalculatedFvPatchField<Type>::typeName
|
extrapolatedCalculatedFvPatchField<Type>::typeName
|
||||||
)
|
)
|
||||||
@ -154,7 +154,7 @@ surfaceSum
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<Type>("0", ssf.dimensions(), pTraits<Type>::zero),
|
dimensioned<Type>("0", ssf.dimensions(), Zero),
|
||||||
extrapolatedCalculatedFvPatchField<Type>::typeName
|
extrapolatedCalculatedFvPatchField<Type>::typeName
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -75,7 +75,7 @@ Foam::fv::LeastSquaresGrad<Type, Stencil>::calcGrad
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
vtf.dimensions()/dimLength,
|
vtf.dimensions()/dimLength,
|
||||||
pTraits<GradType>::zero
|
Zero
|
||||||
),
|
),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
||||||
)
|
)
|
||||||
@ -89,7 +89,7 @@ Foam::fv::LeastSquaresGrad<Type, Stencil>::calcGrad
|
|||||||
|
|
||||||
// Construct flat version of vtf
|
// Construct flat version of vtf
|
||||||
// including all values referred to by the stencil
|
// including all values referred to by the stencil
|
||||||
List<Type> flatVtf(stencil.map().constructSize(), pTraits<Type>::zero);
|
List<Type> flatVtf(stencil.map().constructSize(), Zero);
|
||||||
|
|
||||||
// Insert internal values
|
// Insert internal values
|
||||||
forAll(vtf, celli)
|
forAll(vtf, celli)
|
||||||
|
|||||||
@ -65,7 +65,7 @@ Foam::fv::gaussGrad<Type>::gradf
|
|||||||
(
|
(
|
||||||
"0",
|
"0",
|
||||||
ssf.dimensions()/dimLength,
|
ssf.dimensions()/dimLength,
|
||||||
pTraits<GradType>::zero
|
Zero
|
||||||
),
|
),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
||||||
)
|
)
|
||||||
|
|||||||
@ -71,7 +71,7 @@ Foam::fv::leastSquaresGrad<Type>::calcGrad
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
vsf.dimensions()/dimLength,
|
vsf.dimensions()/dimLength,
|
||||||
pTraits<GradType>::zero
|
Zero
|
||||||
),
|
),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
||||||
)
|
)
|
||||||
|
|||||||
@ -116,7 +116,7 @@ Foam::fv::faceCorrectedSnGrad<Type>::fullGradCorrection
|
|||||||
sfCorr[facei] = dCorr&fgrad;
|
sfCorr[facei] = dCorr&fgrad;
|
||||||
}
|
}
|
||||||
|
|
||||||
tsfCorr.ref().boundaryField() = pTraits<Type>::zero;
|
tsfCorr.ref().boundaryField() = Zero;
|
||||||
|
|
||||||
return tsfCorr;
|
return tsfCorr;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -249,10 +249,10 @@ void Foam::fvMatrix<Type>::setValuesFromList
|
|||||||
mesh.boundaryMesh()[patchi].whichFace(facei);
|
mesh.boundaryMesh()[patchi].whichFace(facei);
|
||||||
|
|
||||||
internalCoeffs_[patchi][patchFacei] =
|
internalCoeffs_[patchi][patchFacei] =
|
||||||
pTraits<Type>::zero;
|
Zero;
|
||||||
|
|
||||||
boundaryCoeffs_[patchi][patchFacei] =
|
boundaryCoeffs_[patchi][patchFacei] =
|
||||||
pTraits<Type>::zero;
|
Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -273,7 +273,7 @@ Foam::fvMatrix<Type>::fvMatrix
|
|||||||
lduMatrix(psi.mesh()),
|
lduMatrix(psi.mesh()),
|
||||||
psi_(psi),
|
psi_(psi),
|
||||||
dimensions_(ds),
|
dimensions_(ds),
|
||||||
source_(psi.size(), pTraits<Type>::zero),
|
source_(psi.size(), Zero),
|
||||||
internalCoeffs_(psi.mesh().boundary().size()),
|
internalCoeffs_(psi.mesh().boundary().size()),
|
||||||
boundaryCoeffs_(psi.mesh().boundary().size()),
|
boundaryCoeffs_(psi.mesh().boundary().size()),
|
||||||
faceFluxCorrectionPtr_(NULL)
|
faceFluxCorrectionPtr_(NULL)
|
||||||
@ -293,7 +293,7 @@ Foam::fvMatrix<Type>::fvMatrix
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
psi.mesh().boundary()[patchI].size(),
|
psi.mesh().boundary()[patchI].size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -303,7 +303,7 @@ Foam::fvMatrix<Type>::fvMatrix
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
psi.mesh().boundary()[patchI].size(),
|
psi.mesh().boundary()[patchI].size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -433,7 +433,7 @@ Foam::fvMatrix<Type>::fvMatrix
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
psi.mesh().boundary()[patchI].size(),
|
psi.mesh().boundary()[patchI].size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -443,7 +443,7 @@ Foam::fvMatrix<Type>::fvMatrix
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
psi.mesh().boundary()[patchI].size(),
|
psi.mesh().boundary()[patchI].size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -2292,7 +2292,7 @@ Foam::operator&
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Mphi.internalField() = pTraits<Type>::zero;
|
Mphi.internalField() = Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
Mphi.internalField() += M.lduMatrix::H(psi.field()) + M.source();
|
Mphi.internalField() += M.lduMatrix::H(psi.field()) + M.source();
|
||||||
|
|||||||
@ -70,7 +70,7 @@ Foam::tmp
|
|||||||
(
|
(
|
||||||
fld.name(),
|
fld.name(),
|
||||||
fld.dimensions(),
|
fld.dimensions(),
|
||||||
pTraits<WeightedType>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -37,7 +37,7 @@ void Foam::extendedCellToFaceStencil::collectData
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
// 1. Construct cell data in compact addressing
|
// 1. Construct cell data in compact addressing
|
||||||
List<Type> flatFld(map.constructSize(), pTraits<Type>::zero);
|
List<Type> flatFld(map.constructSize(), Zero);
|
||||||
|
|
||||||
// Insert my internal values
|
// Insert my internal values
|
||||||
forAll(fld, cellI)
|
forAll(fld, cellI)
|
||||||
@ -114,7 +114,7 @@ Foam::extendedCellToFaceStencil::weightedSum
|
|||||||
(
|
(
|
||||||
fld.name(),
|
fld.name(),
|
||||||
fld.dimensions(),
|
fld.dimensions(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -63,7 +63,7 @@ Foam::extendedUpwindCellToFaceStencil::weightedSum
|
|||||||
(
|
(
|
||||||
fld.name(),
|
fld.name(),
|
||||||
fld.dimensions(),
|
fld.dimensions(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -37,7 +37,7 @@ void Foam::extendedFaceToCellStencil::collectData
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
// 1. Construct face data in compact addressing
|
// 1. Construct face data in compact addressing
|
||||||
List<Type> flatFld(map.constructSize(), pTraits<Type>::zero);
|
List<Type> flatFld(map.constructSize(), Zero);
|
||||||
|
|
||||||
// Insert my internal values
|
// Insert my internal values
|
||||||
forAll(fld, cellI)
|
forAll(fld, cellI)
|
||||||
@ -108,7 +108,7 @@ Foam::extendedFaceToCellStencil::weightedSum
|
|||||||
(
|
(
|
||||||
fld.name(),
|
fld.name(),
|
||||||
fld.dimensions(),
|
fld.dimensions(),
|
||||||
pTraits<Type>::zero
|
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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -68,7 +68,7 @@ Type Foam::interpolationCellPointFace<Type>::interpolate
|
|||||||
scalar phi[4], phiCandidate[4];
|
scalar phi[4], phiCandidate[4];
|
||||||
label tetLabelCandidate[2], tetPointLabels[2];
|
label tetLabelCandidate[2], tetPointLabels[2];
|
||||||
|
|
||||||
Type t = pTraits<Type>::zero;
|
Type t = Zero;
|
||||||
|
|
||||||
// only use face information when the position is on a face
|
// only use face information when the position is on a face
|
||||||
if (faceI < 0)
|
if (faceI < 0)
|
||||||
|
|||||||
@ -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
|
||||||
@ -35,7 +35,7 @@ inline Type Foam::pointMVCWeight::interpolate
|
|||||||
{
|
{
|
||||||
const labelList& vertices = psip.mesh()().cellPoints()[cellIndex_];
|
const labelList& vertices = psip.mesh()().cellPoints()[cellIndex_];
|
||||||
|
|
||||||
Type t = pTraits<Type>::zero;
|
Type t = Zero;
|
||||||
forAll(vertices, i)
|
forAll(vertices, i)
|
||||||
{
|
{
|
||||||
t += psip[vertices[i]]*weights_[i];
|
t += psip[vertices[i]]*weights_[i];
|
||||||
|
|||||||
@ -175,7 +175,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (!sfCorr.boundaryField()[pi].coupled())
|
if (!sfCorr.boundaryField()[pi].coupled())
|
||||||
{
|
{
|
||||||
sfCorr.boundaryField()[pi] = pTraits<Type>::zero;
|
sfCorr.boundaryField()[pi] = Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -51,7 +51,7 @@ Foam::linearUpwind<Type>::correction
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<Type>(vf.name(), vf.dimensions(), pTraits<Type>::zero)
|
dimensioned<Type>(vf.name(), vf.dimensions(), Zero)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ Foam::linearUpwindV<Type>::correction
|
|||||||
(
|
(
|
||||||
vf.name(),
|
vf.name(),
|
||||||
vf.dimensions(),
|
vf.dimensions(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -222,7 +222,7 @@ public:
|
|||||||
if (mesh_.isInternalFace(facei))
|
if (mesh_.isInternalFace(facei))
|
||||||
{
|
{
|
||||||
// Remove correction
|
// Remove correction
|
||||||
corr[facei] = pTraits<Type>::zero;
|
corr[facei] = Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -166,7 +166,7 @@ correction
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pSfCorr = pTraits<Type>::zero;
|
pSfCorr = Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -152,7 +152,7 @@ public:
|
|||||||
(
|
(
|
||||||
vf.name(),
|
vf.name(),
|
||||||
vf.dimensions(),
|
vf.dimensions(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -143,7 +143,7 @@ void Foam::volPointInterpolation::interpolateInternalField
|
|||||||
const scalarList& pw = pointWeights_[pointi];
|
const scalarList& pw = pointWeights_[pointi];
|
||||||
const labelList& ppc = pointCells[pointi];
|
const labelList& ppc = pointCells[pointi];
|
||||||
|
|
||||||
pf[pointi] = pTraits<Type>::zero;
|
pf[pointi] = Zero;
|
||||||
|
|
||||||
forAll(ppc, pointCelli)
|
forAll(ppc, pointCelli)
|
||||||
{
|
{
|
||||||
@ -192,7 +192,7 @@ Foam::tmp<Foam::Field<Type>> Foam::volPointInterpolation::flatBoundaryField
|
|||||||
|
|
||||||
forAll(pp, i)
|
forAll(pp, i)
|
||||||
{
|
{
|
||||||
boundaryVals[bFaceI++] = pTraits<Type>::zero;
|
boundaryVals[bFaceI++] = Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -231,7 +231,7 @@ void Foam::volPointInterpolation::interpolateBoundaryField
|
|||||||
|
|
||||||
Type& val = pfi[pointI];
|
Type& val = pfi[pointI];
|
||||||
|
|
||||||
val = pTraits<Type>::zero;
|
val = Zero;
|
||||||
forAll(pFaces, j)
|
forAll(pFaces, j)
|
||||||
{
|
{
|
||||||
if (boundaryIsPatchFace_[pFaces[j]])
|
if (boundaryIsPatchFace_[pFaces[j]])
|
||||||
|
|||||||
@ -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
|
||||||
@ -46,7 +46,7 @@ void Foam::pairPatchAgglomeration::restrictField
|
|||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
cf = pTraits<Type>::zero;
|
cf = Zero;
|
||||||
|
|
||||||
forAll(ff, i)
|
forAll(ff, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -46,10 +46,10 @@ timeVaryingMappedFixedValuePointPatchField
|
|||||||
sampleTimes_(0),
|
sampleTimes_(0),
|
||||||
startSampleTime_(-1),
|
startSampleTime_(-1),
|
||||||
startSampledValues_(0),
|
startSampledValues_(0),
|
||||||
startAverage_(pTraits<Type>::zero),
|
startAverage_(Zero),
|
||||||
endSampleTime_(-1),
|
endSampleTime_(-1),
|
||||||
endSampledValues_(0),
|
endSampledValues_(0),
|
||||||
endAverage_(pTraits<Type>::zero),
|
endAverage_(Zero),
|
||||||
offset_()
|
offset_()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -74,10 +74,10 @@ timeVaryingMappedFixedValuePointPatchField
|
|||||||
sampleTimes_(0),
|
sampleTimes_(0),
|
||||||
startSampleTime_(-1),
|
startSampleTime_(-1),
|
||||||
startSampledValues_(0),
|
startSampledValues_(0),
|
||||||
startAverage_(pTraits<Type>::zero),
|
startAverage_(Zero),
|
||||||
endSampleTime_(-1),
|
endSampleTime_(-1),
|
||||||
endSampledValues_(0),
|
endSampledValues_(0),
|
||||||
endAverage_(pTraits<Type>::zero),
|
endAverage_(Zero),
|
||||||
offset_
|
offset_
|
||||||
(
|
(
|
||||||
ptf.offset_.valid()
|
ptf.offset_.valid()
|
||||||
@ -113,10 +113,10 @@ timeVaryingMappedFixedValuePointPatchField
|
|||||||
sampleTimes_(0),
|
sampleTimes_(0),
|
||||||
startSampleTime_(-1),
|
startSampleTime_(-1),
|
||||||
startSampledValues_(0),
|
startSampledValues_(0),
|
||||||
startAverage_(pTraits<Type>::zero),
|
startAverage_(Zero),
|
||||||
endSampleTime_(-1),
|
endSampleTime_(-1),
|
||||||
endSampledValues_(0),
|
endSampledValues_(0),
|
||||||
endAverage_(pTraits<Type>::zero),
|
endAverage_(Zero),
|
||||||
offset_()
|
offset_()
|
||||||
{
|
{
|
||||||
if (dict.found("offset"))
|
if (dict.found("offset"))
|
||||||
|
|||||||
@ -182,7 +182,7 @@ void Foam::fv::rotorDiskSource::writeField
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensioned<Type>("zero", dimless, pTraits<Type>::zero)
|
dimensioned<Type>("zero", dimless, 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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -157,7 +157,7 @@ void Foam::fv::SemiImplicitSource<Type>::addSup
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
eqn.dimensions()/dimVolume,
|
eqn.dimensions()/dimVolume,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
),
|
),
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|||||||
@ -69,8 +69,8 @@ public:
|
|||||||
//- Constructor
|
//- Constructor
|
||||||
integrationResult()
|
integrationResult()
|
||||||
:
|
:
|
||||||
value_(pTraits<Type>::zero),
|
value_(Zero),
|
||||||
average_(pTraits<Type>::zero)
|
average_(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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -32,7 +32,7 @@ Foam::PairCollisionRecord<Type>::PairCollisionRecord()
|
|||||||
:
|
:
|
||||||
origProcOfOther_(0),
|
origProcOfOther_(0),
|
||||||
origIdOfOther_(-1),
|
origIdOfOther_(-1),
|
||||||
data_(pTraits<Type>::zero)
|
data_(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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -38,7 +38,7 @@ Foam::WallCollisionRecord<Type>::WallCollisionRecord()
|
|||||||
:
|
:
|
||||||
accessed_(false),
|
accessed_(false),
|
||||||
pRel_(),
|
pRel_(),
|
||||||
data_(pTraits<Type>::zero)
|
data_(Zero)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ Foam::AveragingMethod<Type>::AveragingMethod
|
|||||||
{
|
{
|
||||||
FieldField<Field, Type>::append
|
FieldField<Field, Type>::append
|
||||||
(
|
(
|
||||||
new Field<Type>(size[i], pTraits<Type>::zero)
|
new Field<Type>(size[i], Zero)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -161,7 +161,7 @@ bool Foam::AveragingMethod<Type>::write() const
|
|||||||
mesh_
|
mesh_
|
||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensioned<Type>("zero", dimless, pTraits<Type>::zero)
|
dimensioned<Type>("zero", dimless, Zero)
|
||||||
);
|
);
|
||||||
GeometricField<TypeGrad, fvPatchField, volMesh> cellGrad
|
GeometricField<TypeGrad, fvPatchField, volMesh> cellGrad
|
||||||
(
|
(
|
||||||
@ -172,7 +172,7 @@ bool Foam::AveragingMethod<Type>::write() const
|
|||||||
mesh_
|
mesh_
|
||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensioned<TypeGrad>("zero", dimless, pTraits<TypeGrad>::zero)
|
dimensioned<TypeGrad>("zero", dimless, Zero)
|
||||||
);
|
);
|
||||||
GeometricField<Type, pointPatchField, pointMesh> pointValue
|
GeometricField<Type, pointPatchField, pointMesh> pointValue
|
||||||
(
|
(
|
||||||
@ -183,7 +183,7 @@ bool Foam::AveragingMethod<Type>::write() const
|
|||||||
mesh_
|
mesh_
|
||||||
),
|
),
|
||||||
pointMesh_,
|
pointMesh_,
|
||||||
dimensioned<Type>("zero", dimless, pTraits<Type>::zero)
|
dimensioned<Type>("zero", dimless, Zero)
|
||||||
);
|
);
|
||||||
GeometricField<TypeGrad, pointPatchField, pointMesh> pointGrad
|
GeometricField<TypeGrad, pointPatchField, pointMesh> pointGrad
|
||||||
(
|
(
|
||||||
@ -194,7 +194,7 @@ bool Foam::AveragingMethod<Type>::write() const
|
|||||||
mesh_
|
mesh_
|
||||||
),
|
),
|
||||||
pointMesh_,
|
pointMesh_,
|
||||||
dimensioned<TypeGrad>("zero", dimless, pTraits<TypeGrad>::zero)
|
dimensioned<TypeGrad>("zero", dimless, Zero)
|
||||||
);
|
);
|
||||||
|
|
||||||
// tet-volume weighted sums
|
// tet-volume weighted sums
|
||||||
|
|||||||
@ -77,7 +77,7 @@ void Foam::AveragingMethods::Basic<Type>::updateGrad()
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
this->mesh_,
|
this->mesh_,
|
||||||
dimensioned<Type>("zero", dimless, pTraits<Type>::zero),
|
dimensioned<Type>("zero", dimless, Zero),
|
||||||
zeroGradientFvPatchField<Type>::typeName
|
zeroGradientFvPatchField<Type>::typeName
|
||||||
);
|
);
|
||||||
tempData.internalField() = data_;
|
tempData.internalField() = data_;
|
||||||
|
|||||||
@ -41,7 +41,7 @@ void Foam::bufferedAccumulator<Type>::accumulateAndResetBuffer(const label b)
|
|||||||
|
|
||||||
averagesTaken_++;
|
averagesTaken_++;
|
||||||
|
|
||||||
(*this)[b] = Field<Type>(bufferLength(), pTraits<Type>::zero);
|
(*this)[b] = Field<Type>(bufferLength(), Zero);
|
||||||
|
|
||||||
bufferOffsets_[b] = 0;
|
bufferOffsets_[b] = 0;
|
||||||
}
|
}
|
||||||
@ -112,7 +112,7 @@ void Foam::bufferedAccumulator<Type>::setSizes
|
|||||||
|
|
||||||
forAll((*this), b)
|
forAll((*this), b)
|
||||||
{
|
{
|
||||||
(*this)[b] = Field<Type>(bufferLength, pTraits<Type>::zero);
|
(*this)[b] = Field<Type>(bufferLength, Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
averagesTaken_ = 0;
|
averagesTaken_ = 0;
|
||||||
@ -187,7 +187,7 @@ Foam::Field<Type> Foam::bufferedAccumulator<Type>::averaged() const
|
|||||||
<< ". Returning empty field."
|
<< ". Returning empty field."
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
return Field<Type>(bufferLength(), pTraits<Type>::zero);
|
return Field<Type>(bufferLength(), Zero);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ Foam::Field<Type> Foam::bufferedAccumulator<Type>::averaged() const
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
void Foam::bufferedAccumulator<Type>::resetAveraging()
|
void Foam::bufferedAccumulator<Type>::resetAveraging()
|
||||||
{
|
{
|
||||||
accumulationBuffer() = Field<Type>(bufferLength(), pTraits<Type>::zero);
|
accumulationBuffer() = Field<Type>(bufferLength(), Zero);
|
||||||
|
|
||||||
averagesTaken_ = 0;
|
averagesTaken_ = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,7 @@ void Foam::correlationFunction<Type>::setTimesAndSizes
|
|||||||
Field<Type>
|
Field<Type>
|
||||||
(
|
(
|
||||||
tZeroBufferSize,
|
tZeroBufferSize,
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,7 @@ zeroFixedValuePointPatchField
|
|||||||
:
|
:
|
||||||
fixedValuePointPatchField<Type>(p, iF, dict, false)
|
fixedValuePointPatchField<Type>(p, iF, dict, false)
|
||||||
{
|
{
|
||||||
fixedValuePointPatchField<Type>::operator=(pTraits<Type>::zero);
|
fixedValuePointPatchField<Type>::operator=(Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ zeroFixedValuePointPatchField
|
|||||||
fixedValuePointPatchField<Type>(ptf, p, iF, mapper)
|
fixedValuePointPatchField<Type>(ptf, p, iF, mapper)
|
||||||
{
|
{
|
||||||
// For safety re-evaluate
|
// For safety re-evaluate
|
||||||
fixedValuePointPatchField<Type>::operator=(pTraits<Type>::zero);
|
fixedValuePointPatchField<Type>::operator=(Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ zeroFixedValuePointPatchField
|
|||||||
fixedValuePointPatchField<Type>(ptf, iF)
|
fixedValuePointPatchField<Type>(ptf, iF)
|
||||||
{
|
{
|
||||||
// For safety re-evaluate
|
// For safety re-evaluate
|
||||||
fixedValuePointPatchField<Type>::operator=(pTraits<Type>::zero);
|
fixedValuePointPatchField<Type>::operator=(Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -70,7 +70,7 @@ T Foam::meshRefinement::gAverage
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
T sum = pTraits<T>::zero;
|
T sum = Zero;
|
||||||
label n = 0;
|
label n = 0;
|
||||||
|
|
||||||
forAll(values, i)
|
forAll(values, i)
|
||||||
@ -305,7 +305,7 @@ void Foam::meshRefinement::weightedSum
|
|||||||
}
|
}
|
||||||
|
|
||||||
sum.setSize(meshPoints.size());
|
sum.setSize(meshPoints.size());
|
||||||
sum = pTraits<Type>::zero;
|
sum = Zero;
|
||||||
|
|
||||||
forAll(edges, edgeI)
|
forAll(edges, edgeI)
|
||||||
{
|
{
|
||||||
@ -329,7 +329,7 @@ void Foam::meshRefinement::weightedSum
|
|||||||
meshPoints,
|
meshPoints,
|
||||||
sum,
|
sum,
|
||||||
plusEqOp<Type>(),
|
plusEqOp<Type>(),
|
||||||
pTraits<Type>::zero // null value
|
Type(Zero) // null value
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,7 @@ void Foam::snappyLayerDriver::averageNeighbours
|
|||||||
{
|
{
|
||||||
const pointField& pts = mesh.points();
|
const pointField& pts = mesh.points();
|
||||||
|
|
||||||
average = pTraits<Type>::zero;
|
average = Zero;
|
||||||
|
|
||||||
forAll(edges, edgeI)
|
forAll(edges, edgeI)
|
||||||
{
|
{
|
||||||
@ -77,7 +77,7 @@ void Foam::snappyLayerDriver::averageNeighbours
|
|||||||
meshPoints,
|
meshPoints,
|
||||||
average,
|
average,
|
||||||
plusEqOp<Type>(),
|
plusEqOp<Type>(),
|
||||||
pTraits<Type>::zero // null value
|
Zero // null value
|
||||||
);
|
);
|
||||||
|
|
||||||
average *= invSumWeight;
|
average *= invSumWeight;
|
||||||
|
|||||||
@ -1284,7 +1284,7 @@ Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToSource
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
srcAddress_.size(),
|
srcAddress_.size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1329,7 +1329,7 @@ Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToTarget
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
tgtAddress_.size(),
|
tgtAddress_.size(),
|
||||||
pTraits<Type>::zero
|
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-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -70,7 +70,7 @@ void Foam::mappedPatchBase::distribute
|
|||||||
map().constructMap(),
|
map().constructMap(),
|
||||||
lst,
|
lst,
|
||||||
cop,
|
cop,
|
||||||
pTraits<Type>::zero
|
Type(Zero)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ void Foam::mappedPatchBase::reverseDistribute
|
|||||||
map().subMap(),
|
map().subMap(),
|
||||||
lst,
|
lst,
|
||||||
cop,
|
cop,
|
||||||
pTraits<Type>::zero
|
Type(Zero)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -75,7 +75,7 @@ Type Foam::fieldValues::cellSource::processValues
|
|||||||
const scalarField& weightField
|
const scalarField& weightField
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
Type result = pTraits<Type>::zero;
|
Type result = Zero;
|
||||||
switch (operation_)
|
switch (operation_)
|
||||||
{
|
{
|
||||||
case opSum:
|
case opSum:
|
||||||
|
|||||||
@ -81,7 +81,7 @@ Foam::tmp<Foam::Field<Type>> Foam::fieldValues::faceSource::getFieldValues
|
|||||||
const faceList& faces = surfacePtr_().faces();
|
const faceList& faces = surfacePtr_().faces();
|
||||||
tmp<Field<Type>> tavg
|
tmp<Field<Type>> tavg
|
||||||
(
|
(
|
||||||
new Field<Type>(faces.size(), pTraits<Type>::zero)
|
new Field<Type>(faces.size(), Zero)
|
||||||
);
|
);
|
||||||
Field<Type>& avg = tavg.ref();
|
Field<Type>& avg = tavg.ref();
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ Type Foam::fieldValues::faceSource::processSameTypeValues
|
|||||||
const scalarField& weightField
|
const scalarField& weightField
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
Type result = pTraits<Type>::zero;
|
Type result = Zero;
|
||||||
switch (operation_)
|
switch (operation_)
|
||||||
{
|
{
|
||||||
case opSum:
|
case opSum:
|
||||||
@ -148,7 +148,7 @@ Type Foam::fieldValues::faceSource::processSameTypeValues
|
|||||||
<< pTraits<Type>::typeName
|
<< pTraits<Type>::typeName
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
|
|
||||||
result = pTraits<Type>::zero;
|
result = Zero;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case opSumDirectionBalance:
|
case opSumDirectionBalance:
|
||||||
@ -159,7 +159,7 @@ Type Foam::fieldValues::faceSource::processSameTypeValues
|
|||||||
<< pTraits<Type>::typeName
|
<< pTraits<Type>::typeName
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
|
|
||||||
result = pTraits<Type>::zero;
|
result = Zero;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case opAverage:
|
case opAverage:
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -36,7 +36,7 @@ Type Foam::fieldValues::fieldValueDelta::applyOperation
|
|||||||
const Type& value2
|
const Type& value2
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
Type result = pTraits<Type>::zero;
|
Type result = Zero;
|
||||||
|
|
||||||
switch (operation_)
|
switch (operation_)
|
||||||
{
|
{
|
||||||
@ -89,8 +89,8 @@ void Foam::fieldValues::fieldValueDelta::processFields(bool& found)
|
|||||||
const dictionary& results1 = source1Ptr_->resultDict();
|
const dictionary& results1 = source1Ptr_->resultDict();
|
||||||
const dictionary& results2 = source2Ptr_->resultDict();
|
const dictionary& results2 = source2Ptr_->resultDict();
|
||||||
|
|
||||||
Type r1(pTraits<Type>::zero);
|
Type r1(Zero);
|
||||||
Type r2(pTraits<Type>::zero);
|
Type r2(Zero);
|
||||||
|
|
||||||
forAll(fields1, i)
|
forAll(fields1, 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) 2012-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -63,7 +63,7 @@ Foam::calcFvcGrad::gradField(const word& gradName, const dimensionSet& dims)
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
dims/dimLength,
|
dims/dimLength,
|
||||||
pTraits<gradType>::zero
|
Zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -93,7 +93,7 @@ Foam::regionModels::regionModel::mapRegionPatchField
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
p.size(),
|
p.size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ Foam::regionModels::regionModel::mapRegionPatchInternalField
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
p.size(),
|
p.size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -182,7 +182,7 @@ thermalBaffle::thermalBaffle
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
dimEnergy/dimArea/dimTime,
|
dimEnergy/dimArea/dimTime,
|
||||||
pTraits<scalar>::zero
|
Zero
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
Q_
|
Q_
|
||||||
@ -200,7 +200,7 @@ thermalBaffle::thermalBaffle
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
dimEnergy/dimVolume/dimTime,
|
dimEnergy/dimVolume/dimTime,
|
||||||
pTraits<scalar>::zero
|
Zero
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
radiation_
|
radiation_
|
||||||
@ -242,7 +242,7 @@ thermalBaffle::thermalBaffle
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
dimEnergy/dimArea/dimTime,
|
dimEnergy/dimArea/dimTime,
|
||||||
pTraits<scalar>::zero
|
Zero
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
Q_
|
Q_
|
||||||
@ -260,7 +260,7 @@ thermalBaffle::thermalBaffle
|
|||||||
(
|
(
|
||||||
"zero",
|
"zero",
|
||||||
dimEnergy/dimVolume/dimTime,
|
dimEnergy/dimVolume/dimTime,
|
||||||
pTraits<scalar>::zero
|
Zero
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
radiation_
|
radiation_
|
||||||
|
|||||||
@ -111,7 +111,7 @@ void Foam::meshToMesh::mapSrcToTgt
|
|||||||
|
|
||||||
if (srcAddress.size())
|
if (srcAddress.size())
|
||||||
{
|
{
|
||||||
// result[cellI] = pTraits<Type>::zero;
|
// result[cellI] = Zero;
|
||||||
result[cellI] *= (1.0 - sum(srcWeight));
|
result[cellI] *= (1.0 - sum(srcWeight));
|
||||||
forAll(srcAddress, i)
|
forAll(srcAddress, i)
|
||||||
{
|
{
|
||||||
@ -131,7 +131,7 @@ void Foam::meshToMesh::mapSrcToTgt
|
|||||||
|
|
||||||
if (srcAddress.size())
|
if (srcAddress.size())
|
||||||
{
|
{
|
||||||
// result[cellI] = pTraits<Type>::zero;
|
// result[cellI] = Zero;
|
||||||
result[cellI] *= (1.0 - sum(srcWeight));
|
result[cellI] *= (1.0 - sum(srcWeight));
|
||||||
forAll(srcAddress, i)
|
forAll(srcAddress, i)
|
||||||
{
|
{
|
||||||
@ -157,7 +157,7 @@ Foam::tmp<Foam::Field<Type>> Foam::meshToMesh::mapSrcToTgt
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
tgtToSrcCellAddr_.size(),
|
tgtToSrcCellAddr_.size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -276,7 +276,7 @@ Foam::tmp<Foam::Field<Type>> Foam::meshToMesh::mapTgtToSrc
|
|||||||
new Field<Type>
|
new Field<Type>
|
||||||
(
|
(
|
||||||
srcToTgtCellAddr_.size(),
|
srcToTgtCellAddr_.size(),
|
||||||
pTraits<Type>::zero
|
Zero
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -362,7 +362,7 @@ void Foam::meshToMesh::mapSrcToTgt
|
|||||||
tgtField.rmap(tnewTgt(), identity(tgtField.size()));
|
tgtField.rmap(tnewTgt(), identity(tgtField.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
tgtField == pTraits<Type>::zero;
|
tgtField == Type(Zero);
|
||||||
|
|
||||||
AMIList[i].interpolateToTarget
|
AMIList[i].interpolateToTarget
|
||||||
(
|
(
|
||||||
@ -461,7 +461,7 @@ Foam::meshToMesh::mapSrcToTgt
|
|||||||
),
|
),
|
||||||
tgtMesh,
|
tgtMesh,
|
||||||
field.dimensions(),
|
field.dimensions(),
|
||||||
Field<Type>(tgtMesh.nCells(), pTraits<Type>::zero),
|
Field<Type>(tgtMesh.nCells(), Zero),
|
||||||
tgtPatchFields
|
tgtPatchFields
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -551,7 +551,7 @@ void Foam::meshToMesh::mapTgtToSrc
|
|||||||
srcField.rmap(tnewSrc(), identity(srcField.size()));
|
srcField.rmap(tnewSrc(), identity(srcField.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
srcField == pTraits<Type>::zero;
|
srcField == Type(Zero);
|
||||||
|
|
||||||
AMIList[i].interpolateToSource
|
AMIList[i].interpolateToSource
|
||||||
(
|
(
|
||||||
@ -650,7 +650,7 @@ Foam::meshToMesh::mapTgtToSrc
|
|||||||
),
|
),
|
||||||
srcMesh,
|
srcMesh,
|
||||||
field.dimensions(),
|
field.dimensions(),
|
||||||
Field<Type>(srcMesh.nCells(), pTraits<Type>::zero),
|
Field<Type>(srcMesh.nCells(), Zero),
|
||||||
srcPatchFields
|
srcPatchFields
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -70,7 +70,7 @@ void Foam::meshToMesh0::interpolateField
|
|||||||
const labelList& overlapCells = adr[celli];
|
const labelList& overlapCells = adr[celli];
|
||||||
const scalarList& w = weights[celli];
|
const scalarList& w = weights[celli];
|
||||||
|
|
||||||
Type f = pTraits<Type>::zero;
|
Type f = Zero;
|
||||||
forAll(overlapCells, i)
|
forAll(overlapCells, i)
|
||||||
{
|
{
|
||||||
label fromCelli = overlapCells[i];
|
label fromCelli = overlapCells[i];
|
||||||
|
|||||||
@ -468,7 +468,7 @@ Foam::label Foam::isoSurface::generateFaceTriPoints
|
|||||||
(
|
(
|
||||||
snappedPoint[pointI] != -1
|
snappedPoint[pointI] != -1
|
||||||
? snappedPoints[snappedPoint[pointI]]
|
? snappedPoints[snappedPoint[pointI]]
|
||||||
: pTraits<Type>::zero
|
: Type(Zero)
|
||||||
),
|
),
|
||||||
|
|
||||||
pVals[nextPointI],
|
pVals[nextPointI],
|
||||||
@ -477,7 +477,7 @@ Foam::label Foam::isoSurface::generateFaceTriPoints
|
|||||||
(
|
(
|
||||||
snappedPoint[nextPointI] != -1
|
snappedPoint[nextPointI] != -1
|
||||||
? snappedPoints[snappedPoint[nextPointI]]
|
? snappedPoints[snappedPoint[nextPointI]]
|
||||||
: pTraits<Type>::zero
|
: Type(Zero)
|
||||||
),
|
),
|
||||||
|
|
||||||
cVals[own],
|
cVals[own],
|
||||||
@ -486,7 +486,7 @@ Foam::label Foam::isoSurface::generateFaceTriPoints
|
|||||||
(
|
(
|
||||||
snappedCc[own] != -1
|
snappedCc[own] != -1
|
||||||
? snappedPoints[snappedCc[own]]
|
? snappedPoints[snappedCc[own]]
|
||||||
: pTraits<Type>::zero
|
: Type(Zero)
|
||||||
),
|
),
|
||||||
|
|
||||||
neiVal,
|
neiVal,
|
||||||
@ -582,7 +582,7 @@ void Foam::isoSurface::generateTriPoints
|
|||||||
(
|
(
|
||||||
snappedCc[nei[faceI]] != -1
|
snappedCc[nei[faceI]] != -1
|
||||||
? snappedPoints[snappedCc[nei[faceI]]]
|
? snappedPoints[snappedCc[nei[faceI]]]
|
||||||
: pTraits<Type>::zero
|
: Type(Zero)
|
||||||
),
|
),
|
||||||
|
|
||||||
triPoints,
|
triPoints,
|
||||||
@ -594,7 +594,7 @@ void Foam::isoSurface::generateTriPoints
|
|||||||
|
|
||||||
// Determine neighbouring snap status
|
// Determine neighbouring snap status
|
||||||
boolList neiSnapped(mesh_.nFaces()-mesh_.nInternalFaces(), false);
|
boolList neiSnapped(mesh_.nFaces()-mesh_.nInternalFaces(), false);
|
||||||
List<Type> neiSnappedPoint(neiSnapped.size(), pTraits<Type>::zero);
|
List<Type> neiSnappedPoint(neiSnapped.size(), Type(Zero));
|
||||||
forAll(patches, patchI)
|
forAll(patches, patchI)
|
||||||
{
|
{
|
||||||
const polyPatch& pp = patches[patchI];
|
const polyPatch& pp = patches[patchI];
|
||||||
@ -680,7 +680,7 @@ void Foam::isoSurface::generateTriPoints
|
|||||||
cVals.boundaryField()[patchI][i],
|
cVals.boundaryField()[patchI][i],
|
||||||
cCoords.boundaryField()[patchI][i],
|
cCoords.boundaryField()[patchI][i],
|
||||||
false,
|
false,
|
||||||
pTraits<Type>::zero,
|
Type(Zero),
|
||||||
|
|
||||||
triPoints,
|
triPoints,
|
||||||
triMeshCells
|
triMeshCells
|
||||||
@ -713,7 +713,7 @@ void Foam::isoSurface::generateTriPoints
|
|||||||
cVals.boundaryField()[patchI][i],
|
cVals.boundaryField()[patchI][i],
|
||||||
cCoords.boundaryField()[patchI][i],
|
cCoords.boundaryField()[patchI][i],
|
||||||
false, // fc not snapped
|
false, // fc not snapped
|
||||||
pTraits<Type>::zero,
|
Type(Zero),
|
||||||
|
|
||||||
triPoints,
|
triPoints,
|
||||||
triMeshCells
|
triMeshCells
|
||||||
@ -739,7 +739,7 @@ Foam::isoSurface::interpolate
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
// One value per point
|
// One value per point
|
||||||
tmp<Field<Type> > tvalues(new Field<Type>(nPoints, pTraits<Type>::zero));
|
tmp<Field<Type> > tvalues(new Field<Type>(nPoints, Type(Zero)));
|
||||||
Field<Type>& values = tvalues.ref();
|
Field<Type>& values = tvalues.ref();
|
||||||
labelList nValues(values.size(), 0);
|
labelList nValues(values.size(), 0);
|
||||||
|
|
||||||
|
|||||||
@ -49,7 +49,7 @@ bool Foam::sampledSurface::checkFieldSize(const Field<Type>& field) const
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
Type Foam::sampledSurface::integrate(const Field<Type>& field) const
|
Type Foam::sampledSurface::integrate(const Field<Type>& field) const
|
||||||
{
|
{
|
||||||
Type value = pTraits<Type>::zero;
|
Type value = Zero;
|
||||||
|
|
||||||
if (checkFieldSize(field))
|
if (checkFieldSize(field))
|
||||||
{
|
{
|
||||||
@ -73,7 +73,7 @@ Type Foam::sampledSurface::integrate(const tmp<Field<Type>>& field) const
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
Type Foam::sampledSurface::average(const Field<Type>& field) const
|
Type Foam::sampledSurface::average(const Field<Type>& field) const
|
||||||
{
|
{
|
||||||
Type value = pTraits<Type>::zero;
|
Type value = Zero;
|
||||||
|
|
||||||
if (checkFieldSize(field))
|
if (checkFieldSize(field))
|
||||||
{
|
{
|
||||||
@ -89,7 +89,7 @@ Type Foam::sampledSurface::average(const Field<Type>& field) const
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return pTraits<Type>::zero;
|
return Zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ Foam::sampledSurface::pointAverage
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<Type>("zero", dimless, pTraits<Type>::zero)
|
dimensioned<Type>("zero", dimless, Zero)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
GeometricField<Type, fvPatchField, volMesh>& cellAvg = tcellAvg.ref();
|
GeometricField<Type, fvPatchField, volMesh>& cellAvg = tcellAvg.ref();
|
||||||
|
|||||||
@ -56,7 +56,7 @@ Foam::sampledTriSurfaceMesh::sampleField
|
|||||||
|
|
||||||
// Create flat boundary field
|
// Create flat boundary field
|
||||||
|
|
||||||
Field<Type> bVals(nBnd, pTraits<Type>::zero);
|
Field<Type> bVals(nBnd, Zero);
|
||||||
|
|
||||||
forAll(vField.boundaryField(), patchI)
|
forAll(vField.boundaryField(), patchI)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -181,7 +181,7 @@ void Foam::nastranSurfaceWriter::writeTemplate
|
|||||||
const DynamicList<face>& dFaces = decomposedFaces[i];
|
const DynamicList<face>& dFaces = decomposedFaces[i];
|
||||||
forAll(dFaces, faceI)
|
forAll(dFaces, faceI)
|
||||||
{
|
{
|
||||||
Type v = pTraits<Type>::zero;
|
Type v = Zero;
|
||||||
const face& f = dFaces[faceI];
|
const face& f = dFaces[faceI];
|
||||||
|
|
||||||
forAll(f, fptI)
|
forAll(f, fptI)
|
||||||
|
|||||||
@ -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
|
||||||
@ -104,7 +104,7 @@ bool Foam::fileFormats::AC3DsurfaceFormat<Face>::read
|
|||||||
|
|
||||||
// number of vertices for this zone
|
// number of vertices for this zone
|
||||||
label nZonePoints = 0;
|
label nZonePoints = 0;
|
||||||
vector location(pTraits<vector>::zero);
|
vector location(Zero);
|
||||||
// tensor rotation(I);
|
// tensor rotation(I);
|
||||||
|
|
||||||
// Read all info for current zone
|
// Read all info for current zone
|
||||||
|
|||||||
@ -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
|
||||||
@ -96,7 +96,7 @@ void Foam::rawTopoChangerFvMesh::zeroUnmappedValues
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
*this,
|
*this,
|
||||||
dimensioned<Type>("0", fld.dimensions(), pTraits<Type>::zero)
|
dimensioned<Type>("0", fld.dimensions(), Zero)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user