From a3a524dbe6d89f19c5f5db66f5d48b99cf750ef1 Mon Sep 17 00:00:00 2001 From: Vanja Skuric Date: Sat, 7 May 2016 08:14:14 +0200 Subject: [PATCH] Fixed boundaryFoam tutorials (backports) --- .../constant/polyMesh/boundary | 5 ++- .../boundaryLaunderSharma/system/fvSchemes | 2 +- .../constant/polyMesh/boundary | 4 +- .../system/fvSchemes | 2 +- .../constant/polyMesh/boundary | 45 +++++++++---------- .../boundaryWallFunctions/system/fvSchemes | 2 +- 6 files changed, 29 insertions(+), 31 deletions(-) diff --git a/tutorials/incompressible/boundaryFoam/boundaryLaunderSharma/constant/polyMesh/boundary b/tutorials/incompressible/boundaryFoam/boundaryLaunderSharma/constant/polyMesh/boundary index c46d0df6b..1e55764d4 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryLaunderSharma/constant/polyMesh/boundary +++ b/tutorials/incompressible/boundaryFoam/boundaryLaunderSharma/constant/polyMesh/boundary @@ -1,15 +1,16 @@ /*--------------------------------*- 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 | | +| \\/ M anipulation | For copyright notice see file Copyright | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class polyBoundaryMesh; + location "constant/polyMesh"; object boundary; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/incompressible/boundaryFoam/boundaryLaunderSharma/system/fvSchemes b/tutorials/incompressible/boundaryFoam/boundaryLaunderSharma/system/fvSchemes index 740fc4aa3..08a9f23bc 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryLaunderSharma/system/fvSchemes +++ b/tutorials/incompressible/boundaryFoam/boundaryLaunderSharma/system/fvSchemes @@ -31,7 +31,7 @@ divSchemes div(phi,epsilon) Gauss linear; div(phi,R) Gauss linear; div(phi,nuTilda) Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes diff --git a/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/constant/polyMesh/boundary b/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/constant/polyMesh/boundary index 58f31bee9..c5fcd3a8e 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/constant/polyMesh/boundary +++ b/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/constant/polyMesh/boundary @@ -1,9 +1,9 @@ /*--------------------------------*- 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 | | +| \\/ M anipulation | For copyright notice see file Copyright | \*---------------------------------------------------------------------------*/ FoamFile { diff --git a/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/system/fvSchemes b/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/system/fvSchemes index 208083458..0b2ea0e5c 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/system/fvSchemes +++ b/tutorials/incompressible/boundaryFoam/boundaryTwoWallsFlowSolution/system/fvSchemes @@ -37,7 +37,7 @@ divSchemes div(phi,epsilon) Gauss linear; div(phi,R) Gauss linear; div(phi,nuTilda) Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } // Laplacian discretisation schemes diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctions/constant/polyMesh/boundary b/tutorials/incompressible/boundaryFoam/boundaryWallFunctions/constant/polyMesh/boundary index 1bc58cadb..be49adb66 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctions/constant/polyMesh/boundary +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctions/constant/polyMesh/boundary @@ -1,43 +1,40 @@ /*--------------------------------*- 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 | | +| \\/ M anipulation | For copyright notice see file Copyright | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class polyBoundaryMesh; + location "constant/polyMesh"; object boundary; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 3 ( -lowerWall -{ - type wall; - physicalType wallFunctions; - nFaces 1; - startFace 79; -} - -upperWall -{ - type wall; - physicalType wallFunctions; - nFaces 1; - startFace 80; -} - -defaultFaces -{ - type empty; - nFaces 320; - startFace 81; -} + lowerWall + { + type wall; + nFaces 1; + startFace 79; + } + upperWall + { + type wall; + nFaces 1; + startFace 80; + } + defaultFaces + { + type empty; + nFaces 320; + startFace 81; + } ) // ************************************************************************* // diff --git a/tutorials/incompressible/boundaryFoam/boundaryWallFunctions/system/fvSchemes b/tutorials/incompressible/boundaryFoam/boundaryWallFunctions/system/fvSchemes index 208083458..0b2ea0e5c 100644 --- a/tutorials/incompressible/boundaryFoam/boundaryWallFunctions/system/fvSchemes +++ b/tutorials/incompressible/boundaryFoam/boundaryWallFunctions/system/fvSchemes @@ -37,7 +37,7 @@ divSchemes div(phi,epsilon) Gauss linear; div(phi,R) Gauss linear; div(phi,nuTilda) Gauss linear; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } // Laplacian discretisation schemes