From d3b35b6e1b66c96aeee66021f7023610a2bd322b Mon Sep 17 00:00:00 2001 From: Julian Toumey Date: Fri, 24 Sep 2021 11:45:28 -0400 Subject: [PATCH] Updated FWI case with latest developments--second order spatial schemes etc. --- .../ofCaseSetup/Allrun | 14 ++++---- .../ofCaseSetup/system/blockMeshDict | 2 +- .../ofCaseSetup/system/controlDict | 33 ++++++++++++++++--- .../ofCaseSetup/system/decomposeParDict | 4 +-- .../ofCaseSetup/system/flame/fvSolution | 9 ++++- 5 files changed, 46 insertions(+), 16 deletions(-) diff --git a/validationCases/02_flameWallInteraction/ofCaseSetup/Allrun b/validationCases/02_flameWallInteraction/ofCaseSetup/Allrun index 66fbc71..aac85a4 100755 --- a/validationCases/02_flameWallInteraction/ofCaseSetup/Allrun +++ b/validationCases/02_flameWallInteraction/ofCaseSetup/Allrun @@ -25,21 +25,21 @@ done runApplication setFields -region flame #-- Run on single processor -runApplication `getApplication` +#runApplication `getApplication` # Decompose -#runApplication decomposePar -allRegions +runApplication decomposePar -allRegions # Run #runParallel `getApplication` # Reconstruct -runApplication reconstructPar -allRegions +#runApplication reconstructPar -allRegions -echo -echo "creating files for paraview post-processing" -echo -paraFoam -touchAll +#echo +#echo "creating files for paraview post-processing" +#echo +#paraFoam -touchAll #------------------------------------------------------------------------------ diff --git a/validationCases/02_flameWallInteraction/ofCaseSetup/system/blockMeshDict b/validationCases/02_flameWallInteraction/ofCaseSetup/system/blockMeshDict index 1d3b1df..c8a5779 100644 --- a/validationCases/02_flameWallInteraction/ofCaseSetup/system/blockMeshDict +++ b/validationCases/02_flameWallInteraction/ofCaseSetup/system/blockMeshDict @@ -39,7 +39,7 @@ vertices blocks ( hex (0 1 2 3 4 5 6 7) - (2000 1 1) + (20000 1 1) simpleGrading ( 1 diff --git a/validationCases/02_flameWallInteraction/ofCaseSetup/system/controlDict b/validationCases/02_flameWallInteraction/ofCaseSetup/system/controlDict index a9be6cd..ee234a9 100644 --- a/validationCases/02_flameWallInteraction/ofCaseSetup/system/controlDict +++ b/validationCases/02_flameWallInteraction/ofCaseSetup/system/controlDict @@ -23,9 +23,9 @@ startTime 0; stopAt endTime; -endTime 20; +endTime 1.5; -deltaT 1e-6; +deltaT 1e-7; writeControl adjustableRunTime; @@ -50,16 +50,37 @@ maxCo 0.6; // Maximum diffusion number maxDi 10.0; -adjustTimeStep yes; +adjustTimeStep no; + +libs +( + "libfieldFunctionObjects.so" +); functions { -/* + wallHeatFluxSolid + { + type wallHeatFlux; + libs ("libmyfieldFunctionObjects.so"); + region solid; + writeControl writeTime; + patches (solid_to_flame); + } + wallHeatFluxFlame + { + type wallHeatFlux; + libs ("libmyfieldFunctionObjects.so"); + region flame; + writeControl writeTime; + patches (flame_to_solid); + } wallHeatFluxTSolid { type wallHeatFluxT; libs ("libmyfieldFunctionObjects.so"); region solid; + writeControl writeTime; patches (solid_to_flame); } wallHeatFluxTFlame @@ -67,6 +88,7 @@ functions type wallHeatFluxT; libs ("libmyfieldFunctionObjects.so"); region flame; + writeControl writeTime; patches (flame_to_solid); } solidPatchProbeIntT @@ -76,6 +98,7 @@ functions functionObjectLibs ("libfieldFunctionObjects.so"); region solid; + writeControl writeTime; patchName solid_to_flame; @@ -96,6 +119,7 @@ functions functionObjectLibs ("libfieldFunctionObjects.so"); region flame; + writeControl writeTime; patchName flame_to_solid; @@ -109,7 +133,6 @@ functions T ); } -*/ } // ************************************************************************* // diff --git a/validationCases/02_flameWallInteraction/ofCaseSetup/system/decomposeParDict b/validationCases/02_flameWallInteraction/ofCaseSetup/system/decomposeParDict index ead3c10..5a6bd56 100644 --- a/validationCases/02_flameWallInteraction/ofCaseSetup/system/decomposeParDict +++ b/validationCases/02_flameWallInteraction/ofCaseSetup/system/decomposeParDict @@ -17,13 +17,13 @@ FoamFile // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -numberOfSubdomains 16; +numberOfSubdomains 8; method simple; simpleCoeffs { - n (16 1 1); + n (8 1 1); delta 0.001; } diff --git a/validationCases/02_flameWallInteraction/ofCaseSetup/system/flame/fvSolution b/validationCases/02_flameWallInteraction/ofCaseSetup/system/flame/fvSolution index 9ab9ca5..52b1e8d 100644 --- a/validationCases/02_flameWallInteraction/ofCaseSetup/system/flame/fvSolution +++ b/validationCases/02_flameWallInteraction/ofCaseSetup/system/flame/fvSolution @@ -27,7 +27,8 @@ solvers p { - solver GAMG; + solver PCG; + preconditioner DIC; tolerance 1e-9; relTol 0.01; smoother GaussSeidel; @@ -95,6 +96,12 @@ PIMPLE relaxationFactors { + fields + { + p 0.9; + pFinal 1; + } + equations { "h.*" 1;