File tree Expand file tree Collapse file tree 5 files changed +41
-11
lines changed
abruptContraction/interPhaseChangeFoam Expand file tree Collapse file tree 5 files changed +41
-11
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ cd ${0%/*} || exit 1 # Run from this directory
77# Generate the base block mesh
88runApplication blockMesh
99
10- # cp -r 0.orig 0
10+ # Decompose the mesh for parallel
11+ runApplication decomposePar
1112
12- # Initialise with potentialFoam solution
13- # runApplication potentialFoam -pName p_rgh
13+ # Run the solver in parallel
14+ runParallel ` getApplication `
1415
15- # Run the solver
16- runApplication ` getApplication `
16+ # Reconstruct the decomposed mesh for postprocessing
17+ runApplication reconstructPar
1718
1819# ----------------------------------------------------------------- end-of-file
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ MerkleCoeffs
5555SchnerrSauerCoeffs
5656{
5757 n n [0 -3 0 0 0 0 0 ] 1.6e+13 ;
58- dNuc dNuc [0 1 0 0 0 0 0 ] 2.0e-06 ;
58+ dNuc dNuc [0 1 0 0 0 0 0 ] 2.0e-07 ;
5959 Cc Cc [0 0 0 0 0 0 0 ] 1 ;
6060 Cv Cv [0 0 0 0 0 0 0 ] 1 ;
6161}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ convertToMeters 0.01;
1919h1 18 ; // Height of the channel before contraction
2020h2 9 ; // Height of the channel after contraction
2121
22- l1 20 ; // Length of the channel before contraction
22+ l1 40 ; // Length of the channel before contraction
2323l2 40 ; // Length of the channel after contraction
2424
2525w1 18 ; // Width of the channel
@@ -58,8 +58,8 @@ vertices
5858
5959blocks
6060(
61- hex (0 1 9 8 3 4 12 11 ) (75 40 60 ) simpleGrading (0.25 1 0.25 )
62- hex (3 4 12 11 6 7 15 14 ) (75 40 60 ) simpleGrading (0.25 1 4 )
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 )
6363 hex (1 2 10 9 4 5 13 12 ) (200 40 60 ) simpleGrading (2 1 0.25 )
6464
6565);
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ startTime 0;
2222
2323stopAt endTime;
2424
25- endTime 0.3 ;
25+ endTime 1 ;
2626
2727deltaT 1e-8 ;
2828
2929writeControl adjustableRunTime;
3030
31- writeInterval 0.001 ;
31+ writeInterval 0.01 ;
3232
3333purgeWrite 0 ;
3434
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: 4.1 |
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+ note " mesh decomposition control dictionary" ;
14+ object decomposeParDict;
15+ }
16+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+ numberOfSubdomains 2 ;
19+
20+ method simple;
21+
22+ simpleCoeffs
23+ {
24+ n (1 2 1 );
25+ delta 0.001 ;
26+ }
27+
28+
29+ // ************************************************************************* //
You can’t perform that action at this time.
0 commit comments