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>
78 template<
class Form,
class Cmpt, direction Ncmpts>
166 template<
class Form2,
class Cmpt2>
182 inline static Form
uniform(
const Cmpt&
s);
184 template<
class SubVector, direction BStart>
203 friend Istream&
operator>> <Form, Cmpt, Ncmpts>
209 friend Ostream& operator<< <Form, Cmpt, Ncmpts>
220 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[]
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 scalar)
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
void operator*=(const scalar)
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))
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.