/
tests
400 lines (328 loc) · 13.4 KB
/
tests
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
[Tests]
[./test_nodal]
type = 'Exodiff'
input = 'grain_tracker_nodal.i'
exodiff = 'grain_tracker_nodal_out.e'
# integer based maps can shift slightly in parallel
max_parallel = 1
valgrind = 'HEAVY'
max_time = 500
requirement = 'The system shall properly create and track grains when using the Nodal mode of the GrainTracker algorithm.'
issues = '#4765'
design = 'GrainTracker.md'
[../]
[./test_elemental]
type = 'Exodiff'
input = 'grain_tracker_test_elemental.i'
exodiff = 'grain_tracker_test_elemental_out.e-s002'
method = '!DBG' # slow test
valgrind = 'HEAVY'
max_time = 500
requirement = 'The system shall properly create and track grains when using the Elemental mode of the GrainTracker algorithm.'
issues = '#4881'
design = 'GrainTracker.md'
[../]
[./test_advanced_op_assignment]
type = 'CSVDiff'
input = 'grain_tracker_advanced_op.i'
csvdiff = 'grain_tracker_advanced_op_out.csv'
recover = false # No solve
max_parallel = 1
requirement = "The PolycrystalVoronoi object shall create a valid coloring for a given number of grains and order parameters."
issues = '#7005 #9018'
design = "GrainTracker.md"
[../]
[./test_advanced_op_assignment_bt_error]
type = 'RunException'
input = 'grain_tracker_advanced_op.i'
expect_err = "Unable to find a valid grain to op coloring"
recover = false # No solve
cli_args = 'GlobalParams/op_num=4 Outputs/csv=false'
requirement = "The PolycrystalUserObject base class shall error when a valid coloring cannot be found "
"when using the simple back-tracking algorithm."
issues = '#7005 #8804'
design = "PolycrystalICs.md"
[../]
[./test_advanced_op_assignment_petsc_error]
type = 'RunException'
input = 'grain_tracker_advanced_op.i'
expect_err = "Unable to find a valid grain to op coloring"
recover = false # No solve
cli_args = 'UserObjects/voronoi/coloring_algorithm=jp GlobalParams/op_num=7 Outputs/csv=false'
requirement = "The PolycrystalUserObject base class shall error when a valid coloring cannot be found "
"when using the built-in PETSc based stochastic algorithms."
issues = '#7005 #8804'
design = "PolycrystalICs.md"
[../]
[./test_halo_periodic_bc]
type = 'Exodiff'
input = 'grain_halo_over_bc.i'
exodiff = 'grain_halo_over_bc_out.e'
method = '!DBG' # slow test
valgrind = 'HEAVY'
max_parallel = 1
requirement = "The GrainTracker/PolycrystalUserObject base class shall support having only a grain halo bleeding over a periodic edge."
issues = '#6713 #8926'
design = "GrainTracker.md"
abs_zero = 1e-7
rel_err = 4e-5
[../]
[./test_remapping_serial]
type = 'CSVDiff'
input = 'grain_tracker_remapping_test.i'
csvdiff = 'grain_tracker_remapping_test_out.csv'
method = '!DBG' # slow test
valgrind = 'NONE' # Exact same test used elsewhere
# This test uses a coloring algorithm that requires PETSc >= 3.5.0.
petsc_version = '>=3.5.0'
requirement = "The GrainTracker object shall support remapping order parameter values."
issues = '#1298'
design = "GrainTracker.md"
[../]
[./test_remapping_parallel]
type = 'CSVDiff'
input = 'grain_tracker_remapping_test.i'
csvdiff = 'grain_tracker_remapping_test_out.csv'
method = '!DBG' # slow test
valgrind = 'HEAVY'
# This test uses a coloring algorithm that requires PETSc >= 3.5.0.
petsc_version = '>=3.5.0'
prereq = 'test_remapping_serial'
min_parallel = 8 # Test distributed merge work with grain tracker
requirement = "The FeatureFloodCount object shall distribute the merging of features when the processor count exceeds "
"number of order parameters for efficiency."
issues = '#11805'
design = "GrainTracker.md"
[../]
[./test_recovery_serial_part1]
type = 'RunApp'
input = 'grain_tracker_remapping_test.i'
cli_args = 'Outputs/file_base=gt_recover_serial_out Outputs/checkpoint=true --half-transient'
method = '!DBG'
valgrind = 'NONE'
petsc_version = '>=3.5.0'
requirement = "The GrainTracker object shall properly checkpoint unique grain information in serial."
issues = "#6713 #12427"
design = "GrainTracker.md"
[../]
[./test_recovery_serial_part2]
type = 'CSVDiff'
input = 'grain_tracker_remapping_test.i'
csvdiff = 'gt_recover_serial_out.csv'
cli_args = 'Outputs/file_base=gt_recover_serial_out --recover'
prereq = 'test_recovery_serial_part1'
delete_output_before_running = false
method = '!DBG'
valgrind = 'NONE'
petsc_version = '>=3.5.0'
requirement = "The GrainTracker object shall properly recover unique grain information in serial."
issues = "#6713 #12427"
design = "GrainTracker.md"
[../]
[./test_recovery_parallel_part1]
type = 'RunApp'
input = 'grain_tracker_remapping_test.i'
cli_args = 'Outputs/file_base=gt_recover_parallel_out Outputs/checkpoint=true --half-transient'
min_parallel = 8 # Test distributed merge work with grain tracker
method = '!DBG'
valgrind = 'NONE'
petsc_version = '>=3.5.0'
requirement = "The GrainTracker object shall properly checkpoint unique grain information in parallel."
issues = "#6713 #12427"
design = "GrainTracker.md"
[../]
[./test_recovery_parallel_part2]
type = 'CSVDiff'
input = 'grain_tracker_remapping_test.i'
csvdiff = 'gt_recover_parallel_out.csv'
cli_args = 'Outputs/file_base=gt_recover_parallel_out --recover'
prereq = 'test_recovery_parallel_part1'
delete_output_before_running = false
min_parallel = 8 # Test distributed merge work with grain tracker
method = '!DBG'
valgrind = 'NONE'
petsc_version = '>=3.5.0'
requirement = "The GrainTracker object shall properly recover unique grain information in parallel."
issues = "#6713 #12427"
design = "GrainTracker.md"
[../]
[./test_poly_ic_handoff]
type = 'CSVDiff'
input = 'grain_tracker_remapping_test.i'
csvdiff = 'test_poly_ic_handoff_out.csv'
cli_args = 'Executioner/Adaptivity/initial_adaptivity=1 Executioner/Adaptivity/refine_fraction=0.7 Executioner/Adaptivity/max_h_level=2 Executioner/num_steps=1 Outputs/file_base=test_poly_ic_handoff_out'
method = '!DBG' # slow test
valgrind = 'NONE' # Exact same test used elsewhere
# This test uses a coloring algorithm that requires PETSc >= 3.5.0.
petsc_version = '>=3.5.0'
requirement = "The GrainTracker shall support reusing the data structures from the PolycrystalUserObjectBase after the "
" initial condition for efficiency."
issues = '#8810'
design = "PolycrystalICs.md"
[../]
[./remapping_with_reserve]
type = 'Exodiff'
input = 'grain_tracker_reserve.i'
exodiff = 'grain_tracker_reserve_out.e'
abs_zero = 1e-6 # Remapping can cause more significant diffs
method = '!DBG' # slow test
valgrind = 'HEAVY'
requirement = "The GrainTracker shall support maintaining reserve order parameters for simulations where new grains can form."
issues = '#7605'
design = "GrainTracker.md"
[../]
[./start_with_zero_grains]
type = 'Exodiff'
input = 'grain_tracker_reserve.i'
exodiff = 'start_with_zero_grains_out.e'
abs_zero = 1e-6
cli_args = 'ICs/inactive=gr0 Outputs/file_base=start_with_zero_grains_out'
method = '!DBG' # slow test
valgrind = 'HEAVY'
requirement = "The GrainTracker shall support beginning a simulation with no active grain structure."
issues = "#12200"
design = "GrainTracker.md"
[../]
[./test_ebsd]
type = 'Exodiff'
input = 'grain_tracker_ebsd.i'
exodiff = 'grain_tracker_ebsd_out.e'
requirement = "The GrainTracker shall support reading EBSD data to create initial conditions."
issues = '#5067 #9060'
design = "PolycrystalICs.md"
[../]
[./test_ebsd_adapt]
type = 'Exodiff'
input = 'grain_tracker_ebsd.i'
exodiff = 'grain_tracker_ebsd_adapt_out.e'
cli_args = 'Executioner/Adaptivity/initial_adaptivity=1 Executioner/Adaptivity/refine_fraction=0.7 Executioner/Adaptivity/max_h_level=1 Outputs/file_base=grain_tracker_ebsd_adapt_out'
requirement = "The GrainTracker shall support reading EBSD data to create initial conditions while supporting initial condition refinement."
issues = '#5067 #9060'
design = "PolycrystalICs.md"
[../]
[./split_grain]
type = 'CSVDiff'
# Make sure that this simulation hits the "split grain" logic branch
expect_out = 'Split Grain Detected'
input = 'split_grain.i'
csvdiff = 'split_grain_out.csv'
max_time = 500
method = '!DBG' # slow test
valgrind ='HEAVY'
# This test uses a coloring algorithm that requires PETSc >= 3.5.0.
petsc_version = '>=3.5.0'
requirement = "The GrainTracker shall support handling the splitting of a grain during a simulation."
issues = '#7875'
design = "GrainTracker.md"
[../]
[./changing_avg_volume]
type = 'CSVDiff'
input = 'grain_tracker_volume_changing.i'
csvdiff = 'grain_tracker_volume_changing_out.csv'
rel_err = 1e-4
method = '!DBG' # slow test
valgrind = 'HEAVY'
# This test uses a coloring algorithm that requires PETSc >= 3.5.0.
petsc_version = '>=3.5.0'
requirement = "The AverageFeatureVolume Postprocessor shall calculate the average volume of each active grain in a simulation."
issues = '#11822'
design = "GrainTracker.md"
[../]
[./tolerate_remap_failure]
type = 'RunApp'
input = 'grain_tracker_remapping_test.i'
cli_args = 'UserObjects/grain_tracker/tolerate_failure=true UserObjects/voronoi/grain_num=16 Executioner/num_steps=6 UserObjects/voronoi/coloring_algorithm=bt Outputs/exodus=false Outputs/csv=false'
expect_out = "Unable to find any suitable order parameters for remapping"
allow_warnings = true
valgrind = 'NONE'
method = '!DBG' # slow test
min_parallel = 2
requirement = "The GrainTracker shall support a mode where it can continue even when it fails to remap for post-modern analysis and debugging."
issues = '#11843'
design = "GrainTracker.md"
[../]
[./distributed_poly_ic]
type = 'CSVDiff'
input = 'distributed_poly_ic.i'
csvdiff = 'distributed_poly_ic_out.csv'
# This test uses a coloring algorithm that requires PETSc >= 3.5.0.
allow_test_objects = true
petsc_version = '>=3.5.0'
requirement = 'The system shall properly create PolycrystalICs with halo extensions (elements) when using DistributedMesh.'
issues = '#12216'
design = 'PolycrystalICs.md'
[../]
[./one_grain]
type = 'CSVDiff'
input = 'one_grain.i'
csvdiff = 'one_grain_out.csv'
recover = false # no solve
requirement = 'The system shall properly handle a single feature or grain taking up the entire domain.'
issues = '#12216'
design = 'GrainTracker.md'
[../]
###################################################
# Faux grain tracker
###################################################
[./test_faux_nodal]
type = 'Exodiff'
input = 'grain_tracker_nodal.i'
cli_args = 'Outputs/file_base=gt_faux_nodal_out UserObjects/grain_tracker/type=FauxGrainTracker'
exodiff = 'gt_faux_nodal_out.e'
valgrind = 'HEAVY'
max_time = 500
requirement = "The system shall grain tracking behavior even when the number of grains equals the number "
"of order parameters when using mode Nodal."
issues = '#5453'
design = 'GrainTracker.md'
[../]
[./test_faux_element]
type = 'Exodiff'
input = 'grain_tracker_test_elemental.i'
cli_args = 'Outputs/file_base=gt_faux_elemental_out UserObjects/grain_tracker/type=FauxGrainTracker'
exodiff = 'gt_faux_elemental_out.e-s002'
method = '!DBG' # slow test
valgrind = 'HEAVY'
max_time = 500
requirement = "The system shall grain tracking behavior even when the number of grains equals the number "
"of order parameters when using mode Elemental."
issues = '#5453'
design = 'GrainTracker.md'
[../]
[./grain_tracker_volume]
type = 'CSVDiff'
input = 'grain_tracker_volume.i'
csvdiff = 'grain_tracker_volume_out_grain_volumes_0000.csv grain_tracker_volume_out.csv'
rel_err = 1.e-3
# Lots of adaptivity, slower test
min_parallel = 6
requirement = "The system shall output individual grain tracker volumes."
issues = '#7769'
design = 'GrainTracker.md'
[../]
[./grain_tracker_volume_single]
type = 'CSVDiff'
input = 'grain_tracker_volume_single.i'
csvdiff = 'grain_tracker_volume_single_out_grain_volumes_0000.csv'
rel_err = 1.e-3
# Lots of adaptivity, slower test
min_parallel = 6
requirement = "The system shall output individual grain tracker volumes assigning each element to only one grain (conservative)."
issues = '#7769'
design = 'GrainTracker.md'
[../]
# This test should work the same with the FeatureFloodCount object
[./feature_flood_volume]
type = 'CSVDiff'
input = 'grain_tracker_volume.i'
cli_args = 'Postprocessors/grain_tracker/type=FeatureFloodCount'
csvdiff = 'grain_tracker_volume_out_grain_volumes_0000.csv grain_tracker_volume_out.csv'
prereq = grain_tracker_volume
rel_err = 1.e-3
# Lots of adaptivity, slower test
min_parallel = 6
requirement = "The system shall output individual grain tracker volumes when the number of order parameters equals the number of grains."
issues = '#5453'
design = 'GrainTracker.md'
[../]
[]