Go to the documentation of this file.
36 sizeof(solidParticle) -
sizeof(particle)
54 if (is.
format() == IOstream::ASCII)
64 readRawScalar(is, &d_);
65 readRawScalar(is, U_.data(), vector::nComponents);
71 is.
read(
reinterpret_cast<char*
>(&d_), sizeofFields);
81 bool valid =
c.size();
86 c.checkFieldIOobject(
c,
d);
89 c.checkFieldIOobject(
c,
U);
105 const label np =
c.size();
129 os << static_cast<const particle&>(
p)
135 os << static_cast<const particle&>(
p);
138 reinterpret_cast<const char*
>(&
p.d_),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A primitive field of type <T> with automated input and output.
streamFormat format() const noexcept
Get the current stream format.
static void readFields(TrackCloudType &c)
Read the fields associated with the owner cloud.
static void writeFields(const TrackCloudType &c)
Write the fields associated with the owner cloud.
Mesh consisting of general polyhedral cells.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual bool endRawRead()=0
End of low-level raw binary read.
const vector & U() const
Return velocity.
solidParticle(const polyMesh &mesh, const vector &position, const label celli=-1)
Construct from a position and a cell.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
std::enable_if< std::is_integral< T >::value, bool >::type checkLabelSize() const
virtual bool check(const char *operation) const
Check IOstream status for given operation.
static void writeFields(const Cloud< solidParticle > &c)
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
static void readFields(Cloud< solidParticle > &c)
virtual bool beginRawRead()=0
Start of low-level raw binary read.
std::enable_if< std::is_floating_point< T >::value, bool >::type checkScalarSize() const
scalar d() const
Return diameter.
Simple solid spherical particle class with one-way coupling with the continuous phase.
const dimensionedScalar c
Speed of light in a vacuum.
static const std::size_t sizeofFields
Size in bytes of the fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Istream & read(token &)=0
Return next token from stream.