diff --git a/validationCases/01_infinitelyFastFlame/0/T b/validationCases/01_infinitelyFastFlame/0/T new file mode 100644 index 0000000..1e188ed --- /dev/null +++ b/validationCases/01_infinitelyFastFlame/0/T @@ -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; + } +} + +// ************************************************************************* // diff --git a/validationCases/01_infinitelyFastFlame/0/U b/validationCases/01_infinitelyFastFlame/0/U new file mode 100644 index 0000000..27ae627 --- /dev/null +++ b/validationCases/01_infinitelyFastFlame/0/U @@ -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); + } +} + +// ************************************************************************* // diff --git a/validationCases/01_infinitelyFastFlame/0/p b/validationCases/01_infinitelyFastFlame/0/p new file mode 100644 index 0000000..85db8cc --- /dev/null +++ b/validationCases/01_infinitelyFastFlame/0/p @@ -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; + } +} + +// ************************************************************************* // diff --git a/validationCases/01_infinitelyFastFlame/0/p_rgh b/validationCases/01_infinitelyFastFlame/0/p_rgh new file mode 100644 index 0000000..a411086 --- /dev/null +++ b/validationCases/01_infinitelyFastFlame/0/p_rgh @@ -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; + } +} + +// ************************************************************************* // diff --git a/validationCases/01_infinitelyFastFlame/system/controlDict b/validationCases/01_infinitelyFastFlame/system/controlDict index 1015125..be1835b 100644 --- a/validationCases/01_infinitelyFastFlame/system/controlDict +++ b/validationCases/01_infinitelyFastFlame/system/controlDict @@ -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; @@ -50,7 +50,7 @@ maxCo 0.6; // Maximum diffusion number maxDi 10.0; -adjustTimeStep yes; +adjustTimeStep no; libs ( @@ -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 + ); + } } // ************************************************************************* // diff --git a/validationCases/01_infinitelyFastFlame/system/decomposeParDict b/validationCases/01_infinitelyFastFlame/system/decomposeParDict index ead3c10..cf8488d 100644 --- a/validationCases/01_infinitelyFastFlame/system/decomposeParDict +++ b/validationCases/01_infinitelyFastFlame/system/decomposeParDict @@ -17,13 +17,13 @@ FoamFile // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -numberOfSubdomains 16; +numberOfSubdomains 36; method simple; simpleCoeffs { - n (16 1 1); + n (36 1 1); delta 0.001; } diff --git a/validationCases/01_infinitelyFastFlame/system/flame/fvSchemes b/validationCases/01_infinitelyFastFlame/system/flame/fvSchemes index 35665e0..5029311 100644 --- a/validationCases/01_infinitelyFastFlame/system/flame/fvSchemes +++ b/validationCases/01_infinitelyFastFlame/system/flame/fvSchemes @@ -16,7 +16,7 @@ FoamFile ddtSchemes { - default Euler; + default backward; } gradSchemes @@ -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; } diff --git a/validationCases/01_infinitelyFastFlame/system/flame/fvSolution b/validationCases/01_infinitelyFastFlame/system/flame/fvSolution index b6d3ca0..a67056e 100644 --- a/validationCases/01_infinitelyFastFlame/system/flame/fvSolution +++ b/validationCases/01_infinitelyFastFlame/system/flame/fvSolution @@ -23,31 +23,28 @@ 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; @@ -55,7 +52,6 @@ solvers tolerance 1e-7; relTol 0.1; } - "(U|h|k|epsilon|R)Final" { $U; @@ -67,7 +63,7 @@ solvers PIMPLE { momentumPredictor yes; - nCorrectors 2; + nCorrectors 5; nNonOrthogonalCorrectors 0; } diff --git a/validationCases/01_infinitelyFastFlame/system/singleGraphFlame b/validationCases/01_infinitelyFastFlame/system/singleGraphFlame new file mode 100644 index 0000000..fd3a3ab --- /dev/null +++ b/validationCases/01_infinitelyFastFlame/system/singleGraphFlame @@ -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" + +// ************************************************************************* // diff --git a/validationCases/01_infinitelyFastFlame/system/singleGraphSolid b/validationCases/01_infinitelyFastFlame/system/singleGraphSolid new file mode 100644 index 0000000..18bed41 --- /dev/null +++ b/validationCases/01_infinitelyFastFlame/system/singleGraphSolid @@ -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" + +// ************************************************************************* // diff --git a/validationCases/01_infinitelyFastFlame/system/solid/fvSchemes b/validationCases/01_infinitelyFastFlame/system/solid/fvSchemes index e5250d7..9c52a49 100644 --- a/validationCases/01_infinitelyFastFlame/system/solid/fvSchemes +++ b/validationCases/01_infinitelyFastFlame/system/solid/fvSchemes @@ -16,7 +16,7 @@ FoamFile ddtSchemes { - default Euler; + default backward; } gradSchemes