45 int main(
int argc,
char *argv[])
52 #include "createFields.H"
62 U.primitiveFieldRef() = Ugen.U();
63 U.correctBoundaryConditions();
Calculate the wavenumber vector field corresponding to the space vector field of a finite volume mesh...
static void noParallel()
Remove the parallel options.
Generate a turbulent velocity field conforming to a given energy spectrum and being divergence free.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
void writeEk(const volVectorField &U, const Kmesh &K)
This function evaluates q(k) (McComb, p61) by summing all wavevectors in a k-shell....