36template<
class ParcelType>
39 sizeof(DSMCParcel<ParcelType>) -
sizeof(ParcelType)
45template<
class ParcelType>
72 readRawScalar(is, &
Ei_);
87template<
class ParcelType>
90 bool valid = c.size();
95 c.checkFieldIOobject(c,
U);
98 c.checkFieldIOobject(c, Ei);
105 c.checkFieldIOobject(c, typeId);
112 p.typeId_ = typeId[i];
118template<
class ParcelType>
137 typeId[i] =
p.typeId();
143 typeId.
write(np > 0);
149template<
class ParcelType>
158 os << static_cast<const ParcelType& >(
p)
165 os << static_cast<const ParcelType& >(
p);
168 reinterpret_cast<const char*
>(&
p.U_),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Base cloud calls templated on particle type.
label typeId_
Parcel type id.
static const std::size_t sizeofFields
Size in bytes of the fields.
static void readFields(Cloud< DSMCParcel< ParcelType > > &c)
vector U_
Velocity of Parcel [m/s].
scalar Ei_
Internal energy of the Parcel, covering all non-translational.
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,...
Cmpt * data() noexcept
Return pointer to the first data element.
void writeFields() const
Write fields.
Reads fields from the time directories and adds them to the mesh database for further post-processing...
static constexpr direction nComponents
Number of components in bool is 1.
Mesh consisting of general polyhedral cells.
virtual bool write(const bool valid=true) const
Write using setting from DB.
OBJstream os(runTime.globalPath()/outputName)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
label readRawLabel(Istream &is)
Read raw label from binary stream.