Go to the documentation of this file.
57 template<
class Form,
class Cmpt, direction Ncmpts>
class VectorSpace;
59 template<
class Form,
class Cmpt, direction Ncmpts>
66 template<
class Form,
class Cmpt, direction Ncmpts>
78 template<
class Form,
class Cmpt, direction Ncmpts>
127 template<
class SubVector, direction BStart>
167 template<
class Form2,
class Cmpt2>
183 inline const Cmpt*
cdata() const noexcept;
186 inline Cmpt*
data() noexcept;
189 inline static Form
uniform(const Cmpt&
s);
191 template<class SubVector,
direction BStart>
205 inline
void operator*=(const scalar);
206 inline
void operator/=(const scalar);
261 template<class Form, class Cmpt,
direction Ncmpts>
270 #include "VectorSpaceI.H"
static const Form rootMax
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
Cmpt magType
Magnitude type.
const Cmpt & component(const direction) const
A class for handling words, derived from Foam::string.
static const char *const componentNames[]
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
const_iterator cend() const
Return const_iterator to end of VectorSpace.
static constexpr direction size()
Return the number of elements in the VectorSpace = Ncmpts.
Cmpt * iterator
Random access iterator for traversing VectorSpace.
Cmpt cmptType
Component type.
Cmpt v_[Ncmpts]
The components of this vector space.
const_iterator cbegin() const
Return const_iterator to begin of VectorSpace.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
VectorSpace()
Construct null.
static constexpr direction nCols
void replace(const direction, const Cmpt &)
VectorSpace< Form, Cmpt, Ncmpts > vsType
VectorSpace type.
iterator begin()
Return an iterator to begin of VectorSpace.
static const Form rootMin
iterator end()
Return an iterator to end of VectorSpace.
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc.
static const direction nComponents
Number of components in this vector space.
static constexpr direction mRows
static constexpr direction dim
Dimensionality of space.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const typedef Cmpt * const_iterator
Random access iterator for traversing VectorSpace.
const Cmpt & operator[](const direction i) const
[i] const element access operator
friend Ostream & operator(Ostream &, const VectorSpace< Form, Cmpt, Ncmpts > &)
Database for solution data, solver performance and other reduced data.
ConstBlock(const vsType &vs)
Construct for a given vector.
static constexpr direction nComponents
Number of components in this vector space.
const Cmpt * cdata() const noexcept
Return const pointer to the first data element.
static const char *const typeName
A class representing the concept of 0 (zero), which can be used to avoid manipulating objects that ar...