31 template<
class ParcelType>
34 sizeof(SprayParcel<ParcelType>) -
sizeof(ParcelType)
40 template<
class ParcelType>
48 ParcelType(mesh, is, readFields),
65 if (is.
format() == IOstream::ASCII)
83 is.
read(reinterpret_cast<char*>(&d0_), sizeofFields_);
90 "SprayParcel<ParcelType>::SprayParcel" 100 template<
class ParcelType>
101 template<
class CloudType>
108 template<
class ParcelType>
109 template<
class CloudType,
class CompositionType>
113 const CompositionType& compModel
221 template<
class ParcelType>
222 template<
class CloudType>
225 ParcelType::writeFields(c);
229 template<
class ParcelType>
230 template<
class CloudType,
class CompositionType>
234 const CompositionType& compModel
237 ParcelType::writeFields(c, compModel);
287 const bool write = np > 0;
290 position0.write(write);
293 liquidCore.write(write);
294 KHindex.write(write);
299 injector.write(write);
307 template<
class ParcelType>
314 if (os.format() == IOstream::ASCII)
316 os << static_cast<const ParcelType&>(
p)
317 << token::SPACE <<
p.d0()
318 << token::SPACE <<
p.position0()
319 << token::SPACE <<
p.sigma()
320 << token::SPACE <<
p.mu()
321 << token::SPACE <<
p.liquidCore()
322 << token::SPACE <<
p.KHindex()
323 << token::SPACE <<
p.y()
324 << token::SPACE <<
p.yDot()
325 << token::SPACE <<
p.tc()
326 << token::SPACE <<
p.ms()
327 << token::SPACE <<
p.injector()
328 << token::SPACE <<
p.tMom()
329 << token::SPACE <<
p.user();
333 os << static_cast<const ParcelType&>(
p);
336 reinterpret_cast<const char*>(&
p.d0_),
344 "Ostream& operator<<(Ostream&, const SprayParcel<ParcelType>&)"
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
scalar tMom_
Momentum relaxation time (needed for calculating parcel acc.)
#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)...
label size() const
Return the number of particles in the cloud.
scalar liquidCore_
Part of liquid core ( >0.5=liquid, <0.5=droplet )
SprayParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
virtual Istream & read(token &)=0
Return next token from stream.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
scalar injector_
Injected from injector (needed e.g. for calculating distance.
streamFormat format() const
Return current stream format.
scalar user_
Passive scalar (extra variable to be defined by user)
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionedScalar mu
Atomic mass unit.
scalar sigma_
Liquid surface tension [N/m].
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
vector position0_
Injection position.
scalar yDot_
Rate of change of spherical deviation.
scalar ms_
Stripped parcel mass due to breakup.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
scalar d0_
Initial droplet diameter.
Mesh consisting of general polyhedral cells.
scalar tc_
Characteristic time (used in atomisation and/or breakup model)
scalar mu_
Liquid dynamic viscosity [Pa.s].
scalar y_
Spherical deviation.
scalar KHindex_
Index for KH Breakup.
Templated base class for dsmc cloud.
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.
Reaching spray parcel, with added functionality for atomisation and breakup.