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>
189 inline const Cmpt*
cdata() const noexcept;
192 inline Cmpt*
data() noexcept;
195 inline static Form
uniform(const Cmpt&
s);
197 template<class SubVector,
direction BStart>
198 inline const ConstBlock<SubVector, BStart>
block() const;
211 inline
void operator*=(const scalar);
212 inline
void operator/=(const scalar);
267 template<class Form, class Cmpt,
direction Ncmpts>
276 #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))
iterator end() noexcept
Return an iterator to end of VectorSpace.
VectorSpace()=default
Default construct.
iterator begin() noexcept
Return an iterator to begin of VectorSpace.
Cmpt cmptType
Component type.
Cmpt v_[Ncmpts]
The components of this vector space.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static constexpr direction nCols
const_iterator cbegin() const noexcept
Return const_iterator to begin of VectorSpace.
void replace(const direction, const Cmpt &)
VectorSpace< Form, Cmpt, Ncmpts > vsType
VectorSpace type.
OBJstream os(runTime.globalPath()/outputName)
static const Form rootMin
const_iterator cend() const noexcept
Return const_iterator to end of VectorSpace.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
static const direction nComponents
Number of components in this vector space.
static constexpr direction mRows
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static constexpr direction dim
Dimensionality of space.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static constexpr direction size() noexcept
The number of elements in the VectorSpace = Ncmpts.
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) that can be used to avoid manipulating objects known to ...