57template<
class Form,
class Cmpt, direction Ncmpts>
class VectorSpace;
59template<
class Form,
class Cmpt, direction Ncmpts>
66template<
class Form,
class Cmpt, direction Ncmpts>
78template<
class Form,
class Cmpt, direction Ncmpts>
127 template<
class SubVector, direction BStart>
167 template<
class Form2,
class Cmpt2>
195 inline static Form
uniform(const Cmpt&
s);
211 inline
void operator*=(const scalar);
212 inline
void operator/=(const scalar);
276#include "VectorSpaceI.H"
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,...
static const direction nComponents
Number of components in this vector space.
const Cmpt & operator[](const direction i) const
[i] const element access operator
static constexpr direction nCols
static const char *const componentNames[]
const Cmpt & component(const direction) const
void replace(const direction, const Cmpt &)
static constexpr direction nComponents
Number of components in this vector space.
static constexpr direction size() noexcept
The number of elements in the VectorSpace = Ncmpts.
static constexpr direction dim
Dimensionality of space.
Cmpt magType
Magnitude type.
Cmpt * iterator
Random access iterator for traversing VectorSpace.
const Cmpt * cdata() const noexcept
Return const pointer to the first data element.
static const Form rootMax
static constexpr direction mRows
VectorSpace< Form, Cmpt, Ncmpts > vsType
VectorSpace type.
iterator end() noexcept
Return an iterator to end of VectorSpace.
static const Form rootMin
Cmpt v_[Ncmpts]
The components of this vector space.
Cmpt cmptType
Component type.
friend Ostream & operator(Ostream &, const VectorSpace< Form, Cmpt, Ncmpts > &)
const_iterator cend() const noexcept
Return const_iterator to end of VectorSpace.
VectorSpace()=default
Default construct.
iterator begin() noexcept
Return an iterator to begin of VectorSpace.
const Cmpt * const_iterator
Random access iterator for traversing VectorSpace.
const_iterator cbegin() const noexcept
Return const_iterator to begin of VectorSpace.
static const char *const typeName
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
Database for solution data, solver performance and other reduced data.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
OBJstream os(runTime.globalPath()/outputName)
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))
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.