From 55f086bc86493ba1bd9a702cd597fa2ba3b27e7f Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 24 May 2018 16:45:53 +0100 Subject: [PATCH] populationBalanceModel/coalescenceModels/PrinceBlanch: Updated to compile with clang --- .../coalescenceModels/PrinceBlanch/PrinceBlanch.C | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/populationBalanceModel/coalescenceModels/PrinceBlanch/PrinceBlanch.C b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/populationBalanceModel/coalescenceModels/PrinceBlanch/PrinceBlanch.C index 030c689de..cf3b3e907 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/populationBalanceModel/coalescenceModels/PrinceBlanch/PrinceBlanch.C +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/populationBalanceModel/coalescenceModels/PrinceBlanch/PrinceBlanch.C @@ -47,6 +47,7 @@ namespace coalescenceModels } } +using Foam::constant::mathematical::pi; // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // @@ -69,8 +70,7 @@ PrinceBlanch // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -void -Foam::diameterModels::coalescenceModels::PrinceBlanch:: +void Foam::diameterModels::coalescenceModels::PrinceBlanch:: addToCoalescenceRate ( volScalarField& coalescenceRate, @@ -81,13 +81,13 @@ addToCoalescenceRate const phaseModel& continuousPhase = popBal_.continuousPhase(); const sizeGroup& fi = *popBal_.sizeGroups()[i]; const sizeGroup& fj = *popBal_.sizeGroups()[j]; - scalar pi = constant::mathematical::pi; const uniformDimensionedVectorField& g = popBal_.mesh().lookupObject("g"); - dimensionedScalar rij = 1.0/(1.0/fi.d() + 1.0/fj.d()); + dimensionedScalar rij(1.0/(1.0/fi.d() + 1.0/fj.d())); - volScalarField collisionEfficiency = + const volScalarField collisionEfficiency + ( exp ( - sqrt @@ -97,7 +97,8 @@ addToCoalescenceRate ) *log(h0_/hf_) *cbrt(popBal_.continuousTurbulence().epsilon())/pow(rij, 2.0/3.0) - ); + ) + ); if (turbulentCollisions_) { @@ -112,7 +113,7 @@ addToCoalescenceRate if (buoyantCollisions_) { - dimensionedScalar Sij = pi/4.0*sqr(fi.d() + fj.d()); + dimensionedScalar Sij(pi/4.0*sqr(fi.d() + fj.d())); coalescenceRate += (