mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Up to date of flamePropagationWithObstacles tutorial
This commit is contained in:
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication changeDictionary
|
||||
runApplication setSet -batch makeBlockedFaceSet.setSet
|
||||
runApplication topoSet
|
||||
|
||||
runApplication PDRMesh
|
||||
|
||||
|
||||
@ -28,10 +28,10 @@ ignitionSites
|
||||
|
||||
{
|
||||
location (1.5 1.5 0.5);
|
||||
diameter 0.005;
|
||||
diameter 0.1;
|
||||
start 1E-05;
|
||||
duration 0.05;
|
||||
strength 10.0;
|
||||
strength 60.0;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@ -52,7 +52,7 @@ dynamicRefineFvMeshCoeffs
|
||||
// gets estimated from an interpolated volVectorField ('velocity')
|
||||
// First is name of the flux to adapt, second is velocity that will
|
||||
// be interpolated and inner-producted with the face area vector.
|
||||
correctFluxes ((phi U));
|
||||
correctFluxes ((phi rhoU) (phi_0 none));
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
faceSet blockedFacesSet new boxToFace (1 1 0.99) (2 2 1)
|
||||
cellSet blockedCellsSet new boxToCell (2.4 2.4 0) (3 3 1)
|
||||
cellSet blockedCellsSet add boxToCell (0 0 0) (0.6 0.6 1)
|
||||
faceSet blockedFacesSet add cellToFace blockedCellsSet all
|
||||
faceSet coupledFacesSet new boxToFace (1.0 1.99 0) (2.0 2.09 0.6)
|
||||
@ -47,7 +47,7 @@ runTimeModifiable yes;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 0.3;
|
||||
maxCo 0.2;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / O peration | Version: 2.0.0 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -22,13 +22,13 @@ solvers
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-05;
|
||||
relTol 0.1;
|
||||
relTol 0.01;
|
||||
};
|
||||
|
||||
rhoFinal
|
||||
{
|
||||
$rho;
|
||||
tolerance 1e-05;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
};
|
||||
|
||||
@ -37,7 +37,7 @@ solvers
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-6;
|
||||
relTol 0.1;
|
||||
relTol 0.01;
|
||||
};
|
||||
|
||||
pFinal
|
||||
@ -51,7 +51,7 @@ solvers
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-05;
|
||||
tolerance 1e-06;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ solvers
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-05;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,78 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 2.0.0 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object topoSetDict.1;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name blockedFacesSet;
|
||||
type faceSet;
|
||||
action new;
|
||||
source boxToFace;
|
||||
sourceInfo
|
||||
{
|
||||
box (1 1 0.99) (2 2 1);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name blockedCellsSet;
|
||||
type cellSet;
|
||||
action new;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (2.4 2.4 0) (3 3 1);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name blockedCellsSet;
|
||||
type cellSet;
|
||||
action add;
|
||||
source boxToCell;
|
||||
sourceInfo
|
||||
{
|
||||
box (0 0 0) (0.6 0.6 1);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name blockedFacesSet;
|
||||
type faceSet;
|
||||
action add;
|
||||
source cellToFace;
|
||||
sourceInfo
|
||||
{
|
||||
set blockedCellsSet;
|
||||
option all;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name coupledFacesSet;
|
||||
type faceSet;
|
||||
action new;
|
||||
source boxToFace;
|
||||
sourceInfo
|
||||
{
|
||||
box (1.0 1.99 0) (2.0 2.09 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user