mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: extractEulerianParticles FO - refactored to output a cloud of particles - distribution analysis to follow...
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -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!=
|
||||
|
||||
Reference in New Issue
Block a user