Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev

This commit is contained in:
mattijs
2011-07-19 22:09:26 +01:00
203 changed files with 5491 additions and 35394 deletions

View File

@ -15,15 +15,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1;
combustionModel PaSR<psiChemistryCombustionModel>;
ignitionProperties1
active true;
PaSRCoeffs
{
ignite on;
ignitionPoint ignitionPoint [ 0 1 0 0 0 0 0 ] ( 0.2 0 0.02 );
timing timing [ 0 0 1 0 0 0 0 ] 0;
duration duration [ 0 0 1 0 0 0 0 ] 1;
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1;
turbulentReaction on;
}
// ************************************************************************* //

View File

@ -15,7 +15,9 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel infinitelyFastChemistry;
combustionModel infinitelyFastChemistry<psiCombustionModel,gasThermoPhysics>;
active true;
infinitelyFastChemistryCoeffs
{

View File

@ -0,0 +1,53 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
outlet
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
sides
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
base
{
type zeroGradient;
}
inlet
{
type fixedValue;
value uniform 0.0;
}
frontBack
{
type empty;
}
}
// ************************************************************************* //

View File

@ -15,16 +15,44 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel infinitelyFastChemistry;
//combustionModel infinitelyFastChemistry<psiCombustionModel,gasThermoPhysics>;
combustionModel FSD<psiCombustionModel,gasThermoPhysics>;
active true;
infinitelyFastChemistryCoeffs
{
C 10.0;
C 5.0;
}
noCombustionCoeffs
FSDCoeffs
{
}
Cv 0.1;
ftVarMin 1e-2;
reactionRateFlameArea relaxation;
fuel Methane;
relaxationCoeffs
{
C 2.0;
alpha 1.0;
Methane
{
omega0 0.5;
eta -0.013;
omegaMin 0.01;
sigmaExt 470;
}
Propane
{
omega0 0.4;
eta -0.00656;
omegaMin 0.01;
sigmaExt 450;
}
}
}
// ************************************************************************* //

View File

@ -15,31 +15,37 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
4
5
(
base
{
type patch;
nFaces 150;
nFaces 134;
startFace 44700;
}
outlet
{
type patch;
nFaces 150;
startFace 44850;
startFace 44834;
}
sides
{
type patch;
nFaces 300;
startFace 45000;
startFace 44984;
}
frontAndBack
{
type empty;
nFaces 45000;
startFace 45300;
startFace 45284;
}
inlet
{
type patch;
nFaces 16;
startFace 90284;
}
)

View File

@ -12,6 +12,6 @@ reactions
propaneReaction
{
type irreversibleinfiniteReaction;
reaction "CH4 + 2O2 = CO2 + 2H2O";
reaction "CH4 + 2O2 + 7.5N2 = CO2 + 2H2O + 7.5N2";
}
}

View File

@ -40,7 +40,9 @@ divSchemes
hs limitedLinear 1;
};
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(phi,omega) Gauss limitedLinear 1;
div(phiU,p) Gauss linear;
div(U) Gauss linear;
div(Ji,Ii_h) Gauss upwind;
}

View File

@ -53,7 +53,7 @@ solvers
};
"(U|Yi|k|hs)"
"(U|Yi|k|hs|omega)"
{
solver PBiCG;
preconditioner DILU;
@ -62,7 +62,7 @@ solvers
nSweeps 1;
};
"(U|Yi|k|hs)Final"
"(U|Yi|k|hs|omega)Final"
{
$U;
tolerance 1e-7;

View File

@ -16,16 +16,14 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel infinitelyFastChemistry;
combustionModel infinitelyFastChemistry<psiCombustionModel,gasThermoPhysics>;
active on;
infinitelyFastChemistryCoeffs
{
C 5.0;
}
noCombustionCoeffs
{
}
// ************************************************************************* //

View File

@ -12,6 +12,6 @@ reactions
propaneReaction
{
type irreversibleinfiniteReaction;
reaction "CH4 + 2O2 = CO2 + 2H2O";
reaction "CH4 + 2O2 + 7.5N2 = CO2 + 2H2O + 7.5N2";
}
}

View File

@ -23,8 +23,6 @@ chemistrySolver ode;
initialChemicalTimeStep 1e-07;
turbulentReaction on;
sequentialCoeffs
{
cTauChem 0.001;
@ -43,6 +41,4 @@ odeCoeffs
scale 1;
}
Cmix Cmix [ 0 0 0 0 0 0 0 ] 0.1;
// ************************************************************************* //

View File

@ -0,0 +1,34 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<psiChemistryCombustionModel>;
active true;
infinitelyFastChemistryCoeffs
{
C 10.0;
}
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 0.1;
turbulentReaction on;
}
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
convertToMeters 0.1;
vertices
vertices
(
(0 0 0)
(1 0 0)
@ -28,19 +28,18 @@ vertices
(0 1 0.1)
);
blocks
blocks
(
hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1)
);
edges
edges
(
);
boundary
(
movingWall
movingWall
{
type wall;
faces
@ -48,7 +47,7 @@ boundary
(3 7 6 2)
);
}
fixedWalls
fixedWalls
{
type wall;
faces
@ -58,7 +57,7 @@ boundary
(1 5 4 0)
);
}
frontAndBack
frontAndBack
{
type empty;
faces
@ -69,7 +68,7 @@ boundary
}
);
mergePatchPairs
mergePatchPairs
(
);

View File

@ -25,8 +25,4 @@ chemCalcFreq 1;
initialChemicalTimeStep 1e-8; // NOT USED
Cmix Cmix [ 0 0 0 0 0 0 0 ] 0.1;
turbulentReaction on;
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustionModel>;
active true;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 0.1;
turbulentReaction on;
useReactionRate true;
}
// ************************************************************************* //

View File

@ -19,9 +19,6 @@ rhoChemistryModel ODEChemistryModel<icoPoly8ThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver noChemistrySolver;
initialChemicalTimeStep 1e-07; // NOT USED

View File

@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 0.1;
turbulentReaction off;
useReactionRate true;
}
// ************************************************************************* //

View File

@ -19,8 +19,6 @@ psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
chemistry on;
turbulentReaction on;
chemistrySolver ode;
initialChemicalTimeStep 1e-07;
@ -44,7 +42,5 @@ odeCoeffs
scale 1;
}
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1;
// ************************************************************************* //

View File

@ -11,19 +11,20 @@ FoamFile
format ascii;
class dictionary;
location "constant";
object chemistryProperties;
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
combustionModel PaSR<psiChemistryCombustionModel>;
chemistry off;
active true;
turbulentReaction off;
chemistrySolver noChemistrySolver;
initialChemicalTimeStep 1e-07;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction on;
}
// ************************************************************************* //

View File

@ -19,8 +19,6 @@ rhoChemistryModel ODEChemistryModel<icoPoly8ThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver ode;
initialChemicalTimeStep 1e-07;
@ -44,7 +42,5 @@ odeCoeffs
scale 1;
}
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1;
// ************************************************************************* //

View File

@ -11,19 +11,19 @@ FoamFile
format ascii;
class dictionary;
location "constant";
object chemistryProperties;
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
combustionModel PaSR<rhoChemistryCombustionModel>;
chemistry off;
active false;
turbulentReaction off;
chemistrySolver noChemistrySolver;
initialChemicalTimeStep 1e-07;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction off;
}
// ************************************************************************* //

View File

@ -19,8 +19,6 @@ rhoChemistryModel ODEChemistryModel<icoPoly8ThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver ode;
initialChemicalTimeStep 1e-07;
@ -44,7 +42,5 @@ odeCoeffs
scale 1;
}
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1;
// ************************************************************************* //

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction off;
}
// ************************************************************************* //

View File

@ -19,8 +19,6 @@ rhoChemistryModel ODEChemistryModel<icoPoly8ThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver ode;
initialChemicalTimeStep 1e-07;
@ -44,7 +42,5 @@ odeCoeffs
scale 1;
}
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1;
// ************************************************************************* //

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction off;
}
// ************************************************************************* //

View File

@ -19,8 +19,6 @@ psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver noChemistrySolver;
initialChemicalTimeStep 1e-07;

View File

@ -15,7 +15,15 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel none;
combustionModel PaSR<psiChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction on;
}
// ************************************************************************* //

View File

@ -19,8 +19,6 @@ psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver noChemistrySolver;
initialChemicalTimeStep 1e-07;

View File

@ -15,7 +15,15 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel none;
combustionModel PaSR<psiChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction off;
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
faceSet cubeFaces clear
faceSet cubeFaces add boxToFace (0.399 0.099 0.299) (0.601 0.301 0.301)
faceSet cubeFaces add boxToFace (0.599 0.099 0.099) (0.601 0.301 0.301)
faceSet cubeFaces add boxToFace (0.399 0.099 0.099) (0.601 0.301 0.101)
faceSet cubeFaces add boxToFace (0.399 0.099 0.099) (0.401 0.301 0.301)
faceSet cubeFaces add boxToFace (0.399 0.299 0.099) (0.601 0.301 0.301)
faceSet cubeFaces add boxToFace (0.399 0.099 0.099) (0.601 0.101 0.301)
faceSet cubeFaces add boxToFace (0.399 0.099 0.599) (0.601 0.301 0.601)
faceSet cubeFaces add boxToFace (0.599 0.099 0.399) (0.601 0.301 0.601)
faceSet cubeFaces add boxToFace (0.399 0.099 0.399) (0.601 0.301 0.401)
faceSet cubeFaces add boxToFace (0.399 0.099 0.399) (0.401 0.301 0.601)
faceSet cubeFaces add boxToFace (0.399 0.299 0.399) (0.601 0.301 0.601)
faceSet cubeFaces add boxToFace (0.399 0.099 0.399) (0.601 0.101 0.601)
faceSet cubeFaces add boxToFace (0.399 0.399 0.299) (0.601 0.601 0.301)
faceSet cubeFaces add boxToFace (0.599 0.399 0.099) (0.601 0.601 0.301)
faceSet cubeFaces add boxToFace (0.399 0.399 0.099) (0.601 0.601 0.101)
faceSet cubeFaces add boxToFace (0.399 0.399 0.099) (0.401 0.601 0.301)
faceSet cubeFaces add boxToFace (0.399 0.599 0.099) (0.601 0.601 0.301)
faceSet cubeFaces add boxToFace (0.399 0.399 0.099) (0.601 0.401 0.301)
faceSet cubeFaces add boxToFace (0.399 0.399 0.599) (0.601 0.601 0.601)
faceSet cubeFaces add boxToFace (0.599 0.399 0.399) (0.601 0.601 0.601)
faceSet cubeFaces add boxToFace (0.399 0.399 0.399) (0.601 0.601 0.401)
faceSet cubeFaces add boxToFace (0.399 0.399 0.399) (0.401 0.601 0.601)
faceSet cubeFaces add boxToFace (0.399 0.599 0.399) (0.601 0.601 0.601)
faceSet cubeFaces add boxToFace (0.399 0.399 0.399) (0.601 0.401 0.601)
cellSet cubeFacesCells new faceToCell cubeFaces owner
faceZoneSet cubeFaces new setsToFaceZone cubeFaces cubeFacesCells
faceSet floorFaces new boxToFace (-0.001 -0.001 -0.001) (1.001 1.001 0.001)
cellSet floorCells new faceToCell floorFaces owner
faceZoneSet floorFaces new setsToFaceZone floorFaces floorCells

View File

@ -19,8 +19,6 @@ psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver noChemistrySolver;
initialChemicalTimeStep 1e-07;

View File

@ -15,7 +15,15 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel none;
combustionModel PaSR<psiChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction off;
}
// ************************************************************************* //

View File

@ -19,8 +19,6 @@ psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver noChemistrySolver;
initialChemicalTimeStep 1e-07;

View File

@ -15,7 +15,15 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel none;
combustionModel PaSR<psiChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction off;
}
// ************************************************************************* //

View File

@ -19,8 +19,6 @@ psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
chemistry off;
turbulentReaction off;
chemistrySolver ode;
initialChemicalTimeStep 1e-07;
@ -43,7 +41,5 @@ odeCoeffs
scale 1;
}
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1;
// ************************************************************************* //

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<psiChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction off;
}
// ************************************************************************* //

View File

@ -23,10 +23,6 @@ chemistrySolver ode;
initialChemicalTimeStep 1e-07;
turbulentReaction yes;
Cmix Cmix [0 0 0 0 0] 1;
odeCoeffs
{
solver SIBS;

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object combustionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<psiChemistryCombustionModel>;
active false;
PaSRCoeffs
{
Cmix Cmix [ 0 0 0 0 0 0 0 ] 1.0;
turbulentReaction yes;
}
// ************************************************************************* //

View File

@ -119,7 +119,7 @@ subModels
position ( 0 0.0995 0 );
direction ( 0 -1 0 );
parcelsPerSecond 100000000;
volumeFlowRate table
flowRateProfile table
(
(0 0.1272)
(4.16667e-05 6.1634)

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
left
{
type slip;
}
right
{
type slip;
}
bottom
{
type slip;
}
top
{
type slip;
}
frontBack
{
type empty;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object alpha1;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
boundaryField
{
left
{
type zeroGradient;
}
right
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
top
{
type zeroGradient;
}
frontBack
{
type empty;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
left
{
type buoyantPressure;
}
right
{
type buoyantPressure;
}
bottom
{
type buoyantPressure;
}
top
{
type buoyantPressure;
}
frontBack
{
type empty;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
\rm -rf 0
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,17 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set application name
application=`getApplication`
\rm -rf 0
cp -r 0.org 0
runApplication blockMesh
runApplication setFields
runApplication $application
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];
value (0 -9.81 0);
// ************************************************************************* //

View File

@ -0,0 +1,88 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1;
vertices
(
(0 0 0)
(10 0 0)
(10 2 0)
(0 2 0)
(0 0 2)
(10 0 2)
(10 2 2)
(0 2 2));
blocks
(
hex (0 1 2 3 4 5 6 7) (200 40 1) simpleGrading (1 1 1)
);
edges
(
);
boundary
(
left
{
type wall;
faces
(
(0 4 7 3)
);
}
right
{
type wall;
faces
(
(1 5 6 2)
);
}
bottom
{
type wall;
faces
(
(0 1 5 4)
);
}
top
{
type wall;
faces
(
(3 2 6 7)
);
}
frontBack
{
type empty;
faces
(
(0 1 2 3)
(4 5 6 7)
);
}
);
mergePatchPairs
(
);
// ************************************************************************* //

View File

@ -0,0 +1,52 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5
(
left
{
type wall;
nFaces 40;
startFace 15760;
}
right
{
type wall;
nFaces 40;
startFace 15800;
}
bottom
{
type wall;
nFaces 200;
startFace 15840;
}
top
{
type wall;
nFaces 200;
startFace 16040;
}
frontBack
{
type empty;
nFaces 16000;
startFace 16240;
}
)
// ************************************************************************* //

View File

@ -0,0 +1,35 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Dab Dab [0 2 -1 0 0 0 0] 1e-06;
alphatab alphatab [0 0 0 0 0 0 0] 1;
phase1
{
transportModel Newtonian;
nu nu [0 2 -1 0 0 0 0] 1e-06;
rho rho [1 -3 0 0 0 0 0] 1000;
}
phase2
{
transportModel Newtonian;
nu nu [0 2 -1 0 0 0 0] 1e-06;
rho rho [1 -3 0 0 0 0 0] 990;
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
// ************************************************************************* //

View File

@ -0,0 +1,53 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application twoLiquidMixingFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 100;
deltaT 0.05;
writeControl adjustableRunTime;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep on;
maxCo 0.5;
maxDeltaT 1;
// ************************************************************************* //

View File

@ -0,0 +1,62 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(rho*phi,U) Gauss linear;
div(phi,alpha1) Gauss vanLeer;
div(phi,k) Gauss limitedLinear 1;
div(((rho*nuEff)*dev(grad(U).T()))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p_rgh;
alpha1;
}
// ************************************************************************* //

View File

@ -0,0 +1,74 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
"alpha1.*"
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-7;
relTol 0;
nSweeps 1;
}
p_rgh
{
solver GAMG;
tolerance 1e-7;
relTol 0.01;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}
p_rghFinal
{
$p_rgh;
relTol 0;
}
U
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-7;
relTol 0.1;
nSweeps 1;
}
UFinal
{
$U;
relTol 0;
}
}
PIMPLE
{
momentumPredictor yes;
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
pRefValue 0;
pRefPoint (0.1 0.1 1);
}
// ************************************************************************* //

View File

@ -0,0 +1,36 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defaultFieldValues
(
volScalarFieldValue alpha1 0
volVectorFieldValue U (0 0 0)
);
regions
(
boxToCell
{
box (0 0 0) (5 2 2);
fieldValues
(
volScalarFieldValue alpha1 1
);
}
);
// ************************************************************************* //