mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated coalChemistryFoam tutorial case
This commit is contained in:
14
tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun
Executable file
14
tutorials/lagrangian/coalChemistryFoam/simplifiedSiwek/Allrun
Executable file
@ -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
|
||||||
@ -11,29 +11,21 @@ FoamFile
|
|||||||
format ascii;
|
format ascii;
|
||||||
class dictionary;
|
class dictionary;
|
||||||
location "constant";
|
location "constant";
|
||||||
object enthalpySourceProperties;
|
object energySourcesProperties;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
active yes;
|
(
|
||||||
|
source1
|
||||||
cellSource sphereToCell;
|
{
|
||||||
|
active true;
|
||||||
volumeType absolute;
|
timeStart 0.15;
|
||||||
|
duration 0.1;
|
||||||
timeStart 0.15;
|
selectionMode cellSet;
|
||||||
|
volumeMode absolute;
|
||||||
duration 0.1;
|
fieldData 10000;
|
||||||
|
cellSet ignitionCells;
|
||||||
onValue 10000;
|
}
|
||||||
|
);
|
||||||
offValue 0;
|
|
||||||
|
|
||||||
sphereToCellCoeffs
|
|
||||||
{
|
|
||||||
centre ( 0.125 0.375 0.05 );
|
|
||||||
radius 0.005;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
@ -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;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
Reference in New Issue
Block a user