54 s[i] = rndGen_.sample01<
vector>();
55 rndPhases[i] = rndGen_.scalar01();
#define forAll(list, i)
Loop across all elements in list.
Calculate the wavenumber vector field corresponding to the space vector field of a finite volume mesh...
static tmp< complexField > reverseTransform(const tmp< complexField > &field, const labelList &nn)
turbGen(const Kmesh &k, const scalar EA, const scalar K0)
Construct from components.
vectorField U()
Generate and return a velocity field.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const scalar twoPi(2 *pi)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar sin(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
complexField ComplexField(const UList< scalar > &re, const UList< scalar > &im)
tmp< scalarField > Ek(const scalar Ea, const scalar k0, const scalarField &k)
dimensionedScalar cos(const dimensionedScalar &ds)
scalarField ReImSum(const UList< complex > &cf)
Specialisations of Field<T> for scalar, vector and tensor.