Skip to content
Snippets Groups Projects
Commit 93c8dc69 authored by Sergio Ferraris's avatar Sergio Ferraris
Browse files

ENH: Uptoda topoSet in tutorial for fireFoam

parent 240709f3
Branches
Tags
No related merge requests found
Showing
with 201 additions and 17 deletions
......@@ -9,20 +9,18 @@ application=`getApplication`
runApplication blockMesh
runApplication setSet -batch cRefine.setSet
runApplication topoSet -dict cRefine.topoSetDict
runApplication refineMesh -overwrite -dict
rm log.setSet
runApplication setSet -batch f.setSet
rm log.setSet
runApplication setSet -batch fZone.setSet
rm log.topoSet
runApplication topoSet -dict f.topoSetDict
# create the pyrolysis region.
runApplication extrudeToRegionMesh -overwrite
rm log.setSet
runApplication setSet -batch fBurner.setSet
rm log.topoSet
runApplication topoSet -dict fBurner.topoSetDict
runApplication createPatch -overwrite
......
cellSet refineCells new boxToCell (-0.15 0.0 -0.3)(0.15 2.4 0.3)
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name refineCells;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
box (-0.15 0.0 -0.3)(0.15 2.4 0.3);
}
}
);
// ************************************************************************* //
faceSet fLeft new boxToFace (-0.151 0 -0.3)(-0.14999 2.4 0.3)
faceSet fRight new boxToFace (0.14999 0 -0.3)(0.151 2.4 0.3)
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name fLeft;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (-0.151 0 -0.3)(-0.14999 2.4 0.3);
}
}
{
name fRight;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (0.14999 0 -0.3)(0.151 2.4 0.3);
}
}
{
name fRight_zone;
type faceZoneSet;
action new;
source setToFaceZone;
sourceInfo
{
faceSet fRight;
}
}
{
name fLeft_zone;
type faceZoneSet;
action new;
source setToFaceZone;
sourceInfo
{
faceSet fLeft;
}
}
);
// ************************************************************************* //
faceSet fBurner new boxToFace (-0.15 -0.001 -0.30) (0.15 0.001 0.30)
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name fBurner;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (-0.15 -0.001 -0.30) (0.15 0.001 0.30);
}
}
);
// ************************************************************************* //
faceZoneSet fRight_zone new setToFaceZone fRight
faceZoneSet fLeft_zone new setToFaceZone fLeft
......@@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
runApplication setSet -batch makeFaceSet.setSet
runApplication topoSet
runApplication createPatch -overwrite
# Run
......
faceSet f0 new boxToFace (-0.0529 -0.001 -0.1)(0.0529 0.002 0.1)
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name f0;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (-0.0529 -0.001 -0.1)(0.0529 0.002 0.1);
}
}
);
// ************************************************************************* //
......@@ -7,7 +7,7 @@
application=`getApplication`
runApplication blockMesh
runApplication setSet -batch makeFaceSet.setSet
runApplication topoSet
runApplication createPatch -overwrite
runApplication decomposePar -force
......
faceSet f0 new boxToFace (-0.1 -0.001 -0.1)(0.1 0.005 0.1)
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
{
name f0;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (-0.1 -0.001 -0.1)(0.1 0.005 0.1);
}
}
);
// ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment