File tree Expand file tree Collapse file tree 8 files changed +173
-7
lines changed
abruptContraction/interPhaseChangeFoam Expand file tree Collapse file tree 8 files changed +173
-7
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory
44# Source tutorial run functions
55. $WM_PROJECT_DIR /bin/tools/RunFunctions
66
7- # Generate the base block mesh
8- runApplication blockMesh
7+ # Generate the base block mesh and refine
8+ ./Allrun.mesh
99
1010# Run the solver in parallel
1111runApplication ` getApplication`
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ cd ${0%/* } || exit 1 # Run from this directory
3+
4+ # Source tutorial run functions
5+ . $WM_PROJECT_DIR /bin/tools/RunFunctions
6+
7+ refineMeshByCellSet ()
8+ {
9+ while [ $# -ge 1 ]
10+ do
11+ if [ ! -e log.refineMesh.$1 ]
12+ then
13+ echo " Creating cell set for primary zone - $1 "
14+ topoSet -dict system/topoSetDict.$1 > log.topoSet.$1 2>&1
15+
16+ echo " Refining primary zone - $1 "
17+ refineMesh -dict system/refineMeshDict.$1 -overwrite \
18+ > log.refineMesh.$1 2>&1
19+ fi
20+ shift
21+ done
22+ }
23+
24+ runApplication blockMesh
25+ refineMeshByCellSet 1 2
26+ runApplication refineWallLayer -overwrite ' (walls)' 0.2
27+
28+ # ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory
44# Source tutorial run functions
55. $WM_PROJECT_DIR /bin/tools/RunFunctions
66
7- # Generate the base block mesh
8- runApplication blockMesh
7+ # Generate the base block mesh and refine
8+ ./Allrun.mesh
99
1010# Decompose the mesh for parallel
1111runApplication decomposePar
Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ vertices
5858
5959blocks
6060(
61- hex (0 1 9 8 3 4 12 11 ) (150 40 60 ) simpleGrading (0.25 1 0.25 )
62- hex (3 4 12 11 6 7 15 14 ) (150 40 60 ) simpleGrading (0.25 1 4 )
63- hex (1 2 10 9 4 5 13 12 ) (200 40 60 ) simpleGrading (2 1 0.25 )
61+ hex (0 1 9 8 3 4 12 11 ) (80 40 20 ) simpleGrading (0.5 1 0.5 )
62+ hex (3 4 12 11 6 7 15 14 ) (80 40 20 ) simpleGrading (0.5 1 2 )
63+ hex (1 2 10 9 4 5 13 12 ) (80 40 20 ) simpleGrading (2 1 0.5 )
6464
6565);
6666
Original file line number Diff line number Diff line change 1+ /* --------------------------------*- C++ -*----------------------------------*\
2+ | ========= | |
3+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+ | \\ / O peration | Version: 5 |
5+ | \\ / A nd | Web: www.OpenFOAM.org |
6+ | \\/ M anipulation | |
7+ \*---------------------------------------------------------------------------*/
8+ FoamFile
9+ {
10+ version 2.0 ;
11+ format ascii;
12+ class dictionary ;
13+ location " system" ;
14+ object refineMeshDict;
15+ }
16+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+ set c0;
19+
20+ coordinateSystem global;
21+
22+ globalCoeffs
23+ {
24+ tan1 (1 0 0 );
25+ tan2 (0 0 1 );
26+ }
27+
28+ directions ( tan1 tan2 );
29+
30+ useHexTopology yes;
31+
32+ geometricCut no;
33+
34+ writeMesh no;
35+
36+
37+ // ************************************************************************* //
Original file line number Diff line number Diff line change 1+ /* --------------------------------*- C++ -*----------------------------------*\
2+ | ========= | |
3+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+ | \\ / O peration | Version: 5 |
5+ | \\ / A nd | Web: www.OpenFOAM.org |
6+ | \\/ M anipulation | |
7+ \*---------------------------------------------------------------------------*/
8+ FoamFile
9+ {
10+ version 2.0 ;
11+ format ascii;
12+ class dictionary ;
13+ location " system" ;
14+ object refineMeshDict;
15+ }
16+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+ set c0;
19+
20+ coordinateSystem global;
21+
22+ globalCoeffs
23+ {
24+ tan1 (1 0 0 );
25+ tan2 (0 0 1 );
26+ }
27+
28+ directions ( tan2 );
29+
30+ useHexTopology yes;
31+
32+ geometricCut no;
33+
34+ writeMesh no;
35+
36+
37+ // ************************************************************************* //
Original file line number Diff line number Diff line change 1+ /* --------------------------------*- C++ -*----------------------------------*\
2+ | ========= | |
3+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+ | \\ / O peration | Version: 5 |
5+ | \\ / A nd | Web: www.OpenFOAM.org |
6+ | \\/ M anipulation | |
7+ \*---------------------------------------------------------------------------*/
8+ FoamFile
9+ {
10+ version 2.0 ;
11+ format ascii;
12+ class dictionary ;
13+ location " system" ;
14+ object topoSetDict;
15+ }
16+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+ actions
19+ (
20+ {
21+ name c0;
22+ type cellSet;
23+ action new ;
24+ source boxToCell;
25+ sourceInfo
26+ {
27+ box (0.3 -0.09 0 ) (0.6 0.9 0.18 );
28+ }
29+ }
30+ );
31+
32+ // ************************************************************************* //
Original file line number Diff line number Diff line change 1+ /* --------------------------------*- C++ -*----------------------------------*\
2+ | ========= | |
3+ | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+ | \\ / O peration | Version: 5 |
5+ | \\ / A nd | Web: www.OpenFOAM.org |
6+ | \\/ M anipulation | |
7+ \*---------------------------------------------------------------------------*/
8+ FoamFile
9+ {
10+ version 2.0 ;
11+ format ascii;
12+ class dictionary ;
13+ location " system" ;
14+ object topoSetDict;
15+ }
16+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+ actions
19+ (
20+ {
21+ name c0;
22+ type cellSet;
23+ action new ;
24+ source boxToCell;
25+ sourceInfo
26+ {
27+ box (0.35 -0.09 0 ) (0.8 0.9 0.14 );
28+ }
29+ }
30+ );
31+
32+ // ************************************************************************* //
You can’t perform that action at this time.
0 commit comments