Skip to content
Snippets Groups Projects
Commit 4b81f443 authored by Andrew Heather's avatar Andrew Heather
Browse files

more updates...

parent ef874be0
No related branches found
No related tags found
No related merge requests found
Showing
with 156 additions and 25 deletions
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
...@@ -10,6 +10,7 @@ FoamFile ...@@ -10,6 +10,7 @@ FoamFile
version 2.0; version 2.0;
format binary; format binary;
class polyBoundaryMesh; class polyBoundaryMesh;
location "constant/polyMesh";
object boundary; object boundary;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
...@@ -8,14 +8,32 @@ ...@@ -8,14 +8,32 @@
FoamFile FoamFile
{ {
version 2.0; version 2.0;
format binary; format ascii;
class dictionary; class dictionary;
location "constant"; location "constant";
object transportProperties; object transportProperties;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-05; nu nu [ 0 2 -1 0 0 0 0 ] 1e-05;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 1;
}
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 0;
n n [ 0 0 0 0 0 0 0 ] 1;
}
// ************************************************************************* // // ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
// ************************************************************************* //
...@@ -30,6 +30,7 @@ divSchemes ...@@ -30,6 +30,7 @@ divSchemes
{ {
default none; default none;
div(phi,U) Gauss linear; div(phi,U) Gauss linear;
div((nuEff*dev(grad(U).T()))) Gauss linear;
} }
laplacianSchemes laplacianSchemes
...@@ -39,6 +40,7 @@ laplacianSchemes ...@@ -39,6 +40,7 @@ laplacianSchemes
laplacian(rAU,pcorr) Gauss linear corrected; laplacian(rAU,pcorr) Gauss linear corrected;
laplacian(rAU,p) Gauss linear corrected; laplacian(rAU,p) Gauss linear corrected;
laplacian(diffusivity,cellMotionU) Gauss linear uncorrected; laplacian(diffusivity,cellMotionU) Gauss linear uncorrected;
laplacian(nuEff,U) Gauss linear uncorrected;
} }
interpolationSchemes interpolationSchemes
......
...@@ -33,12 +33,16 @@ boundaryField ...@@ -33,12 +33,16 @@ boundaryField
innerWall innerWall
{ {
type zeroGradient; type epsilonWallFunction;
U Urel;
value uniform 14.855;
} }
outerWall outerWall
{ {
type zeroGradient; type epsilonWallFunction;
U Urel;
value uniform 14.855;
} }
cyclic cyclic
......
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
...@@ -10,6 +10,7 @@ FoamFile ...@@ -10,6 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object k; object k;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...@@ -25,26 +26,26 @@ boundaryField ...@@ -25,26 +26,26 @@ boundaryField
type fixedValue; type fixedValue;
value uniform 0.375; value uniform 0.375;
} }
outlet outlet
{ {
type zeroGradient; type zeroGradient;
} }
innerWall innerWall
{ {
type zeroGradient; type kQRWallFunction;
value uniform 0.375;
} }
outerWall outerWall
{ {
type zeroGradient; type kQRWallFunction;
value uniform 0.375;
} }
cyclic cyclic
{ {
type cyclic; type cyclic;
value uniform 0.375;
} }
} }
// ************************************************************************* // // ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
innerWall
{
type nutWallFunction;
U Urel;
value uniform 0;
}
outerWall
{
type nutWallFunction;
U Urel;
value uniform 0;
}
cyclic
{
type cyclic;
value uniform 0;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
...@@ -10,6 +10,7 @@ FoamFile ...@@ -10,6 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object omega; object omega;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...@@ -25,26 +26,28 @@ boundaryField ...@@ -25,26 +26,28 @@ boundaryField
type fixedValue; type fixedValue;
value uniform 3.5; value uniform 3.5;
} }
outlet outlet
{ {
type zeroGradient; type zeroGradient;
} }
innerWall innerWall
{ {
type zeroGradient; type omegaWallFunction;
U Urel;
value uniform 3.5;
} }
outerWall outerWall
{ {
type zeroGradient; type omegaWallFunction;
U Urel;
value uniform 3.5;
} }
cyclic cyclic
{ {
type cyclic; type cyclic;
value uniform 3.5;
} }
} }
// ************************************************************************* // // ************************************************************************* //
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/turbulenceModels/RAS \ -I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/transportModels -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/RASModel \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel
EXE_LIBS = \ EXE_LIBS = \
-lincompressibleRASModels \ -lincompressibleRASModels \
......
// Momentum predictor
tmp<fvVectorMatrix> UrelEqn
(
fvm::div(phi, Urel)
+ turbulence->divDevReff(Urel)
+ SRF->Su()
);
UrelEqn().relax();
eqnResidual = solve
(
UrelEqn() == -fvc::grad(p)
).initialResidual();
maxResidual = max(eqnResidual, maxResidual);
// check convergence
if (maxResidual < convergenceCriterion)
{
Info<< "reached convergence criterion: " << convergenceCriterion << endl;
runTime.writeAndEnd();
Info<< "latestTime = " << runTime.timeName() << endl;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment