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:
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 -1 0 0 0 0 0 ];
|
dimensions [ 0 -1 0 0 0 0 0 ];
|
||||||
|
|
||||||
internalField nonuniform List<scalar>
|
internalField nonuniform List<scalar>
|
||||||
8025
|
8025
|
||||||
(
|
(
|
||||||
18.372496
|
18.372496
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 0 0 0 0 0 0 ];
|
dimensions [ 0 0 0 0 0 0 0 ];
|
||||||
|
|
||||||
internalField nonuniform List<symmTensor>
|
internalField nonuniform List<symmTensor>
|
||||||
8025
|
8025
|
||||||
(
|
(
|
||||||
(1.785697 0 0 1.785697 0 1.875)
|
(1.785697 0 0 1.785697 0 1.875)
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 -1 0 0 0 0 0 ];
|
dimensions [ 0 -1 0 0 0 0 0 ];
|
||||||
|
|
||||||
internalField nonuniform List<symmTensor>
|
internalField nonuniform List<symmTensor>
|
||||||
8025
|
8025
|
||||||
(
|
(
|
||||||
(98.997697 0 0 77.711245 0 30.754852)
|
(98.997697 0 0 77.711245 0 30.754852)
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 -1 0 0 0 0 0 ];
|
dimensions [ 0 -1 0 0 0 0 0 ];
|
||||||
|
|
||||||
internalField nonuniform List<symmTensor>
|
internalField nonuniform List<symmTensor>
|
||||||
8025
|
8025
|
||||||
(
|
(
|
||||||
(4.501854 0 0 3.437531 0 1.537743)
|
(4.501854 0 0 3.437531 0 1.537743)
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 1 0 0 0 0 0 ];
|
dimensions [ 0 1 0 0 0 0 0 ];
|
||||||
|
|
||||||
internalField nonuniform List<scalar>
|
internalField nonuniform List<scalar>
|
||||||
8025
|
8025
|
||||||
(
|
(
|
||||||
0.2
|
0.2
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 0 0 0 0 0 0 ];
|
dimensions [ 0 0 0 0 0 0 0 ];
|
||||||
|
|
||||||
internalField nonuniform List<scalar>
|
internalField nonuniform List<scalar>
|
||||||
8025
|
8025
|
||||||
(
|
(
|
||||||
2.019581
|
2.019581
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 0 0 0 0 0 0 ];
|
dimensions [ 0 0 0 0 0 0 0 ];
|
||||||
|
|
||||||
internalField nonuniform List<scalar>
|
internalField nonuniform List<scalar>
|
||||||
8025
|
8025
|
||||||
(
|
(
|
||||||
0
|
0
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 0 0 0 0 0 0 ];
|
dimensions [ 0 0 0 0 0 0 0 ];
|
||||||
|
|
||||||
internalField nonuniform List<symmTensor>
|
internalField nonuniform List<symmTensor>
|
||||||
8025
|
8025
|
||||||
(
|
(
|
||||||
(0.634791 0 0 0.634791 0 0.03)
|
(0.634791 0 0 0.634791 0 0.03)
|
||||||
|
|||||||
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication changeDictionary
|
runApplication changeDictionary
|
||||||
runApplication setSet -batch makeBlockedFaceSet.setSet
|
runApplication topoSet
|
||||||
|
|
||||||
runApplication PDRMesh
|
runApplication PDRMesh
|
||||||
|
|
||||||
|
|||||||
@ -28,10 +28,10 @@ ignitionSites
|
|||||||
|
|
||||||
{
|
{
|
||||||
location (1.5 1.5 0.5);
|
location (1.5 1.5 0.5);
|
||||||
diameter 0.005;
|
diameter 0.1;
|
||||||
start 1E-05;
|
start 1E-05;
|
||||||
duration 0.05;
|
duration 0.05;
|
||||||
strength 10.0;
|
strength 60.0;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ dynamicRefineFvMeshCoeffs
|
|||||||
// gets estimated from an interpolated volVectorField ('velocity')
|
// gets estimated from an interpolated volVectorField ('velocity')
|
||||||
// First is name of the flux to adapt, second is velocity that will
|
// First is name of the flux to adapt, second is velocity that will
|
||||||
// be interpolated and inner-producted with the face area vector.
|
// 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;
|
adjustTimeStep yes;
|
||||||
|
|
||||||
maxCo 0.3;
|
maxCo 0.2;
|
||||||
|
|
||||||
maxDeltaT 1;
|
maxDeltaT 1;
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: dev |
|
| \\ / O peration | Version: 2.0.0 |
|
||||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -22,13 +22,13 @@ solvers
|
|||||||
solver PCG;
|
solver PCG;
|
||||||
preconditioner DIC;
|
preconditioner DIC;
|
||||||
tolerance 1e-05;
|
tolerance 1e-05;
|
||||||
relTol 0.1;
|
relTol 0.01;
|
||||||
};
|
};
|
||||||
|
|
||||||
rhoFinal
|
rhoFinal
|
||||||
{
|
{
|
||||||
$rho;
|
$rho;
|
||||||
tolerance 1e-05;
|
tolerance 1e-06;
|
||||||
relTol 0;
|
relTol 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ solvers
|
|||||||
solver PCG;
|
solver PCG;
|
||||||
preconditioner DIC;
|
preconditioner DIC;
|
||||||
tolerance 1e-6;
|
tolerance 1e-6;
|
||||||
relTol 0.1;
|
relTol 0.01;
|
||||||
};
|
};
|
||||||
|
|
||||||
pFinal
|
pFinal
|
||||||
@ -51,7 +51,7 @@ solvers
|
|||||||
{
|
{
|
||||||
solver PBiCG;
|
solver PBiCG;
|
||||||
preconditioner DILU;
|
preconditioner DILU;
|
||||||
tolerance 1e-05;
|
tolerance 1e-06;
|
||||||
relTol 0.1;
|
relTol 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ solvers
|
|||||||
{
|
{
|
||||||
solver PBiCG;
|
solver PBiCG;
|
||||||
preconditioner DILU;
|
preconditioner DILU;
|
||||||
tolerance 1e-05;
|
tolerance 1e-06;
|
||||||
relTol 0;
|
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