bashcompletion 265 KB
Newer Older
1
2
#----------------------------------*-sh-*--------------------------------------
# Bash completions for OpenFOAM applications
3
# Formatted as "complete ... -F _of_APPNAME APPNAME
4

5
6
unset -f _of_filter_opts 2>/dev/null
_of_filter_opts()
7
8
9
10
11
12
13
14
{
    local allOpts=$1
    local applied=$2
    for o in ${allOpts}; do
        [ "${applied/$o/}" == "${applied}" ] && echo $o
    done
}

15
16
unset -f _of_adiabaticFlameT 2>/dev/null
_of_adiabaticFlameT()
17
18
19
20
21
22
23
24
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-srcDoc -doc -help "
    local optsWithArgs="-case "

    case ${prev} in
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
41
42
43
44
    esac

    return 0
}
45
complete -o nospace -F _of_adiabaticFlameT adiabaticFlameT
46

47
48
unset -f _of_adjointShapeOptimizationFoam 2>/dev/null
_of_adjointShapeOptimizationFoam()
49
50
51
52
53
54
55
56
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
57
58
59
60
61
62
63
64
65
66
67
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
68
            COMPREPLY=($(compgen -f -- ${cur}))
69
70
71
72
73
74
75
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
76
77
78
79
    esac

    return 0
}
80
complete -o nospace -F _of_adjointShapeOptimizationFoam adjointShapeOptimizationFoam
81

82
83
unset -f _of_ansysToFoam 2>/dev/null
_of_ansysToFoam()
84
85
86
87
88
89
90
91
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -srcDoc -doc -help "
    local optsWithArgs="-case -scale "

    case ${prev} in
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
108
109
110
111
    esac

    return 0
}
112
complete -o nospace -F _of_ansysToFoam ansysToFoam
113

114
115
unset -f _of_applyBoundaryLayer 2>/dev/null
_of_applyBoundaryLayer()
116
117
118
119
120
121
122
123
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -region -roots -ybl "

    case ${prev} in
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -region)
        local regions=$(sed 's#/##g' <<< $([ -d system ] && (\cd system && (\ls -d */ 2>/dev/null))))
        COMPREPLY=($(compgen -W "$regions" -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
139
            COMPREPLY=($(compgen -f -- ${cur}))
140
141
142
143
144
145
146
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
147
148
149
150
    esac

    return 0
}
151
complete -o nospace -F _of_applyBoundaryLayer applyBoundaryLayer
152

153
154
unset -f _of_attachMesh 2>/dev/null
_of_attachMesh()
155
156
157
158
159
160
161
162
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -overwrite -srcDoc -doc -help "
    local optsWithArgs="-case "

    case ${prev} in
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
179
180
181
182
    esac

    return 0
}
183
complete -o nospace -F _of_attachMesh attachMesh
184

185
186
unset -f _of_autoPatch 2>/dev/null
_of_autoPatch()
187
188
189
190
191
192
193
194
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -overwrite -srcDoc -doc -help "
    local optsWithArgs="-case "

    case ${prev} in
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
211
212
213
214
    esac

    return 0
}
215
complete -o nospace -F _of_autoPatch autoPatch
216

217
218
unset -f _of_blockMesh 2>/dev/null
_of_blockMesh()
219
220
221
222
223
224
225
226
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-blockTopology -noClean -noFunctionObjects -sets -srcDoc -doc -help "
    local optsWithArgs="-case -dict -region "

    case ${prev} in
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    -region)
        local regions=$(sed 's#/##g' <<< $([ -d system ] && (\cd system && (\ls -d */ 2>/dev/null))))
        COMPREPLY=($(compgen -W "$regions" -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
247
248
249
250
    esac

    return 0
}
251
complete -o nospace -F _of_blockMesh blockMesh
252

253
254
unset -f _of_boundaryFoam 2>/dev/null
_of_boundaryFoam()
255
256
257
258
259
260
261
262
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -srcDoc -doc -help "
    local optsWithArgs="-case "

    case ${prev} in
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
279
280
281
282
    esac

    return 0
}
283
complete -o nospace -F _of_boundaryFoam boundaryFoam
284

285
286
unset -f _of_boxTurb 2>/dev/null
_of_boxTurb()
287
288
289
290
291
292
293
294
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -srcDoc -doc -help "
    local optsWithArgs="-case "

    case ${prev} in
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
311
312
313
314
    esac

    return 0
}
315
complete -o nospace -F _of_boxTurb boxTurb
316

317
318
unset -f _of_buoyantBoussinesqPimpleFoam 2>/dev/null
_of_buoyantBoussinesqPimpleFoam()
319
320
321
322
323
324
325
326
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
327
328
329
330
331
332
333
334
335
336
337
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
338
            COMPREPLY=($(compgen -f -- ${cur}))
339
340
341
342
343
344
345
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
346
347
348
349
    esac

    return 0
}
350
complete -o nospace -F _of_buoyantBoussinesqPimpleFoam buoyantBoussinesqPimpleFoam
351

352
353
unset -f _of_buoyantBoussinesqSimpleFoam 2>/dev/null
_of_buoyantBoussinesqSimpleFoam()
354
355
356
357
358
359
360
361
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
362
363
364
365
366
367
368
369
370
371
372
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
373
            COMPREPLY=($(compgen -f -- ${cur}))
374
375
376
377
378
379
380
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
381
382
383
384
    esac

    return 0
}
385
complete -o nospace -F _of_buoyantBoussinesqSimpleFoam buoyantBoussinesqSimpleFoam
386

387
388
unset -f _of_buoyantPimpleFoam 2>/dev/null
_of_buoyantPimpleFoam()
389
390
391
392
393
394
395
396
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
397
398
399
400
401
402
403
404
405
406
407
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
408
            COMPREPLY=($(compgen -f -- ${cur}))
409
410
411
412
413
414
415
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
416
417
418
419
    esac

    return 0
}
420
complete -o nospace -F _of_buoyantPimpleFoam buoyantPimpleFoam
421

422
423
unset -f _of_buoyantSimpleFoam 2>/dev/null
_of_buoyantSimpleFoam()
424
425
426
427
428
429
430
431
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
432
433
434
435
436
437
438
439
440
441
442
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
443
            COMPREPLY=($(compgen -f -- ${cur}))
444
445
446
447
448
449
450
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
451
452
453
454
    esac

    return 0
}
455
complete -o nospace -F _of_buoyantSimpleFoam buoyantSimpleFoam
456

457
458
unset -f _of_cavitatingDyMFoam 2>/dev/null
_of_cavitatingDyMFoam()
459
460
461
462
463
464
465
466
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
467
468
469
470
471
472
473
474
475
476
477
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
478
            COMPREPLY=($(compgen -f -- ${cur}))
479
480
481
482
483
484
485
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
486
487
488
489
    esac

    return 0
}
490
complete -o nospace -F _of_cavitatingDyMFoam cavitatingDyMFoam
491

492
493
unset -f _of_cavitatingFoam 2>/dev/null
_of_cavitatingFoam()
494
495
496
497
498
499
500
501
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
502
503
504
505
506
507
508
509
510
511
512
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
513
            COMPREPLY=($(compgen -f -- ${cur}))
514
515
516
517
518
519
520
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
521
522
523
524
    esac

    return 0
}
525
complete -o nospace -F _of_cavitatingFoam cavitatingFoam
526

527
528
unset -f _of_cfx4ToFoam 2>/dev/null
_of_cfx4ToFoam()
529
530
531
532
533
534
535
536
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -srcDoc -doc -help "
    local optsWithArgs="-case -scale "

    case ${prev} in
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
553
554
555
556
    esac

    return 0
}
557
complete -o nospace -F _of_cfx4ToFoam cfx4ToFoam
558

559
560
unset -f _of_changeDictionary 2>/dev/null
_of_changeDictionary()
561
562
563
564
565
566
567
568
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-constant -disablePatchGroups -enableFunctionEntries -latestTime -literalRE -newTimes -noFunctionObjects -noZero -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -dict -instance -region -roots -subDict -time "

    case ${prev} in
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -region)
        local regions=$(sed 's#/##g' <<< $([ -d system ] && (\cd system && (\ls -d */ 2>/dev/null))))
        COMPREPLY=($(compgen -W "$regions" -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -time)
        COMPREPLY=($(compgen -d -X '![-0-9]*' -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
598
599
600
601
    esac

    return 0
}
602
complete -o nospace -F _of_changeDictionary changeDictionary
603

604
605
unset -f _of_checkMesh 2>/dev/null
_of_checkMesh()
606
607
608
609
610
611
612
613
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-allGeometry -allTopology -constant -latestTime -meshQuality -newTimes -noFunctionObjects -noTopology -noZero -parallel -writeAllFields -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -region -roots -time -writeFields -writeSets "

    case ${prev} in
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -region)
        local regions=$(sed 's#/##g' <<< $([ -d system ] && (\cd system && (\ls -d */ 2>/dev/null))))
        COMPREPLY=($(compgen -W "$regions" -- ${cur}))
        ;;
    -time)
        COMPREPLY=($(compgen -d -X '![-0-9]*' -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
640
641
642
643
    esac

    return 0
}
644
complete -o nospace -F _of_checkMesh checkMesh
645

646
647
unset -f _of_chemFoam 2>/dev/null
_of_chemFoam()
648
649
650
651
652
653
654
655
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case "

    case ${prev} in
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
672
673
674
675
    esac

    return 0
}
676
complete -o nospace -F _of_chemFoam chemFoam
677

678
679
unset -f _of_chemkinToFoam 2>/dev/null
_of_chemkinToFoam()
680
681
682
683
684
685
686
687
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-newFormat -srcDoc -doc -help "
    local optsWithArgs="-case "

    case ${prev} in
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
704
705
706
707
    esac

    return 0
}
708
complete -o nospace -F _of_chemkinToFoam chemkinToFoam
709

710
711
unset -f _of_chtMultiRegionFoam 2>/dev/null
_of_chtMultiRegionFoam()
712
713
714
715
716
717
718
719
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
720
721
722
723
724
725
726
727
728
729
730
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
731
            COMPREPLY=($(compgen -f -- ${cur}))
732
733
734
735
736
737
738
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
739
740
741
742
    esac

    return 0
}
743
complete -o nospace -F _of_chtMultiRegionFoam chtMultiRegionFoam
744

745
746
unset -f _of_chtMultiRegionSimpleFoam 2>/dev/null
_of_chtMultiRegionSimpleFoam()
747
748
749
750
751
752
753
754
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
755
756
757
758
759
760
761
762
763
764
765
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
766
            COMPREPLY=($(compgen -f -- ${cur}))
767
768
769
770
771
772
773
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
774
775
776
777
    esac

    return 0
}
778
complete -o nospace -F _of_chtMultiRegionSimpleFoam chtMultiRegionSimpleFoam
779

780
781
unset -f _of_coalChemistryFoam 2>/dev/null
_of_coalChemistryFoam()
782
783
784
785
786
787
788
789
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
790
791
792
793
794
795
796
797
798
799
800
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
801
            COMPREPLY=($(compgen -f -- ${cur}))
802
803
804
805
806
807
808
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
809
810
811
812
    esac

    return 0
}
813
complete -o nospace -F _of_coalChemistryFoam coalChemistryFoam
814

815
816
unset -f _of_coldEngineFoam 2>/dev/null
_of_coldEngineFoam()
817
818
819
820
821
822
823
824
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
825
826
827
828
829
830
831
832
833
834
835
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
836
            COMPREPLY=($(compgen -f -- ${cur}))
837
838
839
840
841
842
843
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
844
845
846
847
    esac

    return 0
}
848
complete -o nospace -F _of_coldEngineFoam coldEngineFoam
849

850
851
unset -f _of_collapseEdges 2>/dev/null
_of_collapseEdges()
852
853
854
855
856
857
858
859
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-collapseFaces -constant -latestTime -newTimes -noFunctionObjects -noZero -overwrite -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -collapseFaceSet -decomposeParDict -dict -roots -time "

    case ${prev} in
860
861
862
863
864
865
866
867
868
869
870
871
872
873
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -time)
        COMPREPLY=($(compgen -d -X '![-0-9]*' -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
874
            COMPREPLY=($(compgen -f -- ${cur}))
875
876
877
878
879
880
881
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
882
883
884
885
    esac

    return 0
}
886
complete -o nospace -F _of_collapseEdges collapseEdges
887

888
889
unset -f _of_combinePatchFaces 2>/dev/null
_of_combinePatchFaces()
890
891
892
893
894
895
896
897
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-meshQuality -noFunctionObjects -overwrite -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -concaveAngle -decomposeParDict -roots "

    case ${prev} in
898
899
900
901
902
903
904
905
906
907
908
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
909
            COMPREPLY=($(compgen -f -- ${cur}))
910
911
912
913
914
915
916
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
917
918
919
920
    esac

    return 0
}
921
complete -o nospace -F _of_combinePatchFaces combinePatchFaces
922

923
924
unset -f _of_compressibleInterDyMFoam 2>/dev/null
_of_compressibleInterDyMFoam()
925
926
927
928
929
930
931
932
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
933
934
935
936
937
938
939
940
941
942
943
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
944
            COMPREPLY=($(compgen -f -- ${cur}))
945
946
947
948
949
950
951
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
952
953
954
955
    esac

    return 0
}
956
complete -o nospace -F _of_compressibleInterDyMFoam compressibleInterDyMFoam
957

958
959
unset -f _of_compressibleInterFoam 2>/dev/null
_of_compressibleInterFoam()
960
961
962
963
964
965
966
967
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
968
969
970
971
972
973
974
975
976
977
978
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
979
            COMPREPLY=($(compgen -f -- ${cur}))
980
981
982
983
984
985
986
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
987
988
989
990
    esac

    return 0
}
991
complete -o nospace -F _of_compressibleInterFoam compressibleInterFoam
992

993
994
unset -f _of_compressibleMultiphaseInterFoam 2>/dev/null
_of_compressibleMultiphaseInterFoam()
995
996
997
998
999
1000
1001
1002
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1014
            COMPREPLY=($(compgen -f -- ${cur}))
1015
1016
1017
1018
1019
1020
1021
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1022
1023
1024
1025
    esac

    return 0
}
1026
complete -o nospace -F _of_compressibleMultiphaseInterFoam compressibleMultiphaseInterFoam
1027

1028
1029
unset -f _of_createBaffles 2>/dev/null
_of_createBaffles()
1030
1031
1032
1033
1034
1035
1036
1037
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -overwrite -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -dict -region -roots "

    case ${prev} in
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -region)
        local regions=$(sed 's#/##g' <<< $([ -d system ] && (\cd system && (\ls -d */ 2>/dev/null))))
        COMPREPLY=($(compgen -W "$regions" -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1053
            COMPREPLY=($(compgen -f -- ${cur}))
1054
1055
1056
1057
1058
1059
1060
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1061
1062
1063
1064
    esac

    return 0
}
1065
complete -o nospace -F _of_createBaffles createBaffles
1066

1067
1068
unset -f _of_createExternalCoupledPatchGeometry 2>/dev/null
_of_createExternalCoupledPatchGeometry()
1069
1070
1071
1072
1073
1074
1075
1076
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -commsDir -decomposeParDict -region -regions -roots "

    case ${prev} in
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -region)
        local regions=$(sed 's#/##g' <<< $([ -d system ] && (\cd system && (\ls -d */ 2>/dev/null))))
        COMPREPLY=($(compgen -W "$regions" -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1092
            COMPREPLY=($(compgen -f -- ${cur}))
1093
1094
1095
1096
1097
1098
1099
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1100
1101
1102
1103
    esac

    return 0
}
1104
complete -o nospace -F _of_createExternalCoupledPatchGeometry createExternalCoupledPatchGeometry
1105

1106
1107
unset -f _of_createPatch 2>/dev/null
_of_createPatch()
1108
1109
1110
1111
1112
1113
1114
1115
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -overwrite -parallel -writeObj -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -dict -region -roots "

    case ${prev} in
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -region)
        local regions=$(sed 's#/##g' <<< $([ -d system ] && (\cd system && (\ls -d */ 2>/dev/null))))
        COMPREPLY=($(compgen -W "$regions" -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1131
            COMPREPLY=($(compgen -f -- ${cur}))
1132
1133
1134
1135
1136
1137
1138
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1139
1140
1141
1142
    esac

    return 0
}
1143
complete -o nospace -F _of_createPatch createPatch
1144

1145
1146
unset -f _of_createZeroDirectory 2>/dev/null
_of_createZeroDirectory()
1147
1148
1149
1150
1151
1152
1153
1154
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots -templateDir "

    case ${prev} in
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1166
            COMPREPLY=($(compgen -f -- ${cur}))
1167
1168
1169
1170
1171
1172
1173
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1174
1175
1176
1177
    esac

    return 0
}
1178
complete -o nospace -F _of_createZeroDirectory createZeroDirectory
1179

1180
1181
unset -f _of_datToFoam 2>/dev/null
_of_datToFoam()
1182
1183
1184
1185
1186
1187
1188
1189
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -srcDoc -doc -help "
    local optsWithArgs="-case "

    case ${prev} in
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1206
1207
1208
1209
    esac

    return 0
}
1210
complete -o nospace -F _of_datToFoam datToFoam
1211

1212
1213
unset -f _of_decomposePar 2>/dev/null
_of_decomposePar()
1214
1215
1216
1217
1218
1219
1220
1221
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-allRegions -cellDist -constant -copyUniform -copyZero -fields -force -ifRequired -latestTime -newTimes -noFunctionObjects -noSets -noZero -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -region -time "

    case ${prev} in
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    -region)
        local regions=$(sed 's#/##g' <<< $([ -d system ] && (\cd system && (\ls -d */ 2>/dev/null))))
        COMPREPLY=($(compgen -W "$regions" -- ${cur}))
        ;;
    -time)
        COMPREPLY=($(compgen -d -X '![-0-9]*' -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
            COMPREPLY=($(compgen -f -- ${cur}))
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1248
1249
1250
1251
    esac

    return 0
}
1252
complete -o nospace -F _of_decomposePar decomposePar
1253

1254
1255
unset -f _of_deformedGeom 2>/dev/null
_of_deformedGeom()
1256
1257
1258
1259
1260
1261
1262
1263
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1275
            COMPREPLY=($(compgen -f -- ${cur}))
1276
1277
1278
1279
1280
1281
1282
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1283
1284
1285
1286
    esac

    return 0
}
1287
complete -o nospace -F _of_deformedGeom deformedGeom
1288

1289
1290
unset -f _of_dnsFoam 2>/dev/null
_of_dnsFoam()
1291
1292
1293
1294
1295
1296
1297
1298
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1310
            COMPREPLY=($(compgen -f -- ${cur}))
1311
1312
1313
1314
1315
1316
1317
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1318
1319
1320
1321
    esac

    return 0
}
1322
complete -o nospace -F _of_dnsFoam dnsFoam
1323

1324
1325
unset -f _of_DPMDyMFoam 2>/dev/null
_of_DPMDyMFoam()
1326
1327
1328
1329
1330
1331
1332
1333
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -cloudName -decomposeParDict -roots "

    case ${prev} in
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1345
            COMPREPLY=($(compgen -f -- ${cur}))
1346
1347
1348
1349
1350
1351
1352
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1353
1354
1355
1356
    esac

    return 0
}
1357
complete -o nospace -F _of_DPMDyMFoam DPMDyMFoam
1358

1359
1360
unset -f _of_DPMFoam 2>/dev/null
_of_DPMFoam()
1361
1362
1363
1364
1365
1366
1367
1368
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -cloud -decomposeParDict -roots "

    case ${prev} in
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1380
            COMPREPLY=($(compgen -f -- ${cur}))
1381
1382
1383
1384
1385
1386
1387
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1388
1389
1390
1391
    esac

    return 0
}
1392
complete -o nospace -F _of_DPMFoam DPMFoam
1393

1394
1395
unset -f _of_driftFluxFoam 2>/dev/null
_of_driftFluxFoam()
1396
1397
1398
1399
1400
1401
1402
1403
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1415
            COMPREPLY=($(compgen -f -- ${cur}))
1416
1417
1418
1419
1420
1421
1422
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1423
1424
1425
1426
    esac

    return 0
}
1427
complete -o nospace -F _of_driftFluxFoam driftFluxFoam
1428

1429
1430
unset -f _of_dsmcFoam 2>/dev/null
_of_dsmcFoam()
1431
1432
1433
1434
1435
1436
1437
1438
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -postProcess -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1450
            COMPREPLY=($(compgen -f -- ${cur}))
1451
1452
1453
1454
1455
1456
1457
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1458
1459
1460
1461
    esac

    return 0
}
1462
complete -o nospace -F _of_dsmcFoam dsmcFoam
1463

1464
1465
unset -f _of_dsmcInitialise 2>/dev/null
_of_dsmcInitialise()
1466
1467
1468
1469
1470
1471
1472
1473
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1485
            COMPREPLY=($(compgen -f -- ${cur}))
1486
1487
1488
1489
1490
1491
1492
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1493
1494
1495
1496
    esac

    return 0
}
1497
complete -o nospace -F _of_dsmcInitialise dsmcInitialise
1498

1499
1500
unset -f _of_electrostaticFoam 2>/dev/null
_of_electrostaticFoam()
1501
1502
1503
1504
1505
1506
1507
1508
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;
    *Dict)
        COMPREPLY=($(compgen -f -- ${cur}))
        ;;
    *)
        if [ "${optsWithArgs/${prev} /}" != "${optsWithArgs}" ]
        then
            # Unknown type of arg follows - set to files.
            # Not always correct but can still navigate path if needed...
1520
            COMPREPLY=($(compgen -f -- ${cur}))
1521
1522
1523
1524
1525
1526
1527
        else
            # Catch-all - present all remaining options
            opts=$(_of_filter_opts "${opts}" "${COMP_LINE}")
            optsWithArgs=$(_of_filter_opts "${optsWithArgs}" "${COMP_LINE}")
            COMPREPLY=($(compgen -W "${opts} ${optsWithArgs}" -- ${cur}))
        fi
        ;;
1528
1529
1530
1531
    esac

    return 0
}
1532
complete -o nospace -F _of_electrostaticFoam electrostaticFoam
1533

1534
1535
unset -f _of_engineCompRatio 2>/dev/null
_of_engineCompRatio()
1536
1537
1538
1539
1540
1541
1542
1543
{
    local cur="${COMP_WORDS[COMP_CWORD]}"
    local prev="${COMP_WORDS[COMP_CWORD-1]}"

    local opts="-noFunctionObjects -parallel -srcDoc -doc -help "
    local optsWithArgs="-case -decomposeParDict -roots "

    case ${prev} in
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
    -case)
        COMPREPLY=($(compgen -d -- ${cur}))
        ;;