mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
lagrangian::StandardWallInteraction: accumulate escaping mass
Do not set accumulated properties to 0 on output Updates provided by Karl Meredith
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -124,6 +124,7 @@ bool Foam::StandardWallInteraction<CloudType>::correct
|
|||||||
active = false;
|
active = false;
|
||||||
U = vector::zero;
|
U = vector::zero;
|
||||||
nEscape_++;
|
nEscape_++;
|
||||||
|
massEscape_ += p.mass()*p.nParticle();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PatchInteractionModel<CloudType>::itStick:
|
case PatchInteractionModel<CloudType>::itStick:
|
||||||
@ -201,16 +202,9 @@ void Foam::StandardWallInteraction<CloudType>::info(Ostream& os)
|
|||||||
if (this->outputTime())
|
if (this->outputTime())
|
||||||
{
|
{
|
||||||
this->setModelProperty("nEscape", npe);
|
this->setModelProperty("nEscape", npe);
|
||||||
nEscape_ = 0;
|
|
||||||
|
|
||||||
this->setModelProperty("massEscape", mpe);
|
this->setModelProperty("massEscape", mpe);
|
||||||
massEscape_ = 0.0;
|
|
||||||
|
|
||||||
this->setModelProperty("nStick", nps);
|
this->setModelProperty("nStick", nps);
|
||||||
nStick_ = 0;
|
|
||||||
|
|
||||||
this->setModelProperty("massStick", mps);
|
this->setModelProperty("massStick", mps);
|
||||||
massStick_ = 0.0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user