34template<
class ParcelType>
39template<
class ParcelType>
42 sizeof(ThermoParcel<ParcelType>)
49template<
class ParcelType>
81template<
class ParcelType>
82template<
class CloudType>
85 const bool readOnProc = c.size();
87 ParcelType::readFields(c);
90 c.checkFieldIOobject(c,
T);
93 c.checkFieldIOobject(c,
Cp);
107template<
class ParcelType>
108template<
class CloudType>
111 ParcelType::writeFields(c);
113 const label np = c.size();
114 const bool writeOnProc = c.size();
120 for (
const ThermoParcel<ParcelType>&
p : c)
128 T.write(writeOnProc);
129 Cp.write(writeOnProc);
133template<
class ParcelType>
142 ParcelType::writeProperties(
os, filters, delim, namesOnly);
145 #define writeProp(Name, Value) \
146 ParcelType::writeProperty(os, Name, Value, namesOnly, delim, filters)
155template<
class ParcelType>
156template<
class CloudType>
163 ParcelType::readFields(c);
165 if (!c.size())
return;
181template<
class ParcelType>
182template<
class CloudType>
189 ParcelType::writeObjects(c, obr);
191 const label np = c.size();
197 for (
const ThermoParcel<ParcelType>&
p : c)
209template<
class ParcelType>
210Foam::Ostream& Foam::operator<<
227 reinterpret_cast<const char*
>(&
p.T_),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field).
A primitive field of type <T> with automated input and output.
@ NO_READ
Nothing to be read.
@ MUST_READ
Reading required.
streamFormat format() const noexcept
Get the current stream format.
@ ASCII
"ascii" (normal default)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool fatalCheckNativeSizes(const char *operation) const
Assert that the label/scalar byte-size associated with the stream are the native label/scalar sizes.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Istream & read(token &)=0
Return next token from stream.
virtual Ostream & write(const char c) override
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic pa...
scalar Cp() const
Return const access to specific heat capacity.
scalar T() const
Return const access to temperature.
scalar Cp_
Specific heat capacity [J/(kg.K)].
static void writeObjects(const CloudType &c, objectRegistry &obr)
Write particle fields as objects into the obr registry.
static const std::size_t sizeofFields
Size in bytes of the fields.
ThermoParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
static void readObjects(CloudType &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
static void writeFields(const CloudType &c)
Write.
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly=false) const
Write individual parcel properties to stream.
scalar T_
Temperature [K].
static void readFields(CloudType &c)
Read.
static const IOField< Type > & lookupIOField(const word &fieldName, const objectRegistry &obr)
Lookup an IOField within object registry.
static IOField< Type > & createIOField(const word &fieldName, const label nParticle, objectRegistry &obr)
Helper to construct IOField on a supplied object registry.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
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.
const volScalarField & Cp
OBJstream os(runTime.globalPath()/outputName)
#define writeProp(Name, Value)
DSMCCloud< dsmcParcel > CloudType
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)