32 #ifndef VectorSpaceOps_H 33 #define VectorSpaceOps_H 42 template<direction N, direction I>
47 template<
class V,
class S,
class EqOp>
48 static inline void eqOpS(V& vs,
const S&
s,
EqOp eo)
54 template<
class S,
class V,
class EqOp>
55 static inline void SeqOp(
S&
s,
const V& vs,
EqOp eo)
61 template<
class V1,
class V2,
class EqOp>
62 static inline void eqOp(V1& vs1,
const V2& vs2,
EqOp eo)
64 eo(vs1.v_[
I], vs2.v_[
I]);
69 template<
class V,
class V1,
class S,
class Op>
70 static inline void opVS(V& vs,
const V1& vs1,
const S&
s,
Op o)
72 vs.v_[
I] = o(vs1.v_[
I], s);
76 template<
class V,
class S,
class V1,
class Op>
77 static inline void opSV(V& vs,
const S&
s,
const V1& vs1,
Op o)
79 vs.v_[
I] = o(s, vs1.v_[
I]);
83 template<
class V,
class V1,
class Op>
84 static inline void op(V& vs,
const V1& vs1,
const V1& vs2,
Op o)
86 vs.v_[
I] = o(vs1.v_[
I], vs2.v_[
I]);
97 template<
class V,
class S,
class EqOp>
101 template<
class S,
class V,
class EqOp>
105 template<
class V1,
class V2,
class EqOp>
106 static inline void eqOp(V1&,
const V2&,
EqOp)
110 template<
class V,
class V1,
class S,
class Op>
111 static inline void opVS(V& vs,
const V1&,
const S&,
Op)
114 template<
class V,
class S,
class V1,
class Op>
115 static inline void opSV(V& vs,
const S&,
const V1&,
Op)
118 template<
class V,
class V1,
class Op>
119 static inline void op(V& vs,
const V1&,
const V1&,
Op)
static void opVS(V &vs, const V1 &vs1, const S &s, Op o)
Operator functions for VectorSpace.
static void eqOpS(V &vs, const S &s, EqOp eo)
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 const Identity< scalar > I
tmp< fvMatrix< Type > > S(const Pair< tmp< volScalarField::Internal >> &, const GeometricField< Type, fvPatchField, volMesh > &)
static void SeqOp(S &s, const V &vs, EqOp eo)
static void opSV(V &vs, const S &s, const V1 &vs1, Op o)
static void eqOp(V1 &vs1, const V2 &vs2, EqOp eo)
static void op(V &vs, const V1 &vs1, const V1 &vs2, Op o)