From 685dad16cb771be8d64cbbfc1dce6321b8f7822b Mon Sep 17 00:00:00 2001 From: Vanja Skuric Date: Sat, 7 May 2016 10:04:45 +0200 Subject: [PATCH] Fixed simpleFoam and simpleSRFFoam tutorials (backports) --- .../simpleFoam/mixingPlaneAxial/system/fvSchemes | 8 +------- .../simpleFoam/mixingPlaneDomADomB/system/fvSchemes | 9 +-------- .../incompressible/simpleFoam/motorBike/system/fvSchemes | 8 +------- .../simpleFoam/pitzDaily/constant/polyMesh/boundary | 2 +- .../simpleFoam/pitzDaily3Blocks/system/fvSchemes | 8 +------- .../simpleFoam/pitzDailyExptInlet/system/fvSchemes | 8 +------- .../simpleSRFFoam/axialTurbine/system/fvSchemes | 8 +------- .../incompressible/simpleSRFFoam/mixer/system/fvSchemes | 8 +------- 8 files changed, 8 insertions(+), 51 deletions(-) diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/system/fvSchemes b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/system/fvSchemes index 3fbe0d858..86545eda5 100644 --- a/tutorials/incompressible/simpleFoam/mixingPlaneAxial/system/fvSchemes +++ b/tutorials/incompressible/simpleFoam/mixingPlaneAxial/system/fvSchemes @@ -35,7 +35,7 @@ divSchemes div(phi,R) Gauss upwind; div(R) Gauss linear; div(phi,nuTilda) Gauss upwind; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -61,12 +61,6 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - mixingPlane { default areaAveraging; diff --git a/tutorials/incompressible/simpleFoam/mixingPlaneDomADomB/system/fvSchemes b/tutorials/incompressible/simpleFoam/mixingPlaneDomADomB/system/fvSchemes index 0b378d702..7db916f58 100644 --- a/tutorials/incompressible/simpleFoam/mixingPlaneDomADomB/system/fvSchemes +++ b/tutorials/incompressible/simpleFoam/mixingPlaneDomADomB/system/fvSchemes @@ -29,7 +29,7 @@ divSchemes { default none; div(phi,U) Gauss linearUpwind Gauss; //upwind; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; div(phi,epsilon) Gauss upwind; div(phi,k) Gauss upwind; } @@ -59,13 +59,6 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - pcorr; - p; -} - mixingPlane { default areaAveraging; diff --git a/tutorials/incompressible/simpleFoam/motorBike/system/fvSchemes b/tutorials/incompressible/simpleFoam/motorBike/system/fvSchemes index c9329c21e..6600b7ce0 100644 --- a/tutorials/incompressible/simpleFoam/motorBike/system/fvSchemes +++ b/tutorials/incompressible/simpleFoam/motorBike/system/fvSchemes @@ -33,7 +33,7 @@ divSchemes div(phi,U) Gauss linearUpwindV Gauss linear; div(phi,k) Gauss upwind; div(phi,omega) Gauss upwind; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -54,10 +54,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/constant/polyMesh/boundary b/tutorials/incompressible/simpleFoam/pitzDaily/constant/polyMesh/boundary index 875a9b2b9..3a93a6794 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily/constant/polyMesh/boundary +++ b/tutorials/incompressible/simpleFoam/pitzDaily/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/simpleFoam/pitzDaily3Blocks/system/fvSchemes b/tutorials/incompressible/simpleFoam/pitzDaily3Blocks/system/fvSchemes index 3f2ac4e1e..e69ec2c98 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily3Blocks/system/fvSchemes +++ b/tutorials/incompressible/simpleFoam/pitzDaily3Blocks/system/fvSchemes @@ -35,7 +35,7 @@ divSchemes div(phi,R) Gauss upwind; div(R) Gauss linear; div(phi,nuTilda) Gauss upwind; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -60,10 +60,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* // diff --git a/tutorials/incompressible/simpleFoam/pitzDailyExptInlet/system/fvSchemes b/tutorials/incompressible/simpleFoam/pitzDailyExptInlet/system/fvSchemes index 3f2ac4e1e..e69ec2c98 100644 --- a/tutorials/incompressible/simpleFoam/pitzDailyExptInlet/system/fvSchemes +++ b/tutorials/incompressible/simpleFoam/pitzDailyExptInlet/system/fvSchemes @@ -35,7 +35,7 @@ divSchemes div(phi,R) Gauss upwind; div(R) Gauss linear; div(phi,nuTilda) Gauss upwind; - div((nuEff*dev(grad(U).T()))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -60,10 +60,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* // diff --git a/tutorials/incompressible/simpleSRFFoam/axialTurbine/system/fvSchemes b/tutorials/incompressible/simpleSRFFoam/axialTurbine/system/fvSchemes index 3d41bb9dc..fd1a4aea9 100644 --- a/tutorials/incompressible/simpleSRFFoam/axialTurbine/system/fvSchemes +++ b/tutorials/incompressible/simpleSRFFoam/axialTurbine/system/fvSchemes @@ -36,7 +36,7 @@ divSchemes div(phi,R) Gauss upwind; div(R) Gauss linear; div(phi,nuTilda) Gauss upwind; - div((nuEff*dev(grad(Urel).T()))) Gauss linear; + div((nuEff*dev(T(grad(Urel))))) Gauss linear; } laplacianSchemes @@ -62,10 +62,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* // diff --git a/tutorials/incompressible/simpleSRFFoam/mixer/system/fvSchemes b/tutorials/incompressible/simpleSRFFoam/mixer/system/fvSchemes index 94be3f5f4..5149899be 100644 --- a/tutorials/incompressible/simpleSRFFoam/mixer/system/fvSchemes +++ b/tutorials/incompressible/simpleSRFFoam/mixer/system/fvSchemes @@ -36,7 +36,7 @@ divSchemes div(phi,R) Gauss upwind; div(R) Gauss linear; div(phi,nuTilda) Gauss upwind; - div((nuEff*dev(grad(Urel).T()))) Gauss linear; + div((nuEff*dev2(T(grad(Urel))))) Gauss linear; } laplacianSchemes @@ -62,10 +62,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* //