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>
110 template<
class ParcelType>
111 template<
class CloudType>
114 ParcelType::writeFields(c);
138 template<
class ParcelType>
145 if (os.format() == IOstream::ASCII)
147 os << static_cast<const ParcelType&>(
p)
148 << token::SPACE <<
p.T()
149 << token::SPACE <<
p.Cp();
153 os << static_cast<const ParcelType&>(
p);
156 reinterpret_cast<const char*>(&
p.T_),
164 "Ostream& operator<<(Ostream&, const ThermoParcel<ParcelType>&)"
streamFormat format() const
Return current stream format.
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 checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
scalar Cp_
Specific heat capacity [J/(kg.K)].
#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)...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
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.
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.
ThermoParcel(const polyMesh &mesh, const vector &position, const label celli, const label tetFacei, const label tetPtI)
Construct from owner, position, and cloud owner.
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.
Mesh consisting of general polyhedral cells.
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
A class for handling character strings derived from std::string.
Templated base class for dsmc cloud.
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...