31 template<
class ParcelType>
32 Foam::string Foam::ThermoParcel<ParcelType>::propertyList_ =
35 template<
class ParcelType>
38 offsetof(ThermoParcel<ParcelType>, Tc_)
39 - offsetof(ThermoParcel<ParcelType>, T_)
45 template<
class ParcelType>
53 ParcelType(mesh, is, readFields),
61 if (is.
format() == IOstream::ASCII)
68 is.
read(reinterpret_cast<char*>(&T_), sizeofFields_);
75 "ThermoParcel::ThermoParcel(const polyMesh&, Istream&, bool)" 80 template<
class ParcelType>
81 template<
class CloudType>
84 bool valid = c.
size();
107 template<
class ParcelType>
108 template<
class CloudType>
111 ParcelType::writeFields(c);
135 template<
class ParcelType>
142 if (os.format() == IOstream::ASCII)
144 os << static_cast<const ParcelType&>(
p)
145 << token::SPACE <<
p.T()
146 << token::SPACE <<
p.Cp();
150 os << static_cast<const ParcelType&>(
p);
153 reinterpret_cast<const char*>(&
p.T_),
161 "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.
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)
Base cloud calls templated on particle type.
static void writeFields(const CloudType &c)
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionedScalar c
Speed of light in a vacuum.
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. Includes Kinematic pa...