From 05e63d508430d4095760204b5e068bbc6e2b2ac9 Mon Sep 17 00:00:00 2001 From: Henrik Rusche Date: Fri, 15 Apr 2016 21:31:14 +0200 Subject: [PATCH] Backport limited schemes format from vanilla 3.0.1 --- .../limitedSchemes/linearUpwind/linearUpwind.H | 11 +++++++++-- .../simpleFoam/pitzDaily/system/fvSchemes | 9 ++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/linearUpwind/linearUpwind.H b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/linearUpwind/linearUpwind.H index 70b05bcda..12a12b2da 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/linearUpwind/linearUpwind.H +++ b/src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/linearUpwind/linearUpwind.H @@ -55,6 +55,10 @@ class linearUpwind { // Private Data + //- Name of gradient scheme + word gradSchemeName_; + + //- Gradient scheme tmp > gradScheme_; @@ -83,6 +87,7 @@ public: ) : upwind(mesh, faceFlux), + gradSchemeName_("grad"), gradScheme_ ( new fv::gaussGrad(mesh) @@ -99,12 +104,13 @@ public: ) : upwind(mesh, schemeData), + gradSchemeName_(schemeData), gradScheme_ ( fv::gradScheme::New ( mesh, - schemeData + mesh.schemesDict().gradScheme(gradSchemeName_) ) ) {} @@ -118,12 +124,13 @@ public: ) : upwind(mesh, faceFlux, schemeData), + gradSchemeName_(schemeData), gradScheme_ ( fv::gradScheme::New ( mesh, - schemeData + mesh.schemesDict.gradScheme(gradSchemeName_) ) ) {} diff --git a/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSchemes b/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSchemes index 4982acade..b37aab24a 100644 --- a/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSchemes +++ b/tutorials/incompressible/simpleFoam/pitzDaily/system/fvSchemes @@ -35,7 +35,8 @@ 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; + div(nonlinearStress) Gauss linear; } laplacianSchemes @@ -62,10 +63,4 @@ snGradSchemes default corrected; } -fluxRequired -{ - default no; - p; -} - // ************************************************************************* //