more tutorial updates

This commit is contained in:
andy
2009-06-24 12:27:18 +01:00
parent 81dfb596d6
commit 441b8b0832
71 changed files with 252 additions and 263 deletions

View File

@ -22,25 +22,25 @@ boundaryField
{
floor
{
type calculated;
type fixedFluxBuoyantPressure;
value uniform 100000;
}
ceiling
{
type calculated;
type fixedFluxBuoyantPressure;
value uniform 100000;
}
fixedWalls
{
type calculated;
type fixedFluxBuoyantPressure;
value uniform 100000;
}
box
{
type calculated;
type fixedFluxBuoyantPressure;
value uniform 100000;
}
}

View File

@ -1,48 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object pd;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
floor
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
ceiling
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
fixedWalls
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
box
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -41,7 +41,7 @@ laplacianSchemes
{
default none;
laplacian(muEff,U) Gauss linear corrected;
laplacian((rho*(1|A(U))),pd) Gauss linear corrected;
laplacian((rho*(1|A(U))),p) Gauss linear corrected;
laplacian(alphaEff,h) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
@ -62,7 +62,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
}

View File

@ -17,7 +17,7 @@ FoamFile
solvers
{
pd
p
{
solver PCG;
preconditioner DIC;
@ -69,14 +69,14 @@ solvers
SIMPLE
{
nNonOrthogonalCorrectors 0;
pdRefCell 0;
pdRefValue 0;
pRefCell 0;
pRefValue 0;
}
relaxationFactors
{
rho 1;
pd 0.3;
p 0.3;
U 0.7;
h 0.7;
k 0.7;

View File

@ -22,25 +22,25 @@ boundaryField
{
floor
{
type calculated;
type fixedFluxBuoyantPressure;
value uniform 100000;
}
ceiling
{
type calculated;
type fixedFluxBuoyantPressure;
value uniform 100000;
}
fixedWalls
{
type calculated;
type fixedFluxBuoyantPressure;
value uniform 100000;
}
box
{
type calculated;
type fixedFluxBuoyantPressure;
value uniform 100000;
}
}

View File

@ -1,48 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object pd;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
floor
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
ceiling
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
fixedWalls
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
box
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -42,7 +42,7 @@ laplacianSchemes
{
default none;
laplacian(muEff,U) Gauss linear corrected;
laplacian((rho*(1|A(U))),pd) Gauss linear corrected;
laplacian((rho*(1|A(U))),p) Gauss linear corrected;
laplacian(alphaEff,h) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
@ -63,7 +63,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
}

View File

@ -17,7 +17,7 @@ FoamFile
solvers
{
pd
p
{
solver GAMG;
tolerance 1e-06;
@ -73,14 +73,14 @@ solvers
SIMPLE
{
nNonOrthogonalCorrectors 0;
pdRefCell 0;
pdRefValue 0;
pRefCell 0;
pRefValue 0;
}
relaxationFactors
{
rho 1.0;
pd 0.3;
p 0.3;
U 0.7;
h 0.7;
k 0.7;

View File

@ -15,13 +15,13 @@ runApplication splitMeshRegions -cellZones
for i in bottomAir topAir heater leftSolid rightSolid
do
changeDictionary -region $i
changeDictionary -region $i >& log.changeDictionary.$i
done
# remove fluid fields from solid regions (important for post-processing)
for i in heater leftSolid rightSolid
do
rm -f 0*/$i/{mut,alphat,epsilon,k,p,pd,U}
rm -f 0*/$i/{mut,alphat,epsilon,k,p,p,U}
done
# remove solid fields from fluid regions (important for post-processing)
@ -37,7 +37,7 @@ done
# Decompose
for i in bottomAir topAir heater leftSolid rightSolid
do
decomposePar -region $i
decomposePar -region $i >& log.decomposePar.$i
done
# Run
@ -47,7 +47,7 @@ runParallel chtMultiRegionFoam 4 system/machines
# Reconstruct
for i in bottomAir topAir heater leftSolid rightSolid
do
reconstructPar -region $i
reconstructPar -region $i >& log.reconstructPar.$i
done

View File

@ -1,11 +1,13 @@
#!/bin/sh
set -x
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
blockMesh
cellSet
blockMesh >& log.blockMesh
cellSet >& log.cellSet
#- MRF determines its own faceZone if not supplied
#cp system/faceSetDict_rotorFaces system/faceSetDict
#faceSet
#cp system/faceSetDict_noBoundaryFaces system/faceSetDict
#faceSet
setsToZones -noFlipMap
setsToZones -noFlipMap >& log.setsToZones

View File

@ -17,7 +17,7 @@ FoamFile
radiation off;
radiationModel noRadiation;
radiationModel none;
solverFreq 10;

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class dictionary;
location "system";
object cellSetDict.1;
@ -19,7 +19,13 @@ name c0;
action new;
topoSetSources ( boxToCell { box ( 0.004 -0.001 -1 ) ( 0.012 0.001 1 ) ; } );
topoSetSources
(
boxToCell
{
box (0.004 -0.001 -1) (0.012 0.001 1);
}
);
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class dictionary;
location "system";
object cellSetDict.2;
@ -19,7 +19,13 @@ name c0;
action new;
topoSetSources ( boxToCell { box ( 0.0045 -0.00075 -1 ) ( 0.0095 0.00075 1 ) ; } );
topoSetSources
(
boxToCell
{
box (0.0045 -0.00075 -1) (0.0095 0.00075 1);
}
);
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class dictionary;
location "system";
object cellSetDict.3;
@ -19,7 +19,13 @@ name c0;
action new;
topoSetSources ( boxToCell { box ( 0.00475 -0.000375 -1 ) ( 0.009 0.000375 1 ) ; } );
topoSetSources
(
boxToCell
{
box (0.00475 -0.000375 -1) (0.009 0.000375 1);
}
);
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class dictionary;
location "system";
object cellSetDict.1;
@ -19,7 +19,13 @@ name c0;
action new;
topoSetSources ( boxToCell { box ( 0.004 -0.001 -1 ) ( 0.012 0.001 1 ) ; } );
topoSetSources
(
boxToCell
{
box ( 0.004 -0.001 -1 ) ( 0.012 0.001 1 );
}
);
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class dictionary;
location "system";
object cellSetDict.2;
@ -19,7 +19,13 @@ name c0;
action new;
topoSetSources ( boxToCell { box ( 0.0045 -0.00075 -1 ) ( 0.0095 0.00075 1 ) ; } );
topoSetSources
(
boxToCell
{
box ( 0.0045 -0.00075 -1 ) ( 0.0095 0.00075 1 );
}
);
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class dictionary;
location "system";
object cellSetDict.3;
@ -19,7 +19,13 @@ name c0;
action new;
topoSetSources ( boxToCell { box ( 0.00475 -0.000375 -1 ) ( 0.009 0.000375 1 ) ; } );
topoSetSources
(
boxToCell
{
box ( 0.00475 -0.000375 -1 ) ( 0.009 0.000375 1 );
}
);
// ************************************************************************* //

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -7,6 +7,6 @@ application="compressibleInterFoam"
runApplication blockMesh
cp 0/alpha1.org 0/alpha1
cp 0/pd.org 0/pd
cp 0/p.org 0/p
runApplication setFields
runApplication $application

View File

@ -30,7 +30,7 @@ divSchemes
div(rho*phi,U) Gauss upwind;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression 1;
div(phi,pd) Gauss upwind;
div(phi,p) Gauss upwind;
div(phi,k) Gauss vanLeer;
div((nuEff*dev(grad(U).T()))) Gauss linear;
}
@ -53,7 +53,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
gamma;
}

View File

@ -45,7 +45,7 @@ solvers
solver diagonal;
}
pd
p
{
solver GAMG;
tolerance 1e-07;
@ -60,7 +60,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner

View File

@ -15,9 +15,33 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defaultFieldValues ( volScalarFieldValue alpha1 1 volScalarFieldValue pd 100000 );
defaultFieldValues
(
volScalarFieldValue alpha1 1
volScalarFieldValue p 100000
);
regions ( sphereToCell { centre ( 0.5 0.5 0 ) ; radius 0.1 ; fieldValues ( volScalarFieldValue alpha1 0 volScalarFieldValue pd 1000000 ) ; } boxToCell { box ( -10 1 -1 ) ( 10 10 1 ) ; fieldValues ( volScalarFieldValue alpha1 0 ) ; } );
regions
(
sphereToCell
{
centre ( 0.5 0.5 0 );
radius 0.1;
fieldValues
(
volScalarFieldValue alpha1 0
volScalarFieldValue p 1000000
);
}
boxToCell
{
box ( -10 1 -1 ) ( 10 10 1 );
fieldValues
(
volScalarFieldValue alpha1 0
);
}
);
// ************************************************************************* //

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd.org;
object p.org;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,4 +2,4 @@
foamCleanTutorials cases
rm -rf processor*
rm -rf 0/pd.gz 0/alpha1.gz
rm -rf 0/p.gz 0/alpha1.gz

View File

@ -7,7 +7,7 @@ application="compressibleInterFoam"
runApplication blockMesh
cp 0/alpha1.org 0/alpha1
cp 0/pd.org 0/pd
cp 0/p.org 0/p
runApplication setFields
runApplication decomposePar
hostname > system/machines

View File

@ -30,7 +30,7 @@ divSchemes
div(rho*phi,U) Gauss upwind;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression 1;
div(phi,pd) Gauss upwind;
div(phi,p) Gauss upwind;
div(phi,k) Gauss vanLeer;
div((nuEff*dev(grad(U).T()))) Gauss linear;
}
@ -53,7 +53,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
gamma;
}

View File

@ -45,7 +45,7 @@ solvers
solver diagonal;
}
pd
p
{
solver GAMG;
tolerance 1e-07;
@ -60,7 +60,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner

View File

@ -15,9 +15,33 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defaultFieldValues ( volScalarFieldValue alpha1 1 volScalarFieldValue pd 100000 );
defaultFieldValues
(
volScalarFieldValue alpha1 1
volScalarFieldValue p 100000
);
regions ( sphereToCell { centre ( 0.5 0.5 0.5 ) ; radius 0.1 ; fieldValues ( volScalarFieldValue alpha1 0 volScalarFieldValue pd 1000000 ) ; } boxToCell { box ( -10 1 -1 ) ( 10 10 1 ) ; fieldValues ( volScalarFieldValue alpha1 0 ) ; } );
regions
(
sphereToCell
{
centre ( 0.5 0.5 0.5 );
radius 0.1;
fieldValues
(
volScalarFieldValue alpha1 0
volScalarFieldValue p 1000000
);
}
boxToCell
{
box ( -10 1 -1 ) ( 10 10 1 );
fieldValues
(
volScalarFieldValue alpha1 0
);
}
);
// ************************************************************************* //

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -52,7 +52,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
alpha;
}

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-08;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner
@ -122,8 +122,7 @@ PISO
nAlphaSubCycles 3;
cAlpha 1;
pdRefPoint (0.51 0.51 0.51);
pdRefValue 0;
pRefPoint (0.51 0.51 0.51);
pRefValue 0;
}

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -54,7 +54,7 @@ functions
probes
{
type probes;
name probes;
functionObjectLibs ( "libsampling.so" );
outputControl timeStep;
outputInterval 1;
probeLocations

View File

@ -52,7 +52,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
alpha;
}

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-08;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner
@ -99,8 +99,7 @@ PISO
cAlpha 1.5;
correctPhi no;
pdRefPoint (0 0 0.15);
pdRefValue 0;
pRefPoint (0 0 0.15);
pRefValue 1e5;
}

View File

@ -25,7 +25,10 @@ regions
boxToCell
{
box ( -100 -100 -100 ) ( 100 100 0 );
fieldValues ( volScalarFieldValue alpha1 1 );
fieldValues
(
volScalarFieldValue alpha1 1
);
}
);

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -52,7 +52,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
alpha;
}

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-08;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner
@ -99,8 +99,7 @@ PISO
cAlpha 1.5;
correctPhi no;
pdRefPoint (0 0 0.15);
pdRefValue 0;
pRefPoint (0 0 0.15);
pRefValue 1e5;
}

View File

@ -25,7 +25,10 @@ regions
boxToCell
{
box ( -100 -100 -100 ) ( 100 100 0 );
fieldValues ( volScalarFieldValue alpha1 1 );
fieldValues
(
volScalarFieldValue alpha1 1
);
}
);

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -52,7 +52,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
alpha;
}

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-08;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner
@ -99,8 +99,7 @@ PISO
cAlpha 1.5;
correctPhi no;
pdRefPoint (0 0 0.15);
pdRefValue 0;
pRefPoint (0 0 0.15);
pRefValue 1e5;
}

View File

@ -25,7 +25,10 @@ regions
boxToCell
{
box ( -100 -100 -100 ) ( 100 100 0 );
fieldValues ( volScalarFieldValue alpha1 1 );
fieldValues
(
volScalarFieldValue alpha1 1
);
}
);

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -52,7 +52,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
alpha;
}

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-08;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner
@ -99,8 +99,7 @@ PISO
cAlpha 1.5;
correctPhi no;
pdRefPoint (0 0 0.15);
pdRefValue 0;
pRefPoint (0 0 0.15);
pRefValue 1e5;
}

View File

@ -25,7 +25,10 @@ regions
boxToCell
{
box ( -100 -100 -100 ) ( 100 100 0 );
fieldValues ( volScalarFieldValue alpha1 1 );
fieldValues
(
volScalarFieldValue alpha1 1
);
}
);

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -52,7 +52,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
alpha;
}

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-08;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner
@ -99,8 +99,7 @@ PISO
cAlpha 1.5;
correctPhi no;
pdRefPoint (0 0 0.15);
pdRefValue 0;
pRefPoint (0 0 0.15);
pRefValue 1e5;
}

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -52,7 +52,7 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
alpha1;
}

View File

@ -25,7 +25,7 @@ solvers
relTol 0;
}
pd
p
{
solver PCG;
preconditioner DIC;
@ -33,7 +33,7 @@ solvers
relTol 0.05;
}
pdFinal
pFinal
{
solver PCG;
preconditioner DIC;

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -56,9 +56,9 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
alpha1 ;
alpha;
}

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-07;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner

View File

@ -32,7 +32,7 @@ cloneCase damBreak damBreakFine
cd damBreakFine
# Modify case
setDamBreakFine
cp ../damBreak/0/gamma.org 0/gamma
cp ../damBreak/0/alpha1.org 0/alpha1
# And execute
runApplication blockMesh
runApplication setFields

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -38,7 +39,6 @@ boundaryField
atmosphere
{
type pressureInletOutletVelocity;
phi phi;
value uniform (0 0 0);
}
defaultFaces
@ -47,4 +47,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object gamma;
object alpha1;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object gamma;
object alpha1;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -24,28 +24,24 @@ boundaryField
leftWall
{
type epsilonWallFunction;
value uniform 0;
value uniform 0.1;
}
rightWall
{
type epsilonWallFunction;
value uniform 0;
value uniform 0.1;
}
lowerWall
{
type epsilonWallFunction;
value uniform 0;
value uniform 0.1;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
defaultFaces
{
type empty;

View File

@ -24,28 +24,24 @@ boundaryField
leftWall
{
type kQRWallFunction;
value uniform 0;
value uniform 0.1;
}
rightWall
{
type kQRWallFunction;
value uniform 0;
value uniform 0.1;
}
lowerWall
{
type kQRWallFunction;
value uniform 0;
value uniform 0.1;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0.1;
value uniform 0.1;
}
defaultFaces
{
type empty;

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -28,8 +28,8 @@ gradSchemes
divSchemes
{
div(rho*phi,U) Gauss linear;
div(phi,gamma) Gauss vanLeer;
div(phirb,gamma) Gauss interfaceCompression;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
@ -57,9 +57,9 @@ snGradSchemes
fluxRequired
{
default no;
pd ;
p;
pcorr;
gamma ;
alpha;
}

View File

@ -25,7 +25,7 @@ solvers
relTol 0;
}
pd
p
{
solver PCG;
preconditioner DIC;
@ -33,7 +33,7 @@ solvers
relTol 0.05;
}
pdFinal
pFinal
{
solver PCG;
preconditioner DIC;
@ -87,9 +87,9 @@ PISO
momentumPredictor no;
nCorrectors 3;
nNonOrthogonalCorrectors 0;
nGammaCorr 1;
nGammaSubCycles 4;
cGamma 2;
nAlphaCorr 1;
nAlphaSubCycles 4;
cAlpha 2;
}

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-07;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object pd;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -40,7 +40,7 @@ solvers
maxIter 100;
}
pd
p
{
solver GAMG;
tolerance 1e-07;
@ -55,7 +55,7 @@ solvers
mergeLevels 1;
}
pdFinal
pFinal
{
solver PCG;
preconditioner