34template<
class ParcelType>
39template<
class ParcelType>
48template<
class ParcelType>
74template<
class ParcelType>
75template<
class CloudType>
82template<
class ParcelType>
83template<
class CloudType,
class CompositionType>
87 const CompositionType& compModel
90 const bool valid = c.size();
99 c.checkFieldIOobject(c, mass0);
104 p.mass0() = mass0[i];
108 const label idSolid = compModel.idSolid();
121 for (label i = 0; i < nF; i++)
165template<
class ParcelType>
166template<
class CloudType>
176template<
class ParcelType>
177template<
class CloudType,
class CompositionType>
181 const CompositionType& compModel
188 const label np = c.size();
189 const bool valid = np;
207 for (label i = 0; i < nF; i++)
227 const label idSolid = compModel.idSolid();
254template<
class ParcelType>
266 #define writeProp(Name, Value) \
267 ParcelType::writeProperty(os, Name, Value, namesOnly, delim, filters)
276template<
class ParcelType>
277template<
class CloudType>
288template<
class ParcelType>
289template<
class CloudType>
300template<
class ParcelType>
301template<
class CloudType,
class CompositionType>
305 const CompositionType& compModel,
316 <<
"Reading of objects is still a work-in-progress" <<
nl;
321template<
class ParcelType>
322template<
class CloudType,
class CompositionType>
326 const CompositionType& compModel,
334 const label np = c.size();
346 for (label i = 0; i < nF; i++)
348 const word fieldName =
"F" +
name(i);
349 auto&
F = cloud::createIOField<scalar>(fieldName, np, obr);
359 const label idSolid = compModel.idSolid();
364 auto&
Y = cloud::createIOField<scalar>(fieldName, np, obr);
379template<
class ParcelType>
389 os << static_cast<const ParcelType&>(
p)
394 os << static_cast<const ParcelType&>(
p);
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Templated base class for dsmc cloud.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A primitive field of type <T> with automated input and output.
streamFormat format() const noexcept
Get the current stream format.
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 > &list)
void setSize(const label n)
Alias for resize()
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Reacting heterogeneous Parcel.
static const std::size_t sizeofFields
Size in bytes of the fields.
scalarField F_
Progress variables for reactions.
static void readObjects(CloudType &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
const scalarField & F() const
Return const access to F.
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const
Write individual parcel properties to stream.
static void readFields(CloudType &c, const CompositionType &compModel)
Read - composition supplied.
Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic pa...
void size(const label n)
Older name for setAddressableSize.
void writeFields() const
Write fields.
Reads fields from the time directories and adds them to the mesh database for further post-processing...
Allows specification of different writing frequency of objects registered to the database.
static void readObjects(Cloud< injectedParticle > &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const
Write individual parcel properties to stream.
Registry of regIOobjects.
static string propertyList()
Mesh consisting of general polyhedral cells.
virtual bool write(const bool valid=true) const
Write using setting from DB.
A class for handling character strings derived from std::string.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
PtrList< volScalarField > & Y
const volScalarField & p0
const wordList solidNames(rp["solid"])
OBJstream os(runTime.globalPath()/outputName)
#define writeProp(Name, Value)
#define WarningInFunction
Report a warning using Foam::Warning.
volVectorField F(fluid.F())
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
void writeFields(const fvMesh &mesh, const wordHashSet &selectedFields, const bool writeFaceFields)
static constexpr const zero Zero
Global zero (0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.