mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: Lagrangian - added particle output to stream functions
This commit is contained in:
committed by
Mark Olesen
parent
deeb27896c
commit
6748f10d5d
@ -294,6 +294,18 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// I-O
|
||||
|
||||
//- Write individual parcel properties to stream
|
||||
void writeProperties
|
||||
(
|
||||
Ostream& os,
|
||||
const wordRes& filters,
|
||||
const word& delim,
|
||||
const bool namesOnly = false
|
||||
) const;
|
||||
|
||||
|
||||
// Ostream Operator
|
||||
|
||||
friend Ostream& operator<<(Ostream& os, const DTRMParticle& p);
|
||||
|
||||
@ -88,6 +88,31 @@ Foam::DTRMParticle::DTRMParticle
|
||||
}
|
||||
|
||||
|
||||
void Foam::DTRMParticle::writeProperties
|
||||
(
|
||||
Ostream& os,
|
||||
const wordRes& filters,
|
||||
const word& delim,
|
||||
const bool namesOnly
|
||||
) const
|
||||
{
|
||||
particle::writeProperties(os, filters, delim, namesOnly);
|
||||
|
||||
#undef writeProp
|
||||
#define writeProp(Name, Value) \
|
||||
particle::writeProperty(os, Name, Value, namesOnly, delim, filters)
|
||||
|
||||
writeProp("p0", p0_);
|
||||
writeProp("p1", p1_);
|
||||
writeProp("I0", I0_);
|
||||
writeProp("I", I_);
|
||||
writeProp("dA", dA_);
|
||||
writeProp("transmissiveId", transmissiveId_);
|
||||
|
||||
#undef writeProp
|
||||
}
|
||||
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const DTRMParticle& p)
|
||||
{
|
||||
if (os.format() == IOstream::ASCII)
|
||||
|
||||
Reference in New Issue
Block a user