ENH: extractEulerianParticles FO - refactored to output a cloud of particles - distribution analysis to follow...

This commit is contained in:
Andrew Heather
2016-11-30 23:32:33 +00:00
parent 99a1eee024
commit 78bb633dfc
10 changed files with 704 additions and 313 deletions

View File

@ -36,34 +36,39 @@ Foam::functionObjects::eulerianParticle::eulerianParticle()
VC(vector::zero),
VU(vector::zero),
V(0),
time(0),
timeIndex(0)
time(0)
{}
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
Foam::Ostream& Foam::operator<<(Ostream& os, const eulerianParticle& p)
Foam::Ostream& Foam::operator<<
(
Ostream& os,
const functionObjects::eulerianParticle& p
)
{
os << p.globalFaceIHit << token::SPACE
<< p.VC << token::SPACE
<< p.VU << token::SPACE
<< p.V << token::SPACE
<< p.time << token::SPACE
<< p.timeIndex;
<< p.time;
return os;
}
Foam::Istream& Foam::operator>>(Istream& is, eulerianParticle& p)
Foam::Istream& Foam::operator>>
(
Istream& is,
functionObjects::eulerianParticle& p
)
{
is >> p.globalFaceIHit
>> p.VC
>> p.VU
>> p.V
>> p.time
>> p.timeIndex;
>> p.time;
return is;
}

View File

@ -92,9 +92,6 @@ public:
//- Injection time - set at collection [s]
scalar time;
//- Index of last output time
label timeIndex;
//- Constructor
eulerianParticle();
@ -122,8 +119,7 @@ public:
&& a.VC == b.VC
&& a.VU == b.VU
&& a.V == b.V
&& a.time == b.time
&& a.timeIndex == b.timeIndex;
&& a.time == b.time;
}
friend bool operator!=