forked from idaholab/magpie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspectralLinearElastic2Materials.i
173 lines (156 loc) · 3.01 KB
/
spectralLinearElastic2Materials.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
[Mesh]
type = MyTRIMMesh
dim = 3
xmin = -5
xmax = 5
ymin = -5
ymax = 5
zmin = -5
zmax = 5
nx = 32
ny = 32
nz = 32
[]
[Problem]
type = FFTProblem
[]
[AuxVariables]
[./epsilon_aux_var]
order = CONSTANT
family = MONOMIAL
[../]
[./stress_aux_var]
order = CONSTANT
family = MONOMIAL
[../]
[./elastic_aux_var]
order = CONSTANT
family = MONOMIAL
[../]
[./index_buffer_aux_var]
order = CONSTANT
family = MONOMIAL
[../]
[./stiffness_ratio_aux]
order = CONSTANT
family = MONOMIAL
[./InitialCondition]
type = SmoothSuperellipsoidIC
x1 = 0
y1 = 0
z1 = 0
a = 2
b = 2
c = 2
n = 2
int_width = 0
invalue = 1
outvalue = 4
[../]
[../]
[]
[UserObjects]
# Buffers
[./epsilon]
type = RankTwoTensorFFTWBuffer
[../]
[./stress]
type = RankTwoTensorFFTWBuffer
[../]
# Reciprocal space: Elastic tensor
[./gamma]
type = RankFourTensorFFTWBuffer
[../]
[./elastic]
type = RankFourTensorFFTWBuffer
[../]
[./stiffness_ratio]
type = RealFFTWBuffer
moose_variable = stiffness_ratio_aux
[]
[./index_buffer]
type = RealFFTWBuffer
[]
[]
[AuxKernels]
[./epsilon_aux]
type = FFTBufferAux
variable = epsilon_aux_var
fft_buffer = epsilon
execute_on = final
component = '0 1'
[../]
[./stress_aux]
type = FFTBufferAux
variable = stress_aux_var
fft_buffer = stress
execute_on = final
component = '0 1'
[../]
[./elastic_aux]
type = FFTBufferAux
variable = elastic_aux_var
fft_buffer = elastic
execute_on = final
component = '0 1 0 1'
[../]
[./stiffness_aux]
type = FFTBufferAux
variable = stiffness_ratio_aux
fft_buffer = stiffness_ratio
execute_on = final
[../]
[./index_aux]
type = FFTBufferAux
variable = index_buffer_aux_var
fft_buffer = index_buffer
execute_on = final
[../]
[]
[Executioner]
type = SpectralExecutionerLinearElastic
time_step = 1.0
number_iterations = 300
solver_error = 1.0e-6
global_strain_tensor = '0.0 0.0 0.0 0.0 0.0 0.01'
young_modulus = 1e4
poisson_ratio = 0.3
average_material_factor = 2
[]
[VectorPostprocessors]
[./linevaluex]
type = LineValueSampler
variable = 'epsilon_aux_var stress_aux_var'
start_point = '-4.9999999999 0 0'
end_point = '4.9999999999 0 0'
num_points = 101
sort_by = x
execute_on = final
[../]
[./linevaluey]
type = LineValueSampler
variable = 'epsilon_aux_var stress_aux_var'
start_point = '0 -4.9999999999 0'
end_point = '0 4.9999999999 0'
num_points = 101
sort_by = y
execute_on = final
[../]
[./linevaluez]
type = LineValueSampler
variable = 'epsilon_aux_var stress_aux_var'
start_point = '0 0 -4.9999999999'
end_point = '0 0 4.9999999999'
num_points = 101
sort_by = z
execute_on = final
[../]
[]
[Outputs]
exodus = true
execute_on = 'INITIAL FINAL'
perf_graph = true
[./comp]
type = CSV
[../]
[]