59 s = s/(
mag(s) + 1.0e-20);
complexField ComplexField(const UList< scalar > &re, const UList< scalar > &im)
#define forAll(list, i)
Loop across all elements in list.
vectorField U()
Generate and return a velocity field.
static tmp< complexField > reverseTransform(const tmp< complexField > &field, const labelList &nn)
label k
Boltzmann constant.
tmp< scalarField > Ek(const scalar Ea, const scalar k0, const scalarField &k)
CGAL::Exact_predicates_exact_constructions_kernel K
scalarField ReImSum(const UList< complex > &cf)
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))
Type sample01()
Advance the state and return a sample of a given type from a.
dimensionedScalar cos(const dimensionedScalar &ds)
Calculate the wavenumber vector field corresponding to the space vector field of a finite volume mesh...
const scalar twoPi(2 *pi)
dimensionedScalar sin(const dimensionedScalar &ds)
Specialisations of Field<T> for scalar, vector and tensor.
turbGen(const Kmesh &k, const scalar EA, const scalar K0)
Construct from components.
dimensioned< scalar > mag(const dimensioned< Type > &)
scalar Ea(const scalar p, const scalar T) const
scalar scalar01()
Advance the state and return a scalar sample from a uniform.