Go to the documentation of this file.
33 template<
class ParcelType>
37 template<
class ParcelType>
40 offsetof(KinematicParcel<ParcelType>, rhoc_)
41 - offsetof(KinematicParcel<ParcelType>, active_)
47 template<
class ParcelType>
94 "KinematicParcel<ParcelType>::KinematicParcel"
95 "(const polyMesh&, Istream&, bool)"
100 template<
class ParcelType>
101 template<
class CloudType>
112 c.checkFieldIOobject(
c, active);
115 c.checkFieldIOobject(
c, typeId);
119 c.checkFieldIOobject(
c, nParticle);
122 c.checkFieldIOobject(
c, d);
125 c.checkFieldIOobject(
c, dTarget);
128 c.checkFieldIOobject(
c,
U);
131 c.checkFieldIOobject(
c,
rho);
134 c.checkFieldIOobject(
c, age);
137 c.checkFieldIOobject(
c, tTurb);
140 c.checkFieldIOobject(
c, UTurb);
148 p.active_ = active[i];
149 p.typeId_ = typeId[i];
150 p.nParticle_ = nParticle[i];
152 p.dTarget_ = dTarget[i];
164 template<
class ParcelType>
165 template<
class CloudType>
168 ParcelType::writeFields(
c);
193 active[i] =
p.active();
194 typeId[i] =
p.typeId();
195 nParticle[i] =
p.nParticle();
197 dTarget[i] =
p.dTarget();
201 tTurb[i] =
p.tTurb();
202 UTurb[i] =
p.UTurb();
222 template<
class ParcelType>
231 os << static_cast<const ParcelType&>(
p)
245 os << static_cast<const ParcelType&>(
p);
248 reinterpret_cast<const char*
>(&
p.active_),
256 "Ostream& operator<<(Ostream&, const KinematicParcel<ParcelType>&)"
static const std::size_t sizeofFields_
Size in bytes of the fields.
scalar tTurb_
Time spent in turbulent eddy [s].
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
A primitive field of type <T> with automated input and output.
scalar dTarget_
Target diameter [m].
virtual bool write() const
Write using setting from DB.
A class for handling character strings derived from std::string.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
vector UTurb_
Turbulent velocity fluctuation [m/s].
Templated base class for dsmc cloud.
vector U_
Velocity of Parcel [m/s].
scalar nParticle_
Number of particles in Parcel.
scalar rho_
Density [kg/m3].
bool active_
Active flag - tracking inactive when active = false.
Vector< scalar > vector
A scalar version of the templated Vector.
label typeId_
Parcel type id.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
void readFields(const boolList &haveMesh, const fvMesh &mesh, const autoPtr< fvMeshSubset > &subsetterPtr, IOobjectList &allObjects, PtrList< GeoField > &fields)
Kinematic parcel class with rotational motion (as spherical particles only) and one/two-way coupling ...
label readLabel(Istream &is)
const dimensionedScalar c
Speed of light in a vacuum.
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 writeFields(const CloudType &c)
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static void readFields(CloudType &c)
Read.