35template<
class ParcelType>
40template<
class ParcelType>
43 sizeof(MPPICParcel<ParcelType>) -
sizeof(ParcelType)
49template<
class ParcelType>
87template<
class ParcelType>
88template<
class CloudType>
91 bool valid = c.size();
100 c.checkFieldIOobject(c, UCorrect);
105 p.UCorrect_ = UCorrect[i];
112template<
class ParcelType>
113template<
class CloudType>
118 const label np = c.size();
127 UCorrect[i] =
p.UCorrect();
132 UCorrect.
write(np > 0);
136template<
class ParcelType>
148 #define writeProp(Name, Value) \
149 ParcelType::writeProperty(os, Name, Value, namesOnly, delim, filters)
157template<
class ParcelType>
158template<
class CloudType>
167 if (!c.size())
return;
169 const auto& UCorrect = cloud::lookupIOField<vector>(
"UCorrect", obr);
174 p.UCorrect() = UCorrect[i];
181template<
class ParcelType>
182template<
class CloudType>
191 const label np = c.size();
193 auto& UCorrect = cloud::createIOField<vector>(
"UCorrect", np, obr);
198 UCorrect[i] =
p.UCorrect();
207template<
class ParcelType>
216 os << static_cast<const ParcelType&>(
p)
221 os << static_cast<const ParcelType&>(
p);
224 reinterpret_cast<const char*
>(&
p.UCorrect_),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Templated base class for dsmc cloud.
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.
Wrapper around kinematic parcel types to add MPPIC modelling.
static const std::size_t sizeofFields
Size in bytes of the fields.
static void readObjects(CloudType &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
vector UCorrect_
Velocity correction due to collisions [m/s].
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly=false) const
Write individual parcel properties to stream.
static void readFields(CloudType &c)
Read.
virtual Ostream & write(const char c)
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void writeFields() const
Write fields.
Reads fields from the time directories and adds them to the mesh database for further post-processing...
Allows specification of different writing frequency of objects registered to the database.
static void readObjects(Cloud< injectedParticle > &c, const objectRegistry &obr)
Read particle fields as objects from the obr registry.
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const
Write individual parcel properties to stream.
Registry of regIOobjects.
static constexpr direction nComponents
Number of components in bool is 1.
static string propertyList()
Mesh consisting of general polyhedral cells.
virtual bool write(const bool valid=true) const
Write using setting from DB.
A class for handling character strings derived from std::string.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define writeProp(Name, Value)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.