Give info about reactantPerParticle if verbose.
This commit is contained in:
@ -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
|
||||
|
||||
@ -54,6 +54,8 @@ private:
|
||||
|
||||
const fvMesh& mesh_;
|
||||
|
||||
bool verbose_;
|
||||
|
||||
mutable double **reactantPerParticle_;
|
||||
|
||||
word voidfractionFieldName_;
|
||||
|
||||
Reference in New Issue
Block a user