{ "yPlusVerification/1": { "usr_requirement": "Perform a wall y+ verification in a 1D periodic turbulent channel using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application with steady-state SIMPLE pressure-velocity coupling. Use cyclic streamwise boundaries, a no-slip wall, a symmetry-plane centreline, and an empty front/back direction. Use 15 wall-normal cells with a grading ratio of 1 and the RAS kOmega turbulence model. Use kinematic viscosity nu=2e-5 and drive the flow with meanVelocityForce Ubar=(0.4 0 0) on the fluid cellZone. Run steady-state SIMPLE iterations using startTime=0, endTime=500, deltaT=0.25, writeControl=runTime, and writeInterval=20 as the iteration and output controls. Compare the sampled u+ versus y+ wall-law profile against the Spalding law analytical profile. Take the half-channel height as 1 m.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmega;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (1 15 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 20;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/2": { "usr_requirement": "Perform a wall y+ verification in a 1D periodic turbulent channel using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application with steady-state SIMPLE pressure-velocity coupling. Use cyclic streamwise boundaries, a no-slip wall, a symmetry-plane centreline, and an empty front/back direction. Use 15 wall-normal cells with a grading ratio of 1 and the RAS kEpsilon turbulence model. Use kinematic viscosity nu=2e-5 and drive the flow with meanVelocityForce Ubar=(0.4 0 0) on the fluid cellZone. Run steady-state SIMPLE iterations using startTime=0, endTime=500, deltaT=0.25, writeControl=runTime, and writeInterval=20 as the iteration and output controls. Compare the sampled u+ versus y+ wall-law profile against the Spalding law analytical profile. Take the half-channel height as 1 m.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (1 15 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 20;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/3": { "usr_requirement": "Perform a wall y+ verification in a 1D periodic turbulent channel using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application with steady-state SIMPLE pressure-velocity coupling. Use cyclic streamwise boundaries, a no-slip wall, a symmetry-plane centreline, and an empty front/back direction. Use 50 wall-normal cells with a grading ratio of 100 and the RAS LaunderSharmaKE low-Reynolds-number turbulence model. Use kinematic viscosity nu=2e-5 and drive the flow with meanVelocityForce Ubar=(0.4 0 0) on the fluid cellZone. Run steady-state SIMPLE iterations using startTime=0, endTime=2500, deltaT=0.25, writeControl=runTime, and writeInterval=100 as the iteration and output controls. Compare the sampled u+ versus y+ wall-law profile against the Spalding law analytical profile. Take the half-channel height as 1 m.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model LaunderSharmaKE;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (1 15 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n //hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 2500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 100;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "0/v2": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object v2;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.1;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 1e-15;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/f": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object f;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/4": { "usr_requirement": "Perform a wall y+ verification in a 1D periodic turbulent channel using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application with steady-state SIMPLE pressure-velocity coupling. Use cyclic streamwise boundaries, a no-slip wall, a symmetry-plane centreline, and an empty front/back direction. Use 50 wall-normal cells with a grading ratio of 100 and the RAS LamBremhorstKE low-Reynolds-number turbulence model. Use kinematic viscosity nu=2e-5 and drive the flow with meanVelocityForce Ubar=(0.4 0 0) on the fluid cellZone. Run steady-state SIMPLE iterations using startTime=0, endTime=2500, deltaT=0.25, writeControl=runTime, and writeInterval=100 as the iteration and output controls. Compare the sampled u+ versus y+ wall-law profile against the Spalding law analytical profile. Take the half-channel height as 1 m.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model LamBremhorstKE;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (1 15 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n //hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 2500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 100;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "0/v2": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object v2;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.1;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 1e-15;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/f": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object f;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/5": { "usr_requirement": "Perform a wall y+ verification in a 1D periodic turbulent channel using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application with steady-state SIMPLE pressure-velocity coupling. Use cyclic streamwise boundaries, a no-slip wall, a symmetry-plane centreline, and an empty front/back direction. Use 50 wall-normal cells with a grading ratio of 100 and the RAS LienCubicKE low-Reynolds-number turbulence model. Use kinematic viscosity nu=2e-5 and drive the flow with meanVelocityForce Ubar=(0.4 0 0) on the fluid cellZone. Run steady-state SIMPLE iterations using startTime=0, endTime=2500, deltaT=0.25, writeControl=runTime, and writeInterval=100 as the iteration and output controls. Compare the sampled u+ versus y+ wall-law profile against the Spalding law analytical profile. Take the half-channel height as 1 m.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model LienCubicKE;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (1 15 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n //hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 2500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 100;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "0/v2": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object v2;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.1;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 1e-15;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/f": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object f;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/6": { "usr_requirement": "Perform a wall y+ verification in a 1D periodic turbulent channel using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application with steady-state SIMPLE pressure-velocity coupling. Use cyclic streamwise boundaries, a no-slip wall, a symmetry-plane centreline, and an empty front/back direction. Use 50 wall-normal cells with a grading ratio of 100 and the RAS v2f low-Reynolds-number turbulence model. Use kinematic viscosity nu=2e-5 and drive the flow with meanVelocityForce Ubar=(0.4 0 0) on the fluid cellZone. Run steady-state SIMPLE iterations using startTime=0, endTime=2500, deltaT=0.25, writeControl=runTime, and writeInterval=100 as the iteration and output controls. Compare the sampled u+ versus y+ wall-law profile against the Spalding law analytical profile. Take the half-channel height as 1 m.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model v2f;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (1 15 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n //hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 2500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 100;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "0/v2": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object v2;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.1;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 1e-15;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/f": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object f;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/7": { "usr_requirement": "Perform a wall y+ verification in a 1D periodic turbulent channel using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application with steady-state SIMPLE pressure-velocity coupling. Use cyclic streamwise boundaries, a no-slip wall, a symmetry-plane centreline, and an empty front/back direction. Use 50 wall-normal cells with a grading ratio of 100 and the RAS qZeta low-Reynolds-number turbulence model. Use kinematic viscosity nu=2e-5 and drive the flow with meanVelocityForce Ubar=(0.4 0 0) on the fluid cellZone. Run steady-state SIMPLE iterations using startTime=0, endTime=2500, deltaT=0.25, writeControl=runTime, and writeInterval=100 as the iteration and output controls. Compare the sampled u+ versus y+ wall-law profile against the Spalding law analytical profile. Take the half-channel height as 1 m.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutLowReWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model qZeta;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (1 15 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n //hex (0 1 2 3 4 5 6 7) (1 50 1) simpleGrading (1 100 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 2500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 100;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n div(phi,q) bounded Gauss limitedLinear 1;\n div(phi,zeta) bounded Gauss limitedLinear 1;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2|q|zeta)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2|q|zeta)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2|q|zeta)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2|q|zeta)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "0/zeta": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object zeta;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 1e-15;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n\n}\n\n// ************************************************************************* //\n", "0/q": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object q;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform 0.316227766;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n value uniform 1e-15;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n\n}\n\n// ************************************************************************* //\n", "0/v2": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object v2;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.1;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 1e-15;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/f": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object f;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/8": { "usr_requirement": "Perform a steady wall y+ verification in the same 1D periodic channel as yPlusVerification/1 and /2, using foamRun -solver incompressibleFluid, SIMPLE coupling, RAS kOmegaSST, 15 wall-normal cells, uniform grading, nu=2e-5, meanVelocityForce Ubar=(0.4 0 0), endTime=500, deltaT=0.25, writeControl=runTime, and writeInterval=20. This is the third-model comparison against the kOmega and kEpsilon variants. Take the half-channel height as 1 m.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n delta cubeRootVol;\n filter simple;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (1 15 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 20;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/9": { "usr_requirement": "Perform the coarse-wall-resolution y+ verification variant with the standard RAS kOmega model on the 30-cell wall-normal mesh with simpleGrading ratio 50. Keep the periodic channel forcing, endTime=500, deltaT=0.25, sampling, and Spalding comparison workflow fixed; this is distinct from the 15-cell kOmega baseline because the mesh and resulting wall-resolution target differ. Take the half-channel height as 1 m. Use kinematic viscosity 2e-5 m2/s and target mean velocity 0.4 m/s.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmega;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (1 30 1) simpleGrading (1 50 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 20;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "yPlusVerification/10": { "usr_requirement": "Perform a wall y+ verification viscosity-sensitivity comparison in a periodic half-channel using OpenFOAM-13 with foamRun -solver incompressibleFluid, steady SIMPLE coupling, a 30-cell wall-normal mesh with grading ratio 50, and RAS kEpsilon. Run three nominal branches labelled Re_tau_180, Re_tau_395, and Re_tau_590 using nu=0.005555555556, 0.002531645570, and 0.001694915254 respectively while keeping meanVelocityForce Ubar=(0.4 0 0), geometry, boundaries, and controls fixed. The labels identify the viscosity values obtained from an initial u_tau=1 estimate; do not assume they are achieved Reynolds numbers. For every converged branch, obtain u_tau from positive computed wall shear, calculate and report achieved Re_tau=u_tau*delta/nu with delta=1, and compare sampled u+ versus y+ against Spalding law. Fail post-processing if wall shear is unavailable. The half-channel height is 1 m; the nominal Reynolds-number labels are only branch names, and the achieved friction Reynolds number must come from the computed wall shear.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0.4 0 0);\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type kqRWallFunction;\n value uniform 1e-8;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0001;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type epsilonWallFunction;\n value uniform 0.0001;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 1000;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type omegaWallFunction;\n value uniform 1000;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n left\n {\n type cyclic;\n }\n\n right\n {\n type cyclic;\n }\n\n walls\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n centreline\n {\n type symmetryPlane;\n }\n\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/uniform/time": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"0/uniform\";\n object time;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nbeginTime 0;\n\nvalue 0;\n\nname \"0\";\n\nindex 0;\n\ndeltaT 0.25;\n\ndeltaT0 0.25;\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 2e-5;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 0.1;\n\nvertices\n(\n (-1 0 -1)\n ( 1 0 -1)\n ( 1 10 -1)\n (-1 10 -1)\n\n (-1 0 1)\n ( 1 0 1)\n ( 1 10 1)\n (-1 10 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (1 30 1) simpleGrading (1 50 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n left\n {\n type cyclic;\n neighbourPatch right;\n faces\n (\n (0 3 7 4)\n );\n }\n\n right\n {\n type cyclic;\n neighbourPatch left;\n faces\n (\n (1 2 6 5)\n );\n }\n\n walls\n {\n type wall;\n faces\n (\n (0 1 5 4)\n );\n }\n\n centreline\n {\n type symmetryPlane;\n faces\n (\n (2 3 7 6)\n );\n }\n\n frontAndBack\n {\n type empty;\n faces\n (\n (0 1 2 3)\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 0.25;\n\nwriteControl runTime;\n\nwriteInterval 20;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n//cacheTemporaryObjects\n//(\n// G\n//);\n\nfunctions\n{\n yPlus\n {\n type yPlus;\n libs (\"libfieldFunctionObjects.so\");\n executeControl writeTime;\n writeControl writeTime;\n }\n\n //#includeFunc writeObjects(\"k\")\n\n //yPlus\n //{\n // libs (\"libutilityFunctionObjects.so\");\n\n // type coded;\n\n // codeWrite\n // #{\n // const volScalarField& R = mesh().lookupObjectRef(\"R\");\n // #};\n //}\n}\n", "system/fvConstraints": "FoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n\nmomentumForce\n{\n type meanVelocityForce;\n cellZone fluid;\n Ubar (0.4 0 0);\n}\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss linearUpwind grad(U);\n div(phi,k) bounded Gauss limitedLinear 1;\n div(phi,epsilon) bounded Gauss limitedLinear 1;\n div(phi,omega) bounded Gauss limitedLinear 1;\n div(phi,nuTilda) bounded Gauss limitedLinear 1;\n div(phi,f) bounded Gauss limitedLinear 1;\n div(phi,v2) bounded Gauss limitedLinear 1;\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n div(nonlinearStress) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon|omega|nuTilda|f|v2)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon|omega|nuTilda|f|v2)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n(\n data\n {\n type lineFace;\n axis y;\n start (0 0 0);\n end (0 1 0);\n nPoints 100;\n }\n);\n\nfields (U yPlus);\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleFluid\"\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\nrunApplication postProcess -solver incompressibleFluid -func yPlus\nrunApplication -a postProcess -latestTime -solver incompressibleFluid -func wallShearStress\nrunApplication -a postProcess -latestTime -func sample\npython3 system/spaldingCompare.py", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name fluidCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-1e10 -1e10 -1e10) (1e10 1e10 1e10);\n }\n\n {\n name fluid;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set fluidCells;\n }\n);\n\n// ************************************************************************* //\n", "reference_subcases": [ { "id": "Re_tau_180", "delta": 1, "nu": 0.005555555555555556, "usr_requirement": "Run the periodic-channel viscosity branch Re_tau_180 with nu=0.005555555555555556, Ubar=(0.4 0 0), delta=1, the 30-cell grading-50 mesh, RAS kEpsilon, and steady SIMPLE controls. Treat 180 as a nominal label only; derive u_tau from computed positive wall shear and report the achieved Re_tau=u_tau/nu. Do not use a hard-coded friction velocity. The half-channel height is 1 m; the nominal Reynolds-number labels are only branch names, and the achieved friction Reynolds number must come from the computed wall shear.", "overrides": { "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 0.005555555556;\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nmomentumForce\n{\n type meanVelocityForce;\n\n cellZone fluid;\n\n Ubar (0.4 0 0);\n}\n\n// ************************************************************************* //\n" }, "nominal_Re_tau": 180 }, { "id": "Re_tau_395", "delta": 1, "nu": 0.002531645569620253, "usr_requirement": "Run the periodic-channel viscosity branch Re_tau_395 with nu=0.002531645569620253, Ubar=(0.4 0 0), delta=1, the 30-cell grading-50 mesh, RAS kEpsilon, and steady SIMPLE controls. Treat 395 as a nominal label only; derive u_tau from computed positive wall shear and report the achieved Re_tau=u_tau/nu. Do not use a hard-coded friction velocity. The half-channel height is 1 m; the nominal Reynolds-number labels are only branch names, and the achieved friction Reynolds number must come from the computed wall shear.", "overrides": { "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 0.00253164557;\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nmomentumForce\n{\n type meanVelocityForce;\n\n cellZone fluid;\n\n Ubar (0.4 0 0);\n}\n\n// ************************************************************************* //\n" }, "nominal_Re_tau": 395 }, { "id": "Re_tau_590", "delta": 1, "nu": 0.001694915254237288, "usr_requirement": "Run the periodic-channel viscosity branch Re_tau_590 with nu=0.001694915254237288, Ubar=(0.4 0 0), delta=1, the 30-cell grading-50 mesh, RAS kEpsilon, and steady SIMPLE controls. Treat 590 as a nominal label only; derive u_tau from computed positive wall shear and report the achieved Re_tau=u_tau/nu. Do not use a hard-coded friction velocity. The half-channel height is 1 m; the nominal Reynolds-number labels are only branch names, and the achieved friction Reynolds number must come from the computed wall shear.", "overrides": { "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\nnu [0 2 -1 0 0 0 0] 0.001694915254;\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nmomentumForce\n{\n type meanVelocityForce;\n\n cellZone fluid;\n\n Ubar (0.4 0 0);\n}\n\n// ************************************************************************* //\n" }, "nominal_Re_tau": 590 } ], "system/spaldingCompare.py": "#!/usr/bin/env python3\nimport math\nimport pathlib\nimport re\nimport sys\nif len(sys.argv) > 1:\n src = pathlib.Path(sys.argv[1])\nelse:\n candidates = sorted([p for p in pathlib.Path(\"postProcessing\").rglob(\"*\") if p.suffix in {\".raw\", \".xy\"} and \"spalding_comparison\" not in p.name]) if pathlib.Path(\"postProcessing\").exists() else []\n def time_key(path):\n try:\n return float(path.parent.name)\n except ValueError:\n return -1.0\n src = max(candidates, key=time_key) if candidates else pathlib.Path(\"postProcessing/sample/0/data.raw\")\nout = src.with_name(\"spalding_comparison.raw\")\nkap, B = 0.41, 5.2\ntauw = None\nwall_files = sorted(pathlib.Path(\"postProcessing\").rglob(\"wallShearStress.dat\")) if pathlib.Path(\"postProcessing\").exists() else []\nif wall_files:\n for line in reversed(wall_files[-1].read_text().splitlines()):\n nums = line.replace(\"(\", \" \").replace(\")\", \" \").split()\n try:\n if len(nums) >= 8:\n tauw = abs(float(nums[2]))\n break\n except ValueError:\n pass\nif tauw is None or tauw <= 0:\n raise RuntimeError(\"Positive wall shear stress was not found; refusing to fabricate friction velocity\")\nutau = math.sqrt(tauw)\nnu = None\nfor prop in (pathlib.Path(\"constant/physicalProperties\"), pathlib.Path(\"constant/physicalProperties.air\")):\n if prop.exists():\n match = re.search(r\"(?m)^\\s*nu\\s+(?:\\[[^]]+\\]\\s+)?([0-9.eE+-]+)\\s*;\", prop.read_text())\n if match:\n nu = float(match.group(1))\n break\nif nu is None or nu <= 0:\n raise RuntimeError(\"Could not determine positive kinematic viscosity from constant physicalProperties\")\nachieved_re_tau = utau / nu\nprint(f\"u_tau={utau:.12g} nu={nu:.12g} achieved_Re_tau={achieved_re_tau:.12g}\")\nwith out.open(\"w\") as stream:\n stream.write(\"# yPlus uPlus spaldingYPlus residual\\n\")\n for line in (src.read_text().splitlines() if src.exists() else []):\n try:\n vals = [float(x) for x in line.replace(\"(\", \" \").replace(\")\", \" \").split()]\n except ValueError:\n continue\n if len(vals) < 2:\n continue\n yp = utau * vals[0] / nu\n up = abs(vals[1]) / utau\n sp = up + math.exp(-kap * B) * (math.exp(kap * up) - 1 - kap * up - (kap * up)**2 / 2 - (kap * up)**3 / 6)\n stream.write(f\"{yp:.12g} {up:.12g} {sp:.12g} {yp-sp:.12g}\\n\")\n" }, "risingBubble/1": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 24.5;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss vanLeer;\n div(phirb,alpha) Gauss vanLeer;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 20x40 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=24.5, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. Use the baseline vanLeer VOF alpha-advection scheme without the explicit interfaceCompression scheme variant. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "risingBubble/2": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 24.5;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (40 80 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (40 80 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss vanLeer;\n div(phirb,alpha) Gauss vanLeer;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 40x80 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=24.5, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. Use the baseline vanLeer VOF alpha-advection scheme without the explicit interfaceCompression scheme variant. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "risingBubble/3": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 24.5;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (80 160 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (80 160 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss vanLeer;\n div(phirb,alpha) Gauss vanLeer;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 80x160 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=24.5, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. Use the baseline vanLeer VOF alpha-advection scheme without the explicit interfaceCompression scheme variant. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "risingBubble/4": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 24.5;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss interfaceCompression linear 1;\n div(phirb,alpha) Gauss interfaceCompression linear 1;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 20x40 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=24.5, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. Change only the interface-capturing scheme relative to the vanLeer baseline: use the explicit interfaceCompression alpha-transport scheme with a linear base interpolation instead of the baseline Gauss vanLeer alpha advection. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "risingBubble/5": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 24.5;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss PLIC interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.water.*\"\n {\n nCorrectors 2;\n nSubCycles 1;\n\n MULESCorr yes;\n\n MULES\n {\n nIter 10;\n tolerance 1e-8;\n globalBounds true;\n }\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 20x40 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=24.5, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. This variant follows the PDF design intent of an isoAdvector geometric reconstruction comparison, but OpenFOAM Foundation v13 does not provide the original isoAdvector method in this solver path; implement the closest available geometric VOF analogue as Gauss PLIC interfaceCompression vanLeer 1. Therefore the research purpose is comparable to the isoAdvector variant, while the numerical method entity is the Foundation-v13 PLIC/interfaceCompression approximation rather than native isoAdvector. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "risingBubble/6": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 12.25;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss vanLeer;\n div(phirb,alpha) Gauss vanLeer;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 20x40 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=12.25, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. Use the baseline vanLeer VOF alpha-advection scheme without the explicit interfaceCompression scheme variant. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "risingBubble/7": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 49.0;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss vanLeer;\n div(phirb,alpha) Gauss vanLeer;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 20x40 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=49.0, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. Use the baseline vanLeer VOF alpha-advection scheme without the explicit interfaceCompression scheme variant. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "risingBubble/8": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n front\n {\n type symmetryPlane;\n }\n\n back\n {\n type symmetryPlane;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n front\n {\n type symmetryPlane;\n }\n\n back\n {\n type symmetryPlane;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n front\n {\n type symmetryPlane;\n }\n\n back\n {\n type symmetryPlane;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 24.5;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n front\n {\n type symmetryPlane;\n faces\n (\n (0 3 2 1)\n );\n }\n back\n {\n type symmetryPlane;\n faces\n (\n (4 5 6 7)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss vanLeer;\n div(phirb,alpha) Gauss vanLeer;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 20x40 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=24.5, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. Use the baseline vanLeer VOF alpha-advection scheme without the explicit interfaceCompression scheme variant. Use adaptive mesh refinement with dynamicRefineFvMesh to refine the mesh around the gas-liquid interface during the calculation, while keeping the initial coarse mesh and baseline physical properties; implement the reference case as a thin quasi-2D slab with front/back symmetry planes if needed for OpenFOAM dynamic refinement. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/dynamicMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object dynamicMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntopoChanger\n{\n type refiner;\n\n libs (\"libfvMeshTopoChangers.so\");\n\n mover none;\n\n refineInterval 1;\n\n field alpha.water;\n\n lowerRefineLevel 0.001;\n upperRefineLevel 0.999;\n\n nBufferLayers 1;\n\n maxRefinement 2;\n\n maxCells 200000;\n\n dumpLevel true;\n}\n\n// ************************************************************************* //\n" }, "risingBubble/9": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 6.125;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.01;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss vanLeer;\n div(phirb,alpha) Gauss vanLeer;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 20x40 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=6.125, water density=1000 kg/m3, air density=100 kg/m3, and downward gravity=0.98 m/s2. Use the baseline vanLeer VOF alpha-advection scheme without the explicit interfaceCompression scheme variant. This is the high-Eotvos-number variant, using the lower surface tension as a physically consistent high-Eo parameter set so the bubble deforms more strongly than the baseline rising-bubble case. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.01 and 0.01 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "risingBubble/10": { "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n bottom\n {\n type slip;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type slip;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n bottom\n {\n type fixedFluxPressure;\n }\n\n outlet\n {\n type fixedValue;\n value uniform 0;\n }\n\n walls\n {\n type fixedFluxPressure;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n bottom\n {\n type zeroGradient;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n walls\n {\n type zeroGradient;\n }\n\n defaultFaces\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue ( 0 -0.98 0 );\n//value ( 0 0 0 );\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 6.125;\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.1;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 100;\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 0.1;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1000;\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (1 0 0)\n (1 2 0)\n (0 2 0)\n (0 0 0.1)\n (1 0 0.1)\n (1 2 0.1)\n (0 2 0.1)\n);\n\nblocks\n(\n //hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n hex (0 1 2 3 4 5 6 7) (20 40 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n bottom\n {\n type wall;\n faces\n (\n (1 5 4 0)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (3 7 6 2)\n );\n }\n walls\n {\n type wall;\n faces\n (\n (0 4 7 3)\n (2 6 5 1)\n );\n }\n\n defaultFaces\n {\n type empty;\n faces\n (\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 7;\n\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.1;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.5;\nmaxAlphaCo 0.9;\nmaxDeltaT 0.9;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss linearUpwind grad(U);\n div(phi,alpha) Gauss vanLeer;\n div(phirb,alpha) Gauss vanLeer;\n div(rhoPhi,U) Gauss linearUpwind grad(U);\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 1;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-7;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-7;\n relTol 0;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-06;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n);\n\nregions\n(\n cylinderToCell\n {\n\t p1 (0.5 0.8 -1);\n\t p2 (0.5 0.8 1);\n\t radius 0.15;\n\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n );\n }\n);\n", "usr_requirement": "Perform a 2D rising-bubble VOF validation case using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Use a rectangular domain discretized with 20x40 cells; initialize a circular gas bubble of radius 0.15 centered at (0.5, 0.8) in liquid. Set sigma=6.125, water density=1000 kg/m3, air density=100 kg/m3, liquid kinematic viscosity nu=0.1, air kinematic viscosity nu=0.1, and downward gravity=0.98 m/s2. Use the baseline vanLeer VOF alpha-advection scheme without the explicit interfaceCompression scheme variant. This is a high-Eotvos-number and high-Morton-number sensitivity variant using lower surface tension and higher viscosity than the baseline, intended to explore a strongly deformed/skirt-bubble regime. Run from t=0 to t=7; deltaT=1e-3; write results every 0.1 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.5, maxAlphaCo=0.9, maxDeltaT=0.9. Use a 1 m wide and 2 m high tank, initially at rest. Treat the side and bottom boundaries as slip walls and the top as an open pressure boundary. The flow is laminar; the water and air kinematic viscosities are 0.1 and 0.1 m2/s, respectively.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n" }, "supersonicCrossJet/1": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the legacy rhoSimpleFoam steady SIMPLE solver in OpenFOAM-13. Variant: baseline Ma=2.0 and reference pressure ratio. Keep the physical geometry and inlet states unchanged except for the variant named here. This is a non-smoke steady benchmark: run steady iterations with deltaT=1 to endTime=1000 and write every 250 iterations. Judge success by solver stability, residual/continuity history, and final-window field changes rather than by a single iteration. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(0 347.275 0) m/s, p=100000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (0 347.275 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 100000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss upwind;\n div(phi,rho) bounded Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n" }, "supersonicCrossJet/2": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the legacy rhoSimpleFoam steady SIMPLE solver in OpenFOAM-13. Variant: mainflow Mach number Ma=3.0. Keep the physical geometry and inlet states unchanged except for the variant named here. This is a non-smoke steady benchmark: run steady iterations with deltaT=1 to endTime=1000 and write every 250 iterations. Judge success by solver stability, residual/continuity history, and final-window field changes rather than by a single iteration. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(1203 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(0 347.275 0) m/s, p=100000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (1203 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (1203 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (0 347.275 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 100000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss upwind;\n div(phi,rho) bounded Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n" }, "supersonicCrossJet/3": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the legacy rhoSimpleFoam steady SIMPLE solver in OpenFOAM-13. Variant: low jet-to-mainstream pressure ratio. Keep the physical geometry and inlet states unchanged except for the variant named here. This is a non-smoke steady benchmark: run steady iterations with deltaT=1 to endTime=1000 and write every 250 iterations. Judge success by solver stability, residual/continuity history, and final-window field changes rather than by a single iteration. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(0 347.275 0) m/s, p=50000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (0 347.275 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 50000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss upwind;\n div(phi,rho) bounded Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n" }, "supersonicCrossJet/4": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the legacy rhoSimpleFoam steady SIMPLE solver in OpenFOAM-13. Variant: high jet-to-mainstream pressure ratio. Keep the physical geometry and inlet states unchanged except for the variant named here. This is a non-smoke steady benchmark: run steady iterations with deltaT=1 to endTime=1000 and write every 250 iterations. Judge success by solver stability, residual/continuity history, and final-window field changes rather than by a single iteration. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(0 347.275 0) m/s, p=200000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (0 347.275 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 200000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss upwind;\n div(phi,rho) bounded Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n" }, "supersonicCrossJet/5": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the legacy rhoSimpleFoam steady SIMPLE solver in OpenFOAM-13. Variant: 30 degree injection angle. Keep the physical geometry and inlet states unchanged except for the variant named here. This is a non-smoke steady benchmark: run steady iterations with deltaT=1 to endTime=1000 and write every 250 iterations. Judge success by solver stability, residual/continuity history, and final-window field changes rather than by a single iteration. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(300.749 173.637 0) m/s, p=100000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (300.749 173.637 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 100000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss upwind;\n div(phi,rho) bounded Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n" }, "supersonicCrossJet/6": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the legacy rhoSimpleFoam steady SIMPLE solver in OpenFOAM-13. Variant: 60 degree injection angle. Keep the physical geometry and inlet states unchanged except for the variant named here. This is a non-smoke steady benchmark: run steady iterations with deltaT=1 to endTime=1000 and write every 250 iterations. Judge success by solver stability, residual/continuity history, and final-window field changes rather than by a single iteration. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(173.637 300.749 0) m/s, p=100000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (173.637 300.749 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 100000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss upwind;\n div(phi,rho) bounded Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n" }, "supersonicCrossJet/7": { "usr_requirement": "Perform the compressible supersonic jet-in-crossflow benchmark with the same Ma=2, pressure ratio, thermophysical model, solver, and controls as the baseline, but refine the first active mainflow block in the streamwise direction from 40 to 80 cells. Preserve all other blocks, boundaries, and numerical schemes. This is the mesh-resolution variant; the 90-degree injection angle is already represented by the baseline case. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(0 347.275 0) m/s, p=100000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (0 347.275 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 100000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n hex (0 1 5 4 3 2 6 7) \t (80 1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (80 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss upwind;\n div(phi,rho) bounded Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n" }, "supersonicCrossJet/8": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the legacy rhoSimpleFoam steady SIMPLE solver in OpenFOAM-13. Variant: unbounded Gauss upwind convection retained for the full steady run, distinct from the bounded-upwind baseline. Keep the physical geometry and inlet states unchanged except for the variant named here. This is a non-smoke steady benchmark: run steady iterations with deltaT=1 to endTime=1000 and write every 250 iterations. Judge success by solver stability, residual/continuity history, and final-window field changes rather than by a single iteration. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(0 347.275 0) m/s, p=100000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (0 347.275 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 100000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,K) Gauss upwind;\n div(phi,Ekp) Gauss upwind;\n div(phi,e) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) Gauss upwind;\n div(phi,rho) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n" }, "supersonicCrossJet/9": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the legacy rhoSimpleFoam steady SIMPLE solver in OpenFOAM-13. Variant: earlier transition from upwind to bounded limitedLinear 0.05 steady schemes. Keep the physical geometry and inlet states unchanged except for the variant named here. This is a non-smoke steady benchmark: run steady iterations with deltaT=1 to endTime=1000 and write every 250 iterations. Judge success by solver stability, residual/continuity history, and final-window field changes rather than by a single iteration. For this staged scheme variant, run system/fvSchemes.upwind from iteration 0 to 300, then continue from latestTime with system/fvSchemes.limitedLinear, using bounded limitedLinear 0.05 convection, to iteration 1000. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(0 347.275 0) m/s, p=100000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\ncp system/fvSchemes.upwind system/fvSchemes\nrunApplication -overwrite foamDictionary -entry startFrom -set startTime system/controlDict\nrunApplication -overwrite foamDictionary -entry endTime -set 300 system/controlDict\nrunApplication -overwrite -suffix upwind foamRun -solver fluid\ncp system/fvSchemes.limitedLinear system/fvSchemes\nrunApplication -overwrite foamDictionary -entry startFrom -set latestTime system/controlDict\nrunApplication -overwrite foamDictionary -entry endTime -set 1000 system/controlDict\nrunApplication -overwrite foamRun -solver fluid\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (0 347.275 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 100000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 250;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n\nsolver fluid;", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.5;\n maxFactor 2;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 250;\n max 800;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss limitedLinearV 0.05;\n div(phi,epsilon) bounded Gauss limitedLinear 0.05;\n div(phi,k) bounded Gauss limitedLinear 0.05;\n div(phi,K) bounded Gauss limitedLinear 0.05;\n div(phi,Ekp) bounded Gauss limitedLinear 0.05;\n div(phi,e) bounded Gauss limitedLinear 0.05;\n div(phid,p) Gauss limitedLinear 0.05;\n div(phi,(p|rho)) Gauss limitedLinear 0.05;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss limitedLinear 0.05;\n div(phi,rho) bounded Gauss limitedLinear 0.05;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-08;\n relTol 0.01;\n nCellsInCoarsestLevel 20;\n }\n\n \"(U|e|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-08;\n relTol 0.05;\n }\n}\n\nSIMPLE\n{\n nUCorrectors 2;\n nNonOrthogonalCorrectors 0;\n transonic no;\n consistent no;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.05;\n rho 0.05;\n }\n equations\n {\n U 0.02;\n e 0.02;\n k 0.2;\n epsilon 0.2;\n }\n}\n// ************************************************************************* //\n", "system/fvSchemes.upwind": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss upwind;\n div(phi,rho) bounded Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSchemes.limitedLinear": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss limitedLinearV 0.05;\n div(phi,epsilon) bounded Gauss limitedLinear 0.05;\n div(phi,k) bounded Gauss limitedLinear 0.05;\n div(phi,K) bounded Gauss limitedLinear 0.05;\n div(phi,Ekp) bounded Gauss limitedLinear 0.05;\n div(phi,e) bounded Gauss limitedLinear 0.05;\n div(phid,p) Gauss limitedLinear 0.05;\n div(phi,(p|rho)) Gauss limitedLinear 0.05;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) bounded Gauss limitedLinear 0.05;\n div(phi,rho) bounded Gauss limitedLinear 0.05;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/stagedRunDict": "FoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object stagedRunDict;\n}\nstages\n(\n {\n schemes fvSchemes.upwind;\n startFrom startTime;\n endTime 300;\n log log.rhoSimpleFoam.upwind;\n }\n {\n schemes fvSchemes.limitedLinear;\n startFrom latestTime;\n endTime 1000;\n log log.rhoSimpleFoam;\n }\n);\n" }, "supersonicCrossJet/10": { "usr_requirement": "Perform a compressible supersonic jet-in-crossflow benchmark using the rhoPimpleFoam-style pseudo-transient solver switch in OpenFOAM-13 via foamRun -solver fluid. Variant: rhoPimpleFoam pseudo-transient solver-family switch relative to the rhoSimpleFoam steady baseline. Keep the Ma=2 physical geometry and inlet states of the baseline. Run a non-smoke transient PIMPLE window from t=0 to t=0.05 with deltaT=2e-6 and write every 0.005 simulation-time units. Use a quasi-2D channel extending from x=-3.33333 to 2 m with a height of 1 m. A 0.05 m wide jet slot lies in the lower wall immediately upstream of x=0; the remaining solid boundaries are slip walls and the right boundary is an extrapolating outlet. Set the main-stream state to U=(801.997 0 0) m/s, p=100000 Pa and T=400 K, and the jet state to U=(0 347.275 0) m/s, p=100000 Pa and T=300 K. Model laminar calorically perfect air with molecular weight 28.96, Cp=1004.5 J/(kg K), constant viscosity 1e-5 Pa s and Pr=1.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\nrunApplication blockMesh\nrunApplication foamRun -solver fluid\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (801.997 0 0);\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform (801.997 0 0);\n }\n inlet2\n {\n type fixedValue;\n value uniform (0 347.275 0);\n }\n top\n {\n type slip;\n }\n outlet\n {\n type zeroGradient;\n }\n obstacle\n {\n type slip;\n }\n bottom\n {\n type slip;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 100000;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 100000;\n }\n inlet2\n {\n type fixedValue;\n value uniform 100000;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type waveTransmissive;\n field p;\n gamma 1.4;\n fieldInf 100000;\n lInf 5;\n value uniform 100000;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 400;\n\nboundaryField\n{\n inlet1\n {\n type fixedValue;\n value uniform 400;\n }\n inlet2\n {\n type fixedValue;\n value uniform 300;\n }\n top\n {\n type zeroGradient;\n }\n outlet\n {\n type inletOutlet;\n inletValue uniform 400;\n value uniform 400;\n }\n obstacle\n {\n type zeroGradient;\n }\n bottom\n {\n type zeroGradient;\n }\n frontandback\n {\n type empty;\n }\n}\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 2.544e+06;\n }\n transport\n {\n mu 1e-5;\n Pr 1;\n }\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 1) \t\t//0\n (2 0 1) \t\t//1\n (2 0.1 1) \t\t//0\n (0 0.1 1) \t\t//1\n \n (0 0 0) \t\t//0\n (2 0 0) \t\t//1\n (2 0.1 0) \t\t//0\n (0 0.1 0) \t\t//1\n\n (-3.33333 0.1 0) \t//0\n (-3.33333 0.1 1) \t//1\n (-3.33333 0 0) \t//0\n (-3.33333 0 1) \t//1\n\n (2 \t1 1)\n (0 \t1 1)\n (-3.33333 \t1 1)\n (-3.33333 \t1 0)\n (0 \t1 0)\n (2 \t1 0)\n\n (-0.05 0.1 0)\n (-0.05 0.1 1)\n (-0.05 0 0)\n (-0.05 0 1)\n (-0.05 1 0)\n (-0.05 1 1)\n\n);\n\nblocks\n(\n/*\n hex (0 1 5 4 3 2 6 7) \t(100 \t1 225) simpleGrading (20 \t1 500)\n hex (11 0 4 10 9 3 7 8) \t(20 \t1 225) simpleGrading (0.05 \t1 500)\n hex (9 3 7 8 14 13 16 15) \t(20 \t1 10) simpleGrading (0.05 \t1 20)\n hex (3 2 6 7 13 12 17 16) \t(100 \t1 10) simpleGrading (20 \t1 20)\n*/\n\n hex (0 1 5 4 3 2 6 7) \t (40 \t1 6) simpleGrading (1 1 1 )\n hex (11 21 20 10 9 19 18 8) (80 \t1 6) simpleGrading (1 1 1 )\n hex (9 19 18 8 14 23 22 15) (80 \t1 50) simpleGrading (1 1 1 )\n hex (19 3 7 18 23 13 16 22) (3 \t1 50) simpleGrading (1 1 1 )\n hex (3 2 6 7 13 12 17 16) (40 1 50) simpleGrading (1 1 1 )\n\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet1\n {\n type patch;\n faces\n (\n (9 8 10 11)\n (14 15 8 9)\n );\n }\n inlet2\n {\n type patch;\n faces\n (\n (19 18 7 3)\n );\n }\n top\n {\n type patch;\n faces\n (\n\t\t(15 14 23 22)\n\t\t(16 13 12 17)\n (22 23 13 16)\n );\n }\n\n outlet\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (2 6 17 12)\n );\n }\n \n bottom\n {\n type wall;\n faces\n (\n (0 4 5 1)\n (11 10 20 21)\n );\n }\n \n obstacle\n {\n type wall;\n faces\n (\n (21 20 18 19)\n (0 3 7 4)\n );\n }\n frontandback\n {\n type empty;\n faces\n (\n (0 1 2 3)\n\t (5 4 7 6)\n (11 21 19 9)\n\t (20 10 8 18)\n (9 19 23 14)\n\t (3 2 12 13)\n\t (6 7 16 17)\n \t (18 8 15 22)\n (19 3 13 23)\n (7 18 22 16)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\nstartFrom startTime;\nstartTime 0;\nstopAt endTime;\nendTime 0.05;\ndeltaT 2e-6;\nmaxDeltaT 2e-6;\nmaxCo 0.5;\nadjustTimeStep no;\nwriteControl runTime;\nwriteInterval 0.005;\npurgeWrite 0;\nwriteFormat ascii;\nwritePrecision 6;\nwriteCompression off;\ntimeFormat general;\ntimePrecision 6;\ngraphFormat raw;\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\nlimitp\n{\n type limitPressure;\n minFactor 0.1;\n maxFactor 5;\n}\nlimitt\n{\n type limitTemperature;\n cellZone all;\n min 101;\n max 2000;\n}\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(e) cellLimited Gauss linear 1;\n grad(p) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,K) Gauss upwind;\n div(phi,Ekp) Gauss upwind;\n div(phi,e) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n div(phi,p) Gauss upwind;\n div(phi,rho) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n\nsolvers\n{\n \"rho.*\"\n {\n solver diagonal;\n }\n \"p.*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n \"(U|e|k|epsilon).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n transonic no;\n}\n// ************************************************************************* //\n" }, "nozzleCDV/1": { "usr_requirement": "Perform a compressible converging-diverging nozzle benchmark using OpenFOAM-13 with foamRun -solver fluid. CDV baseline transonic case with throat Mach number approximately 1.0. Use this as the reference structured-mesh, laminar, fluid-solver configuration. Keep the CDV geometry, structured 2D mesh, thermophysical model, laminar model, physical flow condition, and pressure-density convection format div(phi,(p|rho)) unchanged unless this variant explicitly changes that one main variable. Run as transient PIMPLE-style iterations from t=0 to t=0.005; deltaT=1e-6; write results every 0.001 simulation-time units. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use a 320 m/s, 300 K inlet and a static outlet pressure of 90000 Pa. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nrunApplication blockMesh\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-6;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (40 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n outlet\n {\n type fixedValue;\n value uniform 90000;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 300;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n" }, "nozzleCDV/2": { "usr_requirement": "Perform the CDV baseline compressible nozzle case with foamRun -solver fluid, using the supplied structured CDV geometry and a throat-refined mesh. Change only the first converging-section cell count from 40 to 80 (with all solver, thermophysical, flow, boundary, and run settings unchanged); this is the mesh-resolution variant. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use a 320 m/s, 300 K inlet and a static outlet pressure of 90000 Pa. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nrunApplication blockMesh\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-6;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (80 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n outlet\n {\n type fixedValue;\n value uniform 90000;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 300;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n" }, "nozzleCDV/3": { "usr_requirement": "Perform the supplied CDV compressible nozzle case with foamRun -solver fluid at a reduced outlet back pressure of 95000 Pa. Keep the CDV geometry, mesh, solver, thermophysical model, inlet state, discretisation, and run controls fixed; this is the back-pressure variant distinct from the mesh-refined nozzleCDV/2 case. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use a 320 m/s, 300 K inlet and a static outlet pressure of 95000 Pa. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nrunApplication blockMesh\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-6;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (40 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n outlet\n {\n type fixedValue;\n value uniform 95000;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 300;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n" }, "nozzleCDV/4": { "usr_requirement": "Perform a compressible converging-diverging nozzle benchmark using OpenFOAM-13 with foamRun -solver fluid. Back-pressure scan for subsonic, transonic, and supersonic CDV response. Change only the outlet static pressure by running three otherwise identical subcases with pBack=101325, 90000, and 35000 Pa; keep inlet velocity, geometry, mesh, solver, turbulence model, and schemes fixed. Run each subcase from t=0 to t=0.005; deltaT=1e-6; write results every 0.001 simulation-time units. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. For every branch use a 300 K inlet and the 320 m/s baseline inlet speed; vary only the outlet pressure values stated above. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nfor pBack in 101325 90000 35000\ndo\n caseDir=\"pBack_${pBack}\"\n mkdir -p \"$caseDir\"\n cp -r 0 constant system \"$caseDir\"/\n (\n cd \"$caseDir\" || exit 1\n runApplication -s internalPressure foamDictionary -entry internalField -set \"uniform $pBack\" 0/p\n runApplication -s outletPressure foamDictionary -entry boundaryField/outlet/value -set \"uniform $pBack\" 0/p\n runApplication blockMesh\n runApplication foamRun -solver $solver\n ) || exit 1\ndone\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-6;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (p);\n\nsets\n(\n linex\n {\n type lineUniform;\n axis x;\n start (0 0 0.005);\n end (1 0 0.005);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (40 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n outlet\n {\n type fixedValue;\n value uniform 90000;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 300;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n" }, "nozzleCDV/5": { "usr_requirement": "Perform a compressible converging-diverging nozzle benchmark using OpenFOAM-13 with foamRun -solver fluid. Mesh-type variant for the design-table comparison between the structured blockMesh baseline and a non-structured/polyhedral mesh. Change only the mesh representation by starting from the same CDV blockMesh geometry and converting the hex mesh with polyDualMesh using featureAngle=70; keep the geometry envelope, solver, laminar model, target flow condition, boundary conditions, and numerical schemes otherwise fixed. Run transient PIMPLE-style iterations from t=0 to t=0.005; deltaT=1e-6; write results every 0.001 simulation-time units. Compare this case against nozzleCDV/1 as the structured-mesh reference. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use a 320 m/s, 300 K inlet and a static outlet pressure of 90000 Pa. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nrunApplication blockMesh\nrunApplication polyDualMesh 70 -overwrite\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-6;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (40 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n outlet\n {\n type fixedValue;\n value uniform 90000;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 300;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n", "system/polyDualMeshDict": "featureAngle 70;\n" }, "nozzleCDV/6": { "usr_requirement": "Perform a compressible converging-diverging nozzle benchmark using OpenFOAM-13 with foamRun -solver fluid. Discretisation-format variant from the design table: run an upwind stabilisation stage first, then switch to the stable higher-order linear/limited convection treatment used by the baseline for the remaining time. Change only the convection discretisation by running with system/fvSchemes.upwind to t=0.0025 and then continuing from latestTime with system/fvSchemes.limitedLinear to t=0.005; keep geometry, mesh, solver, laminar model, flow target, and boundary conditions fixed. Write results every 0.001 simulation-time units. Use distinct upwind and limitedLinear log suffixes so the second stage is executed rather than skipped by RunFunctions. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use a 320 m/s, 300 K inlet and a static outlet pressure of 90000 Pa. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nrunApplication blockMesh\ncp system/fvSchemes.upwind system/fvSchemes\nrunApplication foamDictionary -entry endTime -set 0.0025 system/controlDict\nrunApplication -s upwind foamRun -solver $solver\ncp system/fvSchemes.limitedLinear system/fvSchemes\nrunApplication foamDictionary -entry startFrom -set latestTime system/controlDict\nrunApplication foamDictionary -entry endTime -set 0.005 system/controlDict\nrunApplication -s limitedLinear foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-6;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (40 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n outlet\n {\n type fixedValue;\n value uniform 90000;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 300;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n", "system/fvSchemes.limitedLinear": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSchemes.upwind": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n" }, "nozzleCDV/7": { "usr_requirement": "Perform a compressible converging-diverging nozzle benchmark using OpenFOAM-13 with foamRun -solver fluid. Boundary-condition variant from the design table using total pressure and total temperature at the inlet with a static-pressure outlet. Change only the inlet/outlet boundary-condition formulation; keep the CDV geometry, structured 2D mesh, solver, laminar model, target flow condition, and numerical schemes fixed. Run transient PIMPLE-style iterations from t=0 to t=0.005; deltaT=1e-6; write results every 0.001 simulation-time units. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use inlet total pressure 350000 Pa and total temperature 300 K, with a 90000 Pa static-pressure outlet. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nrunApplication blockMesh\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-6;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (40 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type totalPressure;\n p0 uniform 350000;\n gamma 1.4;\n value uniform 90000;\n }\n outlet\n {\n type fixedValue;\n value uniform 90000;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type totalTemperature;\n T0 uniform 300;\n gamma 1.4;\n value uniform 300;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n" }, "nozzleCDV/8": { "usr_requirement": "Perform a compressible converging-diverging nozzle benchmark using OpenFOAM-13 with foamRun -solver shockFluid. Solver-comparison variant using shockFluid, the OpenFOAM-13 replacement for the legacy rhoCentralFoam central-upwind shock-capturing solver. Change only the solver family and its required convection schemes; keep geometry, mesh, target inlet speed, inlet thermodynamic state, wall treatment, and turbulence model fixed while using shockFluid-compatible outlet extrapolation. Keep the CDV geometry, structured 2D mesh, thermophysical model, laminar model, physical flow condition, and pressure-density convection format div(phi,(p|rho)) unchanged unless this variant explicitly changes that one main variable. Run as transient PIMPLE-style iterations from t=0 to t=0.005; deltaT=1e-7; write results every 0.001 simulation-time units using a fixed-step shockFluid configuration aligned with the tutorial-style solver setup. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use a 320 m/s, 300 K inlet and the 90000 Pa baseline pressure level, with shock-compatible extrapolation at the outlet. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"shockFluid\"\n\nrunApplication blockMesh\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver shockFluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-7;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep no;\nmaxCo 1;\nmaxDeltaT 1e-7;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n\n reconstruct(rho) vanLeer;\n reconstruct(U) vanLeerV;\n reconstruct(T) vanLeer;\n\n flux(rhoU) linear;\n interpolate((rho*nuEff)) linear;\n dotInterpolate(Sf,dev2(T(grad(U)))) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (40 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type inletOutlet;\n inletValue uniform (320 0 0);\n value uniform (320 0 0);\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 90000;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 300;\n }\n outlet\n {\n type inletOutlet;\n inletValue uniform 300;\n value uniform 300;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n" }, "nozzleCDV/9": { "usr_requirement": "Perform a compressible converging-diverging nozzle benchmark using OpenFOAM-13 with foamRun -solver fluid. Dimension variant from the design table: use a true 2D axisymmetric CDV nozzle simplification represented by a small-angle wedge mesh, not a planar half-channel symmetry-plane approximation. Preserve the axial converging-diverging radius profile, collapse the centerline to an axis patch with empty field conditions, and use front/back wedge patches so the OpenFOAM wedge formulation includes the cylindrical-coordinate geometric effect. Use a standard compressible nozzle boundary-condition formulation with totalPressure p0=160000 Pa and totalTemperature T0=300 K at the inlet, pressureInletOutletVelocity for the open velocity boundaries, and a static-pressure outlet p=90000 Pa. Use slip walls for the inviscid/laminar axisymmetric nozzle-wall idealisation. Run transient PIMPLE pseudo-time integration to a quasi-steady converged state from t=0 to t=0.1 with fixed deltaT=1e-5, adjustTimeStep=no, maxCo=0.5, maxDeltaT=1e-5, and writeInterval=0.02. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use the axisymmetric wedge interpretation and the total-pressure/total-temperature and back-pressure values already stated above.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nrunApplication blockMesh\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.1;\n\ndeltaT 1e-05;\n\nwriteControl runTime;\n\nwriteInterval 0.02;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep no;\n\nmaxCo 0.5;\n\nmaxDeltaT 1e-05;\n\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss vanAlbada;\n div(phi,e) Gauss vanAlbada;\n div(phi,h) Gauss vanAlbada;\n div(phi,T) Gauss vanAlbada;\n div(phi,K) Gauss vanAlbada;\n div(phi,(p|rho)) Gauss vanAlbada;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n\nconvertToMeters 1;\n\n// 5-degree axisymmetric wedge around the x-axis.\n// Radius profile matches the 2D CDV nozzle: 0.20 -> 0.08 -> 0.08 -> 0.20.\nvertices\n(\n (0.0 0 0)\n (0.4 0 0)\n (0.6 0 0)\n (1.0 0 0)\n\n (0.0 0.1998096443 -0.00872387747)\n (0.4 0.07992385773 -0.00348955099)\n (0.6 0.07992385773 -0.00348955099)\n (1.0 0.1998096443 -0.00872387747)\n\n (0.0 0.1998096443 0.00872387747)\n (0.4 0.07992385773 0.00348955099)\n (0.6 0.07992385773 0.00348955099)\n (1.0 0.1998096443 0.00872387747)\n);\n\nblocks\n(\n hex (0 1 5 4 0 1 9 8) (40 8 1) simpleGrading (1 1 1)\n hex (1 2 6 5 1 2 10 9) (20 8 1) simpleGrading (1 1 1)\n hex (2 3 7 6 2 3 11 10) (40 8 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n axis\n {\n type empty;\n faces\n (\n (0 1 1 0)\n (1 2 2 1)\n (2 3 3 2)\n );\n }\n inlet\n {\n type patch;\n faces ((0 0 8 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 11 3));\n }\n walls\n {\n type wall;\n faces\n (\n (4 8 9 5)\n (5 9 10 6)\n (6 10 11 7)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n\ndimensions [0 1 -1 0 0 0 0];\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n axis { type empty; }\n walls { type slip; }\n front { type wedge; }\n back { type wedge; }\n}\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n\ndimensions [1 -1 -2 0 0 0 0];\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type totalPressure;\n p0 uniform 160000;\n gamma 1.4;\n value uniform 160000;\n }\n outlet\n {\n type fixedValue;\n value uniform 90000;\n }\n axis { type empty; }\n walls { type zeroGradient; }\n front { type wedge; }\n back { type wedge; }\n}\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n\ndimensions [0 0 0 1 0 0 0];\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type totalTemperature;\n T0 uniform 300;\n gamma 1.4;\n value uniform 300;\n }\n outlet\n {\n type inletOutlet;\n inletValue uniform 300;\n value uniform 300;\n }\n axis { type empty; }\n walls { type zeroGradient; }\n front { type wedge; }\n back { type wedge; }\n}\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n axis\n {\n type empty;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n}\n\n\n// ************************************************************************* //\n" }, "nozzleCDV/10": { "usr_requirement": "Perform a steady 2D compressible CDV nozzle turbulence comparison using foamRun -solver fluid with RAS kOmegaSST. Keep the supplied structured CDV mesh, thermophysical model, boundary conditions, endTime=0.005, deltaT=1e-6, and sampling fixed; this is the 2D RANS turbulence variant, replacing the physically unsuitable quasi-2D DDES design. Use a unit-length nozzle with axial stations at x=0, 0.4, 0.6 and 1.0 m and corresponding half-heights 0.20, 0.08, 0.08 and 0.20 m. Model calorically perfect air with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.7. Use a 320 m/s, 300 K inlet and a static outlet pressure of 90000 Pa. Use no-slip nozzle walls.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"fluid\"\n\nrunApplication blockMesh\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\nturbulence on;\n delta cubeRootVol;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.005;\n\ndeltaT 1e-6;\n\nwriteControl runTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(phi,e) Gauss upwind;\n div(phi,h) Gauss upwind;\n div(phi,T) Gauss upwind;\n div(phi,K) Gauss upwind;\n div(phi,(p|rho)) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(phi,epsilon) Gauss upwind;\n div(phi,nuTilda) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(p|U|e|h|T|k|omega|epsilon|nuTilda).*\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-12;\n relTol 0;\n }\n\n \"rho.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-12;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n nCorrectors 1;\n nNonOrthogonalCorrectors 0;\n\n transonic yes;\n}\n\n// ************************************************************************* //\n", "system/samples": "/*--------------------------------*- C++ -*----------------------------------*/\n\ntype sets;\ninterpolationScheme cellPoint;\nsetFormat raw;\n\nwriteControl writeTime;\n\nfields (Ma);\n\nsets\n(\n linex\n {\n type lineCell;\n axis x;\n start (0 0.001 1);\n end (10 0.001 1);\n nPoints 100;\n }\n);\n\n\n// *********************************************************************** //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0.0 -0.20 0) (0.4 -0.08 0) (0.6 -0.08 0) (1.0 -0.20 0)\n (0.0 0.20 0) (0.4 0.08 0) (0.6 0.08 0) (1.0 0.20 0)\n (0.0 -0.20 0.01) (0.4 -0.08 0.01) (0.6 -0.08 0.01) (1.0 -0.20 0.01)\n (0.0 0.20 0.01) (0.4 0.08 0.01) (0.6 0.08 0.01) (1.0 0.20 0.01)\n);\n\nblocks\n(\n hex (0 1 5 4 8 9 13 12) (40 16 1) simpleGrading (1 1 1)\n hex (1 2 6 5 9 10 14 13) (20 16 1) simpleGrading (1 1 1)\n hex (2 3 7 6 10 11 15 14) (40 16 1) simpleGrading (1 1 1)\n);\n\nedges\n(\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces ((0 8 12 4));\n }\n outlet\n {\n type patch;\n faces ((3 7 15 11));\n }\n walls\n {\n type wall;\n faces\n (\n (0 1 9 8)\n (1 2 10 9)\n (2 3 11 10)\n (4 12 13 5)\n (5 13 14 6)\n (6 14 15 7)\n );\n }\n frontAndBack\n {\n type empty;\n faces\n (\n (0 4 5 1)\n (1 5 6 2)\n (2 6 7 3)\n (8 9 13 12)\n (9 10 14 13)\n (10 11 15 14)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (320 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform (320 0 0);\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type noSlip;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 90000;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n outlet\n {\n type fixedValue;\n value uniform 90000;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 300;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type zeroGradient;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n Hf 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.7;\n }\n}\n", "0/Ma": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object Ma;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0.920215;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0.920215;\n }\n outlet\n {\n type calculated;\n value uniform 0.920215;\n }\n walls\n {\n type calculated;\n value uniform 0;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\ninternalField uniform 0;\nboundaryField\n{\n inlet { type calculated; value uniform 0; }\n outlet { type calculated; value uniform 0; }\n walls { type compressible::alphatWallFunction; Prt 0.85; value uniform 0; }\n frontAndBack { type empty; }\n}\n// ************************************************************************* //\n", "0/nuTilda": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nuTilda;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\ninternalField uniform 1e-5;\nboundaryField\n{\n inlet { type fixedValue; value uniform 1e-5; }\n outlet { type zeroGradient; }\n walls { type fixedValue; value uniform 0; }\n frontAndBack { type empty; }\n}\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\ninternalField uniform 0;\nboundaryField\n{\n inlet { type calculated; value uniform 0; }\n outlet { type calculated; value uniform 0; }\n walls { type nutUSpaldingWallFunction; value uniform 0; }\n frontAndBack { type empty; }\n}\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 1e-5;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 1e-5;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type kqRWallFunction;\n value uniform 1e-5;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 100;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform 100;\n }\n outlet\n {\n type zeroGradient;\n }\n walls\n {\n type omegaWallFunction;\n value uniform 100;\n }\n frontAndBack\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n" }, "MRF_stirredReactor/1": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 1;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 100;\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform an incompressible laminar stirred-reactor benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to a steady simpleFoam-style MRF calculation. Use a tutorial-derived Rushton stirred tank setup with the tank, shaft, impeller/stirrer, rotating zone, and stationary baffles where applicable. Configure a rotating MRF cellZone for the impeller region at 100 rpm. Use a Newtonian fluid with constant kinematic viscosity and laminar momentum transport. Run steady-state SIMPLE iterations from t=0 to t=1000 with deltaT=1 and write results every 100 time steps. Include stirrer torque or power monitoring when supported by the tutorial-derived setup. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ] }, "MRF_stirredReactor/2": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n\n turbulence on;\n printCoeffs on;\n}\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 1;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 100;\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform an incompressible turbulent stirred-reactor benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to a steady simpleFoam-style MRF calculation. Use the tutorial-derived Rushton stirred tank geometry with a rotating MRF cellZone for the impeller region and stationary tank/baffle walls. Set the impeller speed to 100 rpm. Use a Newtonian fluid with constant kinematic viscosity and the RAS kEpsilon turbulence model. Run steady-state SIMPLE iterations from t=0 to t=1000 with deltaT=1 and write results every 100 time steps. Include stirrer torque or power monitoring when supported by the tutorial-derived setup. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ] }, "MRF_stirredReactor/3": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n printCoeffs on;\n}\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 1;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 100;\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform an incompressible turbulent stirred-reactor benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to a steady simpleFoam-style MRF calculation. Use the same tutorial-derived Rushton stirred tank geometry and rotating MRF cellZone as the kEpsilon baseline. Set the impeller speed to 100 rpm. Use a Newtonian fluid with constant kinematic viscosity and the RAS kOmegaSST turbulence model. Run steady-state SIMPLE iterations from t=0 to t=1000 with deltaT=1 and write results every 100 time steps. Keep the mesh, boundary conditions, and MRF rotating-zone setup consistent with the kEpsilon case so the turbulence-model effect can be compared. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ] }, "MRF_stirredReactor/4": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n\n turbulence on;\n printCoeffs on;\n}\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 1;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 100;\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform an incompressible stirred-reactor MRF speed-sensitivity benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to steady simpleFoam-style calculations. Use the tutorial-derived Rushton stirred tank geometry with a rotating MRF cellZone and stationary tank/baffle walls. Use a Newtonian fluid with constant kinematic viscosity and the RAS kEpsilon turbulence model. Run an impeller-speed comparison for 50 rpm, 100 rpm, and 200 rpm by changing the rotating-zone omega value while keeping the mesh, boundary conditions, and numerical schemes fixed. Run each speed case from t=0 to t=1000 with deltaT=1 and write results every 100 time steps. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ], "reference_subcases": [ { "id": "rpm50", "usr_requirement": "Perform an incompressible stirred-reactor MRF speed-sensitivity benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to steady simpleFoam-style calculations. Use the tutorial-derived Rushton stirred tank geometry with a rotating MRF cellZone and stationary tank/baffle walls. Use a Newtonian fluid with constant kinematic viscosity and the RAS kEpsilon turbulence model. Run an impeller-speed comparison for 50 rpm, 100 rpm, and 200 rpm by changing the rotating-zone omega value while keeping the mesh, boundary conditions, and numerical schemes fixed. Run each speed case from t=0 to t=1000 with deltaT=1 and write results every 100 time steps. This reference subcase uses 50 rpm. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "overrides": { "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 50 [rpm];\n\n// ************************************************************************* //\n" } }, { "id": "rpm100", "usr_requirement": "Perform an incompressible stirred-reactor MRF speed-sensitivity benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to steady simpleFoam-style calculations. Use the tutorial-derived Rushton stirred tank geometry with a rotating MRF cellZone and stationary tank/baffle walls. Use a Newtonian fluid with constant kinematic viscosity and the RAS kEpsilon turbulence model. Run an impeller-speed comparison for 50 rpm, 100 rpm, and 200 rpm by changing the rotating-zone omega value while keeping the mesh, boundary conditions, and numerical schemes fixed. Run each speed case from t=0 to t=1000 with deltaT=1 and write results every 100 time steps. This reference subcase uses 100 rpm. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "overrides": { "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n" } }, { "id": "rpm200", "usr_requirement": "Perform an incompressible stirred-reactor MRF speed-sensitivity benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to steady simpleFoam-style calculations. Use the tutorial-derived Rushton stirred tank geometry with a rotating MRF cellZone and stationary tank/baffle walls. Use a Newtonian fluid with constant kinematic viscosity and the RAS kEpsilon turbulence model. Run an impeller-speed comparison for 50 rpm, 100 rpm, and 200 rpm by changing the rotating-zone omega value while keeping the mesh, boundary conditions, and numerical schemes fixed. Run each speed case from t=0 to t=1000 with deltaT=1 and write results every 100 time steps. This reference subcase uses 200 rpm. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "overrides": { "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 200 [rpm];\n\n// ************************************************************************* //\n" } } ] }, "MRF_stirredReactor/5": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n\n turbulence on;\n printCoeffs on;\n}\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 1;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 100;\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform an incompressible stirred-reactor MRF baffle-sensitivity benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to steady simpleFoam-style calculations. Use the tutorial-derived Rushton stirred tank setup and compare a baffled tank configuration with four stationary baffles against an otherwise identical unbaffled tank configuration. Use the same rotating MRF cellZone, impeller geometry, Newtonian constant-viscosity fluid, 100 rpm impeller speed, and RAS kEpsilon turbulence model in both configurations. Run each case from t=0 to t=1000 with deltaT=1 and write results every 100 time steps so the baffle effect on flow and stirrer power can be compared. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ], "reference_subcases": [ { "id": "baffled", "usr_requirement": "Perform an incompressible stirred-reactor MRF baffle-sensitivity benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to steady simpleFoam-style calculations. Use the tutorial-derived Rushton stirred tank setup and compare a baffled tank configuration with four stationary baffles against an otherwise identical unbaffled tank configuration. Use the same rotating MRF cellZone, impeller geometry, Newtonian constant-viscosity fluid, 100 rpm impeller speed, and RAS kEpsilon turbulence model in both configurations. Run each case from t=0 to t=1000 with deltaT=1 and write results every 100 time steps so the baffle effect on flow and stirrer power can be compared. This reference subcase includes four stationary baffles. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "overrides": { "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n" } }, { "id": "unbaffled", "usr_requirement": "Perform an incompressible stirred-reactor MRF baffle-sensitivity benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to steady simpleFoam-style calculations. Use the tutorial-derived Rushton stirred tank setup and compare a baffled tank configuration with four stationary baffles against an otherwise identical unbaffled tank configuration. Use the same rotating MRF cellZone, impeller geometry, Newtonian constant-viscosity fluid, 100 rpm impeller speed, and RAS kEpsilon turbulence model in both configurations. Run each case from t=0 to t=1000 with deltaT=1 and write results every 100 time steps so the baffle effect on flow and stirrer power can be compared. This reference subcase omits the stationary baffles. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "overrides": { "system/createBafflesDict.baffles": "" } } ] }, "MRF_stirredReactor/6": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n\nlaminar\n{\n model generalisedNewtonian;\n viscosityModel CrossPowerLaw;\n\n nuInf 10;\n m 0.4;\n n 3;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n viscosityModel constant;\n\n nu 0.01;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 1;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 100;\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform an incompressible stirred-reactor MRF benchmark for a polymer-like non-Newtonian liquid using OpenFOAM-13 with foamRun -solver incompressibleFluid. Use the tutorial-derived Rushton stirred tank geometry with the rotating MRF cellZone, impeller, shaft, and baffles. Configure a generalised-Newtonian CrossPowerLaw viscosity model for the liquid instead of a constant-viscosity Newtonian model. Use an impeller speed of 100 rpm and a steady simpleFoam-style MRF formulation. Run from t=0 to t=1000 with deltaT=1 and write results every 100 time steps. Keep the mesh and boundary conditions consistent with the Newtonian MRF baseline so the rheology effect can be compared. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. For the non-Newtonian variant use the Cross-Power-Law values nu0=0.01 m2/s, nuInf=10 m2/s, m=0.4 s and n=3. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ] }, "MRF_stirredReactor/7": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n\n turbulence on;\n printCoeffs on;\n}\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 1;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 100;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 10;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n correctPhi yes;\n correctMeshPhi yes;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform a stirred-reactor comparison between a steady MRF approximation and a sliding-mesh/NCC rotating-impeller calculation using OpenFOAM-13 with foamRun -solver incompressibleFluid. Use tutorial-derived Rushton stirred tank setups for both cases, keeping the tank, baffles, impeller geometry, fluid properties, turbulence model, and impeller speed consistent. For the MRF case, use the rotating MRF cellZone formulation. For the sliding-mesh case, use the corresponding non-conformal coupling or dynamic-mesh tutorial workflow for the rotating impeller region. Use a Newtonian fluid, an impeller speed of 100 rpm, and the RAS kEpsilon turbulence model. Compare the resulting flow field and stirrer power or torque outputs. Extend the full run to t=100 with writeInterval=10 so the sliding-mesh power reaches a stable endpoint. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ], "constant/dynamicMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object dynamicMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// Disable motion for an MRF simulation\n// Enable motion for an NCC simulation by changing 'mover-disabled' to 'mover'\nmover\n{\n type motionSolver;\n\n libs (\"libfvMotionSolvers.so\");\n\n motionSolver solidBody;\n\n cellZone rotatingZone;\n\n solidBodyMotionFunction rotatingMotion;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "system/createBafflesDict.NCC": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nfields true;\n\nbaffles\n{\n nonCouple\n {\n type faceZone;\n zoneName rotatingZone;\n\n owner\n {\n name nonCouple1;\n type patch;\n\n patchFields\n {\n #include \"nonCouplePatchFields\"\n }\n }\n\n neighbour\n {\n name nonCouple2;\n type patch;\n\n patchFields\n {\n #include \"nonCouplePatchFields\"\n }\n }\n }\n}\n\n// ************************************************************************* //\n", "system/nonCouplePatchFields": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object nonCouplePatchFields;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nU\n{\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n}\n\nnut\n{\n type calculated;\n value uniform 0;\n}\n\n\"(p|k|omega|epsilon)\"\n{\n type zeroGradient;\n}\n\n// ************************************************************************* //\n", "reference_subcases": [ { "id": "steady_MRF", "usr_requirement": "Perform a stirred-reactor comparison between a steady MRF approximation and a sliding-mesh/NCC rotating-impeller calculation using OpenFOAM-13 with foamRun -solver incompressibleFluid. Use tutorial-derived Rushton stirred tank setups for both cases, keeping the tank, baffles, impeller geometry, fluid properties, turbulence model, and impeller speed consistent. For the MRF case, use the rotating MRF cellZone formulation. For the sliding-mesh case, use the corresponding non-conformal coupling or dynamic-mesh tutorial workflow for the rotating impeller region. Use a Newtonian fluid, an impeller speed of 100 rpm, and the RAS kEpsilon turbulence model. Compare the resulting flow field and stirrer power or torque outputs. This reference subcase uses the steady MRF approximation. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "overrides": { "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "constant/dynamicMeshDict": "", "system/createBafflesDict.NCC": "" } }, { "id": "sliding_mesh_NCC", "usr_requirement": "Perform a stirred-reactor comparison between a steady MRF approximation and a sliding-mesh/NCC rotating-impeller calculation using OpenFOAM-13 with foamRun -solver incompressibleFluid. Use tutorial-derived Rushton stirred tank setups for both cases, keeping the tank, baffles, impeller geometry, fluid properties, turbulence model, and impeller speed consistent. For the MRF case, use the rotating MRF cellZone formulation. For the sliding-mesh case, use the corresponding non-conformal coupling or dynamic-mesh tutorial workflow for the rotating impeller region. Use a Newtonian fluid, an impeller speed of 100 rpm, and the RAS kEpsilon turbulence model. Compare the resulting flow field and stirrer power or torque outputs. This reference subcase uses the sliding-mesh/NCC workflow. Use transient Euler time discretisation with endTime=1, deltaT=0.001, and writeInterval=100 for the moving-mesh branch. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "overrides": { "constant/MRFProperties": "", "constant/dynamicMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object dynamicMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// Disable motion for an MRF simulation\n// Enable motion for an NCC simulation by changing 'mover-disabled' to 'mover'\nmover\n{\n type motionSolver;\n\n libs (\"libfvMotionSolvers.so\");\n\n motionSolver solidBody;\n\n cellZone rotatingZone;\n\n solidBodyMotionFunction rotatingMotion;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "system/createBafflesDict.NCC": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nfields true;\n\nbaffles\n{\n nonCouple\n {\n type faceZone;\n zoneName rotatingZone;\n\n owner\n {\n name nonCouple1;\n type patch;\n\n patchFields\n {\n #include \"nonCouplePatchFields\"\n }\n }\n\n neighbour\n {\n name nonCouple2;\n type patch;\n\n patchFields\n {\n #include \"nonCouplePatchFields\"\n }\n }\n }\n}\n\n// ************************************************************************* //\n", "system/nonCouplePatchFields": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object nonCouplePatchFields;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nU\n{\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n}\n\nnut\n{\n type calculated;\n value uniform 0;\n}\n\n\"(p|k|omega|epsilon)\"\n{\n type zeroGradient;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n correctPhi yes;\n correctMeshPhi yes;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n equations\n {\n \".*\" 1;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type movingWallVelocity;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1;\n\ndeltaT 0.001;\n\nwriteControl timeStep;\n\nwriteInterval 100;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n" } } ] }, "MRF_stirredReactor/8": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n\n turbulence on;\n printCoeffs on;\n}\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 2;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1000;\ndeltaT 1;\nwriteControl timeStep;\nwriteInterval 100;\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linear;\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform a steady incompressible stirred-reactor MRF mesh-refinement benchmark using foamRun -solver incompressibleFluid with RAS kEpsilon, 100 rpm, the same Rushton geometry, baffles, fluid properties, steady controls, power functions, and boundary conditions as the baseline. Change only the structured tank mesh factor from 1 to 2. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ] }, "MRF_stirredReactor/9": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication mirrorMesh\nfoamDictionary -set \"pointAndNormalDict/normal=(1 0 0)\" system/mirrorMeshDict\nrunApplication -a mirrorMesh\nrunApplication -a createZones\nrunApplication -a createBaffles -dict createBafflesDict.stirrer\nif [ -f system/createBafflesDict.baffles ]; then\n runApplication -a createBaffles -dict createBafflesDict.baffles\nfi\nif [ -f system/createBafflesDict.NCC ]; then\n runApplication -a createBaffles -dict createBafflesDict.NCC\n runApplication splitBaffles\n runApplication createNonConformalCouples -fields nonCouple1 nonCouple2\nfi\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 1e-3;\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type flowRateInletVelocity;\n meanVelocity constant $Uinlet;\n value uniform (0 0 0);\n }\n\n outlet\n {\n type pressureInletOutletVelocity;\n value uniform (0 0 0);\n }\n\n stirrer\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n \"nonCouple.*\"\n {\n type movingWallSlipVelocity;\n value uniform (0 0 0);\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type entrainmentPressure;\n p0 uniform 0;\n value uniform 0;\n }\n\n stirrer\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n wall\n {\n type fixedFluxExtrapolatedPressure;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-5;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 2e-7;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 0.1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value $internalField;\n }\n\n \"nonCouple.*\"\n {\n type calculated;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotatingZone;\n\n #include \"rotatingZoneProperties\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n\n turbulence on;\n printCoeffs on;\n}\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "constant/rotatingZoneProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object rotatingZoneProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\norigin (0 0 0);\naxis (0 0 1);\nomega 100 [rpm];\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfactor 1;\nmode uniform;\n\n// Cells\n// multiple of 6, so mesh faces coincide with six-blade stirrer\nboxCells #calc \"$factor*6\";\n\nr1Cells #calc \"$factor*3\";\nr2Cells $r1Cells;\nr3Cells $r1Cells;\nr4Cells #calc \"$factor*4\";\n\n#ifeq $mode graded\n r5Cells #calc \"$factor*40\";\n zCells #calc \"$factor*100\";\n#else\n r5Cells #calc \"$factor*25\";\n zCells #calc \"$factor*40\";\n#endif\n\n// Tank\nD 1.0;\nH 1.2;\nR #calc \"0.5*$D\";\n\n// Rushton radius\nr #calc \"0.3*$R\";\n\n// Blades\nrbld #calc \"0.5*$r\";\nrdisk #calc \"1.5*$rbld\";\nrzone #calc \"0.4*$R\";\n\n// Box\nrbox #calc \"0.5*$rbld\";\n\n// 45 degs\nrsqrt2 #calc \"1.0 / sqrt(2.0)\";\n\nrbld45 #calc \"$rsqrt2*$rbld\";\nrdisk45 #calc \"$rsqrt2*$rdisk\";\nr45 #calc \"$rsqrt2*$r\";\nrzone45 #calc \"$rsqrt2*$rzone\";\nR45 #calc \"$rsqrt2*$R\";\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n ($rbox 0 0)\n ($rbld 0 0)\n ($rdisk 0 0)\n ($r 0 0)\n ($rzone 0 0)\n ($R 0 0)\n (0 $rbox 0)\n ($rbox $rbox 0)\n (0 $rbld 0)\n ($rbld45 $rbld45 0)\n (0 $rdisk 0)\n ($rdisk45 $rdisk45 0)\n (0 $r 0)\n ($r45 $r45 0)\n (0 $rzone 0)\n ($rzone45 $rzone45 0)\n (0 $R 0)\n ($R45 $R45 0)\n\n (0 0 $H)\n ($rbox 0 $H)\n ($rbld 0 $H)\n ($rdisk 0 $H)\n ($r 0 $H)\n ($rzone 0 $H)\n ($R 0 $H)\n (0 $rbox $H)\n ($rbox $rbox $H)\n (0 $rbld $H)\n ($rbld45 $rbld45 $H)\n (0 $rdisk $H)\n ($rdisk45 $rdisk45 $H)\n (0 $r $H)\n ($r45 $r45 $H)\n (0 $rzone $H)\n ($rzone45 $rzone45 $H)\n (0 $R $H)\n ($R45 $R45 $H)\n);\n\n// Grading\n#ifeq $mode graded\n zGrd ((1 1 40)(20 4 1)(1 1 0.025));\n rGrd ((4 1 1)(1 1 0.025));\n#else\n zGrd 1;\n rGrd 1;\n#endif\n\nboxGrd simpleGrading (1 1 $zGrd);\nr1Grd simpleGrading (1 1 $zGrd);\nr2Grd simpleGrading (1 1 $zGrd);\nr3Grd simpleGrading (1 1 $zGrd);\nr4Grd simpleGrading (1 1 $zGrd);\nr5Grd simpleGrading ($rGrd 1 $zGrd);\n\nblocks\n(\n hex (0 1 8 7 19 20 27 26) ($boxCells $boxCells $zCells) $boxGrd\n\n hex (1 2 10 8 20 21 29 27) ($r1Cells $boxCells $zCells) $r1Grd\n hex (8 10 9 7 27 29 28 26) ($r1Cells $boxCells $zCells) $r1Grd\n\n hex (2 3 12 10 21 22 31 29) ($r2Cells $boxCells $zCells) $r2Grd\n hex (10 12 11 9 29 31 30 28) ($r2Cells $boxCells $zCells) $r2Grd\n\n hex (3 4 14 12 22 23 33 31) ($r3Cells $boxCells $zCells) $r3Grd\n hex (12 14 13 11 31 33 32 30) ($r3Cells $boxCells $zCells) $r3Grd\n\n hex (4 5 16 14 23 24 35 33) ($r4Cells $boxCells $zCells) $r4Grd\n hex (14 16 15 13 33 35 34 32) ($r4Cells $boxCells $zCells) $r4Grd\n\n hex (5 6 18 16 24 25 37 35) ($r5Cells $boxCells $zCells) $r5Grd\n hex (16 18 17 15 35 37 36 34) ($r5Cells $boxCells $zCells) $r5Grd\n);\n\ncurve 45 (0 0 1);\n\nedges\n(\n // Stirrer disk and blades\n arc 2 10 $curve\n arc 10 9 $curve\n arc 21 29 $curve\n arc 29 28 $curve\n\n arc 3 12 $curve\n arc 12 11 $curve\n arc 22 31 $curve\n arc 31 30 $curve\n\n arc 4 14 $curve\n arc 14 13 $curve\n arc 23 33 $curve\n arc 33 32 $curve\n\n arc 5 16 $curve\n arc 16 15 $curve\n arc 24 35 $curve\n arc 35 34 $curve\n\n // Outer wall\n arc 6 18 $curve\n arc 18 17 $curve\n arc 25 37 $curve\n arc 37 36 $curve\n);\n\ndefaultPatch\n{\n name tank;\n type wall;\n}\n\n// Optional inlet and outlet patches\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 1 8 7)\n );\n }\n outlet\n {\n type patch;\n faces\n (\n (19 26 27 20)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1;\ndeltaT 0.001;\nwriteControl timeStep;\nwriteInterval 100;\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/createBafflesDict.baffles": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n bafflesGroup // group name\n {\n type faceZone;\n zoneName baffles;\n\n owner\n {\n name baffles;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createBafflesDict.stirrer": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createBafflesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ninternalFacesOnly true;\n\nbaffles\n{\n stirrerGroup // not \"stirrer\" otherwise clash between group and patch names\n {\n type faceZone;\n zoneName stirrer;\n\n owner\n {\n name stirrer;\n type wall;\n }\n neighbour\n {\n $owner;\n }\n }\n}\n\n\n// ************************************************************************* //\n", "system/createZonesDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object createZonesDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nstirrer\n{\n type union;\n\n blades\n {\n type surface;\n surface triSurface;\n file \"stirrer4.obj\";\n }\n\n disk\n {\n type surface;\n surface disk;\n origin (0 0 0.6);\n normal (0 0 1);\n radius 0.1125;\n }\n}\n\nbaffles\n{\n type surface;\n surface triSurface;\n file \"baffles.obj\";\n}\n\nrotatingZone\n{\n type surface;\n surface cylinder;\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\nrotatingCellZone\n{\n type cylinder;\n zoneType cell;\n name rotatingZone;\n\n point1 (0 0 0.54);\n point2 (0 0 0.66);\n radius 0.2;\n}\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc power\n#includeFunc stirrerPower\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default Gauss linear;\n div(phi,U) Gauss linearUpwind grad(U);\n\n turbulence Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-8;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"pcorr.*\"\n {\n $p;\n tolerance 1e-2;\n relTol 0;\n\n }\n\n Phi\n {\n $p;\n }\n\n MeshPhi\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-2;\n relTol 0;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-10;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 2;\n nCorrectors 2;\n pRefCell 0;\n pRefValue 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n\n equations\n {\n \".*\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/mirrorMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object mirrorMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nplaneType pointAndNormal;\n\npointAndNormalDict\n{\n point (0 0 0);\n normal (0 1 0);\n}\n\nplaneTolerance #calc \"0.001\";\n\n// ************************************************************************* //\n", "system/stirrerPower": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates the power input from the stirrer patch.\n\n\\*---------------------------------------------------------------------------*/\n\ntype surfaceFieldValue;\nlibs ( \"libfieldFunctionObjects.so\" );\nlog no;\nwriteFields no;\npatch stirrer;\noperation sum;\nfields (stressUSf);\nwriteControl outputTime;\n\n// ************************************************************************* //\n", "usr_requirement": "Perform a transient incompressible stirred-reactor MRF benchmark using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy pimpleFoam application. Use the same tutorial-derived Rushton stirred tank geometry and rotating MRF cellZone as the steady MRF baseline. Use a Newtonian fluid with constant kinematic viscosity, an impeller speed of 100 rpm, and the RAS kEpsilon turbulence model. Use transient time discretisation with PIMPLE pressure-velocity coupling instead of steady SIMPLE. Run from t=0 to t=1 with deltaT=0.001 and write results every 100 time steps. Keep the mesh, boundary conditions, and MRF rotating-zone setup consistent with the steady MRF case. Use the supplied Rushton geometry assets (simpleRushtonMRF/stirrer4, simpleRushtonMRF/stirrer6, simpleRushtonMRF/baffles) rather than inventing a different impeller. The tank diameter is 1.0 m, its height is 1.2 m, the impeller radius is 0.15 m and the rotating-zone radius is 0.20 m. Use a Newtonian liquid with kinematic viscosity 1e-6 m2/s. Maintain a small through-flow with mean inlet velocity 1e-3 m/s and an open pressure outlet. Keep the tank, shaft, impeller and baffle surfaces no-slip except where the selected rotating-frame formulation requires otherwise.", "_external_assets": [ { "asset_id": "simpleRushtonMRF/stirrer4", "target": "constant/geometry/stirrer4.obj" }, { "asset_id": "simpleRushtonMRF/stirrer6", "target": "constant/geometry/stirrer6.obj" }, { "asset_id": "simpleRushtonMRF/baffles", "target": "constant/geometry/baffles.obj" } ] }, "MRF_stirredReactor/10": { "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n rotor\n {\n type MRFnoSlip;\n }\n\n stator\n {\n type noSlip;\n }\n\n front\n {\n type empty;\n }\n\n back\n {\n type empty;\n }\n}\n\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [];\n\ninternalField uniform 0;\n\nboundaryField\n{\n rotor\n {\n type zeroGradient;\n }\n\n stator\n {\n type zeroGradient;\n }\n\n front\n {\n type empty;\n }\n\n back\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n rotor\n {\n type zeroGradient;\n }\n\n stator\n {\n type zeroGradient;\n }\n\n front\n {\n type empty;\n }\n\n back\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF\n{\n cellZone rotor;\n\n origin (0 0 0);\n axis (0 0 1);\n\n omega 100 [rpm];\n}\n\n// ************************************************************************* //\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n\n\n// ************************************************************************* //\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water oil);\n\nsigma 0.05;\n\n\n// ************************************************************************* //\n", "constant/physicalProperties.oil": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.oil;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 0.0001;\n\nrho 500;\n\n\n// ************************************************************************* //\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 0.0001;\n\nrho 1000;\n\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1.0;\n\nrHub 0.02; // Radius of the rotor hub\nrRotorTip 0.05; // Radius of the rotor blade tips\nrMid 0.06; // Radius of the midpoint between rotor and stator\nrStatorTip 0.07; // Radius of the stator blade tips\nrVessel 0.1; // Radius of the outer vessel wall\n\nhalfDepth 0.005; // Half-depth of the 2-D slab\n\nnCellsRootTip 12; // Number of cells radially along the blades\nnCellsMid 4; // Number of cells radially across the mid section (/2)\nnCellsBladeBlade 12; // Number of cells tangentially between blades (/2)\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nvertices #codeStream\n{\n codeInclude\n #{\n #include \"pointField.H\"\n #include \"transformField.H\"\n #};\n\n code\n #{\n const pointField points0\n ({\n point(-$rVessel, 0, -$halfDepth),\n point(-$rVessel, 0, -$halfDepth),\n point(-$rStatorTip, 0, -$halfDepth),\n point(-$rMid, 0, -$halfDepth),\n point(-$rRotorTip, 0, -$halfDepth),\n point(-$rHub, 0, -$halfDepth),\n point(-$rHub, 0, -$halfDepth),\n });\n\n pointField points;\n for (label i = 0; i < 8; i++)\n {\n points.append(transform(Rz(degToRad(i*45)), points0));\n }\n points.append(points + vector(0, 0, 2*$halfDepth));\n\n os << points;\n #};\n};\n\nbladeBlock ($nCellsBladeBlade $nCellsRootTip 1) simpleGrading (1 1 1);\nmidBlock ($nCellsBladeBlade $nCellsMid 1) simpleGrading (1 1 1);\n\nblocks\n(\n hex (0 8 9 2 56 64 65 58) stator $bladeBlock\n hex (2 9 10 3 58 65 66 59) stator $midBlock\n hex (3 10 11 4 59 66 67 60) rotor $midBlock\n hex (4 11 12 5 60 67 68 61) rotor $bladeBlock\n\n hex (7 14 16 9 63 70 72 65) stator $bladeBlock\n hex (9 16 17 10 65 72 73 66) stator $midBlock\n hex (10 17 18 11 66 73 74 67) rotor $midBlock\n hex (11 18 20 12 67 74 76 68) rotor $bladeBlock\n\n hex (14 22 23 16 70 78 79 72) stator $bladeBlock\n hex (16 23 24 17 72 79 80 73) stator $midBlock\n hex (17 24 25 18 73 80 81 74) rotor $midBlock\n hex (18 25 26 19 74 81 82 75) rotor $bladeBlock\n\n hex (21 28 30 23 77 84 86 79) stator $bladeBlock\n hex (23 30 31 24 79 86 87 80) stator $midBlock\n hex (24 31 32 25 80 87 88 81) rotor $midBlock\n hex (25 32 34 26 81 88 90 82) rotor $bladeBlock\n\n hex (28 36 37 30 84 92 93 86) stator $bladeBlock\n hex (30 37 38 31 86 93 94 87) stator $midBlock\n hex (31 38 39 32 87 94 95 88) rotor $midBlock\n hex (32 39 40 33 88 95 96 89) rotor $bladeBlock\n\n hex (35 42 44 37 91 98 100 93) stator $bladeBlock\n hex (37 44 45 38 93 100 101 94) stator $midBlock\n hex (38 45 46 39 94 101 102 95) rotor $midBlock\n hex (39 46 48 40 95 102 104 96) rotor $bladeBlock\n\n hex (42 50 51 44 98 106 107 100) stator $bladeBlock\n hex (44 51 52 45 100 107 108 101) stator $midBlock\n hex (45 52 53 46 101 108 109 102) rotor $midBlock\n hex (46 53 54 47 102 109 110 103) rotor $bladeBlock\n\n hex (49 0 2 51 105 56 58 107) stator $bladeBlock\n hex (51 2 3 52 107 58 59 108) stator $midBlock\n hex (52 3 4 53 108 59 60 109) rotor $midBlock\n hex (53 4 6 54 109 60 62 110) rotor $bladeBlock\n);\n\narc 45 (0 0 1);\n\nedges\n(\n arc 0 8 $arc\n arc 7 14 $arc\n arc 14 22 $arc\n arc 21 28 $arc\n arc 28 36 $arc\n arc 35 42 $arc\n arc 42 50 $arc\n arc 49 0 $arc\n arc 56 64 $arc\n arc 63 70 $arc\n arc 70 78 $arc\n arc 77 84 $arc\n arc 84 92 $arc\n arc 91 98 $arc\n arc 98 106 $arc\n arc 105 56 $arc\n\n arc 2 9 $arc\n arc 9 16 $arc\n arc 16 23 $arc\n arc 23 30 $arc\n arc 30 37 $arc\n arc 37 44 $arc\n arc 44 51 $arc\n arc 51 2 $arc\n arc 58 65 $arc\n arc 65 72 $arc\n arc 72 79 $arc\n arc 79 86 $arc\n arc 86 93 $arc\n arc 93 100 $arc\n arc 100 107 $arc\n arc 107 58 $arc\n\n arc 3 10 $arc\n arc 10 17 $arc\n arc 17 24 $arc\n arc 24 31 $arc\n arc 31 38 $arc\n arc 38 45 $arc\n arc 45 52 $arc\n arc 52 3 $arc\n arc 59 66 $arc\n arc 66 73 $arc\n arc 73 80 $arc\n arc 80 87 $arc\n arc 87 94 $arc\n arc 94 101 $arc\n arc 101 108 $arc\n arc 108 59 $arc\n\n arc 4 11 $arc\n arc 11 18 $arc\n arc 18 25 $arc\n arc 25 32 $arc\n arc 32 39 $arc\n arc 39 46 $arc\n arc 46 53 $arc\n arc 53 4 $arc\n arc 60 67 $arc\n arc 67 74 $arc\n arc 74 81 $arc\n arc 81 88 $arc\n arc 88 95 $arc\n arc 95 102 $arc\n arc 102 109 $arc\n arc 109 60 $arc\n\n arc 5 12 $arc\n arc 12 20 $arc\n arc 19 26 $arc\n arc 26 34 $arc\n arc 33 40 $arc\n arc 40 48 $arc\n arc 47 54 $arc\n arc 54 6 $arc\n arc 61 68 $arc\n arc 68 76 $arc\n arc 75 82 $arc\n arc 82 90 $arc\n arc 89 96 $arc\n arc 96 104 $arc\n arc 103 110 $arc\n arc 110 62 $arc\n);\n\ndefaultPatch\n{\n name walls;\n type wall;\n}\n\nboundary\n(\n rotor\n {\n type wall;\n faces\n (\n (5 61 68 12)\n (12 68 76 20)\n (19 75 82 26)\n (26 82 90 34)\n (33 89 96 40)\n (40 96 104 48)\n (47 103 110 54)\n (54 110 62 6)\n\n (4 60 62 6)\n (18 74 76 20)\n (32 88 90 34)\n (46 102 104 48)\n (4 5 61 60)\n (18 19 75 74)\n (32 33 89 88)\n (46 47 103 102)\n );\n }\n stator\n {\n type wall;\n faces\n (\n (0 8 64 56)\n (7 14 70 63)\n (14 22 78 70)\n (21 28 84 77)\n (28 36 92 84)\n (35 42 98 91)\n (42 50 106 98)\n (49 0 56 105)\n\n (8 64 65 9)\n (22 78 79 23)\n (36 92 93 37)\n (50 106 107 51)\n (7 9 65 63)\n (21 23 79 77)\n (35 37 93 91)\n (49 51 107 105)\n );\n }\n front\n {\n type empty;\n faces\n (\n (56 58 65 64)\n (63 65 72 70)\n (70 72 79 78)\n (77 79 86 84)\n (84 86 93 92)\n (91 93 100 98)\n (98 100 107 106)\n (105 107 58 56)\n\n (58 59 66 65)\n (65 66 73 72)\n (72 73 80 79)\n (79 80 87 86)\n (86 87 94 93)\n (93 94 101 100)\n (100 101 108 107)\n (107 108 59 58)\n\n (59 60 67 66)\n (66 67 74 73)\n (73 74 81 80)\n (80 81 88 87)\n (87 88 95 94)\n (94 95 102 101)\n (101 102 109 108)\n (108 109 60 59)\n\n (60 61 68 67)\n (67 68 76 74)\n (74 75 82 81)\n (81 82 90 88)\n (88 89 96 95)\n (95 96 104 102)\n (102 103 110 109)\n (109 110 62 60)\n );\n }\n back\n {\n type empty;\n faces\n (\n (0 2 9 8)\n (7 9 16 14)\n (14 16 23 22)\n (21 23 30 28)\n (28 30 37 36)\n (35 37 44 42)\n (42 44 51 50)\n (49 51 2 0)\n\n (2 3 10 9)\n (9 10 17 16)\n (16 17 24 23)\n (23 24 31 30)\n (30 31 38 37)\n (37 38 45 44)\n (44 45 52 51)\n (51 52 3 2)\n\n (3 4 11 10)\n (10 11 18 17)\n (17 18 25 24)\n (24 25 32 31)\n (31 32 39 38)\n (38 39 46 45)\n (45 46 53 52)\n (52 53 4 3)\n\n (4 5 12 11)\n (11 12 20 18)\n (18 19 26 25)\n (25 26 34 32)\n (32 33 40 39)\n (39 40 48 46)\n (46 47 54 53)\n (53 54 6 4)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver incompressibleVoF;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 5;\ndeltaT 1e-3;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.01;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep yes;\n\nmaxCo 0.5;\nmaxAlphaCo 0.5;\n\nmaxDeltaT 1;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n div(rhoPhi,U) Gauss linear;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n alpha.water\n {\n nCorrectors 1;\n nSubCycles polynomial (0 2);\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-10;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-07;\n relTol 0.05;\n }\n\n p_rghFinal\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-07;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-06;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor no;\n nCorrectors 3;\n nNonOrthogonalCorrectors 0;\n\n pRefCell 0;\n pRefValue 0;\n}\n\n\n// ************************************************************************* //\n", "system/setFieldsDict": "FoamFile\n{ format ascii; class dictionary; object setFieldsDict; }\ndefaultFieldValues (volScalarFieldValue alpha.water 0);\nregions\n(\n boxToCell\n {\n box (-0.1 -0.1 -1) (0.1 0.1 0.0025);\n fieldValues (volScalarFieldValue alpha.water 1);\n }\n);\n", "usr_requirement": "Perform a two-phase liquid-liquid stirred-reactor MRF benchmark using water and oil with incompressibleVoF. Initialise a finite oil layer over a water region using OpenFOAM-13 setFields syntax, use zero gravity and retain p_rgh, interface compression, adaptive time stepping, and a 100 rpm MRF rotor. This is the water/oil variant, distinct from the single-phase laminar, turbulence, baffle, rheology, NCC, and transient variants. Use an eight-sector rotor-stator vessel with outer radius 0.10 m, rotor-tip radius 0.05 m, stator-tip radius 0.07 m and a 0.01 m quasi-2D thickness. Water has density 1000 kg/m3 and kinematic viscosity 1e-4 m2/s; oil has density 500 kg/m3 and the same viscosity; surface tension is 0.05 N/m and gravity is zero. Initially the lower portion up to z=0.0025 m is water and the rest is oil." }, "ERCOFTA_pump/1": { "usr_requirement": "Perform a steady incompressible ERCOFTA pump reference case using OpenFOAM-13 with foamRun -solver incompressibleFluid, using the tutorial-style MRF rotating-machine setup with a rotor cellZone, inlet/outlet boundaries, and wall patches for the blade and shroud surfaces. Keep the design-speed rotation rate and the baseline RANS closure fixed. Run from t=0 to t=0.001 with deltaT=5e-7 and write every time step. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -20 rad/s about the z-axis. Use an incompressible liquid with kinematic viscosity 1e-6 m2/s, a volumetric inlet flow of 0.03473 m3/s and zero-gauge outlet pressure. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver incompressibleFluid\n\n#------------------------------------------------------------------------------\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 0;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n volumetricFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -20;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O operation | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O operation | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n k\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n kFinal\n {\n $k;\n relTol 0;\n }\n\n omega\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n omegaFinal\n {\n $omega;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu 1e-06;\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/2": { "usr_requirement": "Perform a steady compressible ERCOFTA pump reference case using OpenFOAM-13 with foamRun -solver fluid, keeping the tutorial-style rotating-region setup, the rotor cellZone, inlet/outlet boundaries, and the baseline RANS closure fixed. Retain the compressible thermophysical settings and the design-speed rotation rate. Run from t=0 to t=0.001 with deltaT=5e-7 and write every time step. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -20 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 101325 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 101325;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 101325;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -20;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/3": { "usr_requirement": "Perform a steady ERCOFTA pump case using OpenFOAM-13 with foamRun -solver fluid, following the same tutorial-derived rotating-region setup as the baseline but changing only the rotating speed away from the design RPM. Keep the rotor cellZone, boundary layout, turbulence model, and all other settings fixed. Run from t=0 to t=0.001 with deltaT=5e-7 and write every time step. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -25 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 101325 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 101325;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 101325;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -25;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/4": { "usr_requirement": "Perform the steady compressible ERCOFTA rotating-region surrogate with foamRun -solver fluid and change only the OUTLET fixed pressure from the 101325 Pa baseline to 120000 Pa. Keep the rotor cellZone, omega=-20, kOmegaSST, thermophysical model, mesh, boundaries, steady SIMPLE settings, endTime=0.001, deltaT=5e-7, and writeInterval=1 fixed. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -20 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 120000 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 120000;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 120000;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -20;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/5": { "usr_requirement": "Perform a transient compressible ERCOFTA rotating-region surrogate using foamRun -solver fluid with the same perfect-gas thermophysical model, inlet/outlet conditions, U field, omega=-20, mesh, and rotor cellZone as the compressible baseline. Change only the temporal/turbulence treatment to Euler + PIMPLE with LES kOmegaSSTDES; use endTime=0.001, deltaT=1e-6, and writeInterval=1. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -20 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 101325 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 101325;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 101325;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -20;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 1e-6;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType LES;\n\nLES\n{\n model kOmegaSSTDES;\n\n delta cubeRootVol;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/6": { "usr_requirement": "Perform a steady ERCOFTA pump case using OpenFOAM-13 with foamRun -solver fluid, following the same tutorial-derived rotating-region setup as the baseline but switching only the turbulence model to kEpsilon. Keep the rotor cellZone, rotating speed, and all other settings fixed. Run from t=0 to t=0.001 with deltaT=5e-7 and write every time step. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -20 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 101325 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 101325;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 101325;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -20;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,epsilon) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|epsilon|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega|epsilon)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega|epsilon)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform 0.0002025;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type epsilonWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type epsilonWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type epsilonWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type epsilonWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/7": { "usr_requirement": "Perform a steady compressible ERCOFTA rotating-region surrogate with foamRun -solver fluid as a rotor-zone-extent sensitivity case. Extend only the boxToCell rotor region from the baseline x=0..0.3 to x=0..0.45 while retaining omega=-20, RAS kOmegaSST, thermophysical fields, mesh, boundary conditions, steady SIMPLE settings, endTime=0.001, deltaT=5e-7, and writeInterval=1. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -20 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 101325 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 101325;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 101325;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -20;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.45 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/8": { "usr_requirement": "Perform a steady compressible ERCOFTA rotating-region surrogate using foamRun -solver fluid with omega=-15, retaining the baseline kOmegaSST, perfect-gas thermophysical model, rotor zone, mesh, boundaries, steady SIMPLE controls, and post-processing. This is the low-speed companion to omega=-20 baseline and omega=-25 variant. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -15 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 101325 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 101325;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 101325;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -15;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/9": { "usr_requirement": "Perform a transient ERCOFTA pump case using OpenFOAM-13 with foamRun -solver fluid, following the same tutorial-derived rotating-machinery setup as the baseline but using the legacy rhoPimpleFoam-style transient PIMPLE coupling. Keep the rotor cellZone, rotating speed, turbulence model, and all other settings fixed. Run from t=0 to t=0.001 with deltaT=5e-7 and write every time step. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -20 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 101325 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\n#------------------------------------------------------------------------------\nrunApplication foamRun -solver fluid\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 101325;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 101325;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -20;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (24 8 16) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n" }, "ERCOFTA_pump/10": { "usr_requirement": "Perform a steady compressible ERCOFTA rotating-machine surrogate using foamRun -solver fluid. Change only the uniform rectangular surrogate mesh from 24x8x16 to 48x16x32; retain omega=-20, RAS kOmegaSST, thermophysical fields, boundaries, steady discretisation, and run controls. This is the fine-mesh resolution variant, not a claim of supplied double-row blade geometry. Treat this as the supplied rectangular rotating-region surrogate, not as an unspecified blade-resolved pump: the domain is 0.6 x 0.25 x 0.2 m, and the baseline rotor zone occupies x=0 to 0.3 m. Use angular velocity -20 rad/s about the z-axis. Use calorically perfect air at 300 K with molecular weight 28.964, Cp=1004.7 J/(kg K), viscosity 1.8e-5 Pa s and Pr=0.72; set the inlet mass flow rate to 0.03473 kg/s and the outlet pressure to 101325 Pa. Preserve the rotating and stationary wall roles.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication topoSet\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_ROT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n BLADE_STAT\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type compressible::alphatWallFunction;\n Prt 0.85;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0.01;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_ROT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n BLADE_STAT\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n HUB_SHROUD\n {\n type kqRWallFunction;\n value uniform 0.01;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n INLET\n {\n type calculated;\n value uniform 0;\n }\n OUTLET\n {\n type calculated;\n value uniform 0;\n }\n STATOR\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_ROT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n BLADE_STAT\n {\n type nutkWallFunction;\n value uniform 0;\n }\n HUB_SHROUD\n {\n type nutkWallFunction;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform 10;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_ROT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n BLADE_STAT\n {\n type omegaWallFunction;\n value uniform 10;\n }\n HUB_SHROUD\n {\n type omegaWallFunction;\n value uniform 10;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 101325;\n\nboundaryField\n{\n INLET\n {\n type zeroGradient;\n }\n OUTLET\n {\n type fixedValue;\n value uniform 101325;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n INLET\n {\n type fixedValue;\n value uniform 300;\n }\n OUTLET\n {\n type zeroGradient;\n }\n STATOR\n {\n type zeroGradient;\n }\n BLADE_ROT\n {\n type zeroGradient;\n }\n BLADE_STAT\n {\n type zeroGradient;\n }\n HUB_SHROUD\n {\n type zeroGradient;\n }\n}\n\n// ************************************************************************* //\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n INLET\n {\n type flowRateInletVelocity;\n massFlowRate 0.03473;\n value uniform (0 0 0);\n }\n OUTLET\n {\n type zeroGradient;\n value uniform (0 0 0);\n }\n STATOR\n {\n type noSlip;\n }\n BLADE_ROT\n {\n type MRFnoSlip;\n value uniform (0 0 0);\n }\n BLADE_STAT\n {\n type fixedValue;\n value uniform (0 0 0);\n }\n HUB_SHROUD\n {\n type noSlip;\n }\n}\n\n// ************************************************************************* //\n", "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nMRF1\n{\n cellZone rotor;\n active yes;\n\n nonRotatingPatches (INLET OUTLET);\n\n origin (0 0 0);\n axis (0 0 1);\n omega -20;\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.001;\n\ndeltaT 5e-7;\n\nwriteControl timeStep;\n\nwriteInterval 1;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression on;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable yes;\n\nadjustTimeStep no;\nmaxCo 0.5;\n\nfunctions\n{\n};\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n grad(U) cellLimited Gauss linear 1;\n grad(k) cellLimited Gauss linear 1;\n grad(omega) cellLimited Gauss linear 1;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) bounded Gauss upwind;\n div(phi,k) bounded Gauss upwind;\n div(phi,omega) bounded Gauss upwind;\n div(phi,K) bounded Gauss upwind;\n div(phi,T) bounded Gauss upwind;\n div(phi,h) bounded Gauss upwind;\n div(phi,e) bounded Gauss upwind;\n div(phi,Ekp) bounded Gauss upwind;\n div(phi,(p|rho)) bounded Gauss upwind;\n div((phi|interpolate(rho)),p) Gauss upwind;\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(rho|U|h|e|T|k|omega|alphat)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n nNonOrthogonalCorrectors 0;\n consistent yes;\n\n pRefCell 0;\n pRefValue 0;\n\n residualControl\n {\n p 1e-5;\n U 1e-5;\n \"(T|h|e|k|omega)\" 1e-5;\n }\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.3;\n \"(T|h|e|k|omega)\" 0.3;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n\n printCoeffs on;\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (0 0 0)\n (0.6 0 0)\n (0.6 0.25 0)\n (0 0.25 0)\n (0 0 0.2)\n (0.6 0 0.2)\n (0.6 0.25 0.2)\n (0 0.25 0.2)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (48 16 32) simpleGrading (1 1 1)\n);\n\nboundary\n(\n INLET\n {\n type patch;\n faces ((0 4 7 3));\n }\n\n OUTLET\n {\n type patch;\n faces ((1 2 6 5));\n }\n\n STATOR\n {\n type wall;\n faces ((0 1 5 4));\n }\n\n BLADE_ROT\n {\n type wall;\n faces ((3 7 6 2));\n }\n\n BLADE_STAT\n {\n type wall;\n faces ((0 3 2 1));\n }\n\n HUB_SHROUD\n {\n type wall;\n faces ((4 5 6 7));\n }\n);\n\nmergePatchPairs\n(\n);\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name rotorCells;\n type cellSet;\n action new;\n source boxToCell;\n box (0 0 0) (0.3 0.25 0.2);\n }\n\n {\n name rotor;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rotorCells;\n }\n);\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture\n{\n specie\n {\n nMoles 1;\n molWeight 28.9643899421023;\n }\n thermodynamics\n {\n Cp 1004.70300000000;\n Hf 0;\n\tTref 0;\n }\n transport\n {\n mu 1.8e-5;\n Pr 0.72;\n }\n}\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nlimitp\n{\n type limitPressure;\n\n min 0.8e5;\n max 1.2e5;\n}\n\n\nboundK\n{\n type bound;\n\n field k;\n\n min 1e-12;\n}\n\nboundOmega\n{\n type bound;\n\n field omega;\n\n min 1e-12;\n}\n\n// ************************************************************************* //\n" }, "compressibleBubbleCollapse/1": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. This is the baseline single-bubble case with a circular gas bubble of radius 50um centered in the domain at 5MPa ambient pressure, using the same 2D 10mm-high domain, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport as the shared baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n" }, "compressibleBubbleCollapse/2": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the initial gas-bubble radius, using two radius subcases of 100um and 200um, while keeping the 2D 10mm-high domain, 5MPa ambient pressure, bubble center, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the 50um baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n", "reference_subcases": [ { "id": "radius100um", "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the initial gas-bubble radius, using a 100um bubble while keeping the 2D 10mm-high domain, 5MPa ambient pressure, bubble center, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the 50um baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "overrides": { "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------* ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.0001;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n" } }, { "id": "radius200um", "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the initial gas-bubble radius, using a 200um bubble while keeping the 2D 10mm-high domain, 5MPa ambient pressure, bubble center, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the 50um baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "overrides": { "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------* ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.0002;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n" } } ] }, "compressibleBubbleCollapse/3": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the ambient pressure, using a weak-collapse branch at 2MPa and a strong-collapse branch at 10MPa, while keeping the 50um single bubble, centered placement, 2D 10mm-high domain, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n", "reference_subcases": [ { "id": "ambient2MPa", "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the ambient pressure, using a weak-collapse branch at 2MPa while keeping the 50um single bubble, centered placement, 2D 10mm-high domain, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "overrides": { "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 2000000\n volScalarFieldValue p 2000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 2000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 2000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 2000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 2000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n" } }, { "id": "ambient10MPa", "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the ambient pressure, using a strong-collapse branch at 10MPa while keeping the 50um single bubble, centered placement, 2D 10mm-high domain, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "overrides": { "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 10000000\n volScalarFieldValue p 10000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 10000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 10000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 10000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 10000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n" } } ] }, "compressibleBubbleCollapse/4": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the bubble-center distance from the solid wall, placing the 50um bubble in a near-wall configuration, while keeping the 2D 10mm-high domain, 5MPa ambient pressure, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K). Place the bubble centre 0.20 mm above the bottom wall.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.0002);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n" }, "compressibleBubbleCollapse/5": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the initial gas-bubble shape, replacing the circular 50um baseline bubble with a stepped/asymmetric axis-aligned rectangular initial contour represented by two boxToCell selections at the same center location, while keeping the 2D 10mm-high domain, 5MPa ambient pressure, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport unchanged. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K). Form the asymmetric bubble from two overlapping rectangles: one spanning radial coordinate -53.79 to 26.21 um and height 4.9625 to 5.0375 mm, and the second spanning 26.21 to 63.21 um and height 4.975 to 5.025 mm.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n boxToCell\n {\n box (-5.379e-5 -2e-5 0.0049625) (2.621e-5 2e-5 0.0050375);\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n boxToCell\n {\n box (2.621e-5 -2e-5 0.004975) (6.321e-5 2e-5 0.005025);\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n" }, "compressibleBubbleCollapse/6": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the gas-liquid density ratio, using a lighter-gas branch by lowering the air density while keeping the liquid model, the 50um bubble geometry, the 2D 10mm-high domain, the 5MPa ambient pressure, and the interfaceCompression + vanLeer VOF transport fixed to the baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 14.48 and Cp=2009.406 J/(kg K).", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 14.48;\n }\n thermodynamics\n {\n Cp 2009.406;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n" }, "compressibleBubbleCollapse/7": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the mesh strategy by enabling AMR around the gas-liquid interface with dynamicRefineFvMesh, while keeping the 50um single bubble, 2D 10mm-high domain, 5MPa ambient pressure, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n", "constant/dynamicMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object dynamicMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntopoChanger\n{\n type refiner;\n\n libs (\"libfvMeshTopoChangers.so\");\n\n mover none;\n\n refineInterval 1;\n\n field alpha.water;\n\n lowerRefineLevel 0.001;\n upperRefineLevel 0.999;\n\n nBufferLayers 1;\n\n maxRefinement 2;\n\n maxCells 200000;\n\n correctFluxes\n (\n (phi none)\n (nHatf none)\n (rhoPhi none)\n (alphaPhi.water none)\n (alphaPhi.air none)\n (alphaRhoPhi.water none)\n (alphaRhoPhi.air none)\n (ghf none)\n );\n\n dumpLevel true;\n}\n\n// ************************************************************************* //\n" }, "compressibleBubbleCollapse/8": { "usr_requirement": "Perform the fixed uniform fine-mesh compressible bubble-collapse baseline using foamRun -solver compressibleVoF. Keep the 50 um bubble, 5 MPa pressure, thermophysical model, interface scheme, and controls fixed while refining the uniform base mesh from 200x1x200 to 400x1x400. This is the fixed-grid resolution counterpart to the adaptive-AMR variant. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K).", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 400;\nny 1;\nnz 400;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n" }, "compressibleBubbleCollapse/9": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver incompressibleVoF, corresponding to the legacy interFoam application. Change only the solver family and compressibility treatment for an incompressible VOF comparison, while keeping the same 50um bubble placement, 2D 10mm-high domain, water/air interface geometry, and as much of the baseline setup as the solver allows. This branch is the incompressible interFoam-style reference against the compressible bubble-collapse baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For this incompressible comparison use water rho=998 kg/m3 and nu=3.653e-7 m2/s, air rho=1.2 kg/m3 and nu=1.533e-5 m2/s.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"incompressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver $solver\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases ( water air );\n\nsigma sigma [ 1 0 -2 0 0 0 0 ] 0;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleVoF;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,U) Gauss upwind;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n U\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n UFinal\n {\n $U;\n relTol 0;\n }\n\n pcorr\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-6;\n relTol 0;\n }\n\n pcorrFinal\n {\n $pcorr;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n );\n }\n);\n\n// ************************************************************************* //\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 1.533e-5;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 1.2;\n\n// ************************************************************************* //\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel Newtonian;\n\nnu nu [ 0 2 -1 0 0 0 0 ] 3.653e-7;\n\nrho rho [ 1 -3 0 0 0 0 0 ] 998;\n\n// ************************************************************************* //\n" }, "compressibleBubbleCollapse/10": { "usr_requirement": "Perform a compressible two-phase bubble-collapse benchmark using OpenFOAM-13 with foamRun -solver compressibleVoF. Change only the number of bubbles by introducing a second identical 50um bubble so the two bubbles interact, while keeping the 2D 10mm-high domain, 5MPa ambient pressure, water/air phases, compressible perfectFluid liquid equation of state, gamma=1.4 air, and interfaceCompression + vanLeer VOF transport identical to the single-bubble baseline. Run from t=0 to t=1e-7; deltaT=1e-10; write results every 1e-8 using writeControl=adjustableRunTime. Use adjustTimeStep=yes, maxCo=0.3, maxAlphaCo=1, maxDeltaT=2e-9. Use a 5-degree axisymmetric wedge domain with radius and height both 10 mm. The bottom is a solid wall, the top maintains the ambient pressure and the outer radial boundary is non-penetrating. Initially the liquid and gas are at 300 K, the gas pressure is 3550 Pa, gravity is zero and surface tension is neglected. For water use the perfect-fluid relation with rho0=998 kg/m3, R=100000 J/kg and Cv=4195 J/(kg K); for the gas use a perfect-gas model with molecular weight 28.96 and Cp=1004.5 J/(kg K). Place the second 50 um bubble 0.15 mm from the first in the radial direction.", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nsolver=\"compressibleVoF\"\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver $solver\nrunApplication reconstructPar -newTimes\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n WALL\n {\n type noSlip;\n }\n TOP\n {\n type zeroGradient;\n }\n SIDE\n {\n type zeroGradient;\n }\n front\n {\n type wedge;\n }\n back\n {\n type wedge;\n }\n axis\n {\n type empty;\n }\n}\n", "constant/g": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class uniformDimensionedVectorField;\n location \"constant\";\n object g;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -2 0 0 0 0];\nvalue (0 0 0);\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/phaseProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object phaseProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nphases (water air);\n\npMin 3350;\n\nsigma\n{\n type constant;\n sigma 0.0;\n}\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nxx 0.0099904822; // radial; r*cos(2.5deg) = r*0.99904822\nyp 0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nym -0.00043619387; // polar; r*sin(2.5deg) = r*0.043619387\nzz 0.01;\n\n// number of points\nnx 200;\nny 1;\nnz 200;\n\nvertices\n(\n (0 0 0)\n ($xx $ym 0)\n ($xx $yp 0)\n (0 0 $zz)\n ($xx $ym $zz)\n ($xx $yp $zz)\n);\n\nblocks\n(\n hex (0 1 2 0 3 4 5 3) ($nx $ny $nz) simpleGrading (1 1 1)\n);\n\n\nedges\n(\n);\n\nboundary\n(\n WALL\n {\n type patch;\n faces\n (\n (0 1 2 0)\n );\n }\n TOP\n {\n type patch;\n faces\n (\n (3 4 5 3)\n );\n }\n SIDE\n {\n type wall;\n faces\n (\n (1 2 5 4)\n );\n }\n front\n {\n type wedge;\n faces\n (\n (0 1 4 3)\n );\n }\n back\n {\n type wedge;\n faces\n (\n (2 0 3 5)\n );\n }\n axis\n {\n type empty;\n faces\n (\n (0 3 3 0)\n );\n }\n);\n\nmergePatchPairs\n(\n);\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver compressibleVoF;\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1e-7;\n\ndeltaT 1e-10;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 1e-8;\n\npurgeWrite 20;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 10;\n\nrunTimeModifiable yes;\nadjustTimeStep yes;\nmaxCo 0.3;\nmaxAlphaCo 1;\nmaxDeltaT 2e-9;\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 3;\n\nmethod scotch;\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n div(phi,alpha) Gauss interfaceCompression vanLeer 1;\n div(phirb,alpha) Gauss interfaceCompression vanLeer 1;\n div(rhoPhi,U) Gauss upwind;\n div(rhoPhi,T) Gauss upwind;\n div(phi,k) Gauss upwind;\n div(phi,omega) Gauss upwind;\n div(rhoPhi,K) Gauss upwind;\n div(phi,p) Gauss upwind;\n div(phid,p) Gauss upwind;\n div(rhoPhi,p) Gauss upwind;\n div(rhoPhi,e) Gauss upwind;\n div(rhoPhi,h) Gauss upwind;\n div(alphaRhoPhi,e) Gauss upwind;\n div(alphaRhoPhi.air,e.air) Gauss upwind;\n div(alphaRhoPhi.water,e.water) Gauss upwind;\n div(alphaRhoPhi,h) Gauss upwind;\n div(alphaRhoPhi.air,h.air) Gauss upwind;\n div(alphaRhoPhi.water,h.water) Gauss upwind;\n div(alphaRhoPhi,T) Gauss upwind;\n div(alphaRhoPhi.air,T) Gauss upwind;\n div(alphaRhoPhi.water,T) Gauss upwind;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"alpha.*\"\n {\n nAlphaCorr 1;\n nAlphaSubCycles 2;\n\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-8;\n relTol 0;\n }\n\n p_rgh\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n p_rghFinal\n {\n $p_rgh;\n relTol 0;\n }\n\n p\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0.01;\n }\n\n \"pcorr.*\"\n {\n solver PCG;\n preconditioner DIC;\n tolerance 1e-7;\n relTol 0;\n maxIter 100;\n }\n\n \"(U|T|e.*|h.*|rho.*)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-8;\n relTol 0.1;\n }\n\n \"(U|T|e.*|h.*|rho.*)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n momentumPredictor yes;\n nOuterCorrectors 1;\n nCorrectors 2;\n nNonOrthogonalCorrectors 0;\n}\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volScalarFieldValue alpha.water 1\n volScalarFieldValue p_rgh 5000000\n volScalarFieldValue p 5000000\n volScalarFieldValue T 300\n);\n\nregions\n(\n sphereToCell\n {\n centre (0 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n sphereToCell\n {\n centre (0.00015 0 0.005);\n radius 0.00005;\n fieldValues\n (\n volScalarFieldValue alpha.water 0\n volScalarFieldValue p_rgh 3550\n volScalarFieldValue p 3550\n volScalarFieldValue T 300\n );\n }\n);\n", "0/alpha.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object alpha.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p_rgh": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p_rgh;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 5000000;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type fixedValue;\n value uniform 5000000;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 300;\n\nboundaryField\n{\n WALL\n {\n type zeroGradient;\n }\n\n TOP\n {\n type zeroGradient;\n }\n\n SIDE\n {\n type zeroGradient;\n }\n\n front\n {\n type wedge;\n }\n\n back\n {\n type wedge;\n }\n\n axis\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties.air": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.air;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\n\nmixture\n{\n specie\n {\n molWeight 28.96;\n }\n thermodynamics\n {\n Cp 1004.5;\n Hf 0;\n }\n transport\n {\n mu 1.84e-05;\n Pr 0.7;\n }\n}\n", "constant/physicalProperties.water": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties.water;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type heRhoThermo;\n mixture pureMixture;\n transport const;\n thermo eConst;\n equationOfState perfectFluid;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 18;\n }\n equationOfState\n {\n R 100000;\n rho0 998;\n }\n thermodynamics\n {\n Cv 4195;\n Hf 0;\n }\n transport\n {\n mu 3.645e-4;\n Pr 2.289;\n }\n}\n" }, "aerofoilNACA0012/1": { "usr_requirement": "Perform a low-subsonic NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid. Use the provided NACA0012 aerofoil geometry for mesh generation. The target condition is Ma=0.15 at zero angle of attack; set speed=52 m/s and angleOfAttack=0 degrees in 0/U. Use the kOmegaSST RANS turbulence model and the standard projected NACA0012 mesh with extruded front/back constraint patches. Run from t=0 to t=500; deltaT=1; write results every 50 time steps using writeControl=timeStep. Include the OpenFOAM case configuration, initial and boundary fields, mesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 52;\nangleOfAttack 0; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n\n tolerance 1e-8;\n relTol 0.01;\n }\n\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-6;\n U 1e-5;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-5;\n }\n\n nNonOrthogonalCorrectors 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n rho 0.01;\n }\n\n equations\n {\n U 0.7;\n h 0.7;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMax 100;\n zMax 50;\n\n xMin #neg $xMax;\n zMin #neg $zMax;\n\n // Number of cells\n zCells 60; // aerofoil to far field\n xUCells 60; // upstream\n xMCells 25; // middle\n xDCells 50; // downstream\n\n // Mesh grading\n zGrading 300; // aerofoil to far field\n xUGrading 10; // towards centre upstream\n leadGrading 0.005; // towards leading edge\n xDGrading 400; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n\n xLower $xUpper;\n zLower #neg $zUpper;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-3;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/2": { "usr_requirement": "Perform a subsonic NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid. Use the provided NACA0012 aerofoil geometry for mesh generation. The target condition is Ma=0.5 at zero angle of attack; set speed=173 m/s and angleOfAttack=0 degrees in 0/U. Use the kOmegaSST RANS turbulence model and the standard projected NACA0012 mesh with extruded front/back constraint patches. Run from t=0 to t=500; deltaT=1; write results every 50 time steps using writeControl=timeStep. Include the OpenFOAM case configuration, initial and boundary fields, mesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 173;\nangleOfAttack 0; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n\n tolerance 1e-8;\n relTol 0.01;\n }\n\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-6;\n U 1e-5;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-5;\n }\n\n nNonOrthogonalCorrectors 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n rho 0.01;\n }\n\n equations\n {\n U 0.7;\n h 0.7;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMax 100;\n zMax 50;\n\n xMin #neg $xMax;\n zMin #neg $zMax;\n\n // Number of cells\n zCells 60; // aerofoil to far field\n xUCells 60; // upstream\n xMCells 25; // middle\n xDCells 50; // downstream\n\n // Mesh grading\n zGrading 300; // aerofoil to far field\n xUGrading 10; // towards centre upstream\n leadGrading 0.005; // towards leading edge\n xDGrading 400; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n\n xLower $xUpper;\n zLower #neg $zUpper;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-3;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/3": { "usr_requirement": "Perform a transonic-onset NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid. Use the provided NACA0012 aerofoil geometry for mesh generation. The target condition is Ma=0.7 at zero angle of attack; set speed=242 m/s and angleOfAttack=0 degrees in 0/U. Use the kOmegaSST RANS turbulence model and the standard projected NACA0012 mesh with extruded front/back constraint patches. Run from t=0 to t=500; deltaT=1; write results every 50 time steps using writeControl=timeStep. Include the OpenFOAM case configuration, initial and boundary fields, mesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 242;\nangleOfAttack 0; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n\n tolerance 1e-8;\n relTol 0.01;\n }\n\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-6;\n U 1e-5;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-5;\n }\n\n nNonOrthogonalCorrectors 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n rho 0.01;\n }\n\n equations\n {\n U 0.7;\n h 0.7;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMax 100;\n zMax 50;\n\n xMin #neg $xMax;\n zMin #neg $zMax;\n\n // Number of cells\n zCells 60; // aerofoil to far field\n xUCells 60; // upstream\n xMCells 25; // middle\n xDCells 50; // downstream\n\n // Mesh grading\n zGrading 300; // aerofoil to far field\n xUGrading 10; // towards centre upstream\n leadGrading 0.005; // towards leading edge\n xDGrading 400; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n\n xLower $xUpper;\n zLower #neg $zUpper;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-3;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/4": { "usr_requirement": "Perform a transonic NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid. Use the provided NACA0012 aerofoil geometry for mesh generation. The target condition is Ma=0.8 at zero angle of attack; set speed=277 m/s and angleOfAttack=0 degrees in 0/U. Use the kOmegaSST RANS turbulence model and the standard projected NACA0012 mesh with extruded front/back constraint patches. Run from t=0 to t=500; deltaT=1; write results every 50 time steps using writeControl=timeStep. Include the OpenFOAM case configuration, initial and boundary fields, mesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 277;\nangleOfAttack 0; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n\n tolerance 1e-8;\n relTol 0.01;\n }\n\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-6;\n U 1e-5;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-5;\n }\n\n nNonOrthogonalCorrectors 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n rho 0.01;\n }\n\n equations\n {\n U 0.7;\n h 0.7;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMax 100;\n zMax 50;\n\n xMin #neg $xMax;\n zMin #neg $zMax;\n\n // Number of cells\n zCells 60; // aerofoil to far field\n xUCells 60; // upstream\n xMCells 25; // middle\n xDCells 50; // downstream\n\n // Mesh grading\n zGrading 300; // aerofoil to far field\n xUGrading 10; // towards centre upstream\n leadGrading 0.005; // towards leading edge\n xDGrading 400; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n\n xLower $xUpper;\n zLower #neg $zUpper;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-3;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/5": { "usr_requirement": "Perform a negative-five-degree NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid. Use the provided NACA0012 aerofoil geometry for mesh generation. The target angle condition is AoA=-5 degrees at Ma=0.5; set speed=173 m/s and angleOfAttack=-5 degrees in 0/U. Use the kOmegaSST RANS turbulence model and the standard projected NACA0012 mesh with extruded front/back constraint patches. Run from t=0 to t=500; deltaT=1; write results every 50 time steps using writeControl=timeStep. Include the OpenFOAM case configuration, initial and boundary fields, mesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 173;\nangleOfAttack -5; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n\n tolerance 1e-8;\n relTol 0.01;\n }\n\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-6;\n U 1e-5;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-5;\n }\n\n nNonOrthogonalCorrectors 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n rho 0.01;\n }\n\n equations\n {\n U 0.7;\n h 0.7;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMax 100;\n zMax 50;\n\n xMin #neg $xMax;\n zMin #neg $zMax;\n\n // Number of cells\n zCells 60; // aerofoil to far field\n xUCells 60; // upstream\n xMCells 25; // middle\n xDCells 50; // downstream\n\n // Mesh grading\n zGrading 300; // aerofoil to far field\n xUGrading 10; // towards centre upstream\n leadGrading 0.005; // towards leading edge\n xDGrading 400; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n\n xLower $xUpper;\n zLower #neg $zUpper;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-3;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/6": { "usr_requirement": "Perform a five-degree angle-of-attack NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid. Use the provided NACA0012 aerofoil geometry for mesh generation. The target angle condition is AoA=5 degrees at Ma=0.5; set speed=173 m/s and angleOfAttack=5 degrees in 0/U. Use the kOmegaSST RANS turbulence model and the standard projected NACA0012 mesh with extruded front/back constraint patches. Run from t=0 to t=1000; deltaT=1; write results every 50 time steps using writeControl=timeStep. Include the OpenFOAM case configuration, initial and boundary fields, mesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 173;\nangleOfAttack 5; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1000;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-08;\n relTol 0.01;\n }\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-06;\n U 1e-05;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-05;\n }\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 4;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.2;\n rho 0.01;\n }\n equations\n {\n U 0.3;\n h 0.3;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n k 0.3;\n omega 0.3;\n }\n}\n\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMax 100;\n zMax 50;\n\n xMin #neg $xMax;\n zMin #neg $zMax;\n\n // Number of cells\n zCells 60; // aerofoil to far field\n xUCells 60; // upstream\n xMCells 25; // middle\n xDCells 50; // downstream\n\n // Mesh grading\n zGrading 300; // aerofoil to far field\n xUGrading 10; // towards centre upstream\n leadGrading 0.005; // towards leading edge\n xDGrading 400; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n\n xLower $xUpper;\n zLower #neg $zUpper;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-3;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/7": { "usr_requirement": "Perform a ten-degree angle-of-attack NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid. Use the provided NACA0012 aerofoil geometry for mesh generation. The target angle condition is AoA=10 degrees at Ma=0.5; set speed=173 m/s and angleOfAttack=10 degrees in 0/U. Use the kOmegaSST RANS turbulence model and the standard projected NACA0012 mesh with extruded front/back constraint patches. Run from t=0 to t=1500; deltaT=1; write results every 50 time steps using writeControl=timeStep. Include the OpenFOAM case configuration, initial and boundary fields, mesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 173;\nangleOfAttack 10; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1500;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n tolerance 1e-08;\n relTol 0.01;\n }\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-06;\n U 1e-05;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-05;\n }\n nNonOrthogonalCorrectors 0;\n nOuterCorrectors 4;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.2;\n rho 0.01;\n }\n equations\n {\n U 0.3;\n h 0.3;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n k 0.3;\n omega 0.3;\n }\n}\n\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMax 100;\n zMax 50;\n\n xMin #neg $xMax;\n zMin #neg $zMax;\n\n // Number of cells\n zCells 60; // aerofoil to far field\n xUCells 60; // upstream\n xMCells 25; // middle\n xDCells 50; // downstream\n\n // Mesh grading\n zGrading 300; // aerofoil to far field\n xUGrading 10; // towards centre upstream\n leadGrading 0.005; // towards leading edge\n xDGrading 400; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n\n xLower $xUpper;\n zLower #neg $zUpper;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-3;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/8": { "usr_requirement": "Perform a NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid and a snappyHexMesh multi-level refinement strategy. Use the provided NACA0012 aerofoil geometry for mesh generation. The target condition is Ma=0.5 at AoA=0 degrees; set speed=173 m/s and angleOfAttack=0 degrees in 0/U. Use the kOmegaSST RANS turbulence model. Generate a background mesh and apply snappyHexMesh refinement around the aerofoil surface, near-field region, and downstream wake while preserving extruded front/back constraint patches for a quasi-2D aerofoil calculation. Run from t=0 to t=500; deltaT=1; write results every 50 time steps using writeControl=timeStep. Include the OpenFOAM case configuration, initial and boundary fields, blockMesh/snappyHexMesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication snappyHexMesh -overwrite\nrunApplication checkMesh\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 173;\nangleOfAttack 0; // degs\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $Uinlet;\n }\n\n outlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n back\n {\n type symmetryPlane;\n }\n\n front\n {\n type symmetryPlane;\n }\n\n aerofoil\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n outlet\n {\n type fixedValue;\n value uniform $pOut;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n value uniform $pOut;\n }\n\n back\n {\n type symmetryPlane;\n }\n\n front\n {\n type symmetryPlane;\n }\n\n aerofoil\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $Tinlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value uniform $Tinlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value uniform $Tinlet;\n }\n\n back\n {\n type symmetryPlane;\n }\n\n front\n {\n type symmetryPlane;\n }\n\n aerofoil\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n back\n {\n type symmetryPlane;\n }\n\n front\n {\n type symmetryPlane;\n }\n\n aerofoil\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n outlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n back\n {\n type symmetryPlane;\n }\n\n front\n {\n type symmetryPlane;\n }\n\n aerofoil\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n\n tolerance 1e-8;\n relTol 0.01;\n }\n\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-6;\n U 1e-5;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-5;\n }\n\n nNonOrthogonalCorrectors 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n rho 0.01;\n }\n\n equations\n {\n U 0.7;\n h 0.7;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -4;\nxMax 5;\nyMin -0.6;\nyMax 0.6;\nzMin -2;\nzMax 2;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (90 1 40) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n inGroups (freestream);\n faces ((0 4 7 3));\n }\n outlet\n {\n type patch;\n inGroups (freestream);\n faces ((1 2 6 5));\n }\n freestream\n {\n type patch;\n faces\n (\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n back\n {\n type symmetryPlane;\n faces ((0 3 2 1));\n }\n front\n {\n type symmetryPlane;\n faces ((4 5 6 7));\n }\n);\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n\n nearfield\n {\n type box;\n min (-0.5 -0.55 -0.5);\n max ( 1.5 0.55 0.5);\n }\n\n wake\n {\n type box;\n min ( 1.0 -0.55 -0.6);\n max ( 4.5 0.55 0.6);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n aerofoil\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n nearfield\n {\n mode inside;\n level 1;\n }\n\n wake\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0.5 0 1);\n nCellsBetweenLevels 3;\n}\n\nsnapControls {}\n\naddLayersControls {}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 1e-3;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n back\n {\n type symmetryPlane;\n }\n\n front\n {\n type symmetryPlane;\n }\n\n aerofoil\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n outlet\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n back\n {\n type symmetryPlane;\n }\n\n front\n {\n type symmetryPlane;\n }\n\n aerofoil\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/9": { "usr_requirement": "Perform a transient compressible NACA0012 aerofoil benchmark using OpenFOAM-13 with foamRun -solver fluid, corresponding to the legacy rhoPimpleFoam-style workflow. Use the provided NACA0012 aerofoil geometry for mesh generation. The target condition is Ma=0.5 at AoA=0 degrees; set speed=173 m/s and angleOfAttack=0 degrees in 0/U. Use the kOmegaSST RANS turbulence model and the standard projected NACA0012 mesh with extruded front/back constraint patches. Use transient time discretisation and PIMPLE pressure-velocity coupling suitable for the rhoPimpleFoam replacement path. Run from t=0 to t=0.15; deltaT=2e-5; write results every 0.001 simulation-time units using writeControl=adjustableRunTime. Include the OpenFOAM case configuration, initial and boundary fields, mesh dictionaries, force coefficient function object, and the external geometry path needed to run the case. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 173;\nangleOfAttack 0; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n outlet\n {\n type waveTransmissive;\n field p;\n gamma 1.4;\n fieldInf $pOut;\n lInf 5;\n value uniform $pOut;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n turbulence on;\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 0.15;\n\ndeltaT 2e-5;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.001;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n//************************************************************************** //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) Gauss linearUpwind limited;\n\n turbulence Gauss linearUpwind limited;\n energy Gauss linearUpwind limited;\n\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n\n div(phi,e) $energy;\n div(phi,K) $energy;\n div(phi,Ekp) $energy;\n div(phi,(p|rho)) $energy;\n\n div((phi|interpolate(rho)),p) Gauss upwind;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.01;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n \"(rho|U|k|omega|e)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(rho|U|k|omega|e)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|e)\" 1e-4;\n }\n\n nNonOrthogonalCorrectors 0;\n}\n\nPIMPLE\n{\n nCorrectors 2;\n nNonOrthogonalCorrectors 1;\n nOuterCorrectors 1;\n}\n\nrelaxationFactors\n{\n equations\n {\n \".*\" 1;\n }\n}\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMin -4;\n xMax 4;\n zMin -2;\n zMax 2;\n\n // Number of cells\n zCells 80; // aerofoil to far field\n xUCells 30; // upstream\n xMCells 30; // middle\n xDCells 40; // downstream\n\n // Mesh grading\n zGrading 40; // aerofoil to far field\n xUGrading 5; // towards centre upstream\n leadGrading 0.2; // towards leading edge\n xDGrading 10; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n xLower 0.3;\n zLower -0.06;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 0.1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.01;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 10;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "aerofoilNACA0012/10": { "usr_requirement": "Perform a steady compressible NACA0012 aerofoil turbulence variant using foamRun -solver fluid with the 2D structured/snappy geometry, SpalartAllmaras RAS, steady SIMPLE controls, and the same Mach 0.5, AoA=0, mesh, thermophysical fields, and forceCoeffs workflow as the baseline. This is the economical 2D SA-RANS alternative to the baseline kOmegaSST case; it does not claim DDES. Treat the supplied NACA0012 surface as a unit-chord aerofoil. Use calorically perfect air at 298 K and 100000 Pa with molecular weight 28.9, Cp=1005 J/(kg K), viscosity 1.82e-5 Pa s and Pr=0.71; impose a no-slip aerofoil and far-field conditions. Use a 1 m reference chord and unit reference span for force coefficients.", "_external_assets": [ { "asset_id": "naca0012/NACA0012", "target": "constant/geometry/NACA0012.obj.gz" } ], "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication transformPoints \"scale=(1 0 1)\"\nrunApplication extrudeMesh\n\nrunApplication foamRun -solver fluid\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nspeed 173;\nangleOfAttack 0; // degs\n\nangle #calc \"-degToRad($angleOfAttack)\";\n\n#calcInclude \"transform.H\"\nliftDir #calc \"transform(Ry($angle), vector(0, 0, 1))\";\ndragDir #calc \"transform(Ry($angle), vector(1, 0, 0))\";\n\nUinlet #calc \"$speed*$dragDir\";\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform $Uinlet;\n\nboundaryField\n{\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform $Uinlet;\n value uniform $Uinlet;\n }\n\n wall\n {\n type noSlip;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\npOut 1e5;\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform $pOut;\n\nboundaryField\n{\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform $pOut;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nTinlet 298;\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform $Tinlet;\n\nboundaryField\n{\n freestream\n {\n type inletOutlet;\n inletValue uniform $Tinlet;\n value $inletValue;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/alphat": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object alphat;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type compressible::alphatWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object mut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "FoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\nsimulationType RAS;\nRAS\n{\n model SpalartAllmaras;\n turbulence on;\n printCoeffs on;\n}\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleEnthalpy;\n}\n\nmixture // air at room temperature (293 K)\n{\n specie\n {\n molWeight 28.9;\n }\n\n thermodynamics\n {\n Cp 1005;\n hf 0;\n }\n\n transport\n {\n mu 1.82e-05;\n Pr 0.71;\n }\n}\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver fluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 500;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat ascii;\n\nwritePrecision 10;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// ************************************************************************* //\n", "system/forceCoeffsCompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration |\n \\\\ / A nd | Web: www.OpenFOAM.org\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is compressible (pressure is\n in units M/(LT^2), e.g. Pa).\n\n\\*---------------------------------------------------------------------------*/\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (aerofoil);\n\nmagUInf $speed;\nlRef 1;\nAref 1; // span\nrhoInf 1.2;\n\nCofR (0.2 0 0);\npitchAxis (0 1 0);\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffs.cfg\"\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc MachNo\n#includeFunc residuals\n#includeFunc forceCoeffsCompressible\n\n// ************************************************************************* //\n", "system/fvConstraints": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvConstraints;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeConstraint limitPressure(minFactor=0.1, maxFactor=2)\n#includeConstraint limitTemperature(min=101, max=1000)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n grad(epsilon) $limited;\n grad(nuTilda) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n div(phi,U) bounded Gauss linearUpwind limited;\n\n energy bounded Gauss linearUpwind limited;\n div(phi,h) $energy;\n div(phi,K) $energy;\n\n turbulence bounded Gauss upwind;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother DIC;\n\n tolerance 1e-8;\n relTol 0.01;\n }\n\n \"(U|k|omega|epsilon|nuTilda|h)\"\n {\n solver PBiCGStab;\n preconditioner DILU;\n tolerance 1e-10;\n relTol 0.1;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-6;\n U 1e-5;\n \"(k|omega|epsilon|nuTilda|h)\" 1e-5;\n }\n\n nNonOrthogonalCorrectors 0;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n rho 0.01;\n }\n\n equations\n {\n U 0.7;\n h 0.7;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/residuals": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n For specified fields, writes out the initial residuals for the first\n solution of each time step; for non-scalar fields (e.g. vectors), writes\n the largest of the residuals for each component (e.g. x, y, z).\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/numerical/residuals.cfg\"\n\nfields (p U e k omega);\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndomain\n{\n xMax 100;\n zMax 50;\n\n xMin #neg $xMax;\n zMin #neg $zMax;\n\n // Number of cells\n zCells 60; // aerofoil to far field\n xUCells 60; // upstream\n xMCells 25; // middle\n xDCells 50; // downstream\n\n // Mesh grading\n zGrading 300; // aerofoil to far field\n xUGrading 10; // towards centre upstream\n leadGrading 0.005; // towards leading edge\n xDGrading 400; // downstream\n}\n\naerofoil\n{\n xLead 0;\n zLead 0;\n xTrail 1;\n zTrail 0;\n xUpper 0.3;\n zUpper 0.06;\n\n xLower $xUpper;\n zLower #neg $zUpper;\n}\n\ngeometry\n{\n aerofoil\n {\n type triSurface;\n file \"NACA0012.obj\";\n }\n cylinder\n {\n type cylinder;\n point1 ($!aerofoil/xUpper -1e3 0);\n point2 ($!aerofoil/xUpper 1e3 0);\n radius $!domain/zMax;\n }\n}\n\nvertices\n(\n project ($aerofoil/xLower -0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail -0.1 $domain/zMin)\n ($domain/xMax -0.1 $domain/zMin)\n\n project ($domain/xMin -0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead -0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail -0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax -0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower -0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper -0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper -0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail -0.1 $domain/zMax) (aerofoil)\n ($domain/xMax -0.1 $domain/zMax)\n\n project ($aerofoil/xLower 0.1 $domain/zMin) (cylinder)\n ($aerofoil/xTrail 0.1 $domain/zMin)\n ($domain/xMax 0.1 $domain/zMin)\n\n project ($domain/xMin 0.1 $aerofoil/zLead) (cylinder)\n project ($aerofoil/xLead 0.1 $aerofoil/zLead) (aerofoil)\n project ($aerofoil/xTrail 0.1 $aerofoil/zTrail) (aerofoil)\n ($domain/xMax 0.1 $aerofoil/zTrail)\n\n project ($aerofoil/xLower 0.1 $aerofoil/zLower) (aerofoil)\n project ($aerofoil/xUpper 0.1 $aerofoil/zUpper) (aerofoil)\n\n project ($aerofoil/xUpper 0.1 $domain/zMax) (aerofoil)\n project ($aerofoil/xTrail 0.1 $domain/zMax) (aerofoil)\n ($domain/xMax 0.1 $domain/zMax)\n);\n\nblocks\n(\n hex ( 7 4 16 19 0 3 15 12)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 5 7 19 17 1 0 12 13)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 17 18 6 5 13 14 2 1)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n\n hex ( 20 16 4 8 21 15 3 9)\n ($!domain/xUCells 1 $!domain/zCells)\n edgeGrading\n (\n $!domain/leadGrading $!domain/leadGrading $!domain/xUGrading $!domain/xUGrading\n 1 1 1 1\n $!domain/zGrading $!domain/zGrading $!domain/zGrading $!domain/zGrading\n )\n\n hex ( 17 20 8 5 22 21 9 10)\n ($!domain/xMCells 1 $!domain/zCells)\n simpleGrading (1 1 $!domain/zGrading)\n\n hex ( 5 6 18 17 10 11 23 22)\n ($!domain/xDCells 1 $!domain/zCells)\n simpleGrading ($!domain/xDGrading 1 $!domain/zGrading)\n);\n\nedges\n(\n\n project 4 7 (aerofoil)\n project 7 5 (aerofoil)\n project 4 8 (aerofoil)\n project 8 5 (aerofoil)\n\n project 16 19 (aerofoil)\n project 19 17 (aerofoil)\n project 16 20 (aerofoil)\n project 20 17 (aerofoil)\n\n project 3 0 (cylinder)\n project 3 9 (cylinder)\n project 15 12 (cylinder)\n project 15 21 (cylinder)\n);\n\nboundary\n(\n aerofoil\n {\n type wall;\n faces\n (\n (4 7 19 16)\n (7 5 17 19)\n (5 8 20 17)\n (8 4 16 20)\n );\n }\n\n inlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (3 0 12 15)\n (0 1 13 12)\n (1 2 14 13)\n (11 10 22 23)\n (10 9 21 22)\n (9 3 15 21)\n );\n }\n\n outlet\n {\n type patch;\n inGroups (freestream);\n faces\n (\n (2 6 18 14)\n (6 11 23 18)\n );\n }\n\n back\n {\n type empty;\n faces\n (\n (3 4 7 0)\n (7 5 1 0)\n (5 6 2 1)\n (3 9 8 4)\n (9 10 5 8)\n (10 11 6 5)\n );\n }\n\n front\n {\n type empty;\n faces\n (\n (15 16 19 12)\n (19 17 13 12)\n (17 18 14 13)\n (15 16 20 21)\n (20 17 22 21)\n (17 18 23 22)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/extrudeMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object extrudeMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconstructFrom patch;\nsourceCase \"$FOAM_CASE\";\n\nsourcePatches (back);\nexposedPatchName front;\n\nextrudeModel plane;\nthickness 1;\n\nflipNormals false;\nmergeFaces false;\n\n// ************************************************************************* //\n", "0/nuTilda": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nuTilda;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnuTildaInlet 1e-4;\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform $nuTildaInlet;\n\nboundaryField\n{\n freestream\n {\n type freestream;\n freestreamValue uniform $nuTildaInlet;\n }\n\n wall\n {\n type fixedValue;\n value uniform 0;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n" }, "drivaerFastback/1": { "usr_requirement": "Perform an incompressible external-aerodynamics simulation of the DrivAer fastback model using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application. DrivAer fastback baseline at 100 km/h with static ground, rotatingWallVelocity wheels, and kOmegaSST. Set Uinlet to 27.7778 m/s. Use lightweight snappy mesh level 2. Run from t=0 to t=100; deltaT=1; write results every 50 using writeControl=timeStep. Enable forceCoeffs for aerodynamic coefficients. Keep geometry referenced by DrivAer body/frontWheels/rearWheels triSurface names without embedding solver results. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 27.7778;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 40;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 100;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// adjustTimeStep yes;\n\n// maxCo 1;\n\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ] }, "drivaerFastback/2": { "usr_requirement": "Run the supplied DrivAer fastback surrogate with foamRun -solver incompressibleFluid at the baseline 27.7778 m/s, but use a 60-cell streamwise background mesh instead of 40 cells. Keep static ground, rotatingWallVelocity wheels, kOmegaSST, forceCoeffs, and run controls unchanged; this is the medium-resolution variant. For Q2 evidence, continue the validated decomposed run to t=200 and merge restart-segment forceCoeffs history. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh -meshQuality -skewThreshold 11\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 27.7778;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 60;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\n\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 200;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver smoothSolver;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n\n// The connected 60-cell mesh contains three faces at skewness 10.64.\nmaxInternalSkewness 11;\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (1 1);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (1 1);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 2));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ] }, "drivaerFastback/3": { "usr_requirement": "Run the supplied DrivAer fastback surrogate with foamRun -solver incompressibleFluid using the baseline Uinlet=27.7778 m/s and an 80-cell streamwise background mesh. Keep static ground, rotatingWallVelocity wheels, kOmegaSST, forceCoeffs, and run controls unchanged. This is the fine-mesh third level after the 40-cell baseline and 60-cell variant. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh -meshQuality -skewThreshold 4.5\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 27.7778;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 80;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 100;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// adjustTimeStep yes;\n\n// maxCo 1;\n\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n\n// The 80-cell background mesh produces two benign 4.20-skew faces.\nmaxInternalSkewness 4.5;\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ] }, "drivaerFastback/4": { "usr_requirement": "Perform an incompressible external-aerodynamics simulation of the DrivAer fastback model using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application. Change only the vehicle speed to 120 km/h relative to the Fastback baseline. Set Uinlet to 33.3333 m/s and compute wheelSpeed from Uinlet/wheelRadius; keep the fastback geometry, static ground, rotatingWallVelocity wheels, snappy mesh, kOmegaSST turbulence, run controls, and forceCoeffs post-processing consistent with the baseline. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 33.3333;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 40;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 100;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// adjustTimeStep yes;\n\n// maxCo 1;\n\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ] }, "drivaerFastback/5": { "usr_requirement": "Perform an incompressible external-aerodynamics simulation of the DrivAer fastback model using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application. Change only the vehicle speed to 80 km/h relative to the Fastback baseline. Set Uinlet to 22.2222 m/s and compute wheelSpeed from Uinlet/wheelRadius; keep the fastback geometry, static ground, rotatingWallVelocity wheels, snappy mesh, kOmegaSST turbulence, run controls, and forceCoeffs post-processing consistent with the baseline. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 22.2222;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 40;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 100;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// adjustTimeStep yes;\n\n// maxCo 1;\n\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ] }, "drivaerFastback/6": { "usr_requirement": "Perform an incompressible external-aerodynamics simulation of the DrivAer fastback model using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application. Change only the wheel-rotation method to an MRF-style treatment for the front and rear wheels, while keeping the fastback geometry, 100 km/h inflow, static ground, mesh setup, kOmegaSST turbulence, run controls, and forceCoeffs post-processing consistent with the baseline. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel topoSet\n\nrunParallel checkMesh\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 27.7778;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type noSlip;\n }\n\n rearWheels\n {\n type noSlip;\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 40;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 100;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// adjustTimeStep yes;\n\n// maxCo 1;\n\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ], "constant/MRFProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object MRFProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfrontWheelMRF\n{\n cellZone frontWheelZone;\n origin (0 0 0.318);\n axis (0 -1 0);\n omega 87.3516;\n}\n\nrearWheelMRF\n{\n cellZone rearWheelZone;\n origin (2.786 0 0.318);\n axis (0 -1 0);\n omega 87.3516;\n}\n\n// ************************************************************************* //\n", "system/topoSetDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object topoSetDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nactions\n(\n {\n name frontWheelCells;\n type cellSet;\n action new;\n source boxToCell;\n box (-0.5 -1.2 0.0) (0.8 1.2 0.8);\n }\n {\n name frontWheelZone;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set frontWheelCells;\n }\n {\n name rearWheelCells;\n type cellSet;\n action new;\n source boxToCell;\n box (2.2 -1.2 0.0) (3.4 1.2 0.8);\n }\n {\n name rearWheelZone;\n type cellZoneSet;\n action new;\n source setToCellZone;\n set rearWheelCells;\n }\n);\n\n// ************************************************************************* //\n" }, "drivaerFastback/7": { "usr_requirement": "Perform an incompressible external-aerodynamics simulation of the DrivAer fastback model using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application. Change only the ground boundary condition to a moving ground with velocity Uinlet, while keeping the fastback geometry, 100 km/h inflow, rotatingWallVelocity wheels, mesh setup, kOmegaSST turbulence, run controls, and forceCoeffs post-processing consistent with the baseline. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 27.7778;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 40;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 100;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// adjustTimeStep yes;\n\n// maxCo 1;\n\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ] }, "drivaerFastback/8": { "usr_requirement": "Perform an incompressible external-aerodynamics simulation of the DrivAer fastback model using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application. Use the standard kEpsilon turbulence model, while keeping the fastback geometry, 100 km/h inflow, wheel treatment, mesh setup, run controls, and forceCoeffs post-processing consistent with the baseline. For Q2 evidence, continue the validated decomposed run to t=200 and merge restart-segment forceCoeffs history. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 27.7778;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/epsilon": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object epsilon;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nepsilonInlet 0.02;\n\ndimensions [0 2 -3 0 0 0 0];\n\ninternalField uniform $epsilonInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $epsilonInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $epsilonInlet;\n value uniform $epsilonInlet;\n }\n\n wall\n {\n type epsilonWallFunction;\n value uniform $epsilonInlet;\n }\n\n processor\n {\n type processor;\n value uniform $epsilonInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutkWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kEpsilon;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 40;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\n\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 200;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ] }, "drivaerFastback/9": { "usr_requirement": "Perform an incompressible external-aerodynamics simulation of the DrivAer fastback model using OpenFOAM-13 with foamRun -solver incompressibleFluid, corresponding to the legacy simpleFoam application. Use the standard RAS kOmega turbulence model instead of the baseline kOmegaSST model, while keeping the fastback geometry, 100 km/h inflow, wheel treatment, mesh setup, run controls, and forceCoeffs post-processing consistent with the baseline. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 27.7778;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType RAS;\n\nRAS\n{\n model kOmega;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 40;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 100;\n\ndeltaT 1;\n\nwriteControl timeStep;\n\nwriteInterval 50;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// adjustTimeStep yes;\n\n// maxCo 1;\n\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default steadyState;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nSIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ] }, "drivaerFastback/10": { "usr_requirement": "Perform a transient 3D DrivAer fastback DDES benchmark using foamRun -solver incompressibleFluid with LES SpalartAllmarasDDES, Euler time discretisation, PIMPLE coupling, Uinlet=27.7778 m/s, rotating wheels, static ground, and the supplied geometry. Use endTime=10, deltaT=0.01, writeControl=timeStep, and writeInterval=10; analyse the final transient window rather than treating this as a steady simpleFoam run. Use the supplied body and wheel assets (drivaerFastback/body, drivaerFastback/frontWheels, drivaerFastback/rearWheels) without altering their scale. Model air with kinematic viscosity 1.5e-5 m2/s. Use wheel radius 0.318 m and wheelbase 2.786 m; for rotating wheels set angular speed consistently from vehicle speed divided by wheel radius.", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\n\nusage () {\n exec 1>&2\n while [ \"$#\" -ge 1 ]; do echo \"$1\"; shift; done\n cat < number of cores in parallel run\n -h | -help help\n -m | -mesh mesh size\n - S: small, 440k cells\n - M: medium, 3M cells (default)\n - L: large, 22.5M cells\n - XL: extra large, ~200M cells\n\nRuns the ${PWD##*/} simulation\n\nUSAGE\n exit 1\n}\n\ncheckCores () {\n _cores=\"$1\"\n\n ! [ \"$_cores\" -eq \"$_cores\" ] 2> /dev/null && \\\n echo \"Number of cores '$_cores' must be an integer\" && \\\n return 1\n\n [ \"$_cores\" -lt 2 ] && \\\n echo \"Number of cores '$_cores' must be >= 2\" && \\\n return 1\n\n return 0\n}\n\nrefineBackgroundMesh () {\n _nRefine=\"$1\"\n _r=0\n while [ $_r -lt \"$_nRefine\" ]\n do\n echo \"Refining the background mesh\"\n runParallel -a refineMesh -all\n _r=$(( _r + 1 ))\n done\n}\n\nsetKeyword () {\n _entry=\"$1\"\n _value=\"$2\"\n _file=\"$3\"\n\n foamDictionary -entry \"$_entry\" -set \"$_value\" \"$_file\" > /dev/null\n}\n\nnRefine=1\nnCores=8\n\nwhile [ \"$#\" -gt 0 ]\ndo\n case \"$1\" in\n -c | -cores)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n nCores=$2\n shift 2\n checkCores \"$nCores\" || usage\n setKeyword numberOfSubdomains \"$nCores\" system/decomposeParDict\n ;;\n -h | -help)\n usage\n ;;\n -m | -mesh)\n [ \"$#\" -ge 2 ] || usage \"'$1' option requires an argument\"\n mesh=$2\n shift 2\n case \"$mesh\" in\n S) nRefine=0 ;;\n M) ;;\n L) nRefine=2 ; setKeyword endTime 2000 system/controlDict ;;\n XL) nRefine=3 ; setKeyword endTime 2000 system/controlDict ;;\n *) usage \"Invalid argument '$mesh' to -m|-mesh .\" ;;\n esac\n ;;\n -test)\n shift\n ;;\n -*)\n usage \"Invalid option '$1'\"\n ;;\n *)\n break\n ;;\n esac\ndone\n\n# START OF MAIN SCRIPT\n\nrunApplication blockMesh\n\nrunApplication decomposePar -copyZero\n\nrefineBackgroundMesh $nRefine\n\nrunParallel snappyHexMesh\n\nrunParallel checkMesh\n\nrunParallel foamRun -solver incompressibleFluid\n\n# runApplication reconstructPar -latestTime\n\n#------------------------------------------------------------------------------\n", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nUinlet 27.7778;\n\nwheelRadius 0.318;\nwheelBase 2.786;\nwheelSpeed #calc \"$Uinlet / $wheelRadius\";\n\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform ($Uinlet 0 0);\n }\n\n ground\n {\n type noSlip;\n }\n\n freestream\n {\n type freestreamVelocity;\n freestreamValue uniform ($Uinlet 0 0);\n }\n\n wall\n {\n type noSlip;\n }\n\n frontWheels\n {\n type rotatingWallVelocity;\n origin (0 0 $wheelRadius);\n axis (0 -1 0);\n omega $wheelSpeed;\n }\n\n rearWheels\n {\n $frontWheels;\n origin ($wheelBase 0 $wheelRadius);\n }\n\n processor\n {\n type processor;\n value uniform (0 0 0);\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type zeroGradient;\n }\n\n freestream\n {\n type freestreamPressure;\n freestreamValue uniform 0;\n value uniform 0;\n }\n\n wall\n {\n type zeroGradient;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "0/k": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object k;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nkInlet 0.002;\n\ndimensions [0 2 -2 0 0 0 0];\n\ninternalField uniform $kInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $kInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $kInlet;\n value uniform $kInlet;\n }\n\n wall\n {\n type kqRWallFunction;\n value uniform $kInlet;\n }\n\n processor\n {\n type processor;\n value uniform $kInlet;\n }\n}\n\n// ************************************************************************* //\n", "0/omega": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object omega;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nomegaInlet 1.0;\n\ndimensions [0 0 -1 0 0 0 0];\n\ninternalField uniform $omegaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $omegaInlet;\n }\n\n freestream\n {\n type inletOutlet;\n inletValue uniform $omegaInlet;\n value uniform $omegaInlet;\n }\n\n wall\n {\n type omegaWallFunction;\n value uniform $omegaInlet;\n }\n\n processor\n {\n type processor;\n value uniform $omegaInlet;\n }\n\n #includeEtc \"caseDicts/setConstraintTypes\"\n}\n\n// ************************************************************************* //\n", "0/nut": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nut;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n inlet\n {\n type calculated;\n value uniform 0;\n }\n\n freestream\n {\n type calculated;\n value uniform 0;\n }\n\n wall\n {\n type nutUSpaldingWallFunction;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform 0;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType LES;\n\nRAS\n{\n model kOmegaSST;\n\n turbulence on;\n}\n\nLES\n{\n model SpalartAllmarasDDES;\n delta cubeRootVol;\n\n turbulence on;\n\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n\n smoothCoeffs\n {\n delta cubeRootVol;\n cubeRootVolCoeffs\n {\n deltaCoeff 1;\n }\n maxDeltaRatio 1.1;\n }\n}\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nviscosityModel constant;\n\nnu [0 2 -1 0 0 0 0] 1.5e-05;\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nxMin -10;\nxMax 30;\nyMin -5;\nyMax 5;\nzMin 0;\nzMax 8;\nxCells 40;\nyCells 10;\nzCells 8;\n\nconvertToMeters 1;\n\nvertices\n(\n ($xMin $yMin $zMin)\n ($xMax $yMin $zMin)\n ($xMax $yMax $zMin)\n ($xMin $yMax $zMin)\n\n ($xMin $yMin $zMax)\n ($xMax $yMin $zMax)\n ($xMax $yMax $zMax)\n ($xMin $yMax $zMax)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) ($xCells $yCells $zCells) simpleGrading (1 1 1)\n);\n\nboundary\n(\n inlet\n {\n type patch;\n faces\n (\n (0 3 7 4)\n );\n }\n\n freestream\n {\n type patch;\n faces\n (\n (1 5 6 2)\n (4 7 6 5)\n (3 2 6 7)\n (0 4 5 1)\n );\n }\n\n ground\n {\n type wall;\n faces\n (\n (0 1 2 3)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\napplication foamRun;\nsolver incompressibleFluid;\n\nstartFrom latestTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 10;\n\ndeltaT 0.01;\n\nwriteControl timeStep;\n\nwriteInterval 10;\n\npurgeWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 8;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\n// adjustTimeStep yes;\n\n// maxCo 1;\n\n\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 8;\n\nmethod scotch;\n//method hierarchical;\n\nhierarchicalCoeffs\n{\n n (4 2 1);\n order xyz;\n}\n\n// ************************************************************************* //\n", "system/forceCoeffsIncompressible": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n-------------------------------------------------------------------------------\nDescription\n Calculates lift, drag and moment coefficients by summing forces on\n specified patches for a case where the solver is incompressible; i.e.,\n pressure is kinematic and has units of m^2/s^2.\n\n\\*---------------------------------------------------------------------------*/\n\n#includeEtc \"caseDicts/functions/forces/forceCoeffsIncompressible.cfg\"\n\n#include \"$FOAM_CASE/0/U\"\n\npatches (\".*(body|Wheels)\"); // Patches on which to calculate forces\n\nmagUInf $Uinlet; // Far field velocity magnitude; e.g., 20 m/s\nlRef $wheelBase; // Reference length scale for moment calculations;\n // e.g., 1 m\nAref 2.154; // Reference area; e.g., 1 m^2\n\nCofR (1.391 0 0); // Centre of rotation; e.g., (0 0 0)\n\nliftDir (0 0 1); // Direction of lift force; e.g., (0 0 1)\ndragDir (1 0 0); // Direction of drag force; e.g., (1 0 0)\npitchAxis (0 1 0); // Pitch axis; e.g., (0 1 0)\n\n// ************************************************************************* //\n", "system/functions": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object functions;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeFunc forceCoeffsIncompressible\n\n#includeFunc time\n\n#includeFunc streamlinesSphere\n(\n name=streamlines,\n centre=(4 0 0.7),\n radius=1,\n nPoints=30,\n fields=(U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=xNormal,\n point=(4 0 1),\n normal=(1 0 0),\n fields=(p U)\n)\n\n#includeFunc cutPlaneSurface\n(\n name=yNormal,\n point=(-5 0.02 1),\n normal=(0 1 0),\n fields=(p U)\n)\n\n#includeFunc patchSurface(name=car, patch=\".*(body|Wheels)\", p)\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nddtSchemes\n{\n // For transient, replace steadyState, e.g. with Euler\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n\n limited cellLimited Gauss linear 1;\n grad(U) $limited;\n grad(k) $limited;\n grad(omega) $limited;\n}\n\ndivSchemes\n{\n default none;\n\n // For transient, remove \"bounded\"\n div(phi,U) bounded Gauss linearUpwind limited;\n\n // For transient, remove \"bounded\"\n turbulence bounded Gauss limitedLinear 1;\n div(phi,k) $turbulence;\n div(phi,omega) $turbulence;\n div(phi,epsilon) $turbulence;\n div(phi,nuTilda) $turbulence;\n\n div((nuEff*dev2(T(grad(U))))) Gauss linear;\n}\n\nlaplacianSchemes\n{\n default Gauss linear corrected;\n}\n\ninterpolationSchemes\n{\n default linear;\n}\n\nsnGradSchemes\n{\n default corrected;\n}\n\nwallDist\n{\n method meshWave;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n p\n {\n solver GAMG;\n smoother GaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n pFinal\n {\n $p;\n relTol 0;\n }\n\n Phi\n {\n $p;\n }\n\n \"(U|k|omega|epsilon|nuTilda)\"\n {\n solver smoothSolver;\n smoother symGaussSeidel;\n tolerance 1e-6;\n relTol 0.1;\n }\n\n \"(U|k|omega|epsilon|nuTilda)Final\"\n {\n $U;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n residualControl\n {\n p 1e-4;\n U 1e-4;\n \"(k|omega|epsilon|nuTilda)\" 1e-4;\n }\n nNonOrthogonalCorrectors 0;\n pRefCell 0;\n pRefValue 0;\n\n}\n\npotentialFlow\n{\n nNonOrthogonalCorrectors 10;\n}\n\nrelaxationFactors\n{\n fields\n {\n p 0.3;\n }\n equations\n {\n U 0.7;\n \"(k|omega|epsilon|nuTilda)\" 0.7;\n }\n}\n\n// ************************************************************************* //\n", "system/meshQualityDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object meshQualityDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/meshQualityDict.cfg\"\n\n//- minFaceWeight (0 -> 0.5)\n//minFaceWeight 0.02;\n\n// ************************************************************************* //\n", "system/snappyHexMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object snappyHexMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\n#includeEtc \"caseDicts/mesh/generation/snappyHexMeshDict.cfg\"\n\ncastellatedMesh on;\nsnap on;\naddLayers off;\n\ngeometry\n{\n body\n {\n type triSurface;\n file \"body.obj\";\n }\n\n frontWheels\n {\n type triSurface;\n file \"frontWheels.obj\";\n }\n\n rearWheels\n {\n type triSurface;\n file \"rearWheels.obj\";\n }\n\n upstream\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.8);\n }\n\n underbody\n {\n type box;\n min (-10 -1.5 0);\n max ( 3 1.5 0.15);\n }\n\n wake\n {\n type box;\n min ( 3 -1.2 0);\n max ( 6 1.2 1.4);\n }\n\n downstream\n {\n type box;\n min ( 3 -1.5 0);\n max (30 1.5 1.8);\n }\n};\n\ncastellatedMeshControls\n{\n features ();\n\n refinementSurfaces\n {\n body\n {\n level (2 2);\n patchInfo { type wall; }\n }\n\n \".*Wheels\" // level 5 needed to avoid single cells in treads\n {\n level (2 2);\n patchInfo { type wall; }\n }\n }\n\n refinementRegions\n {\n body\n {\n mode distance;\n levels ((0.2 3));\n }\n\n \"(wake|underbody)\"\n {\n mode inside;\n level 2;\n }\n\n \".*stream\"\n {\n mode inside;\n level 1;\n }\n }\n\n insidePoint (0 0 3);\n nCellsBetweenLevels 5;\n}\n\nsnapControls\n{\n nSmoothPatch 5;\n tolerance 1.5;\n nSolveIter 20;\n nRelaxIter 8;\n nFeatureSnapIter 0;\n implicitFeatureSnap false;\n explicitFeatureSnap false;\n multiRegionFeatureSnap false;\n}\n\naddLayersControls\n{\n layers\n {\n body\n {\n nSurfaceLayers 2;\n }\n }\n\n relativeSizes on;\n expansionRatio 1.2;\n finalLayerThickness 0.5;\n minThickness 1e-3;\n maxThicknessToMedialRatio 0.6;\n}\n\nwriteFlags ();\n\nmergeTolerance 1e-6;\n\n// ************************************************************************* //\n", "_external_assets": [ { "asset_id": "drivaerFastback/body", "target": "constant/geometry/body.obj.gz" }, { "asset_id": "drivaerFastback/frontWheels", "target": "constant/geometry/frontWheels.obj.gz" }, { "asset_id": "drivaerFastback/rearWheels", "target": "constant/geometry/rearWheels.obj.gz" } ], "0/nuTilda": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object nuTilda;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnuTildaInlet 1e-5;\n\ndimensions [0 2 -1 0 0 0 0];\n\ninternalField uniform $nuTildaInlet;\n\nboundaryField\n{\n inlet\n {\n type fixedValue;\n value uniform $nuTildaInlet;\n }\n\n freestream\n {\n type freestream;\n freestreamValue uniform $nuTildaInlet;\n value uniform $nuTildaInlet;\n }\n\n wall\n {\n type fixedValue;\n value uniform 0;\n }\n\n processor\n {\n type processor;\n value uniform $nuTildaInlet;\n }\n}\n\n// ************************************************************************* //\n" }, "riemann2D/1": { "usr_requirement": "Configure and run the CFD-China four-quadrant two-dimensional Riemann problem in OpenFOAM-13 using foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Use the square domain [-5,5] x [-5,5] on a uniform 800 x 800 mesh with one cell through the empty direction. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Use the Kurganov central-upwind flux, vanAlbada reconstruction for rho and T, and vanAlbadaV reconstruction for U. Use zero-gradient conditions on the four outer sides and empty front/back patches. Advance to t=1.5 with adaptive time stepping and maxCo=0.2, writing results every 0.15 time units. Provide time-resolved density and pressure contours together with final rho and p profiles along the horizontal and vertical centre-lines.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n\n\n// ************************************************************************* //\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (800 800 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 2e-4;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 4;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\n\ninterpolationScheme cellPoint;\n\nsetFormat raw;\n\nsets\n{\n horizontal\n {\n type lineFace;\n axis x;\n start (-4.995 0 0);\n end (4.995 0 0);\n nPoints 400;\n }\n\n vertical\n {\n type lineFace;\n axis y;\n start (0 -4.995 0);\n end (0 4.995 0);\n nPoints 400;\n }\n}\n\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\\\ / O peration | Website: https://openfoam.org\n \\\\ / A nd | Version: 13\n \\\\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box;\n zoneType cell;\n zoneType cell;\n box (-100 -100 -2) (0 0 2);\n\n values\n {\n U (1.206 1.206 0);\n p 0.029;\n T 0.294220591773;\n }\n }\n\n southEast\n {\n type box;\n zoneType cell;\n zoneType cell;\n box (0 -100 -2) (100 0 2);\n\n values\n {\n U (0 1.206 0);\n p 0.3;\n T 0.789076195003;\n }\n }\n\n northWest\n {\n type box;\n zoneType cell;\n zoneType cell;\n box (-100 0 -2) (0 100 2);\n\n values\n {\n U (1.206 0 0);\n p 0.3;\n T 0.789076195003;\n }\n }\n\n northEast\n {\n type box;\n zoneType cell;\n zoneType cell;\n box (0 0 -2) (100 100 2);\n\n values\n {\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n }\n }\n}\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd ${0%/*} || exit 1 # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools/RunFunctions\n\nrunApplication blockMesh\nrunApplication setFields\nrunApplication decomposePar\nrunParallel foamRun -solver shockFluid\nrunApplication reconstructPar -latestTime\nrunApplication -s sample foamPostProcess -latestTime -func sample\n\n#------------------------------------------------------------------------------\n" }, "riemann2D/2": { "usr_requirement": "Perform a spatial-convergence study of the CFD-China four-quadrant two-dimensional Riemann problem using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Use the square domain [-5,5] x [-5,5] with one cell through the empty direction. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Use the Kurganov central-upwind flux, vanAlbada reconstruction for rho and T, and vanAlbadaV reconstruction for U. Use zero-gradient conditions on the four outer sides and empty front/back patches. Advance to t=1.5 with adaptive time stepping and maxCo=0.2, writing results every 0.15 time units. Run otherwise identical uniform 200 x 200, 400 x 400 and 800 x 800 meshes, with outputs at the same physical times. Compare the density and pressure fields and centre-line profiles across the three resolutions, and discuss the observed convergence behaviour in smooth regions and across shocks and contact discontinuities.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (200 200 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-4.995 0 0); end (4.995 0 0); nPoints 200;\n }\n vertical\n {\n type lineFace; axis y; start (0 -4.995 0); end (0 4.995 0); nPoints 200;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.029; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 1.5; T 1.40008419533; }\n }\n}\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'positivity-and-conservation', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy spatial_convergence;\nmeshSizes (200 400 800);\ndomain (-5 -5) (5 5);\ncommonSamplingMesh 200;\noutputTimes (0.15 0.3 0.45 0.6 0.75 0.9 1.05 1.2 1.35 1.5);\nmetrics (rho_L1 rho_L2 p_L1 p_L2 shockThicknessCells shockThicknessDistance massDrift energyDrift);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\n\nrun_branch() {\n name=\"$1\"; shift\n mkdir -p \"$name\"\n cp -r 0 constant system \"$name\"/\n}\nrun_branch grid_200\n(cd grid_200 && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch grid_400\n(cd grid_400 && sed -i \"s/(200 200 1)/(400 400 1)/\" system/blockMeshDict && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch grid_800\n(cd grid_800 && sed -i \"s/(200 200 1)/(800 800 1)/\" system/blockMeshDict && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\npython3 system/compare_grids.py grid_200 grid_400 grid_800\n", "system/compare_grids.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'grid-convergence', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n" }, "riemann2D/3": { "usr_requirement": "Assess Courant-number sensitivity for the CFD-China four-quadrant two-dimensional Riemann problem using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Use a fixed uniform 600 x 600 mesh on [-5,5] x [-5,5] with one cell through the empty direction. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Use the Kurganov flux with vanAlbada reconstruction for rho and T and vanAlbadaV for U, with zero-gradient outer boundaries. Run otherwise identical adaptive-time-step branches with maxCo=0.1 and maxCo=0.2 to t=1.5, writing both at the same physical times every 0.15. Compare their density and pressure fields, centre-line profiles, wave positions and computational effort.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (600 600 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.1;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-4.995 0 0); end (4.995 0 0); nPoints 400;\n }\n vertical\n {\n type lineFace; axis y; start (0 -4.995 0); end (0 4.995 0); nPoints 400;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.029; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 1.5; T 1.40008419533; }\n }\n}\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'positivity-and-conservation', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy courant_sensitivity;\nmesh (600 600 1);\nmaxCoBranches (0.1 0.2);\noutputTimes (0.15 0.3 0.45 0.6 0.75 0.9 1.05 1.2 1.35 1.5);\nreferenceBranch maxCo_0p1;\nmetrics (stepCount wallClock minRhoHistory minPHistory centerlineL1);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\n\nrun_branch() {\n name=\"$1\"; shift\n mkdir -p \"$name\"\n cp -r 0 constant system \"$name\"/\n}\nrun_branch maxCo_0p1\n(cd maxCo_0p1 && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch maxCo_0p2\n(cd maxCo_0p2 && sed -i \"s/maxCo 0.1/maxCo 0.2/\" system/controlDict && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\npython3 system/compare_courant.py maxCo_0p1 maxCo_0p2\n", "system/compare_courant.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef full_field_minima(root):\n path = root / \"postProcessing\" / \"extrema\" / \"0\" / \"volFieldValue.dat\"\n rows = []\n if path.is_file():\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n if len(values) >= 4: rows.append(values[:4])\n return rows[-1][1:] if rows else []\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n extrema = full_field_minima(root)\n sample_positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n full_field_positive = len(extrema) == 3 and all(math.isfinite(x) and x > 0 for x in extrema)\n positive = sample_positive and full_field_positive\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"samplePositive\": sample_positive,\n \"fullFieldPositive\": full_field_positive,\n \"minRho\": extrema[0] if len(extrema) == 3 else (min(rho) if rho else None),\n \"minP\": extrema[1] if len(extrema) == 3 else (min(p) if p else None),\n \"minT\": extrema[2] if len(extrema) == 3 else (min(temp) if temp else None),\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'courant-sensitivity', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n" }, "riemann2D/4": { "usr_requirement": "Compare the Kurganov and Tadmor central fluxes for the CFD-China four-quadrant two-dimensional Riemann problem using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Use a uniform 600 x 600 mesh on [-5,5] x [-5,5] with one cell through the empty direction. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Use vanAlbada reconstruction for rho and T and vanAlbadaV for U, zero-gradient outer boundaries, adaptive stepping with maxCo=0.2, and run to t=1.5 with outputs every 0.15. Change only the flux formulation between the two branches, and compare their density and pressure fields, centre-line profiles, discontinuity resolution, numerical oscillations, robustness and computational cost.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (600 600 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-4.995 0 0); end (4.995 0 0); nPoints 400;\n }\n vertical\n {\n type lineFace; axis y; start (0 -4.995 0); end (0 4.995 0); nPoints 400;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.029; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 1.5; T 1.40008419533; }\n }\n}\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'positivity-and-conservation', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy flux_sensitivity;\nfluxBranches (Kurganov Tadmor);\nmesh (600 600 1);\nmaxCo 0.2;\nmetrics (rhoContour pContour centerline extrema positivity shockThickness massDrift energyDrift runtime rho_L1);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\n\nrun_branch() {\n name=\"$1\"; shift\n mkdir -p \"$name\"\n cp -r 0 constant system \"$name\"/\n}\nrun_branch flux_Kurganov\n(cd flux_Kurganov && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch flux_Tadmor\n(cd flux_Tadmor && sed -i \"s/fluxScheme Kurganov/fluxScheme Tadmor/\" system/fvSchemes && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\npython3 system/compare_flux.py flux_Kurganov flux_Tadmor\n", "system/compare_flux.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'flux-sensitivity', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n" }, "riemann2D/5": { "usr_requirement": "Assess reconstruction-limiter sensitivity for the CFD-China four-quadrant two-dimensional Riemann problem using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Use a uniform 600 x 600 mesh on [-5,5] x [-5,5] with one cell through the empty direction. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Retain the Kurganov flux, zero-gradient outer boundaries, adaptive stepping with maxCo=0.2 and an end time of 1.5 with outputs every 0.15. Compare a vanAlbada/vanAlbadaV branch against a vanLeer/vanLeerV branch, changing only the reconstruction limiter. Compare density and pressure fields and centre-line profiles, with attention to discontinuity sharpness, post-shock oscillations and robustness.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (600 600 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-4.995 0 0); end (4.995 0 0); nPoints 400;\n }\n vertical\n {\n type lineFace; axis y; start (0 -4.995 0); end (0 4.995 0); nPoints 400;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.029; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 1.5; T 1.40008419533; }\n }\n}\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'positivity-and-conservation', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy reconstruction_sensitivity;\nlimiterBranches (vanAlbada vanLeer);\nmesh (600 600 1);\nfluxScheme Kurganov;\nmetrics (centerline waveLocation shockThickness overshoot undershoot minRho minP massDrift energyDrift runtime);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\n\nrun_branch() {\n name=\"$1\"; shift\n mkdir -p \"$name\"\n cp -r 0 constant system \"$name\"/\n}\nrun_branch limiter_vanAlbada\n(cd limiter_vanAlbada && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch limiter_vanLeer\n(cd limiter_vanLeer && sed -i \"s/vanAlbada/vanLeer/g; s/vanAlbadaV/vanLeerV/g\" system/fvSchemes && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\npython3 system/compare_limiters.py limiter_vanAlbada limiter_vanLeer\n", "system/compare_limiters.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'limiter-sensitivity', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n" }, "riemann2D/6": { "usr_requirement": "Evaluate mesh-orientation bias for the CFD-China four-quadrant two-dimensional Riemann problem using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Use a uniform 600 x 600 Cartesian mesh on [-5,5] x [-5,5] with one cell through the empty direction. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Run a baseline branch and a second branch in which the initial discontinuity geometry is rotated by 45 degrees while the mesh remains fixed. Define x'=(x+y)/sqrt(2) and y'=(-x+y)/sqrt(2), assign the same four states according to the signs of x' and y', and rotate their velocity vectors consistently into the physical x-y frame. Use the Kurganov flux, vanAlbada/vanAlbadaV reconstruction, zero-gradient outer boundaries and maxCo=0.2, and run both branches to t=1.5 with outputs every 0.15. Rotate the second result back to the baseline frame and compare the density and pressure fields on the common interior [-3.5,3.5] x [-3.5,3.5].", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (600 600 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-3.495 0 0); end (3.495 0 0); nPoints 420;\n }\n vertical\n {\n type lineFace; axis y; start (0 -3.495 0); end (0 3.495 0); nPoints 420;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultFieldValues\n(\n volVectorFieldValue U (0 0 0)\n volScalarFieldValue p 1.5\n volScalarFieldValue T 1.40008419533\n);\n\nregions\n(\n rotatedBoxToCell\n {\n origin (0 0 -2); i (5 5 0); j (-5 5 0); k (0 0 4);\n fieldValues\n (\n volVectorFieldValue U (0 0 0)\n volScalarFieldValue p 1.5\n volScalarFieldValue T 1.40008419533\n );\n }\n rotatedBoxToCell\n {\n origin (-5 -5 -2); i (5 5 0); j (-5 5 0); k (0 0 4);\n fieldValues\n (\n volVectorFieldValue U (0.852770027 0.852770027 0)\n volScalarFieldValue p 0.3\n volScalarFieldValue T 0.789076195003\n );\n }\n rotatedBoxToCell\n {\n origin (5 -5 -2); i (5 5 0); j (-5 5 0); k (0 0 4);\n fieldValues\n (\n volVectorFieldValue U (-0.852770027 0.852770027 0)\n volScalarFieldValue p 0.3\n volScalarFieldValue T 0.789076195003\n );\n }\n rotatedBoxToCell\n {\n origin (0 -10 -2); i (5 5 0); j (-5 5 0); k (0 0 4);\n fieldValues\n (\n volVectorFieldValue U (0 1.705540054 0)\n volScalarFieldValue p 0.029\n volScalarFieldValue T 0.294220591773\n );\n }\n);\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'positivity-and-conservation', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/setFieldsBaselineDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.029; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 1.5; T 1.40008419533; }\n }\n}\n\n// ************************************************************************* //\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy mesh_orientation;\nrotationAngle 45;\nxPrimeFormula \"(x+y)/sqrt(2)\"; yPrimeFormula \"(-x+y)/sqrt(2)\";\nmesh (600 600 1);\ncompareWith baselineFrame; comparisonInterior \"(-3.5 -3.5) (3.5 3.5)\";\nmetrics (rho_L1 rho_LInf p_L1 p_LInf waveOffset symmetryError minRho minP);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\n\nrun_branch() {\n name=\"$1\"; shift\n mkdir -p \"$name\"\n cp -r 0 constant system \"$name\"/\n}\nrun_branch baseline\n(cd baseline && cp system/setFieldsBaselineDict system/setFieldsDict && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch rotated\n(cd rotated && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\npython3 system/compare_orientation.py baseline rotated\n", "system/compare_orientation.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'orientation-bias', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n" }, "riemann2D/7": { "usr_requirement": "Assess domain-size and outer-boundary sensitivity for the CFD-China four-quadrant two-dimensional Riemann problem using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Use one cell through the empty direction in both domains. Use the Kurganov flux, vanAlbada/vanAlbadaV reconstruction, zero-gradient outer boundaries and maxCo=0.2. Run a small domain [-2.5,2.5] x [-2.5,2.5] on a 300 x 300 mesh and a large domain [-5,5] x [-5,5] on a 600 x 600 mesh, so that both use the same spatial resolution. Advance both to t=1.5 and write at matched times every 0.15. Compare their flow fields on the common interior [-2,2] x [-2,2] and identify when and how the smaller outer boundary begins to affect the solution.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-2.5 -2.5 -1)\n (2.5 -2.5 -1)\n (2.5 2.5 -1)\n (-2.5 2.5 -1)\n (-2.5 -2.5 1)\n (2.5 -2.5 1)\n (2.5 2.5 1)\n (-2.5 2.5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (300 300 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-1.995 0 0); end (1.995 0 0); nPoints 240;\n }\n vertical\n {\n type lineFace; axis y; start (0 -1.995 0); end (0 1.995 0); nPoints 240;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.029; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 1.5; T 1.40008419533; }\n }\n}\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'positivity-and-conservation', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy domain_sensitivity;\nsmallDomain \"(-2.5 -2.5) (2.5 2.5)\"; largeDomain \"(-5 -5) (5 5)\";\nsmallMesh \"(300 300 1)\"; largeMesh \"(600 600 1)\";\ndelta 0.0166666666667; comparisonInterior \"(-2 -2) (2 2)\";\nmetrics (rho_L1 rho_LInf p_L1 p_LInf T_L1 U_L1 boundaryReflection centerlineDeviation massDrift energyDrift);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\n\nrun_branch() {\n name=\"$1\"; shift\n mkdir -p \"$name\"\n cp -r 0 constant system \"$name\"/\n}\nrun_branch domain_5\n(cd domain_5 && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch domain_10\n(cd domain_10 && sed -i \"s/-2.5 -2.5 -1/-5 -5 -1/; s/2.5 -2.5 -1/5 -5 -1/; s/2.5 2.5 -1/5 5 -1/; s/-2.5 2.5 -1/-5 5 -1/; s/-2.5 -2.5 1/-5 -5 1/; s/2.5 -2.5 1/5 -5 1/; s/2.5 2.5 1/5 5 1/; s/-2.5 2.5 1/-5 5 1/; s/(300 300 1)/(600 600 1)/\" system/blockMeshDict && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\npython3 system/compare_domains.py domain_5 domain_10\n", "system/compare_domains.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'domain-sensitivity', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n" }, "riemann2D/8": { "usr_requirement": "Stress-test positivity and nonlinear robustness for a strengthened four-quadrant two-dimensional Riemann interaction using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Use a uniform 600 x 600 mesh on [-5,5] x [-5,5] with one cell through the empty direction. Initialize (rho,p,u,v) as NE=(1.5,3.0,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.069,0.0145,1.206,1.206), and SE=(0.5323,0.3,0,1.206), deriving temperature consistently from the equation of state. Use the Kurganov flux, vanAlbada reconstruction for rho and T, vanAlbadaV for U, zero-gradient outer boundaries and adaptive stepping with maxCo=0.2. Attempt to reach t=1.5 without clipping, flooring or changing the stated physics. If the calculation fails, retain the failing configuration and identify the first failure time and affected field.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (600 600 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl timeStep;\n writeInterval 1;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl timeStep;\n writeInterval 1;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-4.995 0 0); end (4.995 0 0); nPoints 400;\n }\n vertical\n {\n type lineFace; axis y; start (0 -4.995 0); end (0 4.995 0); nPoints 400;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 3.0;\n T 2.80016839067;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.0145; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 3.0; T 2.80016839067; }\n }\n}\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'strict-positivity', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy positivity_robustness;\nmesh (600 600 1); maxCo 0.2; endTime 1.5;\nstates \"NE=(1.5 3.0 0 0); NW=(0.5323 0.3 1.206 0); SW=(0.069 0.0145 1.206 1.206); SE=(0.5323 0.3 0 1.206)\";\nmetrics (minRhoHistory minPHistory minTHistory nonFiniteRows failedSteps massDrift energyDrift waveExtrema);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\nrunApplication blockMesh\nrunApplication setFields\nrunApplication foamRun -solver shockFluid\nrunApplication -s sample foamPostProcess -latestTime -func sample\npython3 system/validateRiemann.py \"postProcessing\"\n" }, "riemann2D/9": { "usr_requirement": "Evaluate parallel-decomposition invariance and solver scaling for the CFD-China four-quadrant two-dimensional Riemann problem using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Use a uniform 800 x 800 mesh over [-5,5] x [-5,5] with one cell through the empty direction, the Kurganov flux, vanAlbada/vanAlbadaV reconstruction, zero-gradient outer boundaries, maxCo=0.2 and an end time of 1.5 with outputs every 0.15. Execute matched serial, two-rank and four-rank runs, using scotch decomposition for the parallel branches. Compare the reconstructed final fields and centre-line profiles and report speedup and parallel efficiency. Measure elapsed time for the foamRun solver phase only, excluding mesh generation, initialization, decomposition, reconstruction, sampling and comparison.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (800 800 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-4.995 0 0); end (4.995 0 0); nPoints 400;\n }\n vertical\n {\n type lineFace; axis y; start (0 -4.995 0); end (0 4.995 0); nPoints 400;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.029; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 1.5; T 1.40008419533; }\n }\n}\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'positivity-and-conservation', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy decomposition_invariance;\nbranches (serial twoRank fourRank); parallelMethod scotch;\nmesh (800 800 1); outputTimes (0.15 0.3 0.45 0.6 0.75 0.9 1.05 1.2 1.35 1.5);\ntimingScope foamRunOnly; metrics (cellCountBalance elapsedTime speedup parallelEfficiency rho_L1 rho_LInf p_L1 p_LInf T_L1 U_L1 centerline extrema massDrift energyDrift);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\n\nrun_branch() {\n name=\"$1\"; shift\n mkdir -p \"$name\"\n cp -r 0 constant system \"$name\"/\n}\nrun_branch serial\n(cd serial && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch parallel_2\n(cd parallel_2 && sed -i \"s/numberOfSubdomains 1/numberOfSubdomains 2/\" system/decomposeParDict && runApplication blockMesh && runApplication setFields && runApplication decomposePar && runParallel foamRun -solver shockFluid && runApplication reconstructPar -latestTime && runApplication -s sample foamPostProcess -latestTime -func sample)\nrun_branch parallel_4\n(cd parallel_4 && sed -i \"s/numberOfSubdomains 1/numberOfSubdomains 4/\" system/decomposeParDict && runApplication blockMesh && runApplication setFields && runApplication decomposePar && runParallel foamRun -solver shockFluid && runApplication reconstructPar -latestTime && runApplication -s sample foamPostProcess -latestTime -func sample)\npython3 system/compare_decompositions.py serial parallel_2 parallel_4\n", "system/compare_decompositions.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'decomposition-invariance', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n" }, "riemann2D/10": { "usr_requirement": "Evaluate restart fidelity for the CFD-China four-quadrant two-dimensional Riemann problem using OpenFOAM-13 with foamRun -solver shockFluid. Model an inviscid calorically perfect gas with gamma=1.4 using molWeight=11640.3, Cp=2.5, hf=0, mu=0 and Pr=1. Initialize the primitive states (rho,p,u,v) as NE=(1.5,1.5,0,0), NW=(0.5323,0.3,1.206,0), SW=(0.138,0.029,1.206,1.206), and SE=(0.5323,0.3,0,1.206), and derive temperature from the perfect-gas equation of state. Use a uniform 600 x 600 mesh over [-5,5] x [-5,5] with one cell through the empty direction, the Kurganov flux, vanAlbada/vanAlbadaV reconstruction, zero-gradient outer boundaries, adaptive stepping at maxCo=0.2 and a final time of 1.5 with outputs every 0.15. Run one branch continuously from t=0 to 1.5. Run a second branch from t=0 to 0.75, write a complete binary restart state, and continue from the latest saved time to t=1.5 without reinitializing the fields. Compare the final rho, p, T and U fields, both centre-line profiles, time-step histories and output-time alignment between the continuous and restarted runs.", "0/U": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volVectorField;\n location \"0\";\n object U;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 1 -1 0 0 0 0];\n\ninternalField uniform (0 0 0);\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/T": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object T;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [0 0 0 1 0 0 0];\n\ninternalField uniform 1;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "0/p": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class volScalarField;\n location \"0\";\n object p;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndimensions [1 -1 -2 0 0 0 0];\n\ninternalField uniform 0;\n\nboundaryField\n{\n sides\n {\n type zeroGradient;\n }\n\n empty\n {\n type empty;\n }\n}\n\n// ************************************************************************* //\n", "constant/momentumTransport": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object momentumTransport;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsimulationType laminar;\n", "constant/physicalProperties": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"constant\";\n object physicalProperties;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nthermoType\n{\n type hePsiThermo;\n mixture pureMixture;\n transport const;\n thermo hConst;\n equationOfState perfectGas;\n specie specie;\n energy sensibleInternalEnergy;\n}\n\nmixture\n{\n specie\n {\n molWeight 11640.3;\n }\n thermodynamics\n {\n Cp 2.5;\n hf 0;\n }\n transport\n {\n mu 0;\n Pr 1;\n }\n}\n\n// ************************************************************************* //\n", "system/blockMeshDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n \n object blockMeshDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nconvertToMeters 1;\n\nvertices\n(\n (-5 -5 -1)\n (5 -5 -1)\n (5 5 -1)\n (-5 5 -1)\n (-5 -5 1)\n (5 -5 1)\n (5 5 1)\n (-5 5 1)\n);\n\nblocks\n(\n hex (0 1 2 3 4 5 6 7) (600 600 1) simpleGrading (1 1 1)\n);\n\nboundary\n(\n sides\n {\n type patch;\n faces\n (\n (1 2 6 5)\n (0 4 7 3)\n (0 1 5 4)\n (3 7 6 2)\n );\n }\n empty\n {\n type empty;\n faces\n (\n (5 6 7 4)\n (0 3 2 1)\n );\n }\n);\n\n// ************************************************************************* //\n", "system/controlDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object controlDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolver shockFluid;\n\nstartFrom startTime;\n\nstartTime 0;\n\nstopAt endTime;\n\nendTime 1.5;\n\ndeltaT 0.0002;\n\nwriteControl adjustableRunTime;\n\nwriteInterval 0.15;\n\ncycleWrite 0;\n\nwriteFormat binary;\n\nwritePrecision 6;\n\nwriteCompression off;\n\ntimeFormat general;\n\ntimePrecision 6;\n\nrunTimeModifiable true;\n\nadjustTimeStep yes;\n\nmaxCo 0.2;\n\nmaxDeltaT 0.05;\n\nfunctions\n{\n extrema\n {\n type volFieldValue;\n operation min;\n libs (\"libfieldFunctionObjects.so\");\n fields (rho p T);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n mass\n {\n type volFieldValue;\n libs (\"libfieldFunctionObjects.so\");\n operation volIntegrate;\n fields (rho rhoE);\n writeControl adjustableRunTime;\n writeInterval 0.15;\n writeFields false;\n cellZone all;\n }\n}\n\n// ************************************************************************* //\n", "system/decomposeParDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object decomposeParDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nnumberOfSubdomains 1;\n\nmethod scotch;\n\n// ************************************************************************* //\n", "system/fvSchemes": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSchemes;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nfluxScheme Kurganov;\n\nddtSchemes\n{\n default Euler;\n}\n\ngradSchemes\n{\n default Gauss linear;\n}\n\ndivSchemes\n{\n default none;\n}\n\nlaplacianSchemes\n{\n default Gauss linear orthogonal;\n}\n\ninterpolationSchemes\n{\n default none;\n reconstruct(rho) vanAlbada;\n reconstruct(U) vanAlbadaV;\n reconstruct(T) vanAlbada;\n flux(rhoU) linear;\n}\n\nsnGradSchemes\n{\n default orthogonal;\n}\n\n// ************************************************************************* //\n", "system/fvSolution": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object fvSolution;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\nsolvers\n{\n \"(rho|rhoU|rhoE).*\"\n {\n solver diagonal;\n }\n \"U.*\"\n {\n solver smoothSolver;\n smoother GaussSeidel;\n nSweeps 2;\n tolerance 1e-09;\n relTol 0.01;\n }\n \"e.*\"\n {\n $U;\n tolerance 1e-10;\n relTol 0;\n }\n}\n\nPIMPLE\n{\n nOuterCorrectors 2;\n}\n\n// ************************************************************************* //\n", "system/sample": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object sample;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ntype sets;\nlibs (\"libsampling.so\");\ninterpolationScheme cellPoint;\nsetFormat raw;\nsets\n{\n horizontal\n {\n type lineFace; axis x; start (-4.995 0 0); end (4.995 0 0); nPoints 400;\n }\n vertical\n {\n type lineFace; axis y; start (0 -4.995 0); end (0 4.995 0); nPoints 400;\n }\n}\nfields (rho U p T);\n\n// ************************************************************************* //\n", "system/setFieldsDict": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object setFieldsDict;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ndefaultValues\n{\n U (0 0 0);\n p 1.5;\n T 1.40008419533;\n}\n\nzones\n{\n southWest\n {\n type box; zoneType cell; box (-100 -100 -2) (0 0 2);\n values { U (1.206 1.206 0); p 0.029; T 0.294220591773; }\n }\n southEast\n {\n type box; zoneType cell; box (0 -100 -2) (100 0 2);\n values { U (0 1.206 0); p 0.3; T 0.789076195003; }\n }\n northWest\n {\n type box; zoneType cell; box (-100 0 -2) (0 100 2);\n values { U (1.206 0 0); p 0.3; T 0.789076195003; }\n }\n northEast\n {\n type box; zoneType cell; box (0 0 -2) (100 100 2);\n values { U (0 0 0); p 1.5; T 1.40008419533; }\n }\n}\n\n// ************************************************************************* //\n", "system/validateRiemann.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'positivity-and-conservation', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n", "system/benchmarkParameters": "/*--------------------------------*- C++ -*----------------------------------*\\\n ========= |\n \\ / F ield | OpenFOAM: The Open Source CFD Toolbox\n \\ / O peration | Website: https://openfoam.org\n \\ / A nd | Version: 13\n \\/ M anipulation |\n\\*---------------------------------------------------------------------------*/\nFoamFile\n{\n format ascii;\n class dictionary;\n location \"system\";\n object benchmarkParameters;\n}\n// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //\n\ngamma 1.4;\nR 0.714242760066;\nstudy restart_fidelity;\nmesh (600 600 1); maxCo 0.2; finalTime 1.5; splitTime 0.75;\nbranches continuous=(0,1.5); restart=(0,0.75)+(latestTime,1.5);\nmetrics (cellwiseRho cellwiseP cellwiseT cellwiseU centerline timeStepHistory extrema massDrift energyDrift outputAlignment);\n\n// ************************************************************************* //\n", "Allrun": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\n. \"$WM_PROJECT_DIR/bin/tools/RunFunctions\"\nset -eu\nmkdir -p continuous restart\ncp -r 0 constant system continuous/\ncp -r 0 constant system restart/\n(cd continuous && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\nsed -i 's/endTime 1.5/endTime 0.75/' restart/system/controlDict\n(cd restart && runApplication blockMesh && runApplication setFields && runApplication foamRun -solver shockFluid)\nsed -i 's/startFrom startTime/startFrom latestTime/; s/endTime 0.75/endTime 1.5/' restart/system/controlDict\n(cd restart && runApplication foamRun -solver shockFluid && runApplication -s sample foamPostProcess -latestTime -func sample)\npython3 system/compare_restart.py continuous restart\n", "system/compare_restart.py": "#!/usr/bin/env python3\n\"\"\"Compare sampled Riemann branches and enforce finite positive states.\"\"\"\nfrom __future__ import annotations\nimport json, math, pathlib, re, sys, time\n\nNUMBER = re.compile(r\"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][-+]?\\d+)?\")\n\ndef latest_samples(root):\n files = [p for p in root.rglob(\"*\") if p.is_file() and p.suffix in {\".raw\", \".xy\"}]\n def key(path):\n try: return float(path.parent.name)\n except ValueError: return -1.0\n latest = {}\n for path in files:\n name = path.name\n if name not in latest or key(path) > key(latest[name]): latest[name] = path\n rows = []\n for path in sorted(latest.values()):\n for line in path.read_text(errors=\"replace\").splitlines():\n if not line.strip() or line.lstrip().startswith(\"#\"): continue\n values = [float(x) for x in NUMBER.findall(line)]\n # OF13 omits rho from sampled primitive fields; recover it from\n # p=rho*R*T when the line has coordinate,Ux,Uy,Uz,p,T columns.\n if len(values) >= 7:\n rows.append(values[:7])\n elif len(values) == 6 and values[5] > 0:\n coordinate, ux, uy, uz, pressure, temperature = values\n rows.append([coordinate, pressure/(8314.0/11640.3*temperature),\n ux, uy, uz, pressure, temperature])\n return rows, [str(p) for p in sorted(latest.values())]\n\ndef branch_report(root):\n rows, files = latest_samples(root)\n finite = all(math.isfinite(x) for row in rows for x in row)\n rho = [r[1] for r in rows]; p = [r[5] for r in rows]; temp = [r[6] for r in rows]\n positive = bool(rows) and min(rho) > 0 and min(p) > 0 and min(temp) > 0\n logs = \"\\n\".join(path.read_text(errors=\"replace\") for path in root.rglob(\"log.*\") if path.is_file())\n steps = len(re.findall(r\"(?m)^Time =\", logs))\n elapsed = [float(x) for x in re.findall(r\"ExecutionTime = ([0-9.eE+-]+)\", logs)]\n return {\"root\": str(root), \"files\": files, \"rows\": rows, \"finite\": finite,\n \"positive\": positive, \"minRho\": min(rho) if rho else None,\n \"minP\": min(p) if p else None, \"minT\": min(temp) if temp else None,\n \"maxRho\": max(rho) if rho else None, \"maxP\": max(p) if p else None,\n \"steps\": steps, \"executionTime\": elapsed[-1] if elapsed else None}\n\ndef norms(reference, candidate, column):\n n = min(len(reference), len(candidate))\n if not n: return {\"L1\": None, \"L2\": None, \"LInf\": None, \"count\": 0}\n delta = [abs(reference[i][column] - candidate[i][column]) for i in range(n)]\n return {\"L1\": sum(delta)/n, \"L2\": math.sqrt(sum(x*x for x in delta)/n),\n \"LInf\": max(delta), \"count\": n}\n\nroots = [pathlib.Path(arg) for arg in sys.argv[1:]] or [pathlib.Path(\"postProcessing\")]\nbranches = [branch_report(root) for root in roots]\ncomparisons = []\nif branches:\n reference = branches[0][\"rows\"]\n for branch in branches[1:]:\n comparisons.append({\"candidate\": branch[\"root\"], \"rho\": norms(reference, branch[\"rows\"], 1),\n \"p\": norms(reference, branch[\"rows\"], 5),\n \"T\": norms(reference, branch[\"rows\"], 6)})\nfor branch in branches: branch.pop(\"rows\", None)\nstatus = \"pass\" if branches and all(b[\"finite\"] and b[\"positive\"] for b in branches) else \"fail\"\nreport = {\"study\": 'restart-fidelity', \"generatedAt\": time.time(), \"status\": status,\n \"branches\": branches, \"comparisons\": comparisons}\npathlib.Path(\"riemann_diagnostics.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\nprint(json.dumps(report, sort_keys=True))\nif status != \"pass\": raise SystemExit(1)\n" } }