38 sizeof(DTRMParticle) -
sizeof(particle)
62 if (is.format() == IOstreamOption::ASCII)
64 is >> p0_ >> p1_ >> I0_ >> I_ >> dA_ >> transmissiveId_;
71 is.read(
reinterpret_cast<char*
>(&p0_), sizeofFields_);
82 const wordRes& filters,
90 #define writeProp(Name, Value) \
91 particle::writeProperty(os, Name, Value, namesOnly, delim, filters)
98 writeProp(
"transmissiveId", transmissiveId_);
121 reinterpret_cast<const char*
>(&
p.p0_),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Discrete Transfer Radiation Model (DTRM) particle.
DTRMParticle(const polyMesh &mesh, const vector &position, const vector &targetPosition, const scalar I, const label cellI, const scalar dA, const label transmissiveId)
Construct from components, with searching for tetFace and.
static const std::size_t sizeofFields_
Size in bytes of the fields.
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly=false) const
Write individual parcel properties to stream.
streamFormat format() const noexcept
Get the current stream format.
@ ASCII
"ascii" (normal default)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual Ostream & write(const char c) override
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static string propertyList()
void writeProperties(Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const
Write individual particle properties to stream.
static string propertyList_
String representation of properties.
A class for handling character strings derived from std::string.
OBJstream os(runTime.globalPath()/outputName)
#define writeProp(Name, Value)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).