33 template<
class ParcelType>
34 Foam::string Foam::KinematicParcel<ParcelType>::propertyList_ =
37 template<
class ParcelType>
40 offsetof(KinematicParcel<ParcelType>, rhoc_)
41 - offsetof(KinematicParcel<ParcelType>, active_)
47 template<
class ParcelType>
55 ParcelType(mesh, is, readFields),
72 if (is.
format() == IOstream::ASCII)
87 is.
read(reinterpret_cast<char*>(&active_), sizeofFields_);
94 "KinematicParcel<ParcelType>::KinematicParcel" 95 "(const polyMesh&, Istream&, bool)" 100 template<
class ParcelType>
101 template<
class CloudType>
118 nParticle(c.
fieldIOobject(
"nParticle", IOobject::MUST_READ));
164 template<
class ParcelType>
165 template<
class CloudType>
168 ParcelType::writeFields(c);
201 tTurb[i] = p.
tTurb();
202 UTurb[i] = p.
UTurb();
222 template<
class ParcelType>
229 if (os.format() == IOstream::ASCII)
231 os << static_cast<const ParcelType&>(
p)
232 << token::SPACE <<
p.active()
233 << token::SPACE <<
p.typeId()
234 << token::SPACE <<
p.nParticle()
235 << token::SPACE <<
p.d()
236 << token::SPACE <<
p.dTarget()
237 << token::SPACE <<
p.U()
238 << token::SPACE <<
p.rho()
239 << token::SPACE <<
p.age()
240 << token::SPACE <<
p.tTurb()
241 << token::SPACE <<
p.UTurb();
245 os << static_cast<const ParcelType&>(
p);
248 reinterpret_cast<const char*>(&
p.active_),
256 "Ostream& operator<<(Ostream&, const KinematicParcel<ParcelType>&)"
bool active_
Active flag - tracking inactive when active = false.
vector UTurb_
Turbulent velocity fluctuation [m/s].
vector U_
Velocity of Parcel [m/s].
scalar age() const
Return const access to the age.
const vector & UTurb() const
Return const access to turbulent velocity fluctuation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual Istream & read(token &)=0
Return next token from stream.
#define forAllIter(Container, container, iter)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling character strings derived from std::string.
scalar dTarget_
Target diameter [m].
label readLabel(Istream &is)
scalar rho_
Density [kg/m3].
scalar tTurb_
Time spent in turbulent eddy [s].
virtual bool check(const char *operation) const
Check IOstream status for given operation.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
virtual bool write() const
Write using setting from DB.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void readFields(const Mesh &mesh, const IOobjectList &objects, PtrList< GeoField > &fields)
scalar dTarget() const
Return const access to target diameter.
label typeId_
Parcel type id.
scalar rho() const
Return const access to density.
streamFormat format() const
Return current stream format.
label typeId() const
Return const access to type id.
const vector & U() const
Return const access to velocity.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
bool active() const
Return const access to active flag.
Mesh consisting of general polyhedral cells.
scalar nParticle() const
Return const access to number of particles.
scalar nParticle_
Number of particles in Parcel.
Kinematic parcel class with rotational motion (as spherical particles only) and one/two-way coupling ...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionedScalar c
Speed of light in a vacuum.
scalar d() const
Return const access to diameter.
Templated base class for dsmc cloud.
KinematicParcel(const polyMesh &mesh, const vector &position, const label cellI, const label tetFaceI, const label tetPtI)
Construct from owner, position, and cloud owner.
static void readFields(CloudType &c)
Read.
static void writeFields(const CloudType &c)
Write.
scalar tTurb() const
Return const access to time spent in turbulent eddy.
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
A primitive field of type <T> with automated input and output.