diff --git a/applications/solvers/coupled/MRFPorousFoam/createFields.H b/applications/solvers/coupled/MRFPorousFoam/createFields.H index 51403c4a7..29df5dfc2 100644 --- a/applications/solvers/coupled/MRFPorousFoam/createFields.H +++ b/applications/solvers/coupled/MRFPorousFoam/createFields.H @@ -50,3 +50,5 @@ volVector4Field Up mesh, dimensionedVector4("zero", dimless, vector4::zero) ); + +mesh.schemesDict().setFluxRequired(p.name()); diff --git a/applications/solvers/coupled/pUCoupledFoam/createFields.H b/applications/solvers/coupled/pUCoupledFoam/createFields.H index 51403c4a7..29df5dfc2 100644 --- a/applications/solvers/coupled/pUCoupledFoam/createFields.H +++ b/applications/solvers/coupled/pUCoupledFoam/createFields.H @@ -50,3 +50,5 @@ volVector4Field Up mesh, dimensionedVector4("zero", dimless, vector4::zero) ); + +mesh.schemesDict().setFluxRequired(p.name()); diff --git a/tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/constant/polyMesh/boundary b/tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/constant/polyMesh/boundary index 8e9b6ebe9..6bd5b4bb5 100644 --- a/tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/constant/polyMesh/boundary +++ b/tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/constant/polyMesh/boundary @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | -| \\ / O peration | Version: 3.2 | +| \\ / O peration | Version: 4.0 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | For copyright notice see file Copyright | \*---------------------------------------------------------------------------*/ diff --git a/tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/system/fvSchemes b/tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/system/fvSchemes index f92276412..e8b6cda55 100644 --- a/tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/system/fvSchemes +++ b/tutorials/incompressible/pUCoupledFoam/backwardFacingStepLaminar/system/fvSchemes @@ -30,7 +30,7 @@ divSchemes default none; // div(phi,U) Gauss upwind; div(phi,U) Gauss linearUpwind Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; div((grad(p)|A(U))) Gauss linear; div(U) Gauss linear; } @@ -52,10 +52,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* // diff --git a/tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/constant/polyMesh/boundary b/tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/constant/polyMesh/boundary index 8e9b6ebe9..6bd5b4bb5 100644 --- a/tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/constant/polyMesh/boundary +++ b/tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/constant/polyMesh/boundary @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | -| \\ / O peration | Version: 3.2 | +| \\ / O peration | Version: 4.0 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | For copyright notice see file Copyright | \*---------------------------------------------------------------------------*/ diff --git a/tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/system/fvSchemes b/tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/system/fvSchemes index b26b5fb84..11b9a4a3a 100644 --- a/tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/system/fvSchemes +++ b/tutorials/incompressible/pUCoupledFoam/backwardFacingStepTurbulent/system/fvSchemes @@ -31,7 +31,7 @@ divSchemes div(phi,k) Gauss upwind; div(phi,epsilon) Gauss upwind; div((nuEff*dev(grad(U).T()))) Gauss linear; - div((grad(p)|A(U))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; div(U) Gauss linear; } @@ -50,10 +50,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* // diff --git a/tutorials/incompressible/pUCoupledFoam/cavity/constant/polyMesh/boundary b/tutorials/incompressible/pUCoupledFoam/cavity/constant/polyMesh/boundary index bd1d0b7f1..9e2922b27 100644 --- a/tutorials/incompressible/pUCoupledFoam/cavity/constant/polyMesh/boundary +++ b/tutorials/incompressible/pUCoupledFoam/cavity/constant/polyMesh/boundary @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | -| \\ / O peration | Version: 3.2 | +| \\ / O peration | Version: 4.0 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | For copyright notice see file Copyright | \*---------------------------------------------------------------------------*/ diff --git a/tutorials/incompressible/pUCoupledFoam/cavity/system/fvSchemes b/tutorials/incompressible/pUCoupledFoam/cavity/system/fvSchemes index 11c47fd1e..d2048b4cd 100644 --- a/tutorials/incompressible/pUCoupledFoam/cavity/system/fvSchemes +++ b/tutorials/incompressible/pUCoupledFoam/cavity/system/fvSchemes @@ -28,7 +28,7 @@ divSchemes { default none; div(phi,U) Gauss linearUpwind Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; div(U) Gauss linear; } @@ -50,10 +50,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* //