diff --git a/src/lagrangian/cfdemParticle/subModels/chemistryModel/reactantPerParticle/reactantPerParticle.C b/src/lagrangian/cfdemParticle/subModels/chemistryModel/reactantPerParticle/reactantPerParticle.C index ecaad5a7..8e650c5b 100644 --- a/src/lagrangian/cfdemParticle/subModels/chemistryModel/reactantPerParticle/reactantPerParticle.C +++ b/src/lagrangian/cfdemParticle/subModels/chemistryModel/reactantPerParticle/reactantPerParticle.C @@ -56,6 +56,7 @@ reactantPerParticle::reactantPerParticle chemistryModel(dict,sm), propsDict_(dict.subDict(typeName + "Props")), mesh_(sm.mesh()), + verbose_(propsDict_.lookupOrDefault("verbose",false)), reactantPerParticle_(NULL), voidfractionFieldName_(propsDict_.lookupOrDefault("voidfractionFieldName","voidfraction")), voidfraction_(sm.mesh().lookupObject(voidfractionFieldName_)), @@ -144,6 +145,8 @@ void reactantPerParticle::execute() particlesPerCell= particlesPerCell_[cellI]; reactantPerParticle_[index][0] = voidfraction * cellvolume / particlesPerCell; } + + if (verbose_) Info << "reactantPerParticle_" << reactantPerParticle_[index][0] << endl; } // give DEM data diff --git a/src/lagrangian/cfdemParticle/subModels/chemistryModel/reactantPerParticle/reactantPerParticle.H b/src/lagrangian/cfdemParticle/subModels/chemistryModel/reactantPerParticle/reactantPerParticle.H index 0fe39037..2e369755 100644 --- a/src/lagrangian/cfdemParticle/subModels/chemistryModel/reactantPerParticle/reactantPerParticle.H +++ b/src/lagrangian/cfdemParticle/subModels/chemistryModel/reactantPerParticle/reactantPerParticle.H @@ -54,6 +54,8 @@ private: const fvMesh& mesh_; + bool verbose_; + mutable double **reactantPerParticle_; word voidfractionFieldName_;