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>&)"
streamFormat format() const
Return current stream format.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static void readFields(CloudType &c)
Read.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
Kinematic parcel class with rotational motion (as spherical particles only) and one/two-way coupling ...
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
scalar rho() const
Return const access to density.
scalar tTurb_
Time spent in turbulent eddy [s].
KinematicParcel(const polyMesh &mesh, const vector &position, const label celli, const label tetFacei, const label tetPtI)
Construct from owner, position, and cloud owner.
scalar dTarget() const
Return const access to target diameter.
const vector & UTurb() const
Return const access to turbulent velocity fluctuation.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the specified type.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
scalar dTarget_
Target diameter [m].
scalar tTurb() const
Return const access to time spent in turbulent eddy.
virtual Istream & read(token &)=0
Return next token from stream.
scalar rho_
Density [kg/m3].
bool active_
Active flag - tracking inactive when active = false.
label typeId_
Parcel type id.
vector UTurb_
Turbulent velocity fluctuation [m/s].
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
label readLabel(Istream &is)
scalar age() const
Return const access to the age.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar nParticle_
Number of particles in Parcel.
vector U_
Velocity of Parcel [m/s].
bool active() const
Return const access to active flag.
const dimensionedScalar c
Speed of light in a vacuum.
virtual bool write() const
Write using setting from DB.
static void writeFields(const CloudType &c)
Write.
Mesh consisting of general polyhedral cells.
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
A class for handling character strings derived from std::string.
Templated base class for dsmc cloud.
scalar d() const
Return const access to diameter.
A primitive field of type <T> with automated input and output.
scalar nParticle() const
Return const access to number of particles.
const vector & U() const
Return const access to velocity.
label typeId() const
Return const access to type id.