Commit 2e88689c authored by Henry Weller's avatar Henry Weller
Browse files

lagrangian::StandardWallInteraction: accumulate escaping mass

Do not set accumulated properties to 0 on output

Updates provided by Karl Meredith
parent fa1dfa81
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -124,6 +124,7 @@ bool Foam::StandardWallInteraction<CloudType>::correct
active = false;
U = vector::zero;
nEscape_++;
massEscape_ += p.mass()*p.nParticle();
break;
}
case PatchInteractionModel<CloudType>::itStick:
......@@ -201,16 +202,9 @@ void Foam::StandardWallInteraction<CloudType>::info(Ostream& os)
if (this->outputTime())
{
this->setModelProperty("nEscape", npe);
nEscape_ = 0;
this->setModelProperty("massEscape", mpe);
massEscape_ = 0.0;
this->setModelProperty("nStick", nps);
nStick_ = 0;
this->setModelProperty("massStick", mps);
massStick_ = 0.0;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment