Updated settings for immersed boundary cases

This commit is contained in:
Hrvoje Jasak 2020-04-08 18:21:59 +01:00
parent b9ef35254a
commit 25e48d11a2
37 changed files with 57 additions and 77 deletions

View file

@ -22,11 +22,8 @@ boundaryField
{ {
ibCylinder ibCylinder
{ {
type mixedIb; type zeroGradientIb;
patchType immersedBoundary; patchType immersedBoundary;
triValue uniform 0;
triGradient uniform 0;
triValueFraction uniform 0;
setDeadValue yes; setDeadValue yes;
deadValue 0; deadValue 0;
value uniform 0; value uniform 0;

View file

@ -6,5 +6,6 @@
cleanCase cleanCase
\rm -f *.dat \rm -f *.dat
\rm -rf postProcessing forces
\rm -rf 0 \rm -rf 0
\rm -f constant/polyMesh/boundary \rm -f constant/polyMesh/boundary

View file

@ -22,11 +22,8 @@ boundaryField
{ {
ibCylinder ibCylinder
{ {
type mixedIb; type zeroGradientIb;
patchType immersedBoundary; patchType immersedBoundary;
triValue uniform 0;
triGradient uniform 0;
triValueFraction uniform 0;
setDeadValue yes; setDeadValue yes;
deadValue 0; deadValue 0;
value uniform 0; value uniform 0;

View file

@ -6,5 +6,6 @@
cleanCase cleanCase
\rm -f *.dat \rm -f *.dat
\rm -rf postProcessing forces
\rm -rf 0 \rm -rf 0
\rm -f constant/polyMesh/boundary \rm -f constant/polyMesh/boundary

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -30,7 +30,6 @@ boundaryField
E 9.8; E 9.8;
setDeadValue true; setDeadValue true;
deadValue 2e-4; deadValue 2e-4;
value uniform 2e-4; value uniform 2e-4;
} }
top top

View file

@ -25,7 +25,7 @@ boundaryField
{ {
type immersedBoundaryNutWallFunction; type immersedBoundaryNutWallFunction;
patchType immersedBoundary; patchType immersedBoundary;
setDeadValue true; setDeadValue yes;
deadValue 1e-5; deadValue 1e-5;
value uniform 0; value uniform 0;
} }

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -22,11 +22,8 @@ boundaryField
{ {
ibCylinder ibCylinder
{ {
type mixedIb; type zeroGradientIb;
patchType immersedBoundary; patchType immersedBoundary;
triValue uniform 0;
triGradient uniform 0;
triValueFraction uniform 0;
setDeadValue yes; setDeadValue yes;
deadValue 0; deadValue 0;
value uniform 0; value uniform 0;

View file

@ -6,6 +6,6 @@
cleanCase cleanCase
\rm -f *.dat \rm -f *.dat
\rm -rf postProcessing forces
\rm -rf 0 \rm -rf 0
\rm -f constant/polyMesh/boundary \rm -f constant/polyMesh/boundary
\rm -rf postProcessing

View file

@ -21,5 +21,6 @@ turbulence on;
printCoeffs on; printCoeffs on;
nuRatio 1000;
// ************************************************************************* // // ************************************************************************* //

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -19,16 +19,11 @@ dynamicFvMesh immersedBoundarySolidBodyMotionFvMesh;
immersedBoundarySolidBodyMotionFvMeshCoeffs immersedBoundarySolidBodyMotionFvMeshCoeffs
{ {
// Immersed boundary controls
motionFunctions motionFunctions
( (
ibCylinder ibCylinder
{ {
// solidBodyMotionFunction translation;
// translationCoeffs
// {
// velocity (0.1 0 0);
// }
solidBodyMotionFunction linearOscillation; solidBodyMotionFunction linearOscillation;
linearOscillationCoeffs linearOscillationCoeffs
{ {

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,7 +21,7 @@ DebugSwitches
// fvMesh 2; // fvMesh 2;
} }
application pimpleDyMFoam; application pimpleDyMIbFoam;
startFrom startTime; startFrom startTime;
@ -61,7 +61,7 @@ libs
( (
"libimmersedBoundary.so" "libimmersedBoundary.so"
"libimmersedBoundaryDynamicMesh.so" "libimmersedBoundaryDynamicMesh.so"
"libimmersedBoundaryTurbulence.so" "libincompressibleImmersedBoundaryTurbulence.so"
); );
functions functions

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,33 +21,33 @@ ddtSchemes
gradSchemes gradSchemes
{ {
default cellLimited Gauss linear 1; default cellLimited Gauss linear 1;
} }
divSchemes divSchemes
{ {
default none; default none;
div(phi,U) Gauss upwind; div(phi,U) Gauss GammaVDC 0.5;
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind; div(phi,epsilon) Gauss upwind;
div(phi,omega) Gauss upwind; div(phi,omega) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear; div((nuEff*dev(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes
{ {
default Gauss linear limited 0.5; default Gauss linear limited 0.5;
} }
interpolationSchemes interpolationSchemes
{ {
default linear; default linear;
} }
snGradSchemes snGradSchemes
{ {
default limited 0.5; default limited 0.5;
} }

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -49,7 +49,7 @@ PIMPLE
{ {
nOuterCorrectors 4; nOuterCorrectors 4;
nCorrectors 2; nCorrectors 2;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 1;
pRefPoint (0 -0.45 0.05); pRefPoint (0 -0.45 0.05);
pRefValue 0; pRefValue 0;

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -35,7 +35,6 @@ boundaryField
{ {
type fixedValue; type fixedValue;
value uniform (10 0 0); value uniform (10 0 0);
} }
outlet outlet
{ {

View file

@ -22,11 +22,8 @@ boundaryField
{ {
ibCylinder ibCylinder
{ {
type mixedIb; type zeroGradientIb;
patchType immersedBoundary; patchType immersedBoundary;
triValue uniform 0;
triGradient uniform 0;
triValueFraction uniform 0;
setDeadValue yes; setDeadValue yes;
deadValue 0; deadValue 0;
value uniform 0; value uniform 0;

View file

@ -21,7 +21,7 @@ DebugSwitches
// fvMesh 2; // fvMesh 2;
} }
application pimpleDyMFoam; application pimpleDyMIbFoam;
startFrom startTime; startFrom startTime;

View file

@ -21,30 +21,30 @@ ddtSchemes
gradSchemes gradSchemes
{ {
default cellLimited Gauss linear 1; default cellLimited Gauss linear 1;
} }
divSchemes divSchemes
{ {
default none; default none;
div(phi,U) Gauss upwind; div(phi,U) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear; div((nuEff*dev(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes
{ {
default Gauss linear limited 0.5; default Gauss linear limited 0.5;
} }
interpolationSchemes interpolationSchemes
{ {
default linear; default linear;
} }
snGradSchemes snGradSchemes
{ {
default limited 0.5; default limited 0.5;
} }

View file

@ -71,7 +71,6 @@ relaxationFactors
} }
fields fields
{ {
// p 0.8;
} }
} }

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -22,11 +22,8 @@ boundaryField
{ {
ibCylinder ibCylinder
{ {
type mixedIb; type zeroGradientIb;
patchType immersedBoundary; patchType immersedBoundary;
triValue uniform 0;
triGradient uniform 0;
triValueFraction uniform 0;
setDeadValue yes; setDeadValue yes;
deadValue 0; deadValue 0;
value uniform 0; value uniform 0;

View file

@ -6,6 +6,6 @@
cleanCase cleanCase
\rm -f *.dat \rm -f *.dat
\rm -rf postProcessing forces
\rm -rf 0 \rm -rf 0
\rm -f constant/polyMesh/boundary \rm -f constant/polyMesh/boundary
\rm -rf postProcessing

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -21,7 +21,7 @@ DebugSwitches
// fvMesh 2; // fvMesh 2;
} }
application pimpleDyMFoam; application pimpleDyMIbFoam;
startFrom startTime; startFrom startTime;
@ -61,7 +61,7 @@ libs
( (
"libimmersedBoundary.so" "libimmersedBoundary.so"
"libimmersedBoundaryDynamicMesh.so" "libimmersedBoundaryDynamicMesh.so"
"libimmersedBoundaryTurbulence.so" "libincompressibleImmersedBoundaryTurbulence.so"
); );
functions functions

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -27,7 +27,7 @@ gradSchemes
divSchemes divSchemes
{ {
default none; default none;
div(phi,U) Gauss upwind; div(phi,U) Gauss GammaVDC 0.5;
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind; div(phi,epsilon) Gauss upwind;
div(phi,omega) Gauss upwind; div(phi,omega) Gauss upwind;

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -49,7 +49,7 @@ PIMPLE
{ {
nOuterCorrectors 4; nOuterCorrectors 4;
nCorrectors 2; nCorrectors 2;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 1;
pRefPoint (0 -0.45 0.05); pRefPoint (0 -0.45 0.05);
pRefValue 0; pRefValue 0;

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: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/