Tutorial update: heatTransfer/buoyantBoussinesqSimpleFoam

This commit is contained in:
Hrvoje Jasak 2019-09-24 16:01:19 +01:00
parent 2175c3392f
commit e6cba04e58
6 changed files with 72 additions and 63 deletions

View file

@ -21,7 +21,7 @@ libs
); );
application buoyantBoussinesqSimpleFoam; application buoyantBoussinesqSimpleFoam;
startFrom latestTime; startFrom startTime;
startTime 0; startTime 0;
@ -41,7 +41,7 @@ writeFormat ascii;
writePrecision 6; writePrecision 6;
writeCompression uncompressed; writeCompression compressed;
timeFormat general; timeFormat general;
@ -49,5 +49,54 @@ timePrecision 6;
runTimeModifiable yes; runTimeModifiable yes;
functions
(
minMaxU
{
type minMaxField;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so");
name U;
}
minMaxP
{
type minMaxField;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so");
name p;
}
minMaxT
{
type minMaxField;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so");
name T;
}
minMaxK
{
type minMaxField;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so");
name k;
}
minMaxEpsilon
{
type minMaxField;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so");
name epsilon;
}
);
// ************************************************************************* // // ************************************************************************* //

View file

@ -32,20 +32,12 @@ divSchemes
div(phi,T) Gauss upwind; div(phi,T) Gauss upwind;
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind; div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div((nuEff*dev(T(grad(U))))) Gauss linear; div((nuEff*dev(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes
{ {
default none; default Gauss linear corrected;
laplacian(nuEff,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
laplacian(kappaEff,T) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
laplacian(DREff,R) Gauss linear corrected;
} }
interpolationSchemes interpolationSchemes

View file

@ -24,48 +24,37 @@ solvers
tolerance 1e-08; tolerance 1e-08;
relTol 0.01; relTol 0.01;
} }
U U
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0;
} }
T T
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0;
} }
k k
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0;
} }
epsilon epsilon
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0;
}
R
{
solver BiCGStab;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
} }
} }
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
@ -81,7 +70,6 @@ relaxationFactors
T 0.7; T 0.7;
k 0.7; k 0.7;
epsilon 0.7; epsilon 0.7;
R 0.7;
} }

View file

@ -21,55 +21,55 @@ FoamFile
{ {
type empty; type empty;
nFaces 0; nFaces 0;
startFace 59065; startFace 60436;
} }
minX minX
{ {
type empty; type empty;
nFaces 0; nFaces 0;
startFace 59065; startFace 60436;
} }
maxX maxX
{ {
type empty; type empty;
nFaces 0; nFaces 0;
startFace 59065; startFace 60436;
} }
minY minY
{ {
type empty; type empty;
nFaces 0; nFaces 0;
startFace 59065; startFace 60436;
} }
ground ground
{ {
type wall; type wall;
nFaces 590; nFaces 590;
startFace 59065; startFace 60436;
} }
maxZ maxZ
{ {
type empty; type empty;
nFaces 0; nFaces 0;
startFace 59655; startFace 61026;
} }
igloo_region0 igloo_region0
{ {
type wall; type wall;
nFaces 2260; nFaces 2260;
startFace 59655; startFace 61026;
} }
twoFridgeFreezers_seal_0 twoFridgeFreezers_seal_0
{ {
type wall; type wall;
nFaces 1344; nFaces 1344;
startFace 61915; startFace 63286;
} }
twoFridgeFreezers_herring_1 twoFridgeFreezers_herring_1
{ {
type wall; type wall;
nFaces 1116; nFaces 1116;
startFace 63259; startFace 64630;
} }
) )

View file

@ -32,20 +32,12 @@ divSchemes
div(phi,T) Gauss upwind; div(phi,T) Gauss upwind;
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind; div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div((nuEff*dev(T(grad(U))))) Gauss linear; div((nuEff*dev(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes
{ {
default none; default Gauss linear corrected;
laplacian(nuEff,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
laplacian(kappaEff,T) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
laplacian(DREff,R) Gauss linear corrected;
} }
interpolationSchemes interpolationSchemes

View file

@ -24,48 +24,37 @@ solvers
tolerance 1e-08; tolerance 1e-08;
relTol 0.01; relTol 0.01;
} }
U U
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0;
} }
T T
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0;
} }
k k
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0;
} }
epsilon epsilon
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0;
}
R
{
solver BiCGStab;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
} }
} }
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
@ -81,7 +70,6 @@ relaxationFactors
T 0.7; T 0.7;
k 0.7; k 0.7;
epsilon 0.7; epsilon 0.7;
R 0.7;
} }