31 template<
class ParcelType>
35 template<
class ParcelType>
44 template<
class ParcelType>
62 "ReactingParcel<ParcelType>::ReactingParcel"
72 template<
class ParcelType>
73 template<
class CloudType>
80 template<
class ParcelType>
81 template<
class CloudType,
class CompositionType>
85 const CompositionType& compModel
93 const wordList& phaseTypes = compModel.phaseTypes();
96 if (compModel.nPhase() == 1)
98 stateLabels = compModel.stateLabels()[0];
115 "Y" + phaseTypes[j] + stateLabels[j],
131 template<
class ParcelType>
132 template<
class CloudType>
135 ParcelType::writeFields(
c);
139 template<
class ParcelType>
140 template<
class CloudType,
class CompositionType>
144 const CompositionType& compModel
147 ParcelType::writeFields(
c, compModel);
149 const label np =
c.size();
153 const wordList& phaseTypes = compModel.phaseTypes();
155 if (compModel.nPhase() == 1)
157 stateLabels = compModel.stateLabels()[0];
166 "Y" + phaseTypes[j] + stateLabels[j],
186 template<
class ParcelType>
195 os << static_cast<const ParcelType&>(
p)
200 os << static_cast<const ParcelType&>(
p);
207 "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 forAll(list, i)
Loop across all elements in list.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Templated base class for dsmc cloud.
A primitive field of type <Type> with automated input and output.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
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.
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
scalarField Y_
Mass fractions of mixture [].
ReactingParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei)
Construct from mesh, coordinates and topology.
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
A class for handling character strings derived from std::string.
bool valid(const PtrList< ModelType > &l)
const dimensionedScalar c
Speed of light in a vacuum.
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.
PtrList< volScalarField > & Y