-
Notifications
You must be signed in to change notification settings - Fork 0
/
Promethius_methods_run.sh
executable file
·175 lines (156 loc) · 7.58 KB
/
Promethius_methods_run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#Test {
# // test_dir ="/Users/cpf/Desktop/build-6-2/Testing/"
# test_dir ="./"
# unit_test = 1 // Will print out specific files for analysis
# // 0 -- default; does not produce print files
# // 1 BCC case, force-driven 1e-4 -- make sure to turn off two-phase functionality -- test against analytical permeability
# // 2 Parallel plates, Poiseuille flow - force-driven -- can test against analytical profile; with offset walls
# // 3 Parallel plates, Poiseuille flow - pressure-driven -- can test against analytical profile; with offest walls
# // 4 Bubble test, force-driven or no-forcing -- useful to test averaging theorems and agreement of geometry quantities
# // 5 Parallel plates, capillary bridge -- no-forcing -- can test against analytical profile; with offest walls
# // 6 Inclined parallel plates, capillary bridge -- no forcing -- can test against analytical profile; vary the inclination
# // 7 Ink bottle; drainage and imbibition processes; compare to known analytical solutions
# // 8 Bubble on Plate
# // 9 nw Bubble on Solid Sphere
# // 10 nw Bubble Adjacent to Solid Sphere
#
# // 11 weak scaling - MLUP
# // 12 strong scaling
# // 13 kernel characterization
# // 14 communication characterization -- This architecture is why NCCL should support multiple streams
# // 15 cf Summit performance w/ HPG performance w/ theoretical performance <<<<<<<
# // 16 (optional) project performance onto Grace-Hopper w/ theoretical performance
#}
start=$(date +%s)
echo "Beginning methods ms test cases"
echo "Test 1a: BCC Blender Serial:"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/BCC
pwd
#rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_1a.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut1.sbatch .
#mpirun -np 1 ./../../../build-6-2/tests/Blender_to_LBM unit_test_1a.db
#mpirun -np 1 ./../../../build-6-2/tests/lbpm_random_force_simulator unit_test_1a.db
#cp LBM.visit ~/
#cp -r vis* ~/
echo "Test 1b: BCC Blender Parallel:"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/BCC
pwd
#rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_1b.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut1.sbatch .
#mpirun -np 8 ./../../../build-6-2/tests/Blender_to_LBM unit_test_1b.db
#mpirun -np 8 ./../../../build-6-2/tests/lbpm_random_force_simulator unit_test_1b.db
#cp LBM.visit ~/
#cp -r vis* ~/
echo "Test 1c: BCC RayCasting Serial:"
cd /Users/cpf/Desktop/Methods_ms/RayCasting/BCC
pwd
#rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_1c.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut1.sbatch .
#mpirun -np 1 ./../../../build-6-2/tests/RayCast unit_test_1c.db
#mpirun -np 1 ./../../../build-6-2/tests/lbpm_random_force_simulator unit_test_1c.db
#cp LBM.visit ~/
#cp -r vis* ~/
echo "Test 1d: BCC RayCasting Parallel:"
cd /Users/cpf/Desktop/Methods_ms/RayCasting/BCC
pwd
#rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_1d.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut1.sbatch .
#mpirun -np 8 ./../../../build-6-2/tests/RayCast unit_test_1d.db
#mpirun -np 8 ./../../../build-6-2/tests/lbpm_random_force_simulator unit_test_1d.db
#cp LBM.visit ~/
#cp -r vis* ~/
echo "Test 2a: Parallel plates, Forced Poiseuille flow - no offset"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/slant0/offset0
pwd
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_2.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut2.sbatch .
#mpirun -np 1 ./../../../../build-6-2/tests/Blender_to_LBM unit_test_2.db
#mpirun -np 1 ./../../../../build-6-2/tests/lbpm_random_force_simulator unit_test_2.db
echo "Test 2b: Parallel plates, Forced Poiseuille flow - offset 0.2"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/slant0/offset2
pwd
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_2.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut2.sbatch .
#mpirun -np 1 ./../../../../build-6-2/tests/Blender_to_LBM unit_test_2.db
#mpirun -np 1 ./../../../../build-6-2/tests/lbpm_random_force_simulator unit_test_2.db
echo "Test 3: Parallel plates, Pressure-Gradient Driven Poiseuille flow - no offset"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/slant0/offset0
pwd
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_3.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut3.sbatch .
#mpirun -np 1 ./../../../../build-6-2/tests/Blender_to_LBM unit_test_3.db
#mpirun -np 1 ./../../../../build-6-2/tests/lbpm_random_force_simulator unit_test_3.db
echo "Test 4: Bubble"
cd /Users/cpf/Desktop/Methods_ms/RayCasting/Bubble
pwd
#rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_4.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut6.sbatch .
#mpirun -np 1 ./../../../build-6-2/tests/RayCast unit_test_4.db
#mpirun -np 1 ./../../../build-6-2/tests/lbpm_random_force_simulator unit_test_4.db
#cp LBM.visit ~/
#cp -r vis* ~/
echo "Test 5a: Parallel plates, capillary Bridge - no offset"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/slant0/offset0
pwd
#rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_5.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut5.sbatch .
#mpirun -np 1 ./../../../../build-6-2/tests/Blender_to_LBM unit_test_5.db
#mpirun -np 1 ./../../../../build-6-2/tests/lbpm_random_force_simulator unit_test_5.db
#cp LBM.visit ~/
#cp -r vis* ~/
echo "Test 5b: Parallel plates, capillary Bridge - offset 0.2"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/slant0/offset2
pwd
rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_5.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut5.sbatch .
mpirun -np 1 ./../../../../build-6-2/tests/Blender_to_LBM unit_test_5.db
mpirun -np 1 ./../../../../build-6-2/tests/lbpm_random_force_simulator unit_test_5.db
cp LBM.visit ~/
cp -r vis* ~/
echo "Test 6: Parallel plates, capillary Bridge - slanted"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/slant15/offset0
pwd
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_6.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut6.sbatch .
#mpirun -np 1 ./../../../../build-6-2/tests/Blender_to_LBM unit_test_6.db
#mpirun -np 1 ./../../../../build-6-2/tests/lbpm_random_force_simulator unit_test_6.db
echo "Test 7 ink_bottle30:"
cd /Users/cpf/Desktop/Methods_ms/Blender_PM/ink_bottle30
pwd
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_7a.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut7a.sbatch .
#mpirun -np 1 ./../../../../build-6-2/tests/Blender_to_LBM unit_test_7a.db
#mpirun -np 1 ./../../../../build-6-2/tests/lbpm_random_force_simulator unit_test_7a.db
echo "Test 9: Bubble on solid sphere"
cd /Users/cpf/Desktop/Methods_ms/RayCasting/BubbleOnSolidSphere
pwd
#rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_9.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut9.sbatch .
#mpirun -np 1 ./../../../build-6-2/tests/RayCast unit_test_9.db
#mpirun -np 1 ./../../../build-6-2/tests/lbpm_random_force_simulator unit_test_9.db
#cp LBM.visit ~/
#cp -r vis* ~/
echo "Test 10: Bubble adjacent to solid sphere"
cd /Users/cpf/Desktop/Methods_ms/RayCasting/BubbleAdjacentSolidSphere
pwd
#rm LBM.visit
cp /Users/cpf/Desktop/Methods_ms/input_databases/unit_test_10.db .
cp /Users/cpf/Desktop/Methods_ms/slurm_scripts/lbpm-ut10.sbatch .
#mpirun -np 1 ./../../../build-6-2/tests/RayCast unit_test_10.db
#mpirun -np 1 ./../../../build-6-2/tests/lbpm_random_force_simulator unit_test_10.db
#cp LBM.visit ~/
#cp -r vis* ~/
echo "========================================"
echo "========================================"
echo "Simulations complete. "
end=$(date +%s)
echo "Elapsed Time: $(($end-$start)) seconds"
#