mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
add verbose switch to check reactionHeat per particle
This commit is contained in:
@ -45,6 +45,7 @@ reactionHeat::reactionHeat
|
||||
energyModel(dict,sm),
|
||||
propsDict_(dict.subDict(typeName + "Props")),
|
||||
interpolation_(propsDict_.lookupOrDefault<bool>("interpolation",false)),
|
||||
verbose_(propsDict_.lookupOrDefault<bool>("verbose",false)),
|
||||
mesh_(sm.mesh()),
|
||||
maxSource_(1e30),
|
||||
reactionHeatName_(propsDict_.lookupOrDefault<word>("reactionHeatName","reactionHeat")),
|
||||
@ -97,6 +98,14 @@ void reactionHeat::calcEnergyContribution()
|
||||
|
||||
particleCloud_.dataExchangeM().getData(reactionHeatName_,"scalar-atom",reactionHeat_);
|
||||
|
||||
for(int index = 0;index < particleCloud_.numberOfParticles(); ++index)
|
||||
{
|
||||
if (verbose_ && index>=0 && index < 2)
|
||||
{
|
||||
Pout << "reactionHeat = " << reactionHeat_[index][0] << endl;
|
||||
}
|
||||
}
|
||||
|
||||
reactionHeatField_.primitiveFieldRef() = 0.0;
|
||||
reactionHeatField_.boundaryFieldRef() = 0.0;
|
||||
|
||||
|
||||
@ -47,6 +47,8 @@ protected:
|
||||
|
||||
bool interpolation_;
|
||||
|
||||
bool verbose_;
|
||||
|
||||
const fvMesh& mesh_;
|
||||
|
||||
scalar maxSource_;
|
||||
|
||||
Reference in New Issue
Block a user