diff --git a/test/IO/fileHandler/0/U b/test/IO/fileHandler/0/U index 56bd10b9e6..44b21c7a25 100644 --- a/test/IO/fileHandler/0/U +++ b/test/IO/fileHandler/0/U @@ -19,10 +19,15 @@ internalField uniform (0 0 0); boundaryField { + inlet + { + type pressureInletOutletVelocity; + value $internalField; + } outlet { - type zeroGradient; - value uniform (0 0 0); + type pressureInletOutletVelocity; + value $internalField; } walls { diff --git a/test/IO/fileHandler/0/p b/test/IO/fileHandler/0/p new file mode 100644 index 0000000000..824ba17a12 --- /dev/null +++ b/test/IO/fileHandler/0/p @@ -0,0 +1,44 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type totalPressure; + p0 $internalField; + value $internalField; + } + outlet + { + type totalPressure; + p0 $internalField; + value $internalField; + } + walls + { + type zeroGradient; + } + frontAndBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/test/IO/fileHandler/constant/cloudProperties b/test/IO/fileHandler/constant/cloudProperties index 9d85806990..b6eee531ec 100644 --- a/test/IO/fileHandler/constant/cloudProperties +++ b/test/IO/fileHandler/constant/cloudProperties @@ -56,8 +56,6 @@ subModels model1 { type manualInjection; - massTotal 0; - parcelBasisType fixed; nParticle 1; SOI 0; positionsFile "cloudPositions"; diff --git a/test/IO/fileHandler/constant/fvModels b/test/IO/fileHandler/constant/fvModels new file mode 100644 index 0000000000..cf1e065c83 --- /dev/null +++ b/test/IO/fileHandler/constant/fvModels @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "constant"; + object fvModels; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +clouds +{ + type clouds; + libs ("liblagrangianParcel.so"); +} + +// ************************************************************************* // diff --git a/test/IO/fileHandler/constant/physicalProperties b/test/IO/fileHandler/constant/physicalProperties index 6294a9ba3b..ed99e8ebb0 100644 --- a/test/IO/fileHandler/constant/physicalProperties +++ b/test/IO/fileHandler/constant/physicalProperties @@ -18,6 +18,7 @@ viscosityModel constant; nu 1e-05; +rho 1.2; rhoInf 1.2; // ************************************************************************* // diff --git a/test/IO/fileHandler/system/blockMeshDict b/test/IO/fileHandler/system/blockMeshDict index 1a01c1752e..b0e182d540 100644 --- a/test/IO/fileHandler/system/blockMeshDict +++ b/test/IO/fileHandler/system/blockMeshDict @@ -19,12 +19,16 @@ vertices ( (0 77.9423 6.2) (135 0 6.2) + (0 -77.9423 6.2) + (300 -77.9423 6.2) (165 0 6.2) (300 77.9423 6.2) (300 500 6.2) (0 500 6.2) (0 77.9423 0) (135 0 0) + (0 -77.9423 0) + (300 -77.9423 0) (165 0 0) (300 77.9423 0) (300 500 0) @@ -34,8 +38,9 @@ vertices blocks ( - hex (6 9 10 11 0 3 4 5 ) (20 40 1) simpleGrading (1 1 1) - hex (7 8 9 6 1 2 3 0) (20 8 1) simpleGrading (1 1 1) + hex (8 13 14 15 0 5 6 7) (24 50 1) simpleGrading (1 1 1) + hex (9 12 13 8 1 4 5 0) (24 8 1) simpleGrading (1 1 1) + hex (10 11 12 9 2 3 4 1) (24 6 1) simpleGrading (1 1 1) ); boundary @@ -45,12 +50,12 @@ boundary type wall; faces ( - (1 7 8 2) - (0 6 7 1) - (2 8 9 3) - (0 5 11 6) - (3 4 10 9) - (4 10 11 5) + (0 7 15 8) + (1 0 8 9) + (13 14 6 5) + (12 13 5 4) + (2 1 9 10) + (11 12 4 3) ); } @@ -59,12 +64,33 @@ boundary type wall; faces ( - (0 3 4 5) - (1 2 3 0) - (6 11 10 9) - (6 9 8 7) + (4 5 0 1) + (5 6 7 0) + (15 14 13 8) + (8 13 12 9) + (3 4 1 2) + (12 11 10 9) ); } + + inlet + { + type patch; + faces + ( + (15 7 6 14) + ); + } + + outlet + { + type patch; + faces + ( + (3 2 10 11) + ); + } + ); diff --git a/test/IO/fileHandler/system/controlDict b/test/IO/fileHandler/system/controlDict index 67910d8c2d..fc218369dd 100644 --- a/test/IO/fileHandler/system/controlDict +++ b/test/IO/fileHandler/system/controlDict @@ -14,7 +14,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -application particleFoam; +application foamRun; + +solver incompressibleFluid; startFrom latestTime; diff --git a/test/IO/fileHandler/system/fvSchemes b/test/IO/fileHandler/system/fvSchemes index 815df16e86..f53e25486f 100644 --- a/test/IO/fileHandler/system/fvSchemes +++ b/test/IO/fileHandler/system/fvSchemes @@ -16,22 +16,24 @@ FoamFile ddtSchemes { - default none; + default Euler; } gradSchemes { - default none; + default Gauss linear; } divSchemes { default none; + div(phi,U) Gauss limitedLinearV 1; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { - default none; + default Gauss linear corrected; } interpolationSchemes diff --git a/test/IO/fileHandler/system/fvSolution b/test/IO/fileHandler/system/fvSolution index db0622ee80..76cc58dcd8 100644 --- a/test/IO/fileHandler/system/fvSolution +++ b/test/IO/fileHandler/system/fvSolution @@ -16,6 +16,49 @@ FoamFile solvers { + p + { + solver GAMG; + smoother GaussSeidel; + tolerance 1e-6; + relTol 0.01; + } + + pFinal + { + $p; + relTol 0; + } + + U + { + solver smoothSolver; + smoother symGaussSeidel; + tolerance 1e-5; + relTol 0.1; + } + + UFinal + { + $U; + relTol 0; + } } +PIMPLE +{ + nOuterCorrectors 1; + nCorrectors 2; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + equations + { + ".*" 1; + } +} + + // ************************************************************************* //