Skip to content

Commit

Permalink
Update readme. Update IFF case to reflect the latest improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoumey committed Sep 24, 2021
1 parent 8cdbd7a commit 7ab6d99
Show file tree
Hide file tree
Showing 11 changed files with 253 additions and 25 deletions.
30 changes: 30 additions & 0 deletions validationCases/01_infinitelyFastFlame/0/T
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 300;

boundaryField
{
".*"
{
type calculated;
value uniform 300;
}
}

// ************************************************************************* //
30 changes: 30 additions & 0 deletions validationCases/01_infinitelyFastFlame/0/U
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
".*"
{
type calculated;
value uniform (0 0 0);
}
}

// ************************************************************************* //
30 changes: 30 additions & 0 deletions validationCases/01_infinitelyFastFlame/0/p
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 1e5;

boundaryField
{
".*"
{
type calculated;
value uniform 1e5;
}
}

// ************************************************************************* //
30 changes: 30 additions & 0 deletions validationCases/01_infinitelyFastFlame/0/p_rgh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 1e5;

boundaryField
{
".*"
{
type calculated;
value uniform 1e5;
}
}

// ************************************************************************* //
59 changes: 54 additions & 5 deletions validationCases/01_infinitelyFastFlame/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ startTime 0;

stopAt endTime;

endTime 10;
endTime 4;

deltaT 0.001;

writeControl adjustableRunTime;

writeInterval 0.01;
writeInterval 0.1;

purgeWrite 0;

Expand All @@ -50,7 +50,7 @@ maxCo 0.6;
// Maximum diffusion number
maxDi 10.0;

adjustTimeStep yes;
adjustTimeStep no;

libs
(
Expand All @@ -59,8 +59,57 @@ libs

functions
{
#includeFunc singleGraph1
#includeFunc singleGraph2
#includeFunc singleGraphFlame
#includeFunc singleGraphSolid

wallHeatFluxTSolid
{
type wallHeatFluxT;
libs ("libmyfieldFunctionObjects.so");
writeControl writeTime;
region solid;
patches (solid_to_flame);
}
wallHeatFluxTFlame
{
type wallHeatFluxT;
libs ("libmyfieldFunctionObjects.so");
writeControl writeTime;
region flame;
patches (flame_to_solid);
}
solidPatchProbeIntT
{
type patchProbes;
functionObjectLibs ("libfieldFunctionObjects.so");
writeControl writeTime;
region solid;
patchName solid_to_flame;
probeLocations
(
( 0.0 0.0 0.0)
);
fields
(
T
);
}
flamePatchProbeIntT
{
type patchProbes;
functionObjectLibs ("libfieldFunctionObjects.so");
writeControl writeTime;
region flame;
patchName flame_to_solid;
probeLocations
(
( 0.0 0.0 0.0)
);
fields
(
T
);
}
}

// ************************************************************************* //
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ FoamFile

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 16;
numberOfSubdomains 36;

method simple;

simpleCoeffs
{
n (16 1 1);
n (36 1 1);
delta 0.001;
}

Expand Down
13 changes: 6 additions & 7 deletions validationCases/01_infinitelyFastFlame/system/flame/fvSchemes
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FoamFile

ddtSchemes
{
default Euler;
default backward;
}

gradSchemes
Expand All @@ -27,13 +27,12 @@ gradSchemes
divSchemes
{
default none;

div(phi,U) Gauss upwind;
div(phi,U) Gauss linear;
div(phi,K) Gauss linear;
div(phi,h) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(phi,h) Gauss linear;
div(phi,k) Gauss linear;
div(phi,epsilon) Gauss linear;
div(phi,R) Gauss linear;
div(R) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
Expand Down
16 changes: 6 additions & 10 deletions validationCases/01_infinitelyFastFlame/system/flame/fvSolution
Original file line number Diff line number Diff line change
Expand Up @@ -23,39 +23,35 @@ solvers
tolerance 1e-7;
relTol 0.1;
}

rhoFinal
{
$rho;
tolerance 1e-7;
relTol 0;
}

p_rgh
{
solver GAMG; //PBiCGStab; //GAMG
tolerance 1e-7;
relTol 0.01;
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;

smoother GaussSeidel;

}

p_rghFinal
{
$p_rgh;
tolerance 1e-7;
tolerance 1e-9;
relTol 0;
}

"(U|h|k|epsilon|R)"
{
solver PBiCGStab;
preconditioner DILU;
tolerance 1e-7;
relTol 0.1;
}

"(U|h|k|epsilon|R)Final"
{
$U;
Expand All @@ -67,7 +63,7 @@ solvers
PIMPLE
{
momentumPredictor yes;
nCorrectors 2;
nCorrectors 5;
nNonOrthogonalCorrectors 0;
}

Expand Down
32 changes: 32 additions & 0 deletions validationCases/01_infinitelyFastFlame/system/singleGraphFlame
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Web: www.OpenFOAM.org
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Writes graph data for specified fields along a line, specified by start
and end points.
\*---------------------------------------------------------------------------*/

region flame;
start (0.0 0.0 0.0);
end (0.04 0.0 0.0);
fields (T);

// Sampling and I/O settings
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"

// Override settings here, e.g.
setConfig
{
type midPoint;
axis x;
}

// Must be last entry
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"

// ************************************************************************* //
32 changes: 32 additions & 0 deletions validationCases/01_infinitelyFastFlame/system/singleGraphSolid
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Web: www.OpenFOAM.org
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Writes graph data for specified fields along a line, specified by start
and end points.
\*---------------------------------------------------------------------------*/

region solid;
start (-0.04 0.0 0.0);
end ( 0.0 0.0 0.0);
fields (T);

// Sampling and I/O settings
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"

// Override settings here, e.g.
setConfig
{
type midPoint;
axis x;
}

// Must be last entry
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"

// ************************************************************************* //
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FoamFile

ddtSchemes
{
default Euler;
default backward;
}

gradSchemes
Expand Down

0 comments on commit 7ab6d99

Please sign in to comment.