Go to the documentation of this file.
38 template<
class Form,
class Cmpt,
int nCmpt>
43 template<
class Form,
class Cmpt,
int nCmpt>
53 template<
class Form,
class Cmpt,
int nCmpt>
54 template<
class Form2,
class Cmpt2>
66 template<
class Form,
class Cmpt,
int nCmpt>
73 template<
class Form,
class Cmpt,
int nCmpt>
83 <<
"index out of range"
92 template<
class Form,
class Cmpt,
int nCmpt>
102 <<
"index out of range"
111 template<
class Form,
class Cmpt,
int nCmpt>
122 <<
"index out of range"
131 template<
class Form,
class Cmpt,
int nCmpt>
142 <<
"index out of range"
153 template<
class Form,
class Cmpt,
int nCmpt>
163 <<
"index out of range"
172 template<
class Form,
class Cmpt,
int nCmpt>
182 <<
"index out of range"
191 template<
class Form,
class Cmpt,
int nCmpt>
201 template<
class Form,
class Cmpt,
int nCmpt>
211 template<
class Form,
class Cmpt,
int nCmpt>
221 template<
class Form,
class Cmpt,
int nCmpt>
231 template<
class Form,
class Cmpt,
int nCmpt>
243 template<
class Form,
class Cmpt,
int nCmpt>
254 template<
class Form,
class Cmpt,
int nCmpt>
268 template<
class Form,
class Cmpt,
int nCmpt>
280 template<
class Form,
class Cmpt,
int nCmpt>
288 return static_cast<const Form&
>(v);
293 template<
class Form,
class Cmpt,
int nCmpt>
301 return sqr(
static_cast<const Form&
>(v));
305 template<
class Form,
class Cmpt,
int nCmpt>
317 template<
class Form,
class Cmpt,
int nCmpt>
327 template<
class Form,
class Cmpt,
int nCmpt>
340 template<
class Form,
class Cmpt,
int nCmpt>
341 inline VectorSpace<Form, Cmpt, nCmpt>
cmptPow
353 template<
class Form,
class Cmpt,
int nCmpt>
354 inline VectorSpace<Form, Cmpt, nCmpt>
cmptDivide
366 template<
class Form,
class Cmpt,
int nCmpt>
367 inline VectorSpace<Form, Cmpt, nCmpt>
stabilise
379 template<
class Form,
class Cmpt,
int nCmpt>
385 Cmpt cMax = vs.
v_[0];
391 template<
class Form,
class Cmpt,
int nCmpt>
397 Cmpt cMin = vs.
v_[0];
403 template<
class Form,
class Cmpt,
int nCmpt>
415 template<
class Form,
class Cmpt,
int nCmpt>
424 template<
class Form,
class Cmpt,
int nCmpt>
430 Cmpt product = vs.
v_[0];
436 template<
class Form,
class Cmpt,
int nCmpt>
448 template<
class Form,
class Cmpt,
int nCmpt>
461 template<
class Form,
class Cmpt,
int nCmpt>
474 template<
class Form,
class Cmpt,
int nCmpt>
488 inline Type
dot(
const scalar
s,
const Type& t)
495 inline Type
dot(
const Type& t,
const scalar
s)
503 class Form1,
class Cmpt1,
int nCmpt1,
504 class Form2,
class Cmpt2,
int nCmpt2
512 return static_cast<const Form1&
>(t1) &
static_cast<const Form2&
>(t2);
518 template<
class Form,
class Cmpt,
int nCmpt>
519 inline Form
operator-
530 template<
class Form,
class Cmpt,
int nCmpt>
531 inline Form
operator+
542 template<
class Form,
class Cmpt,
int nCmpt>
543 inline Form
operator-
555 template<
class Form,
class Cmpt,
int nCmpt>
556 inline Form
operator*
568 template<
class Form,
class Cmpt,
int nCmpt>
569 inline Form
operator*
581 template<
class Form,
class Cmpt,
int nCmpt>
582 inline Form
operator/
621 template<
class Form,
class Cmpt,
int nCmpt>
622 inline Cmpt
operator&&
628 Cmpt ddProd = vs1.
v_[0]*vs2.
v_[0];
629 for (
int i=1; i<nCmpt; ++i)
631 ddProd += vs1.
v_[i]*vs2.
v_[i];
637 template<
class Form,
class Cmpt,
int nCmpt>
638 inline bool operator==
645 for (
int i=0; i<nCmpt; ++i)
647 if (!(eq &= (
equal(vs1.
v_[i], vs2.
v_[i]))))
break;
653 template<
class Form,
class Cmpt,
int nCmpt>
654 inline bool operator!=
660 return !(vs1 == vs2);
664 template<
class Form,
class Cmpt,
int nCmpt>
665 inline bool operator>
672 for (
int i=0; i<nCmpt; ++i)
674 if (!(gt &= vs1.
v_[i] > vs2.
v_[i]))
break;
680 template<
class Form,
class Cmpt,
int nCmpt>
681 inline bool operator<
688 for (
int i=0; i<nCmpt; ++i)
690 if (!(lt &= vs1.
v_[i] < vs2.
v_[i]))
break;
696 template<
class Form,
class Cmpt,
int nCmpt>
697 inline bool operator>=
707 template<
class Form,
class Cmpt,
int nCmpt>
708 inline bool operator<=
static void opSV(V &vs, const S &s, const V1 &vs1, Op o)
label & setComponent(label &l, const direction)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
Scalar cmptPow(const Scalar s1, const Scalar s2)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
label size() const
Return the number of elements in the VectorSpace = nCmpt.
void dot(FieldField< Field1, typename innerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Combination-Reduction operation for a parallel run.
const Cmpt & component(const direction) const
static void eqOpS(V &vs, const S &s, EqOp eo)
dimensioned< scalar > mag(const dimensioned< Type > &)
static void eqOp(V1 &vs1, const V2 &vs2, EqOp eo)
symmTypeOfRank< typename pTraits< arg1 >::cmptType, arg2 *int(pTraits< arg1 >::rank) >::type type
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
static void op(V &vs, const V1 &vs1, const V1 &vs2, Op o)
VectorSpace()
Construct null.
typeOfRank< typename pTraits< arg1 >::cmptType, int(pTraits< arg1 >::rank)+int(pTraits< arg2 >::rank) - 2 >::type type
Cmpt v_[nCmpt]
The components of this vector space.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Cmpt cmptProduct(const VectorSpace< Form, Cmpt, nCmpt > &vs)
void replace(const direction, const Cmpt &)
static void opVS(V &vs, const V1 &vs1, const S &s, Op o)
errorManip< error > abort(error &err)
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))
static void SeqOp(S &s, const V &vs, EqOp eo)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
friend Ostream & operator(Ostream &, const VectorSpace< Form, Cmpt, nCmpt > &)
Scalar minMod(const Scalar s1, const Scalar s2)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Traits class for primitives.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
const dimensionedScalar c
Speed of light in a vacuum.
bool equal(const T &s1, const T &s2)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Cmpt cmptSum(const VectorSpace< Form, Cmpt, nCmpt > &vs)
Traits classes for inner and outer products of primitives.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...