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>
113 template<
class ParcelType>
114 template<
class CloudType,
class CompositionType>
118 const CompositionType& compModel
145 "liquidCore", IOobject::MUST_READ)
195 template<
class ParcelType>
196 template<
class CloudType>
199 ParcelType::writeFields(c);
203 template<
class ParcelType>
204 template<
class CloudType,
class CompositionType>
208 const CompositionType& compModel
211 ParcelType::writeFields(c, compModel);
279 template<
class ParcelType>
286 if (os.format() == IOstream::ASCII)
288 os << static_cast<const ParcelType&>(
p)
289 << token::SPACE <<
p.d0()
290 << token::SPACE <<
p.position0()
291 << token::SPACE <<
p.sigma()
292 << token::SPACE <<
p.mu()
293 << token::SPACE <<
p.liquidCore()
294 << token::SPACE <<
p.KHindex()
295 << token::SPACE <<
p.y()
296 << token::SPACE <<
p.yDot()
297 << token::SPACE <<
p.tc()
298 << token::SPACE <<
p.ms()
299 << token::SPACE <<
p.injector()
300 << token::SPACE <<
p.tMom()
301 << token::SPACE <<
p.user();
305 os << static_cast<const ParcelType&>(
p);
308 reinterpret_cast<const char*>(&
p.d0_),
316 "Ostream& operator<<(Ostream&, const SprayParcel<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.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
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)...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
scalar liquidCore_
Part of liquid core ( >0.5=liquid, <0.5=droplet )
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...
virtual Istream & read(token &)=0
Return next token from stream.
SprayParcel(const polyMesh &mesh, const vector &position, const label celli, const label tetFacei, const label tetPtI)
Construct from owner, position, and cloud owner.
scalar injector_
Injected from injector (needed e.g. for calculating distance.
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)
Base cloud calls templated on particle type.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar sigma_
Liquid surface tension [N/m].
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
const dimensionedScalar mu
Atomic mass unit.
vector position0_
Injection position.
scalar yDot_
Rate of change of spherical deviation.
scalar ms_
Stripped parcel mass due to breakup.
virtual bool write() const
Write using setting from DB.
scalar d0_
Initial droplet diameter.
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.
scalar tc_
Characteristic time (used in atomization 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.
A primitive field of type <T> with automated input and output.
Reacing spray parcel, with added functionality for atomization and breakup.