-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_gy.i
More file actions
253 lines (203 loc) · 4.63 KB
/
test_gy.i
File metadata and controls
253 lines (203 loc) · 4.63 KB
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
[Mesh]
[file]
type = FileMeshGenerator
file = gyroid_50mm_test.msh
[]
[bottom_nodes]
type = BoundingBoxNodeSetGenerator
input = file
new_boundary = 'bottom'
bottom_left = '-1 -1 -0.5'
top_right = '26 26 0.5'
[]
[top_nodes]
type = BoundingBoxNodeSetGenerator
input = bottom_nodes
new_boundary = 'top'
bottom_left = '-1 -1 24.5'
top_right = '26 26 0.5'
[]
[]
# [Functions]
# [hardening]
# type = PiecewiseLinear
# x = '0.0 0.01 0.02 0.05 0.1 0.2 0.5'
# y = '0.0 50 70 110 158 223 353'
# []
# []
[GlobalParams]
displacements = 'disp_x disp_y disp_z'
volumetric_locking_correction = true
[]
[Physics]
[SolidMechanics]
[QuasiStatic]
[all]
strain = SMALL
add_variables = true
generate_output = 'vonmises_stress strain_xx strain_yy strain_zz'
save_in = 'react_x react_y react_z'
use_automatic_differentiation = true
[]
[]
[]
[]
[AuxVariables]
[react_x]
[]
[react_y]
[]
[react_z]
[]
[]
[Materials]
[elasticity_tensor]
type = ADComputeIsotropicElasticityTensor
youngs_modulus = 3000
poissons_ratio = 0.36
[]
# [plasticity]
# type = ADIsotropicPlasticityStressUpdate
# yield_stress = 50.0
# hardening_constant = 0
# []
[stress]
type = ADComputeLinearElasticStress
# inelastic_models = 'plasticity'
# perform_finite_strain_rotations = true
[]
[density]
type = ADGenericConstantMaterial
prop_names = 'density'
prop_values = '1.25e-9'
[]
[]
[BCs]
[bottom_x]
type = DirichletBC
variable = disp_x
boundary = 'bottom'
value = 0.0
[]
[bottom_y]
type = DirichletBC
variable = 'disp_y'
boundary = 'bottom'
value = 0.0
[]
[bottom_z]
type = DirichletBC
variable = 'disp_z'
boundary = 'bottom'
value = 0.0
[]
[top_displacement]
type = FunctionDirichletBC
variable = disp_z
boundary = 'top'
function = '-0.5 * t'
[]
[]
[Preconditioning]
[SMP]
type = SMP
full = true
petsc_options_iname = '-pc_type -pc_hypre_type -pc_hypre_boomeramg_strong_threshold'
petsc_options_value = 'hypre boomeramg 0.7'
[]
[]
[Executioner]
type = Transient
solve_type = NEWTON
petsc_options_iname = '-ksp_type -pc_type -pc_hypre_type'
petsc_options_value = 'gmres hypre boomeramg'
nl_rel_tol = 1e-10
nl_abs_tol = 1e-8
nl_max_its = 50
l_tol = 1e-5
l_max_its = 100
start_time = 0.0
end_time = 1.0
[TimeStepper]
type = IterationAdaptiveDT
dt = 0.05
optimal_iterations = 8
iteration_window = 2
growth_factor = 1.2
cutback_factor = 0.5
[]
automatic_scaling = true
line_search = 'basic'
[]
[Postprocessors]
[max_vonmises]
type = ElementExtremeValue
variable = vonmises_stress
value_type = max
execute_on = 'INITIAL TIMESTEP_END'
[]
[avg_vonmises]
type = ElementAverageValue
variable = vonmises_stress
execute_on = 'INITIAL TIMESTEP_END'
[]
[max_disp_z]
type = NodalExtremeValue
variable = disp_z
value_type = min
execute_on = 'INITIAL TIMESTEP_END'
[]
[volume]
type = VolumePostprocessor
execute_on = 'INITIAL'
[]
[reaction_force_z]
type = NodalSum
variable = 'react_z'
boundary = 'bottom'
execute_on = 'INITIAL TIMESTEP_END'
[]
[num_elems]
type = NumElements
execute_on = 'INITIAL'
[]
[num_nodes]
type = NumNodes
execute_on = 'INITIAL'
[]
[num_dofs]
type = NumDOFs
execute_on = 'INITIAL'
[]
[num_nl_its]
type = NumNonlinearIterations
execute_on = 'TIMESTEP_END'
[]
[num_linear_its]
type = NumLinearIterations
execute_on = 'TIMESTEP_END'
[]
[]
[Outputs]
csv = true
print_linear_residuals = false
[nemesis]
type = Exodus
hide = 'vonmises_stress strain_xx strain_yy strain_zz'
# 'vel_x accel_x disp_x'
additional_execute_on = FINAL
[]
[console]
type = Console
max_rows = 15
fit_mode = 80
[]
[checkpoint]
type = Checkpoint
num_files = 2
interval = 5
[]
[]
[Debug]
show_var_residual_norms = true
[]