Go to the documentation of this file.
31 template<
class ParcelType>
35 template<
class ParcelType>
44 template<
class ParcelType>
60 DynamicList<scalar> Yg;
61 DynamicList<scalar> Yl;
62 DynamicList<scalar> Ys;
80 "ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel"
90 template<
class ParcelType>
91 template<
class CloudType>
103 template<
class ParcelType>
104 template<
class CloudType,
class CompositionType>
108 const CompositionType& compModel
119 const label idGas = compModel.idGas();
120 const wordList& gasNames = compModel.componentNames(idGas);
121 const label idLiquid = compModel.idLiquid();
122 const wordList& liquidNames = compModel.componentNames(idLiquid);
123 const label idSolid = compModel.idSolid();
124 const wordList& solidNames = compModel.componentNames(idSolid);
125 const wordList& stateLabels = compModel.stateLabels();
131 p.YGas_.setSize(gasNames.
size(), 0.0);
132 p.YLiquid_.setSize(liquidNames.
size(), 0.0);
133 p.YSolid_.setSize(solidNames.
size(), 0.0);
143 "Y" + gasNames[j] + stateLabels[idGas],
157 p.YGas_[j] = YGas[i++]/(
p.Y()[GAS] + ROOTVSMALL);
167 "Y" + liquidNames[j] + stateLabels[idLiquid],
181 p.YLiquid_[j] = YLiquid[i++]/(
p.Y()[LIQ] + ROOTVSMALL);
191 "Y" + solidNames[j] + stateLabels[idSolid],
205 p.YSolid_[j] = YSolid[i++]/(
p.Y()[SLD] + ROOTVSMALL);
211 template<
class ParcelType>
212 template<
class CloudType>
215 ParcelType::writeFields(
c);
219 template<
class ParcelType>
220 template<
class CloudType,
class CompositionType>
224 const CompositionType& compModel
227 ParcelType::writeFields(
c, compModel);
234 const wordList& stateLabels = compModel.stateLabels();
236 const label idGas = compModel.idGas();
237 const wordList& gasNames = compModel.componentNames(idGas);
244 "Y" + gasNames[j] + stateLabels[idGas],
259 YGas[i++] = p0.
YGas()[j]*p0.Y()[GAS];
265 const label idLiquid = compModel.idLiquid();
266 const wordList& liquidNames = compModel.componentNames(idLiquid);
273 "Y" + liquidNames[j] + stateLabels[idLiquid],
288 YLiquid[i++] = p0.
YLiquid()[j]*p0.Y()[LIQ];
294 const label idSolid = compModel.idSolid();
295 const wordList& solidNames = compModel.componentNames(idSolid);
302 "Y" + solidNames[j] + stateLabels[idSolid],
317 YSolid[i++] = p0.
YSolid()[j]*p0.Y()[SLD];
328 template<
class ParcelType>
340 os << static_cast<const ParcelType&>(
p)
347 os << static_cast<const ParcelType&>(
p);
348 os << YGasLoc << YLiquidLoc << YSolidLoc;
354 "Ostream& operator<<"
357 "const ReactingMultiphaseParcel<ParcelType>&"
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
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 writeFields(const CloudType &c, const CompositionType &compModel)
Write.
const scalarField & YGas() const
Return const access to mass fractions of gases.
virtual bool write() const
Write using setting from DB.
A class for handling character strings derived from std::string.
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
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.
Pre-declare SubField and related Field type.
Multiphase variant of the reacting parcel class with one/two-way coupling with the continuous phase.
Templated base class for dsmc cloud.
static const std::size_t sizeofFields_
Size in bytes of the fields.
const scalarField & YLiquid() const
Return const access to mass fractions of liquids.
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)
scalarField YLiquid_
Mass fractions of liquids [].
const scalarField & YSolid() const
Return const access to mass fractions of solids.
Base cloud calls templated on particle type.
scalarField YGas_
Mass fractions of gases [].
const dimensionedScalar c
Speed of light in a vacuum.
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,...
ReactingMultiphaseParcel(const polyMesh &mesh, const vector &position, const label cellI, const label tetFaceI, const label tetPtI)
Construct from owner, position, and cloud owner.
scalarField YSolid_
Mass fractions of solids [].