33 template <
class ParcelType>
35 Particle<ParcelType>::propHeader
43 +
" (UTurbx UTurby UTurbz)";
48 template <
class ParcelType>
71 if (is.format() == IOstream::ASCII)
74 typeId_ = readLabel(is);
86 reinterpret_cast<char*>(&active_),
102 "KinematicParcel<ParcelType>::KinematicParcel"
103 "(const Cloud<ParcelType>&, Istream&, bool)"
108 template<
class ParcelType>
125 nParticle(c.
fieldIOobject(
"nParticle", IOobject::MUST_READ));
146 ParcelType&
p = iter();
148 p.active_ = active[i];
149 p.typeId_ = typeId[i];
150 p.nParticle_ = nParticle[i];
161 template<
class ParcelType>
192 tTurb[i] = p.
tTurb();
193 UTurb[i] = p.
UTurb();
210 template<
class ParcelType>
217 if (os.
format() == IOstream::ASCII)
219 os << static_cast<const Particle<ParcelType>&>(
p)
220 << token::SPACE <<
p.active()
221 << token::SPACE <<
p.typeId()
222 << token::SPACE <<
p.nParticle()
223 << token::SPACE <<
p.d()
224 << token::SPACE <<
p.U()
225 << token::SPACE <<
p.rho()
226 << token::SPACE <<
p.tTurb()
227 << token::SPACE <<
p.UTurb();
231 os << static_cast<const Particle<ParcelType>&>(
p);
234 reinterpret_cast<const char*>(&
p.active_),
237 +
sizeof(
p.nParticle())
249 "Ostream& operator<<(Ostream&, const KinematicParcel<ParcelType>&)"