Go to the documentation of this file.
34 template<
class ParcelType>
39 template<
class ParcelType>
42 sizeof(ThermoParcel<ParcelType>)
43 - offsetof(ThermoParcel<ParcelType>, T_)
49 template<
class ParcelType>
68 else if (!is.checkLabelSize<>() || !is.checkScalarSize<>())
74 readRawScalar(is, &
T_);
75 readRawScalar(is, &
Cp_);
89 template<
class ParcelType>
90 template<
class CloudType>
93 const bool valid =
c.size();
98 c.checkFieldIOobject(
c,
T);
101 c.checkFieldIOobject(
c,
Cp);
115 template<
class ParcelType>
116 template<
class CloudType>
121 const label np =
c.size();
122 const bool valid = np;
128 for (
const ThermoParcel<ParcelType>&
p :
c)
141 template<
class ParcelType>
150 ParcelType::writeProperties(
os, filters, delim, namesOnly);
153 #define writeProp(Name, Value) \
154 ParcelType::writeProperty(os, Name, Value, namesOnly, delim, filters)
163 template<
class ParcelType>
164 template<
class CloudType>
173 if (!
c.size())
return;
175 auto&
T = cloud::lookupIOField<scalar>(
"T", obr);
176 auto&
Cp = cloud::lookupIOField<scalar>(
"Cp", obr);
189 template<
class ParcelType>
190 template<
class CloudType>
197 ParcelType::writeObjects(
c, obr);
199 const label np =
c.size();
201 auto&
T = cloud::createIOField<scalar>(
"T", np, obr);
202 auto&
Cp = cloud::createIOField<scalar>(
"Cp", np, obr);
205 for (
const ThermoParcel<ParcelType>&
p :
c)
217 template<
class ParcelType>
221 const ThermoParcel<ParcelType>&
p
226 os << static_cast<const ParcelType&>(
p)
232 os << static_cast<const ParcelType&>(
p);
235 reinterpret_cast<const char*
>(&
p.T_),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
static void writeFields(const CloudType &c)
A class for handling words, derived from Foam::string.
A primitive field of type <T> with automated input and output.
streamFormat format() const noexcept
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly=false) const
A class for handling character strings derived from std::string.
virtual Ostream & write(const char c)
static void writeObjects(const CloudType &c, objectRegistry &obr)
static const std::size_t sizeofFields
Registry of regIOobjects.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
static void readObjects(CloudType &c, const objectRegistry &obr)
DSMCCloud< dsmcParcel > CloudType
Templated base class for dsmc cloud.
virtual bool check(const char *operation) const
OBJstream os(runTime.globalPath()/outputName)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
@ ASCII
"ascii" (normal default)
Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic pa...
A List of wordRe with additional matching capabilities.
const volScalarField & Cp
const dimensionedScalar c
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define writeProp(Name, Value)
ThermoParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
static void readFields(CloudType &c)
void writeFields(const fvMesh &mesh, const wordHashSet &selectedFields, const bool writeFaceFields)