31 template<
class ParcelType>
32 Foam::string Foam::ThermoParcel<ParcelType>::propertyList_ =
35 template<
class ParcelType>
38 sizeof(ThermoParcel<ParcelType>)
39 - offsetof(ThermoParcel<ParcelType>, T_)
45 template<
class ParcelType>
53 ParcelType(mesh, is, readFields),
59 if (is.
format() == IOstream::ASCII)
66 is.
read(reinterpret_cast<char*>(&T_), sizeofFields_);
73 "ThermoParcel::ThermoParcel(const polyMesh&, Istream&, bool)" 78 template<
class ParcelType>
79 template<
class CloudType>
82 bool valid = c.
size();
105 template<
class ParcelType>
106 template<
class CloudType>
109 ParcelType::writeFields(c);
131 template<
class ParcelType>
132 template<
class CloudType,
class CompositionType>
136 const CompositionType& compModel
145 template<
class ParcelType>
152 if (os.format() == IOstream::ASCII)
154 os << static_cast<const ParcelType&>(
p)
155 << token::SPACE <<
p.T()
156 << token::SPACE <<
p.Cp();
160 os << static_cast<const ParcelType&>(
p);
163 reinterpret_cast<const char*>(&
p.T_),
171 "Ostream& operator<<(Ostream&, const ThermoParcel<ParcelType>&)"
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.
scalar Cp_
Specific heat capacity [J/kg/K].
virtual bool check(const char *operation) const
Check IOstream status for given operation.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
ThermoParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
label size() const
Return the number of particles in the cloud.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
scalar T_
Temperature [K].
virtual Istream & read(token &)=0
Return next token from stream.
static void readFields(CloudType &c)
Read.
streamFormat format() const
Return current stream format.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
static void writeFields(const CloudType &c)
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar Cp(const scalar p, const scalar T) const
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
Mesh consisting of general polyhedral cells.
A class for handling character strings derived from std::string.
Templated base class for dsmc cloud.
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
A primitive field of type <T> with automated input and output.
Thermodynamic parcel class with one/two-way coupling with the continuous phase.