Go to the documentation of this file.
33 sizeof(solidParticle) -
sizeof(particle)
50 if (is.
format() == IOstream::ASCII)
57 is.
read(
reinterpret_cast<char*
>(&d_), sizeofFields_);
62 is.
check(
"solidParticle::solidParticle(Istream&)");
76 c.checkFieldIOobject(
c,
d);
79 c.checkFieldIOobject(
c,
U);
123 os << static_cast<const particle&>(
p)
129 os << static_cast<const particle&>(
p);
132 reinterpret_cast<const char*
>(&
p.d_),
138 os.
check(
"Ostream& operator<<(Ostream&, const solidParticle&)");
streamFormat format() const
Return current stream format.
static const std::size_t sizeofFields_
Size in bytes of the fields.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
A primitive field of type <T> with automated input and output.
virtual bool write() const
Write using setting from DB.
This function object reads fields from the time directories and adds them to the mesh database for fu...
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const vector & U() const
Return velocity.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const token &)=0
Write next token to stream.
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
static void writeFields(const Cloud< solidParticle > &c)
solidParticle(const polyMesh &mesh, const vector &position, const label cellI, const label tetFaceI, const label tetPtI, const scalar d, const vector &U)
Construct from components.
static void readFields(Cloud< solidParticle > &c)
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 void readFields(CloudType &c)
Read the fields associated with the owner cloud.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static void writeFields(const CloudType &c)
Write the fields associated with the owner cloud.
virtual Istream & read(token &)=0
Return next token from stream.