Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required

This commit is contained in:
Henry Weller
2016-03-22 17:46:52 +00:00
parent aa89254c79
commit 730f89dc9d
82 changed files with 224 additions and 224 deletions

View File

@ -122,7 +122,7 @@ Foam::tmp<Foam::volScalarField> Foam::XiEqModels::basicSubGrid::XiEq() const
(
"zero",
nsv.dimensions(),
pTraits<symmTensor>::zero
Zero
)
);
ns.internalField() = nsv.internalField()*Cw;

View File

@ -108,7 +108,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::PDRDragModels::basic::Dcu() const
(
"zero",
dimMass/dimTime/pow(dimLength, 3),
pTraits<symmTensor>::zero
Zero
)
)
);

View File

@ -131,7 +131,7 @@ Foam::XiEqModel::calculateSchelkinEffect(const scalar uPrimeCoef) const
(
"zero",
nsv.dimensions(),
pTraits<symmTensor>::zero
Zero
)
);
ns.internalField() = nsv.internalField()*pow(mesh.V(), 2.0/3.0);