38 sizeof(DTRMParticle) -
sizeof(particle)
62 if (is.format() == IOstream::ASCII)
64 is >> p0_ >> p1_ >> I0_ >> I_ >> dA_ >> transmissiveId_;
66 else if (!is.checkLabelSize<>() || !is.checkScalarSize<>())
74 readRawScalar(is, &I0_);
75 readRawScalar(is, &I_);
76 readRawScalar(is, &dA_);
83 is.read(
reinterpret_cast<char*
>(&p0_), sizeofFields_);
94 const wordRes& filters,
102 #define writeProp(Name, Value) \
103 particle::writeProperty(os, Name, Value, namesOnly, delim, filters)
110 writeProp(
"transmissiveId", transmissiveId_);
120 os << static_cast<const particle&>(
p)
130 os << static_cast<const particle&>(
p);
133 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.
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.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual Ostream & write(const char c)
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static constexpr direction nComponents
Number of components in bool is 1.
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 wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
label readRawLabel(Istream &is)
Read raw label from binary stream.