54 template<
class Form,
class Cmpt, direction Ncmpts>
class VectorSpace;
56 template<
class Form,
class Cmpt, direction Ncmpts>
57 void writeEntry(Ostream& os,
const VectorSpace<Form, Cmpt, Ncmpts>& value);
59 template<
class Form,
class Cmpt, direction Ncmpts>
66 template<
class Form,
class Cmpt, direction Ncmpts>
84 template<
class Form,
class Cmpt, direction Ncmpts>
125 static const Form
nan;
172 template<
class Form2,
class Cmpt2>
188 inline static Form
uniform(
const Cmpt&
s);
190 template<
class SubVector, direction BStart>
204 template<
class Type,
class Enable = EnableRank0<Type>>
206 template<
class Type,
class Enable = EnableRank0<Type>>
212 friend Istream&
operator>> <Form, Cmpt, Ncmpts>
218 friend Ostream& operator<< <Form, Cmpt, Ncmpts>
229 template<
class Form,
class Cmpt, direction Ncmpts>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
ConstBlock(const vsType &vs)
Construct for a given vector.
static const direction nComponents
Number of components in this vector space.
const Cmpt & operator[](const direction i) const
[i] const element access operator
static const char *const componentNames[]
void operator/=(const Type)
friend Ostream & operator(Ostream &, const VectorSpace< Form, Cmpt, Ncmpts > &)
const Cmpt & component(const direction) const
static const direction nComponents
Number of components in this vector space.
void replace(const direction, const Cmpt &)
VectorSpace()
Construct null.
static const direction dim
Dimensionality of space.
void operator*=(const Type)
static const Form rootMax
VectorSpace< Form, Cmpt, Ncmpts > vsType
VectorSpace type.
void operator+=(const VectorSpace< Form, Cmpt, Ncmpts > &)
const ConstBlock< SubVector, BStart > block() const
static const Form rootMin
const Cmpt & operator[](const direction) const
void operator-=(const VectorSpace< Form, Cmpt, Ncmpts > &)
Cmpt v_[Ncmpts]
The components of this vector space.
static Form uniform(const Cmpt &s)
Return a VectorSpace with all elements = s.
Cmpt cmptType
Component type.
static direction size()
Return the number of elements in the VectorSpace = Ncmpts.
static const direction nCols
static const direction mRows
static const char *const typeName
void operator=(const Foam::zero)
A class for handling words, derived from string.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
word name(const bool)
Return a word representation of a bool.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
typename std::enable_if< pTraits< Type >::rank==0 >::type EnableRank0
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.