Go to the documentation of this file.
31 template<
class ParcelType>
35 template<
class ParcelType>
44 template<
class ParcelType>
59 DynamicList<scalar> Ymix;
77 "ReactingParcel<ParcelType>::ReactingParcel"
87 template<
class ParcelType>
88 template<
class CloudType>
100 template<
class ParcelType>
101 template<
class CloudType,
class CompositionType>
105 const CompositionType& compModel
116 c.checkFieldIOobject(
c, mass0);
122 p.mass0_ = mass0[i++];
126 const wordList& phaseTypes = compModel.phaseTypes();
129 if (compModel.nPhase() == 1)
131 stateLabels = compModel.stateLabels()[0];
139 p.Y_.setSize(nPhases, 0.0);
149 "Y" + phaseTypes[j] + stateLabels[j],
164 template<
class ParcelType>
165 template<
class CloudType>
168 ParcelType::writeFields(
c);
172 template<
class ParcelType>
173 template<
class CloudType,
class CompositionType>
177 const CompositionType& compModel
180 ParcelType::writeFields(
c);
182 const label np =
c.size();
192 mass0[i++] =
p.mass0_;
197 const wordList& phaseTypes = compModel.phaseTypes();
199 if (compModel.nPhase() == 1)
201 stateLabels = compModel.stateLabels()[0];
210 "Y" + phaseTypes[j] + stateLabels[j],
235 template<
class ParcelType>
244 os << static_cast<const ParcelType&>(
p)
250 os << static_cast<const ParcelType&>(
p);
253 reinterpret_cast<const char*
>(&
p.mass0_),
262 "Ostream& operator<<(Ostream&, const ReactingParcel<ParcelType>&)"
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.
#define forAll(list, i)
Loop across all elements in list.
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
static const std::size_t sizeofFields_
Size in bytes of the fields.
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.
ReactingParcel(const polyMesh &mesh, const vector &position, const label cellI, const label tetFaceI, const label tetPtI)
Construct from owner, position, and cloud owner.
Templated base class for dsmc cloud.
scalar mass0_
Initial mass [kg].
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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 c
Speed of light in a vacuum.
scalarField Y_
Mass fractions of mixture [].
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Reacting parcel class with one/two-way coupling with the continuous phase.
PtrList< volScalarField > & Y