31 template<
class ParcelType>
35 template<
class ParcelType>
38 sizeof(ThermoParcel<ParcelType>)
39 - offsetof(ThermoParcel<ParcelType>, T_)
45 template<
class ParcelType>
61 is.
read(
reinterpret_cast<char*
>(&
T_), sizeofFields_);
68 "ThermoParcel::ThermoParcel(const polyMesh&, Istream&, bool)"
73 template<
class ParcelType>
74 template<
class CloudType>
82 c.checkFieldIOobject(
c,
T);
85 c.checkFieldIOobject(
c,
Cp);
100 template<
class ParcelType>
101 template<
class CloudType>
104 ParcelType::writeFields(
c);
126 template<
class ParcelType>
127 template<
class CloudType,
class CompositionType>
131 const CompositionType& compModel
140 template<
class ParcelType>
149 os << static_cast<const ParcelType&>(
p)
155 os << static_cast<const ParcelType&>(
p);
158 reinterpret_cast<const char*
>(&
p.T_),
159 ThermoParcel<ParcelType>::sizeofFields_
166 "Ostream& operator<<(Ostream&, const ThermoParcel<ParcelType>&)"
scalar Cp(const scalar p, const scalar T) const
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#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.
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
A primitive field of type <Type> with automated input and output.
streamFormat format() const
Return 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)....
virtual Istream & read(token &)=0
Return next token from stream.
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.
scalar Cp_
Specific heat capacity [J/kg/K].
static void writeFields(const CloudType &c)
Write.
scalar T_
Temperature [K].
static void readFields(CloudType &c)
Read.
ThermoParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei)
Construct from mesh, coordinates and topology.
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.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)