32 template<
class ParcelType>
33 Foam::string Foam::MPPICParcel<ParcelType>::propertyList_ =
36 template<
class ParcelType>
39 sizeof(MPPICParcel<ParcelType>) -
sizeof(ParcelType)
45 template<
class ParcelType>
53 ParcelType(mesh, is, readFields),
58 if (is.
format() == IOstream::ASCII)
64 is.
read(reinterpret_cast<char*>(&UCorrect_), sizeofFields_);
70 "MPPICParcel<ParcelType>::Collisions" 71 "(const polyMesh&, Istream&, bool)" 76 template<
class ParcelType>
77 template<
class CloudType>
103 template<
class ParcelType>
104 template<
class CloudType>
107 ParcelType::writeFields(c);
112 UCorrect(c.
fieldIOobject(
"UCorrect", IOobject::NO_READ), np);
131 template<
class ParcelType>
138 if (os.format() == IOstream::ASCII)
140 os << static_cast<const ParcelType&>(
p)
141 << token::SPACE <<
p.UCorrect();
145 os << static_cast<const ParcelType&>(
p);
148 reinterpret_cast<const char*>(&
p.UCorrect_),
155 "Ostream& operator<<(Ostream&, const MPPICParcel<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.
#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...
virtual Istream & read(token &)=0
Return next token from stream.
Wrapper around kinematic parcel types to add MPPIC modelling.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static void writeFields(const CloudType &c)
Write.
MPPICParcel(const polyMesh &mesh, const vector &position, const label celli, const label tetFacei, const label tetPtI)
Construct from owner, position, and cloud owner.
vector UCorrect_
Velocity correction due to collisions [m/s].
const dimensionedScalar c
Speed of light in a vacuum.
const vector & UCorrect() const
Return const access to correction velocity.
virtual bool write() const
Write using setting from DB.
static void readFields(CloudType &c)
Read.
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.