31 const std::size_t Foam::solidParticle::sizeofFields_
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&)");
68 bool valid = c.
size();
120 os << static_cast<const particle&>(
p)
126 os << static_cast<const particle&>(
p);
129 reinterpret_cast<const char*>(&p.d_),
130 solidParticle::sizeofFields_
135 os.
check(
"Ostream& operator<<(Ostream&, const solidParticle&)");
virtual Ostream & write(const char)=0
Write character.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
label size() const
Return the number of particles in the cloud.
scalar d() const
Return diameter.
const dimensionedScalar c
Speed of light in a vacuum.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
const vector & U() const
Return velocity.
virtual Istream & read(token &)=0
Return next token from stream.
streamFormat format() const
Return current stream format.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static void writeFields(const Cloud< solidParticle > &c)
solidParticle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const scalar d, const vector &U)
Construct from components.
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.
Ostream & operator<<(Ostream &, const ensightPart &)
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
Mesh consisting of general polyhedral cells.
IOobject fieldIOobject(const word &fieldName, const IOobject::readOption r) const
Helper to construct IOobject for field and current time.
A primitive field of type <T> with automated input and output.
static void readFields(Cloud< solidParticle > &c)
Simple solid spherical particle class with one-way coupling with the continuous phase.