Give info about reactantPerParticle if verbose.

This commit is contained in:
ekinaci
2018-08-14 10:35:08 +02:00
parent 3fb47021be
commit 80ddfcd6aa
2 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,7 @@ reactantPerParticle::reactantPerParticle
chemistryModel(dict,sm),
propsDict_(dict.subDict(typeName + "Props")),
mesh_(sm.mesh()),
verbose_(propsDict_.lookupOrDefault<bool>("verbose",false)),
reactantPerParticle_(NULL),
voidfractionFieldName_(propsDict_.lookupOrDefault<word>("voidfractionFieldName","voidfraction")),
voidfraction_(sm.mesh().lookupObject<volScalarField>(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

View File

@ -54,6 +54,8 @@ private:
const fvMesh& mesh_;
bool verbose_;
mutable double **reactantPerParticle_;
word voidfractionFieldName_;