/
adapt_tstep_shrink_init_dt_restart1.i
149 lines (123 loc) · 2.02 KB
/
adapt_tstep_shrink_init_dt_restart1.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
[Mesh]
file = 1x1x1_cube.e
displacements = 'disp_x disp_y disp_z'
[]
[Variables]
[./disp_x]
order = FIRST
family = LAGRANGE
[../]
[./disp_y]
order = FIRST
family = LAGRANGE
[../]
[./disp_z]
order = FIRST
family = LAGRANGE
[../]
[]
[AuxVariables]
[./stress_yy]
order = CONSTANT
family = MONOMIAL
[../]
[]
[Functions]
[./top_pull]
type = PiecewiseLinear
x = '0 1'
y = '1 1'
[../]
[]
[SolidMechanics]
[./solid]
disp_x = disp_x
disp_y = disp_y
disp_z = disp_z
[../]
[]
[AuxKernels]
[./stress_yy]
type = MaterialTensorAux
tensor = stress
variable = stress_yy
index = 1
[../]
[]
[BCs]
[./u_top_pull]
type = Pressure
variable = disp_y
component = 1
boundary = 5
factor = -0.5e8
function = top_pull
[../]
[./u_bottom_fix]
type = DirichletBC
variable = disp_y
boundary = 3
value = 0.0
[../]
[./u_yz_fix]
type = DirichletBC
variable = disp_x
boundary = 4
value = 0.0
[../]
[./u_xy_fix]
type = DirichletBC
variable = disp_z
boundary = 2
value = 0.0
[../]
[]
[Materials]
[./elastic]
type = Elastic
block = 1
disp_x = disp_x
disp_y = disp_y
disp_z = disp_z
youngs_modulus = 2.e11
poissons_ratio = .3
[../]
[]
[Executioner]
type = Transient
solve_type = PJFNK
verbose = true
petsc_options = '-snes_ksp_ew'
petsc_options_iname = '-ksp_gmres_restart'
petsc_options_value = '101'
line_search = 'none'
l_max_its = 100
nl_max_its = 100
nl_rel_tol = 1e-16
nl_abs_tol = 1e-4
l_tol = 1e-5
l_abs_step_tol = 1e-6
start_time = 0.0
dtmin = 3.0
end_time = 13.0
num_steps = 1
[./TimeStepper]
type = AdaptiveDT
optimal_iterations = 1
iteration_window = 1
linear_iteration_ratio = 1
dt = 5.0
[../]
[]
[Postprocessors]
[./_dt]
type = TimestepSize
[../]
[]
[Output]
linear_residuals = true
interval = 1
output_initial = true
exodus = true
num_checkpoint_files = 1
[]