59 s = s/(
mag(s) + 1.0e-20);
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 ))
dimensioned< scalar > mag(const dimensioned< Type > &)
CGAL::Exact_predicates_exact_constructions_kernel K
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Specialisations of Field<T> for scalar, vector and tensor.
vector vector01()
Vector with every component scalar01.
static tmp< complexField > reverseTransform(const tmp< complexField > &field, const labelList &nn)
scalarField ReImSum(const UList< complex > &cf)
complexField ComplexField(const UList< scalar > &re, const UList< scalar > &im)
label k
Boltzmann constant.
dimensionedScalar cos(const dimensionedScalar &ds)
Calculate the wavenumber vector field corresponding to the space vector field of a finite volume mesh...
scalar scalar01()
Scalar [0..1] (so including 0,1)
tmp< scalarField > Ek(const scalar Ea, const scalar k0, const scalarField &k)
vectorField U()
Generate and return a velocity field.
const scalar twoPi(2 *pi)
turbGen(const Kmesh &k, const scalar EA, const scalar K0)
Construct from components.
dimensionedScalar sin(const dimensionedScalar &ds)