diff --git a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun new file mode 100755 index 0000000000..945c8974df --- /dev/null +++ b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun @@ -0,0 +1,14 @@ +#!/bin/sh + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +application=`getApplication` + +# create mesh +runApplication blockMesh + +# create ignition cells cellSet +runApplication cellSet + +runApplication $application diff --git a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/enthalpySourceProperties b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/energySourceProperties similarity index 73% rename from tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/enthalpySourceProperties rename to tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/energySourceProperties index 4db0ca8f40..b2f981a920 100644 --- a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/enthalpySourceProperties +++ b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/constant/energySourceProperties @@ -11,29 +11,21 @@ FoamFile format ascii; class dictionary; location "constant"; - object enthalpySourceProperties; + object energySourcesProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -active yes; - -cellSource sphereToCell; - -volumeType absolute; - -timeStart 0.15; - -duration 0.1; - -onValue 10000; - -offValue 0; - -sphereToCellCoeffs -{ - centre ( 0.125 0.375 0.05 ); - radius 0.005; -} - +( + source1 + { + active true; + timeStart 0.15; + duration 0.1; + selectionMode cellSet; + volumeMode absolute; + fieldData 10000; + cellSet ignitionCells; + } +); // ************************************************************************* // diff --git a/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/system/cellSetDict b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/system/cellSetDict new file mode 100644 index 0000000000..bd2802d8bd --- /dev/null +++ b/tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/system/cellSetDict @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object cellSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name ignitionCells; + +action new; + +topoSetSources +( + sphereToCell + { + centre ( 0.125 0.375 0.05 ); + radius 0.005; + } +); + + +// ************************************************************************* //