From 75f132450f4e28e32e8cd720c4abb354baffe135 Mon Sep 17 00:00:00 2001 From: Daniel Queteschiner Date: Thu, 19 Sep 2019 15:48:05 +0200 Subject: [PATCH] use different controlDict for test harness runs original case runtime is too long for test harness execution --- .../R2_FB/CFD/system/controlDict_test | 229 ++++++++++++++++++ .../PolydisperseFluidizedBed/R2_FB/prerun.sh | 5 +- 2 files changed, 233 insertions(+), 1 deletion(-) create mode 100644 tutorials/cfdemSolverRhoPimpleChem/PolydisperseFluidizedBed/R2_FB/CFD/system/controlDict_test diff --git a/tutorials/cfdemSolverRhoPimpleChem/PolydisperseFluidizedBed/R2_FB/CFD/system/controlDict_test b/tutorials/cfdemSolverRhoPimpleChem/PolydisperseFluidizedBed/R2_FB/CFD/system/controlDict_test new file mode 100644 index 00000000..392d4c15 --- /dev/null +++ b/tutorials/cfdemSolverRhoPimpleChem/PolydisperseFluidizedBed/R2_FB/CFD/system/controlDict_test @@ -0,0 +1,229 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 2.3.0 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application cfdemSolverRhoPimpleChem; + +startFrom startTime; + +startTime 0.0; + +stopAt endTime; + +endTime 0.12; + +deltaT 0.00025; + +writeControl runTime; //timeStep; + +writeInterval 0.02; //5000; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 6; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable true; + +adjustTimeStep no; + +maxCo 0.5; + +maxDeltaT 0.1; + + +// ************************************************************************* // +libs +( + "libfieldFunctionObjects.so" +); + +functions +{ + moleFrac + { + type rhoReactionThermoMoleFractions; + } + + probes1 + { + type probes; + + functionObjectLibs ("libsampling.so"); + + #include "probesDict"; + } + + + fieldMinMax_T + { + type fieldMinMax; + libs ("libfieldFunctionObjects.so"); + fields (T); + // Report the location of the field extrema + location yes; + // Type of extrema for rank > 0 primitives + mode magnitude; // magnitude | component + } + + fieldMinMax_Cpv + { + type fieldMinMax; + libs ("libfieldFunctionObjects.so"); + fields (Cpv); + // Report the location of the field extrema + location yes; + // Type of extrema for rank > 0 primitives + mode magnitude; // magnitude | component + } + + fieldMinMax_partTemp + { + type fieldMinMax; + libs ("libfieldFunctionObjects.so"); + fields (partTemp); + location yes; + mode magnitude; + } + + globalMassFrac + { + type volRegion; + libs ("libfieldFunctionObjects.so"); + writeControl timeStep;//outputTime; + writeInterval 1; + log true; + writeFields false; + regionType all; + name c0; + operation weightedVolAverage; + weightField rhoeps; + fields + ( + H2 + H2O + CO2 + CO + N2 + ); + } + + globalMass + { + type volRegion; + libs ("libfieldFunctionObjects.so"); + writeControl timeStep;//outputTime; + writeInterval 1; + log true; + writeFields false; + regionType all; + name c1; + operation volIntegrate; + fields + ( + rhoeps + rho + ); + } + + inflow_GasSpecies + { + type surfaceRegion; + libs ("libfieldFunctionObjects.so"); + writeControl timeStep; + writeInterval 100; + log true; + // Output field values as well + writeFields false; + regionType patch; + name inlet; + operation sum;//areaIntegrate; + + fields + ( + CO + CO2 + H2 + H2O + N2 + ); + } + + inflow_phi + { + type surfaceRegion; + libs ("libfieldFunctionObjects.so"); + writeControl timeStep; + writeInterval 100; + log true; + // Output field values as well + writeFields false; + regionType patch; + name inlet; + operation sum;//areaIntegrate; + + fields + ( + phi + ); + } + + inflow_U + { + type surfaceRegion; + libs ("libfieldFunctionObjects.so"); + writeControl timeStep; + writeInterval 100; + log true; + // Output field values as well + writeFields false; + regionType patch; + name inlet; + operation sum;//areaIntegrate; + + fields + ( + U + ); + } + + outflow_GasSpecies + { + $inflow_GasSpecies; + name outlet; + } + + outflow_phi + { + $inflow_phi; + name outlet; + } + + outflow_U + { + $inflow_U; + name outlet; + } +} + +// ************************************************************************* // diff --git a/tutorials/cfdemSolverRhoPimpleChem/PolydisperseFluidizedBed/R2_FB/prerun.sh b/tutorials/cfdemSolverRhoPimpleChem/PolydisperseFluidizedBed/R2_FB/prerun.sh index 7b370ae7..981b75be 100755 --- a/tutorials/cfdemSolverRhoPimpleChem/PolydisperseFluidizedBed/R2_FB/prerun.sh +++ b/tutorials/cfdemSolverRhoPimpleChem/PolydisperseFluidizedBed/R2_FB/prerun.sh @@ -10,4 +10,7 @@ else echo "mesh needs to be built" cd $casePath/CFD blockMesh -fi \ No newline at end of file +fi + +# adapt settings for test harness run +cp $casePath/CFD/system/controlDict_test $casePath/CFD/system/controlDict