diff --git a/applications/solvers/cfdemSolverRhoPimple/cfdemSolverRhoPimple.C b/applications/solvers/cfdemSolverRhoPimple/cfdemSolverRhoPimple.C index 03f706e3..0f91fbbf 100644 --- a/applications/solvers/cfdemSolverRhoPimple/cfdemSolverRhoPimple.C +++ b/applications/solvers/cfdemSolverRhoPimple/cfdemSolverRhoPimple.C @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) particleCloud.clockM().start(2,"Coupling"); bool hasEvolved = particleCloud.evolve(voidfraction,Us,U); - if(hasEvolved) + if(hasEvolved && smoothenForces) { particleCloud.smoothingM().smoothen(particleCloud.forceM(0).impParticleForces()); } diff --git a/applications/solvers/cfdemSolverRhoPimple/createFields.H b/applications/solvers/cfdemSolverRhoPimple/createFields.H index 366cc1d0..36fed5b0 100644 --- a/applications/solvers/cfdemSolverRhoPimple/createFields.H +++ b/applications/solvers/cfdemSolverRhoPimple/createFields.H @@ -94,21 +94,6 @@ Info<< "Reading thermophysical properties\n" << endl; dimensionedScalar("zero", dimensionSet(1,-1,-3,-1,0,0,0), 0.0) ); - /* Info<< "\nCreating thermal diffusivity field\n" << endl; - volScalarField thDiff - ( - IOobject - ( - "thDiff", - runTime.timeName(), - mesh, - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - mesh, - dimensionedScalar("zero", dimensionSet(0,2,-1,0,0,0,0), 0.0) - ); - */ Info<< "\nCreating thermal conductivity field\n" << endl; volScalarField thCond ( @@ -190,6 +175,17 @@ Info<< "Reading thermophysical properties\n" << endl; ) ); + bool smoothenForces + ( + pimple.dict().lookupOrDefault + ( + "smoothenForces", + false + ) + ); + if (smoothenForces) Info << "Smoothening implicit particle forces.\n" << endl; + else Info << "Not smoothening implicit particle forces.\n" << endl; + Info<< "Creating turbulence model\n" << endl; autoPtr turbulence (