54 template<
class Form,
class Cmpt, direction Ncmpts>
class VectorSpace;
56 template<
class Form,
class Cmpt, direction Ncmpts>
59 template<
class Form,
class Cmpt, direction Ncmpts>
66 template<
class Form,
class Cmpt, direction Ncmpts>
78 template<
class Form,
class Cmpt, direction Ncmpts>
137 static const direction nComponents = SubVector::nComponents;
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>
static const direction nCols
static const char *const typeName
static const direction mRows
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
VectorSpace()
Construct null.
static const char *const componentNames[]
static const Form rootMin
ConstBlock(const vsType &vs)
Construct for a given vector.
void replace(const direction, const Cmpt &)
void operator-=(const VectorSpace< Form, Cmpt, Ncmpts > &)
static const direction nComponents
Number of components in this vector space.
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.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A class for handling words, derived from string.
void operator+=(const VectorSpace< Form, Cmpt, Ncmpts > &)
void operator=(const Foam::zero)
const ConstBlock< SubVector, BStart > block() const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static direction size()
Return the number of elements in the VectorSpace = Ncmpts.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
friend Ostream & operator(Ostream &, const VectorSpace< Form, Cmpt, Ncmpts > &)
word name(const complex &)
Return a string representation of a complex.
static const Form rootMax
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc...
Cmpt cmptType
Component type.
void operator*=(const scalar)
const Cmpt & component(const direction) const
VectorSpace< Form, Cmpt, Ncmpts > vsType
VectorSpace type.
static Form uniform(const Cmpt &s)
Return a VectorSpace with all elements = s.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
void operator/=(const scalar)
static const direction dim
Dimensionality of space.
Cmpt v_[Ncmpts]
The components of this vector space.
const Cmpt & operator[](const direction i) const
[i] const element access operator