Skip to content

Commit 23671c7

Browse files
committed
Add new case mpiTest
1 parent 35e37ae commit 23671c7

23 files changed

Lines changed: 1262 additions & 0 deletions

‎mpiTest/Alltest‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
mpiCase (){
3+
foamCloneCase damBreak4phaseFine damBreak4phaseFine$1 \
4+
>> /dev/null
5+
sed -i '18cnumberOfSubdomains '$1';' \
6+
damBreak4phaseFine$1/system/decomposeParDict
7+
sed -i 's/2/'$1'/g' \
8+
damBreak4phaseFine$1/Allsbatch
9+
sed -i 's/damBreak4phaseFine/damBreak4phaseFine'$1'/g' \
10+
damBreak4phaseFine$1/Allsbatch
11+
sbatch ./damBreak4phaseFine$1/Allsbatch
12+
}
13+
serialCase (){
14+
foamCloneCase damBreak4phaseFine damBreak4phaseFine1 \
15+
>> /dev/null
16+
rm damBreak4phaseFine1/system/decomposeParDict
17+
sed -i '15cmultiphaseEulerFoam' \
18+
damBreak4phaseFine1/Allsbatch
19+
sed -i 's/damBreak4phaseFine/damBreak4phaseFine1/' \
20+
damBreak4phaseFine1/Allsbatch
21+
sed -i '14d' \
22+
damBreak4phaseFine1/Allsbatch
23+
sed -i '3d' \
24+
damBreak4phaseFine1/Allsbatch
25+
sbatch ./damBreak4phaseFine1/Allsbatch
26+
}
27+
mpiCase 16
28+
#serialCase
29+
#------------------------------------------------------------------------------

‎mpiTest/damBreak4phaseFine/0/U‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 6
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format binary;
12+
class volVectorField;
13+
location "0";
14+
object U;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 1 -1 0 0 0 0];
19+
20+
internalField uniform (0 0 0);
21+
22+
boundaryField
23+
{
24+
leftWall
25+
{
26+
type noSlip;
27+
}
28+
rightWall
29+
{
30+
type noSlip;
31+
}
32+
lowerWall
33+
{
34+
type noSlip;
35+
}
36+
atmosphere
37+
{
38+
type fluxCorrectedVelocity;
39+
value uniform (0 0 0);
40+
}
41+
defaultFaces
42+
{
43+
type empty;
44+
}
45+
}
46+
47+
48+
// ************************************************************************* //

‎mpiTest/damBreak4phaseFine/0/U.air‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 6
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volVectorField;
13+
location "0";
14+
object U.air;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 1 -1 0 0 0 0];
19+
20+
internalField uniform (0 0 0);
21+
22+
boundaryField
23+
{
24+
leftWall
25+
{
26+
type noSlip;
27+
}
28+
rightWall
29+
{
30+
type noSlip;
31+
}
32+
lowerWall
33+
{
34+
type noSlip;
35+
}
36+
atmosphere
37+
{
38+
type fluxCorrectedVelocity;
39+
value uniform (0 0 0);
40+
}
41+
defaultFaces
42+
{
43+
type empty;
44+
}
45+
}
46+
47+
48+
// ************************************************************************* //
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 6
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volVectorField;
13+
location "0";
14+
object U.mercury;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 1 -1 0 0 0 0];
19+
20+
internalField uniform (0 0 0);
21+
22+
boundaryField
23+
{
24+
leftWall
25+
{
26+
type noSlip;
27+
}
28+
rightWall
29+
{
30+
type noSlip;
31+
}
32+
lowerWall
33+
{
34+
type noSlip;
35+
}
36+
atmosphere
37+
{
38+
type fluxCorrectedVelocity;
39+
value uniform (0 0 0);
40+
}
41+
defaultFaces
42+
{
43+
type empty;
44+
}
45+
}
46+
47+
48+
// ************************************************************************* //

‎mpiTest/damBreak4phaseFine/0/U.oil‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 6
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volVectorField;
13+
location "0";
14+
object U.oil;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 1 -1 0 0 0 0];
19+
20+
internalField uniform (0 0 0);
21+
22+
boundaryField
23+
{
24+
leftWall
25+
{
26+
type noSlip;
27+
}
28+
rightWall
29+
{
30+
type noSlip;
31+
}
32+
lowerWall
33+
{
34+
type noSlip;
35+
}
36+
atmosphere
37+
{
38+
type fluxCorrectedVelocity;
39+
value uniform (0 0 0);
40+
}
41+
defaultFaces
42+
{
43+
type empty;
44+
}
45+
}
46+
47+
48+
// ************************************************************************* //
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 6
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volVectorField;
13+
location "0";
14+
object Uwater;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 1 -1 0 0 0 0];
19+
20+
internalField uniform (0 0 0);
21+
22+
boundaryField
23+
{
24+
leftWall
25+
{
26+
type noSlip;
27+
}
28+
rightWall
29+
{
30+
type noSlip;
31+
}
32+
lowerWall
33+
{
34+
type noSlip;
35+
}
36+
atmosphere
37+
{
38+
type fluxCorrectedVelocity;
39+
value uniform (0 0 0);
40+
}
41+
defaultFaces
42+
{
43+
type empty;
44+
}
45+
}
46+
47+
48+
// ************************************************************************* //
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 6
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
location "0";
14+
object alpha.air;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
dimensions [0 0 0 0 0 0 0];
19+
20+
internalField uniform 0;
21+
22+
boundaryField
23+
{
24+
leftWall
25+
{
26+
type alphaContactAngle;
27+
thetaProperties
28+
(
29+
( water air ) 90 0 0 0
30+
( oil air ) 90 0 0 0
31+
( mercury air ) 90 0 0 0
32+
( water oil ) 90 0 0 0
33+
( water mercury ) 90 0 0 0
34+
( oil mercury ) 90 0 0 0
35+
);
36+
value uniform 0;
37+
}
38+
rightWall
39+
{
40+
type alphaContactAngle;
41+
thetaProperties
42+
(
43+
( water air ) 90 0 0 0
44+
( oil air ) 90 0 0 0
45+
( mercury air ) 90 0 0 0
46+
( water oil ) 90 0 0 0
47+
( water mercury ) 90 0 0 0
48+
( oil mercury ) 90 0 0 0
49+
);
50+
value uniform 1;
51+
}
52+
lowerWall
53+
{
54+
type alphaContactAngle;
55+
thetaProperties
56+
(
57+
( water air ) 90 0 0 0
58+
( oil air ) 90 0 0 0
59+
( mercury air ) 90 0 0 0
60+
( water oil ) 90 0 0 0
61+
( water mercury ) 90 0 0 0
62+
( oil mercury ) 90 0 0 0
63+
);
64+
value uniform 0;
65+
}
66+
atmosphere
67+
{
68+
type inletOutlet;
69+
inletValue uniform 1;
70+
value uniform 1;
71+
}
72+
defaultFaces
73+
{
74+
type empty;
75+
}
76+
}
77+
78+
79+
// ************************************************************************* //

0 commit comments

Comments
 (0)