Go to the documentation of this file.
36 template<
class ParcelType>
39 sizeof(DSMCParcel<ParcelType>) -
sizeof(ParcelType)
45 template<
class ParcelType>
65 else if (!is.checkLabelSize<>() || !is.checkScalarSize<>())
72 readRawScalar(is, &
Ei_);
87 template<
class ParcelType>
90 bool valid =
c.size();
95 c.checkFieldIOobject(
c,
U);
98 c.checkFieldIOobject(
c, Ei);
100 IOField<label> typeId
105 c.checkFieldIOobject(
c, typeId);
108 for (DSMCParcel<ParcelType>&
p :
c)
112 p.typeId_ = typeId[i];
118 template<
class ParcelType>
121 const Cloud<DSMCParcel<ParcelType>>&
c
133 for (
const DSMCParcel<ParcelType>&
p :
c)
137 typeId[i] =
p.typeId();
143 typeId.write(np > 0);
149 template<
class ParcelType>
153 const DSMCParcel<ParcelType>&
p
158 os << static_cast<const ParcelType& >(
p)
165 os << static_cast<const ParcelType& >(
p);
168 reinterpret_cast<const char*
>(&
p.U_),
DSMCParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const vector &U, const scalar Ei, const label typeId)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A primitive field of type <T> with automated input and output.
static constexpr const zero Zero
streamFormat format() const noexcept
virtual Ostream & write(const char c)
static void readFields(Cloud< DSMCParcel< ParcelType >> &c)
virtual bool check(const char *operation) const
OBJstream os(runTime.globalPath()/outputName)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
@ ASCII
"ascii" (normal default)
static void writeFields(const Cloud< DSMCParcel< ParcelType >> &c)
Base cloud calls templated on particle type.
const dimensionedScalar c
label readRawLabel(Istream &is)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static constexpr direction nComponents
void writeFields(const fvMesh &mesh, const wordHashSet &selectedFields, const bool writeFaceFields)
static const std::size_t sizeofFields