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 floor
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
ceiling ceiling
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
fixedWalls fixedWalls
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
box box
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; 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; default none;
laplacian(muEff,U) Gauss linear corrected; 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(alphaEff,h) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected; laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected; laplacian(DepsilonEff,epsilon) Gauss linear corrected;
@ -62,7 +62,7 @@ snGradSchemes
fluxRequired fluxRequired
{ {
default no; default no;
pd ; p;
} }

View File

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

View File

@ -22,25 +22,25 @@ boundaryField
{ {
floor floor
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
ceiling ceiling
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
fixedWalls fixedWalls
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
box box
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; 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; default none;
laplacian(muEff,U) Gauss linear corrected; 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(alphaEff,h) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected; laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected; laplacian(DepsilonEff,epsilon) Gauss linear corrected;
@ -63,7 +63,7 @@ snGradSchemes
fluxRequired fluxRequired
{ {
default no; default no;
pd ; p;
} }

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,7 @@
FoamFile FoamFile
{ {
version 2.0; version 2.0;
format binary; format ascii;
class dictionary; class dictionary;
location "system"; location "system";
object cellSetDict.1; object cellSetDict.1;
@ -19,7 +19,13 @@ name c0;
action new; 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 FoamFile
{ {
version 2.0; version 2.0;
format binary; format ascii;
class dictionary; class dictionary;
location "system"; location "system";
object cellSetDict.2; object cellSetDict.2;
@ -19,7 +19,13 @@ name c0;
action new; 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 FoamFile
{ {
version 2.0; version 2.0;
format binary; format ascii;
class dictionary; class dictionary;
location "system"; location "system";
object cellSetDict.3; object cellSetDict.3;
@ -19,7 +19,13 @@ name c0;
action new; 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 FoamFile
{ {
version 2.0; version 2.0;
format binary; format ascii;
class dictionary; class dictionary;
location "system"; location "system";
object cellSetDict.1; object cellSetDict.1;
@ -19,7 +19,13 @@ name c0;
action new; 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 FoamFile
{ {
version 2.0; version 2.0;
format binary; format ascii;
class dictionary; class dictionary;
location "system"; location "system";
object cellSetDict.2; object cellSetDict.2;
@ -19,7 +19,13 @@ name c0;
action new; 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 FoamFile
{ {
version 2.0; version 2.0;
format binary; format ascii;
class dictionary; class dictionary;
location "system"; location "system";
object cellSetDict.3; object cellSetDict.3;
@ -19,7 +19,13 @@ name c0;
action new; 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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object pd; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

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

View File

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

View File

@ -45,7 +45,7 @@ solvers
solver diagonal; solver diagonal;
} }
pd p
{ {
solver GAMG; solver GAMG;
tolerance 1e-07; tolerance 1e-07;
@ -60,7 +60,7 @@ solvers
mergeLevels 1; mergeLevels 1;
} }
pdFinal pFinal
{ {
solver PCG; solver PCG;
preconditioner 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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object pd.org; object p.org;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,4 +2,4 @@
foamCleanTutorials cases foamCleanTutorials cases
rm -rf processor* 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 runApplication blockMesh
cp 0/alpha1.org 0/alpha1 cp 0/alpha1.org 0/alpha1
cp 0/pd.org 0/pd cp 0/p.org 0/p
runApplication setFields runApplication setFields
runApplication decomposePar runApplication decomposePar
hostname > system/machines hostname > system/machines

View File

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

View File

@ -45,7 +45,7 @@ solvers
solver diagonal; solver diagonal;
} }
pd p
{ {
solver GAMG; solver GAMG;
tolerance 1e-07; tolerance 1e-07;
@ -60,7 +60,7 @@ solvers
mergeLevels 1; mergeLevels 1;
} }
pdFinal pFinal
{ {
solver PCG; solver PCG;
preconditioner 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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object pd; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -25,7 +25,10 @@ regions
boxToCell boxToCell
{ {
box ( -100 -100 -100 ) ( 100 100 0 ); 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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object pd; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

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

View File

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

View File

@ -25,7 +25,10 @@ regions
boxToCell boxToCell
{ {
box ( -100 -100 -100 ) ( 100 100 0 ); 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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object pd; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

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

View File

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

View File

@ -25,7 +25,10 @@ regions
boxToCell boxToCell
{ {
box ( -100 -100 -100 ) ( 100 100 0 ); 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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object pd; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

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

View File

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

View File

@ -25,7 +25,10 @@ regions
boxToCell boxToCell
{ {
box ( -100 -100 -100 ) ( 100 100 0 ); 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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object pd; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
/*--------------------------------*- 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
version 2.0; version 2.0;
format ascii; format ascii;
class volVectorField; class volVectorField;
location "0";
object U; object U;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -38,7 +39,6 @@ boundaryField
atmosphere atmosphere
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
phi phi;
value uniform (0 0 0); value uniform (0 0 0);
} }
defaultFaces defaultFaces
@ -47,4 +47,5 @@ boundaryField
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

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

View File

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

View File

@ -15,7 +15,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ]; dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.1; internalField uniform 0.1;
@ -24,28 +24,24 @@ boundaryField
leftWall leftWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0; value uniform 0.1;
} }
rightWall rightWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0; value uniform 0.1;
} }
lowerWall lowerWall
{ {
type epsilonWallFunction; type epsilonWallFunction;
value uniform 0; value uniform 0.1;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.1; inletValue uniform 0.1;
value uniform 0.1; value uniform 0.1;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

@ -15,7 +15,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ]; dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.1; internalField uniform 0.1;
@ -24,28 +24,24 @@ boundaryField
leftWall leftWall
{ {
type kQRWallFunction; type kQRWallFunction;
value uniform 0; value uniform 0.1;
} }
rightWall rightWall
{ {
type kQRWallFunction; type kQRWallFunction;
value uniform 0; value uniform 0.1;
} }
lowerWall lowerWall
{ {
type kQRWallFunction; type kQRWallFunction;
value uniform 0; value uniform 0.1;
} }
atmosphere atmosphere
{ {
type inletOutlet; type inletOutlet;
inletValue uniform 0.1; inletValue uniform 0.1;
value uniform 0.1; value uniform 0.1;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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