-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.i
657 lines (641 loc) · 15.7 KB
/
debug.i
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
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
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
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
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
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
##########################################################
# TPV205 benchmark
# Global coordinate is the same as local coordinate
# x - strike; y - dip; z - normal
##########################################################
[Mesh]
[./msh]
type = GeneratedMeshGenerator
dim = 3
nx = 2
ny =1
nz =1
subdomain_ids = '2 3'
[]
[sideset]
type = SideSetsBetweenSubdomainsGenerator
input = msh
primary_block = 2
paired_block = 3
new_boundary = Block2_Block3
[]
[]
[GlobalParams]
##------------slip weakening------------##
displacements = 'disp_x disp_y disp_z'
#damping ratio
q = 1.0
#characteristic length (m)
Dc = 0.4
[]
[AuxVariables]
[./resid_x]
order = FIRST
family = LAGRANGE
[../]
[./resid_y]
order = FIRST
family = LAGRANGE
[]
[./resid_z]
order = FIRST
family = LAGRANGE
[]
[./resid_slipweakening_x]
order = FIRST
family = LAGRANGE
[../]
[./resid_slipweakening_y]
order = FIRST
family = LAGRANGE
[../]
[./resid_slipweakening_z]
order = FIRST
family = LAGRANGE
[../]
#restoration force for damping (tag after solve)
[./resid_damp_x]
order = FIRST
family = LAGRANGE
[../]
[./resid_damp_y]
order = FIRST
family = LAGRANGE
[../]
[./resid_damp_z]
order = FIRST
family = LAGRANGE
[../]
[./resid_damp_sw_x]
order = FIRST
family = LAGRANGE
[../]
[./resid_damp_sw_y]
order = FIRST
family = LAGRANGE
[../]
[./resid_damp_sw_z]
order = FIRST
family = LAGRANGE
[../]
[./disp_slipweakening_x]
order = FIRST
family = LAGRANGE
[]
[./disp_slipweakening_y]
order = FIRST
family = LAGRANGE
[]
[./disp_slipweakening_z]
order = FIRST
family = LAGRANGE
[]
[./vel_slipweakening_x]
order = FIRST
family = LAGRANGE
[]
[./vel_slipweakening_y]
order = FIRST
family = LAGRANGE
[]
[./vel_slipweakening_z]
order = FIRST
family = LAGRANGE
[]
[./accel_slipweakening_x]
order = FIRST
family = LAGRANGE
[]
[./accel_slipweakening_y]
order = FIRST
family = LAGRANGE
[]
[./accel_slipweakening_z]
order = FIRST
family = LAGRANGE
[]
[./mu_s]
order = CONSTANT
family = MONOMIAL
[]
[./mu_d]
order = CONSTANT
family = MONOMIAL
[]
[./ini_shear_stress]
order = FIRST
family = LAGRANGE
[]
#
[./tangent_jump]
order = CONSTANT
family = MONOMIAL
[]
[./tangent_jump_rate]
order = CONSTANT
family = MONOMIAL
[]
#
[./elem_length]
order = CONSTANT
family = MONOMIAL
[../]
#
[./jump_x]
order = CONSTANT
family = MONOMIAL
[]
[./jump_y]
order = CONSTANT
family = MONOMIAL
[]
[./jump_z]
order = CONSTANT
family = MONOMIAL
[]
#
[jump_rate_x]
order = CONSTANT
family = MONOMIAL
[]
[jump_rate_y]
order = CONSTANT
family = MONOMIAL
[]
[jump_rate_z]
order = CONSTANT
family = MONOMIAL
[]
#
[traction_x]
order = CONSTANT
family = MONOMIAL
[]
[traction_y]
order = CONSTANT
family = MONOMIAL
[]
[traction_z]
order = CONSTANT
family = MONOMIAL
[]
#
[./check_function_initial_stress_xx]
order = FIRST
family = LAGRANGE
[]
[./check_function_initial_stress_xy]
order = FIRST
family = LAGRANGE
[]
[./check_function_initial_stress_xz]
order = FIRST
family = LAGRANGE
[]
[./check_function_initial_stress_yy]
order = FIRST
family = LAGRANGE
[]
[./check_function_initial_stress_yz]
order = FIRST
family = LAGRANGE
[]
[./check_function_initial_stress_zz]
order = FIRST
family = LAGRANGE
[]
[]
[Modules]
[./TensorMechanics]
[./Master]
[./all]
strain = SMALL
add_variables = true
generate_output = 'stress_xx stress_yy stress_xy strain_xx strain_xy strain_yy'
extra_vector_tags = 'restore_tag'
[../]
[../]
[../]
[]
[Problem]
extra_tag_vectors = 'restore_tag restore_dampx_tag restore_dampy_tag restore_dampz_tag'
[]
[AuxKernels]
[Displacment_x]
type = ProjectionAux
variable = disp_slipweakening_x
v = disp_x
execute_on = 'TIMESTEP_BEGIN'
[]
[Displacement_y]
type = ProjectionAux
variable = disp_slipweakening_y
v = disp_y
execute_on = 'TIMESTEP_BEGIN'
[]
[Displacement_z]
type = ProjectionAux
variable = disp_slipweakening_z
v = disp_z
execute_on = 'TIMESTEP_BEGIN'
[]
[Vel_x]
type = CompVarRate
variable = vel_slipweakening_x
coupled = disp_x
execute_on = 'TIMESTEP_BEGIN'
[]
[Vel_y]
type = CompVarRate
variable = vel_slipweakening_y
coupled = disp_y
execute_on = 'TIMESTEP_BEGIN'
[]
[Vel_z]
type = CompVarRate
variable = vel_slipweakening_z
coupled = disp_z
execute_on = 'TIMESTEP_BEGIN'
[]
# #
# [XJump]
# type = MaterialRealVectorValueAux
# property = displacement_jump_global
# variable = jump_x
# component = 0
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
# [YJump]
# type = MaterialRealVectorValueAux
# property = displacement_jump_global
# variable = jump_y
# component = 1
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
# [ZJump]
# type = MaterialRealVectorValueAux
# property = displacement_jump_global
# variable = jump_z
# component = 2
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
# #
# [XJumpRate]
# type = MaterialRealVectorValueAux
# property = displacement_jump_rate_global
# variable = jump_rate_x
# component = 0
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
# [YJumpRate]
# type = MaterialRealVectorValueAux
# property = displacement_jump_rate_global
# variable = jump_rate_y
# component = 1
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
# [ZJumpRate]
# type = MaterialRealVectorValueAux
# property = displacement_jump_rate_global
# variable = jump_rate_z
# component = 2
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
# #
# [TractionX]
# type = MaterialRealVectorValueAux
# property = traction_on_interface
# variable = traction_x
# component = 0
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
# [TractionY]
# type = MaterialRealVectorValueAux
# property = traction_on_interface
# variable = traction_y
# component = 1
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
# [TractionZ]
# type = MaterialRealVectorValueAux
# property = traction_on_interface
# variable = traction_z
# component = 2
# execute_on = 'TIMESTEP_END'
# boundary = 'Block2_Block3'
# []
#
[Residual_x]
type = ProjectionAux
variable = resid_slipweakening_x
v = resid_x
execute_on = 'TIMESTEP_BEGIN'
[]
[Residual_y]
type = ProjectionAux
variable = resid_slipweakening_y
v = resid_y
execute_on = 'TIMESTEP_BEGIN'
[]
[Residual_z]
type = ProjectionAux
variable = resid_slipweakening_z
v = resid_z
execute_on = 'TIMESTEP_BEGIN'
[]
[restore_x]
type = TagVectorAux
vector_tag = 'restore_tag'
v = 'disp_x'
variable = 'resid_x'
execute_on = 'TIMESTEP_END'
[]
[restore_y]
type = TagVectorAux
vector_tag = 'restore_tag'
v = 'disp_y'
variable = 'resid_y'
execute_on = 'TIMESTEP_END'
[]
[restore_z]
type = TagVectorAux
vector_tag = 'restore_tag'
v = 'disp_z'
variable = 'resid_z'
execute_on = 'TIMESTEP_END'
[]
#damping
#
[Residual_damp_x]
type = ProjectionAux
variable = resid_damp_sw_x
v = resid_damp_x
execute_on = 'TIMESTEP_BEGIN'
[]
[Residual_damp_y]
type = ProjectionAux
variable = resid_damp_sw_y
v = resid_damp_y
execute_on = 'TIMESTEP_BEGIN'
[]
[Residual_damp_z]
type = ProjectionAux
variable = resid_damp_sw_z
v = resid_damp_z
execute_on = 'TIMESTEP_BEGIN'
[]
[restore_dampx]
type = TagVectorAux
vector_tag = 'restore_dampx_tag'
v = 'disp_x'
variable = 'resid_damp_x'
execute_on = 'TIMESTEP_END'
[]
[restore_dampy]
type = TagVectorAux
vector_tag = 'restore_dampy_tag'
v = 'disp_y'
variable = 'resid_damp_y'
execute_on = 'TIMESTEP_END'
[]
[restore_dampz]
type = TagVectorAux
vector_tag = 'restore_dampz_tag'
v = 'disp_z'
variable = 'resid_damp_z'
execute_on = 'TIMESTEP_END'
[]
[StaticFricCoeff]
type = FunctionAux
variable = mu_s
function = func_static_friction_coeff_mus
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[DynamicFricCoeff]
type = FunctionAux
variable = mu_d
function = func_dynamic_friction_coeff_mud
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[elem_length]
type = ConstantAux
variable = elem_length
value = 200
[]
[checkxx]
type = FunctionAux
variable = check_function_initial_stress_xx
function = func_initial_stress_xx
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[checkxy]
type = FunctionAux
variable = check_function_initial_stress_xy
function = func_initial_stress_xy
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[checkxz]
type = FunctionAux
variable = check_function_initial_stress_xz
function = func_initial_stress_xz
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[checkyy]
type = FunctionAux
variable = check_function_initial_stress_yy
function = func_initial_stress_yy
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[checkyz]
type = FunctionAux
variable = check_function_initial_stress_yz
function = func_initial_stress_yz
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[checkzz]
type = FunctionAux
variable = check_function_initial_stress_zz
function = func_initial_stress_zz
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[]
[Kernels]
[./inertia_x]
type = InertialForce
use_displaced_mesh = false
variable = disp_x
[]
[./inertia_y]
type = InertialForce
use_displaced_mesh = false
variable = disp_y
[]
[./inertia_z]
type = InertialForce
use_displaced_mesh = false
variable = disp_z
[]
[./Reactionx]
type = StiffPropDamping
variable = 'disp_x'
component = '0'
extra_vector_tags = restore_dampx_tag
[]
[./Reactiony]
type = StiffPropDamping
variable = 'disp_y'
component = '1'
extra_vector_tags = restore_dampy_tag
[]
[./Reactionz]
type = StiffPropDamping
variable = 'disp_z'
component = '2'
extra_vector_tags = restore_dampz_tag
[]
[]
[InterfaceKernels]
[czm_interface_kernel_x]
type = FarmsCZM
variable = disp_x
neighbor_var = disp_x
boundary = 'Block2_Block3'
[]
[czm_interface_kernel_y]
type = FarmsCZM
variable = disp_y
neighbor_var = disp_y
boundary = 'Block2_Block3'
[]
[czm_interface_kernel_z]
type = FarmsCZM
variable = disp_z
neighbor_var = disp_z
boundary = 'Block2_Block3'
[]
[]
[Materials]
[stress]
type = ComputeLinearElasticStress
[]
[density]
type = GenericConstantMaterial
prop_names = density
prop_values = 2670
[]
[elasticity]
type = ComputeIsotropicElasticityTensor
shear_modulus = 32.04e9
lambda = 32.04e9
[]
[./czm_mat]
type = FarmsSlipWeakeningCZM
disp_slipweakening_x = disp_slipweakening_x
disp_slipweakening_y = disp_slipweakening_y
disp_slipweakening_z = disp_slipweakening_z
reaction_slipweakening_x = resid_slipweakening_x
reaction_slipweakening_y = resid_slipweakening_y
reaction_slipweakening_z = resid_slipweakening_z
reaction_damp_x = resid_damp_sw_x
reaction_damp_y = resid_damp_sw_y
reaction_damp_z = resid_damp_sw_z
elem_length = elem_length
mu_d = mu_d
mu_s = mu_s
boundary = 'Block2_Block3'
[../]
[./static_initial_stress_tensor_slipweakening]
type = GenericFunctionRankTwoTensor
tensor_name = static_initial_stress_tensor_slipweakening
tensor_functions = 'func_initial_stress_xx func_initial_stress_xy func_initial_stress_xz
func_initial_stress_xy func_initial_stress_yy func_initial_stress_yz
func_initial_stress_xz func_initial_stress_yz func_initial_stress_zz'
[../]
[]
[Functions]
[func_static_friction_coeff_mus]
type = InitialStaticFrictionCoeff
[]
#mud constant value
[func_dynamic_friction_coeff_mud]
type = ConstantFunction
value = 0.525
[]
#Note:restrict stress variation along the fault only
#this function is used in czm only
[./func_initial_stress_xx]
type = ConstantFunction
value = 0
[]
[./func_initial_stress_xy]
type = ConstantFunction
value = 0
[]
[./func_initial_stress_xz]
type = InitialShearStress
benchmark_type = tpv205
[]
[./func_initial_stress_yy]
type = ConstantFunction
value = 0
[]
[./func_initial_stress_yz]
type = ConstantFunction
value = 0
[]
[./func_initial_stress_zz]
type = ConstantFunction
value = -120e6
[]
[]
[UserObjects]
[recompute_residual_tag]
type = ResidualEvaluationUserObject
vector_tag = 'restore_tag'
force_preaux = true
execute_on = 'TIMESTEP_END'
[]
#damping
[recompute_residual_tag_dampx]
type = ResidualEvaluationUserObject
vector_tag = 'restore_dampx_tag'
force_preaux = true
execute_on = 'TIMESTEP_END'
[]
[recompute_residual_tag_dampy]
type = ResidualEvaluationUserObject
vector_tag = 'restore_dampy_tag'
force_preaux = true
execute_on = 'TIMESTEP_END'
[]
[recompute_residual_tag_dampz]
type = ResidualEvaluationUserObject
vector_tag = 'restore_dampz_tag'
force_preaux = true
execute_on = 'TIMESTEP_END'
[]
[]
[Executioner]
type = Transient
dt = 0.0025
end_time = 12.0
# num_steps = 10
[TimeIntegrator]
type = CentralDifference
solve_type = lumped
use_constant_mass = true
[]
[]
[Outputs]
exodus = true
interval = 40
show = 'vel_slipweakening_x vel_slipweakening_y vel_slipweakening_z disp_slipweakening_x disp_slipweakening_y disp_slipweakening_z traction_x traction_y traction_z jump_x jump_y jump_z jump_rate_x jump_rate_y jump_rate_z'
[]