34template<
class ParcelType>
39template<
class ParcelType>
42 sizeof(ThermoParcel<ParcelType>)
43 - offsetof(ThermoParcel<ParcelType>, T_)
49template<
class ParcelType>
74 readRawScalar(is, &
T_);
75 readRawScalar(is, &
Cp_);
89template<
class ParcelType>
90template<
class CloudType>
93 const bool valid = c.size();
98 c.checkFieldIOobject(c,
T);
101 c.checkFieldIOobject(c,
Cp);
115template<
class ParcelType>
116template<
class CloudType>
121 const label np = c.size();
122 const bool valid = np;
141template<
class ParcelType>
153 #define writeProp(Name, Value) \
154 ParcelType::writeProperty(os, Name, Value, namesOnly, delim, filters)
163template<
class ParcelType>
164template<
class CloudType>
173 if (!c.size())
return;
175 auto&
T = cloud::lookupIOField<scalar>(
"T", obr);
176 auto&
Cp = cloud::lookupIOField<scalar>(
"Cp", obr);
189template<
class ParcelType>
190template<
class CloudType>
199 const label np = c.size();
201 auto&
T = cloud::createIOField<scalar>(
"T", np, obr);
202 auto&
Cp = cloud::createIOField<scalar>(
"Cp", np, obr);
217template<
class ParcelType>
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...
Templated base class for dsmc cloud.
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.
streamFormat format() const noexcept
Get the current stream format.
std::enable_if< std::is_integral< T >::value, bool >::type checkLabelSize() const noexcept
virtual bool check(const char *operation) const
Check IOstream status for given operation.
std::enable_if< std::is_floating_point< T >::value, bool >::type checkScalarSize() const noexcept
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual bool endRawRead()=0
End of low-level raw binary read.
virtual bool beginRawRead()=0
Start of low-level raw binary read.
virtual Istream & read(token &)=0
Return next token from stream.
virtual Ostream & write(const char c)
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_
Specific heat capacity [J/(kg.K)].
static const std::size_t sizeofFields
Size in bytes of the fields.
static void readObjects(CloudType &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=false) const
Write individual parcel properties to stream.
scalar T_
Temperature [K].
static void readFields(CloudType &c)
Read.
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.
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.
const volScalarField & Cp
OBJstream os(runTime.globalPath()/outputName)
#define writeProp(Name, Value)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.