Go to the documentation of this file.
33 template<
class ParcelType>
36 sizeof(DSMCParcel<ParcelType>) -
sizeof(ParcelType)
42 template<
class ParcelType>
72 "DSMCParcel<ParcelType>::DSMCParcel"
73 "(const Cloud<ParcelType>&, Istream&, bool)"
78 template<
class ParcelType>
89 c.checkFieldIOobject(
c,
U);
92 c.checkFieldIOobject(
c, Ei);
95 c.checkFieldIOobject(
c, typeId);
104 p.typeId_ = typeId[i];
110 template<
class ParcelType>
116 ParcelType::writeFields(
c);
131 typeId[i] =
p.typeId();
143 template<
class ParcelType>
152 os << static_cast<const ParcelType& >(
p)
159 os << static_cast<const ParcelType& >(
p);
162 reinterpret_cast<const char*
>(&
p.U_),
170 "Ostream& operator<<(Ostream&, const DSMCParcel<ParcelType>&)"
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
virtual bool write() const
Write using setting from DB.
label typeId_
Parcel type id.
static void readFields(Cloud< DSMCParcel< ParcelType > > &c)
static void writeFields(const Cloud< DSMCParcel< ParcelType > > &c)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
DSMCParcel(const polyMesh &mesh, const vector &position, const vector &U, const scalar Ei, const label cellI, const label tetFaceI, const label tetPtI, const label typeId)
Construct from components.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const std::size_t sizeofFields_
Size in bytes of the fields.
vector U_
Velocity of Parcel [m/s].
scalar Ei_
Internal energy of the Parcel, covering all non-translational.
Vector< scalar > vector
A scalar version of the templated Vector.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
void readFields(const boolList &haveMesh, const fvMesh &mesh, const autoPtr< fvMeshSubset > &subsetterPtr, IOobjectList &allObjects, PtrList< GeoField > &fields)
Base cloud calls templated on particle type.
label readLabel(Istream &is)
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...