Go to the documentation of this file.
31 template<
class ParcelType>
36 template<
class ParcelType>
39 sizeof(SprayParcel<ParcelType>) -
sizeof(ParcelType)
45 template<
class ParcelType>
95 "SprayParcel<ParcelType>::SprayParcel"
105 template<
class ParcelType>
106 template<
class CloudType>
118 template<
class ParcelType>
119 template<
class CloudType,
class CompositionType>
123 const CompositionType& compModel
134 c.checkFieldIOobject(
c, d0);
140 c.checkFieldIOobject(
c, position0);
143 c.checkFieldIOobject(
c,
sigma);
146 c.checkFieldIOobject(
c,
mu);
152 c.checkFieldIOobject(
c, liquidCore);
155 c.checkFieldIOobject(
c, KHindex);
158 c.checkFieldIOobject(
c,
y);
161 c.checkFieldIOobject(
c, yDot);
164 c.checkFieldIOobject(
c, tc);
167 c.checkFieldIOobject(
c, ms);
170 c.checkFieldIOobject(
c, injector);
173 c.checkFieldIOobject(
c, tMom);
176 c.checkFieldIOobject(
c, user);
183 p.position0_ = position0[i];
186 p.liquidCore_ = liquidCore[i];
187 p.KHindex_ = KHindex[i];
192 p.injector_ = injector[i];
200 template<
class ParcelType>
201 template<
class CloudType>
204 ParcelType::writeFields(
c);
208 template<
class ParcelType>
209 template<
class CloudType,
class CompositionType>
213 const CompositionType& compModel
216 ParcelType::writeFields(
c, compModel);
251 position0[i] =
p.position0_;
254 liquidCore[i] =
p.liquidCore_;
255 KHindex[i] =
p.KHindex_;
260 injector[i] =
p.injector_;
284 template<
class ParcelType>
293 os << static_cast<const ParcelType&>(
p)
310 os << static_cast<const ParcelType&>(
p);
313 reinterpret_cast<const char*
>(&
p.d0_),
321 "Ostream& operator<<(Ostream&, const SprayParcel<ParcelType>&)"
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
vector position0_
Injection position.
#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.
const dimensionedScalar mu
Atomic mass unit.
scalar tc_
Characteristic time (used in atomization and/or breakup model)
virtual bool write() const
Write using setting from DB.
scalar liquidCore_
Part of liquid core ( >0.5=liquid, <0.5=droplet )
A class for handling character strings derived from std::string.
static const std::size_t sizeofFields_
Size in bytes of the fields.
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
scalar d0_
Initial droplet diameter.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
scalar ms_
Stripped parcel mass due to breakup.
scalar sigma_
Liquid surface tension [N/m].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Reacing spray parcel, with added functionality for atomization and breakup.
Templated base class for dsmc cloud.
scalar tMom_
Momentum relaxation time (needed for calculating parcel acc.)
scalar y_
Spherical deviation.
scalar KHindex_
Index for KH Breakup.
scalar mu_
Liquid dynamic viscosity [Pa.s].
Vector< scalar > vector
A scalar version of the templated Vector.
scalar user_
Passive scalar (extra variable to be defined by user)
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
scalar yDot_
Rate of change of spherical deviation.
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)
Base cloud calls templated on particle type.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
const dimensionedScalar c
Speed of light in a vacuum.
scalar injector_
Injected from injector (needed e.g. for calculating distance.
SprayParcel(const polyMesh &mesh, const vector &position, const label cellI, const label tetFaceI, const label tetPtI)
Construct from owner, position, and cloud owner.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...