Go to the documentation of this file.
47 int main(
int argc,
char *argv[])
51 "Direct numerical simulation for boxes of isotropic turbulence."
59 #include "createControl.H"
60 #include "createFields.H"
61 #include "initContinuityErrs.H"
70 const scalar recRootN = 1.0/
Foam::sqrt(scalar(ntot));
78 force.primitiveFieldRef() =
ReImSum
82 K/(
mag(
K) + 1.0
e-6) ^ forceGen.newField(),
K.nn()
101 while (
piso.correct())
121 pEqn.solve(
mesh.solver(
p.select(
piso.finalInnerIter())));
125 #include "continuityErrs.H"
128 U.correctBoundaryConditions();
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
tmp< volScalarField > rAU
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Ostream & endl(Ostream &os)
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
CGAL::Exact_predicates_exact_constructions_kernel K
fvMatrix< vector > fvVectorMatrix
fvMatrix< scalar > fvScalarMatrix
GeometricField< scalar, fvPatchField, volMesh > volScalarField
void write(Ostream &, const word &format) const
Execute application functionObjects to post-process existing results.
GeometricField< vector, fvPatchField, volMesh > volVectorField
scalarField ReImSum(const UList< complex > &cf)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
const dimensionedScalar e
graph calcEk(const volVectorField &U, const Kmesh &K)
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
tmp< surfaceScalarField > flux(const volVectorField &vvf)
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))