32 const std::size_t Foam::solidParticle::sizeofFields_
34 sizeof(solidParticle) -
sizeof(particle)
53 is.
read(
reinterpret_cast<char*
>(&d_), sizeofFields_);
58 is.
check(
"solidParticle::solidParticle(Istream&)");
69 c.checkFieldIOobject(
c, d);
72 c.checkFieldIOobject(
c,
U);
116 os << static_cast<const particle&>(
p)
122 os << static_cast<const particle&>(
p);
125 reinterpret_cast<const char*
>(&
p.d_),
126 solidParticle::sizeofFields_
131 os.
check(
"Ostream& operator<<(Ostream&, const solidParticle&)");
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.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
A primitive field of type <Type> with automated input and output.
streamFormat format() const
Return current stream format.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Istream & read(token &)=0
Return next token from stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const char)=0
Write character.
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.
virtual bool write(const bool write=true) const
Write using setting from DB.
Simple solid spherical particle class with one-way coupling with the continuous phase.
solidParticle(Istream &is, bool readFields=true)
Construct from Istream.
static void readFields(Cloud< solidParticle > &c)
static void writeFields(const Cloud< solidParticle > &c)
bool valid(const PtrList< ModelType > &l)
const dimensionedScalar c
Speed of light in a vacuum.
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 readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the specified type.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)