/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application simpleFoam; startFrom startTime; startTime 0; stopAt endTime; //stopAt writeNow; endTime 1; deltaT 1; writeControl timeStep; writeInterval 1; purgeWrite 0; writeFormat ascii; writePrecision 8; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; cacheTemporaryObjects ( "kOmegaSST:G" "(omega*yWall)" "((interpolate(((1|((1|(1|A(U)))-H(1)))-(1|A(U))))*snGrad(p))*magSf)" ); // ************************************************************************* // functions { /////////////////////////////////////////////////////////////////////////// minmaxdomain { type fieldMinMax; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; mode component; writeControl timeStep; writeInterval 1; log true; fields (p U s1 s2 k omega nut); } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// scalar1 { type scalarTransport; functionObjectLibs ("libsolverFunctionObjects.so"); enabled off; writeControl outputTime; //writeControl timeStep; //writeInterval 1; log yes; nCorr 1; //difussion coefficient D 0; //name of field field s1; //use the schemes of field, in this case, U //schemesField U; } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// scalar2 { type scalarTransport; functionObjectLibs ("libsolverFunctionObjects.so"); enabled off; writeControl outputTime; //writeControl timeStep; //writeInterval 1; log yes; nCorr 2; //difussion coefficient D 0; //name of field field s2; //use the schemes of field, in this case, U //schemesField U; } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// yplus { type yPlus; functionObjectLibs ("libutilityFunctionObjects.so"); enabled off; log true; writeControl outputTime; } /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// writeObjects2 { type writeObjects; libs ("libutilityFunctionObjects.so"); enabled on; writeControl outputTime; //writeControl timeStep; //writeInterval 100; //writeOption anyWrite; //Switch-off to save complex cacheTemporaryObjects names regExp off; objects ( "kOmegaSST:G" "(omega*yWall)" "((interpolate(((1|((1|(1|A(U)))-H(1)))-(1|A(U))))*snGrad(p))*magSf)" ); } /////////////////////////////////////////////////////////////////////////// };