Added setFluxRequired to pUCoupledFoam and MRFPorousFoam; backported tutorials

This commit is contained in:
Vanja Skuric 2016-05-27 14:30:28 +02:00
parent 0cd17ee5e0
commit 7ffe7f3f46
8 changed files with 10 additions and 24 deletions

View file

@ -50,3 +50,5 @@ volVector4Field Up
mesh, mesh,
dimensionedVector4("zero", dimless, vector4::zero) dimensionedVector4("zero", dimless, vector4::zero)
); );
mesh.schemesDict().setFluxRequired(p.name());

View file

@ -50,3 +50,5 @@ volVector4Field Up
mesh, mesh,
dimensionedVector4("zero", dimless, vector4::zero) dimensionedVector4("zero", dimless, vector4::zero)
); );
mesh.schemesDict().setFluxRequired(p.name());

View file

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / 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 | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -30,7 +30,7 @@ divSchemes
default none; default none;
// div(phi,U) Gauss upwind; // div(phi,U) Gauss upwind;
div(phi,U) Gauss linearUpwind Gauss linear; 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((grad(p)|A(U))) Gauss linear;
div(U) Gauss linear; div(U) Gauss linear;
} }
@ -52,10 +52,4 @@ snGradSchemes
default corrected; default corrected;
} }
fluxRequired
{
default no;
p;
}
// ************************************************************************* // // ************************************************************************* //

View file

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / 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 | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -31,7 +31,7 @@ divSchemes
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind; div(phi,epsilon) Gauss upwind;
div((nuEff*dev(grad(U).T()))) Gauss linear; 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; div(U) Gauss linear;
} }
@ -50,10 +50,4 @@ snGradSchemes
default corrected; default corrected;
} }
fluxRequired
{
default no;
p;
}
// ************************************************************************* // // ************************************************************************* //

View file

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / 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 | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -28,7 +28,7 @@ divSchemes
{ {
default none; default none;
div(phi,U) Gauss linearUpwind Gauss linear; 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; div(U) Gauss linear;
} }
@ -50,10 +50,4 @@ snGradSchemes
default corrected; default corrected;
} }
fluxRequired
{
default no;
p;
}
// ************************************************************************* // // ************************************************************************* //