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&)");
123 os << static_cast<const particle&>(
p)
129 os << static_cast<const particle&>(
p);
132 reinterpret_cast<const char*>(&p.d_),
133 solidParticle::sizeofFields_
138 os.
check(
"Ostream& operator<<(Ostream&, const solidParticle&)");
streamFormat format() const
Return current stream format.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void checkFieldIOobject(const Cloud< ParticleType > &c, const IOField< DataType > &data) const
Check lagrangian data field.
#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)...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
static void readFields(CloudType &c)
Read the fields associated with the owner cloud.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
virtual Istream & read(token &)=0
Return next token from stream.
static void writeFields(const CloudType &c)
Write the fields associated with the owner cloud.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static void writeFields(const Cloud< solidParticle > &c)
scalar d() const
Return diameter.
const dimensionedScalar c
Speed of light in a vacuum.
Ostream & operator<<(Ostream &, const ensightPart &)
virtual Ostream & write(const token &)=0
Write next token to stream.
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.
const vector & U() const
Return velocity.
static void readFields(Cloud< solidParticle > &c)
Simple solid spherical particle class with one-way coupling with the continuous phase.