forked from idaholab/moose
/
tests
217 lines (217 loc) · 8.77 KB
/
tests
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
[Tests]
design = 'syntax/Variables/index.md'
[./vector_fe]
type = Exodiff
input = 'vector_kernel.i'
exodiff = 'vector_kernel_out.e'
abs_zero = 1e-8
issues = "#10049"
requirement = "The system shall be able to solve a curl-curl problem using NEDELEC_ONE elements."
[../]
[./coupled_scalar_vector]
type = Exodiff
input = 'coupled_scalar_vector.i'
exodiff = 'coupled_scalar_vector_out.e'
abs_zero = 6e-8
rel_err = 3e-5
issues = "#10049"
requirement = "The system shall be able to couple a vector variable into a standard kernel."
[../]
[./coupled_scalar_default_vector_source]
type = Exodiff
input = 'coupled_scalar_default_vector_value.i'
exodiff = 'coupled_scalar_default_vector_value_out.e'
issues = '#10049'
requirement = "The system shall be able to assign a default value for a vector variable from the source file."
[../]
[./coupled_scalar_default_vector_input_and_warn]
type = Exodiff
input = 'coupled_scalar_default_vector_value.i'
exodiff = 'coupled_scalar_default_vector_value_alt_out.e'
allow_warnings = True
cli_args = "Kernels/advection/efield='.3 .3' Outputs/file_base=coupled_scalar_default_vector_value_alt_out"
expect_out = "You supplied less than 3 arguments for the default vector value for variable efield"
issues = '#10049'
requirement = "The system shall warn when assigning a default value with number of components less than LIBMESH_DIM, "
"and it shall be able to assign the default value from the input file."
[../]
[./coupled_scalar_default_vector_jacobian]
type = PetscJacobianTester
input = 'coupled_scalar_default_vector_value.i'
ratio_tol = 1e-7
difference_tol = 1e-6
run_sim = True
cli_args = 'Mesh/nx=3 Mesh/ny=3 Outputs/exodus=false'
issues = '#10049'
requirement = "The system shall be able to assign a default value for a vector variable from the input file and still have the correct jacobian."
[../]
[./lagrange_vec]
type = Exodiff
input = 'lagrange_vec.i'
exodiff = 'lagrange_vec_out.e'
abs_zero = 1e-8
issues = "#10049"
requirement = "The system shall be able to solve multi-dimensional problems with LAGRANGE_VEC variables."
[../]
[./lagrange_vec_1d]
type = Exodiff
input = 'lagrange_vec_1d.i'
exodiff = 'lagrange_vec_1d_out.e'
abs_zero = 1e-8
issues = "#10049"
requirement = "The system shall be able to solve one-dimensional problems with LAGRANGE_VEC variables."
[../]
[./lagrange_vec_1d_jac]
type = PetscJacobianTester
input = 'lagrange_vec_1d.i'
ratio_tol = 1e-7
difference_tol = 1e-6
issues = "#10049"
cli_args = 'Outputs/exodus=false Mesh/nx=3'
requirement = "The system shall be able to solve one-dimensional problems with LAGRANGE_VEC variables and produce the correct Jacobian."
[../]
[./ad_lagrange_vec]
type = Exodiff
input = 'ad_lagrange_vec.i'
exodiff = 'lagrange_vec_out.e'
abs_zero = 1e-7
design = "ADVectorFunctionDirichletBC.md"
issues = "#5658"
requirement = "The system shall be able to solve multi-d LAGRANGE_VEC problems with automatic differentiation and reproduce the hand-coded result."
prereq = 'lagrange_vec'
cli_args = 'Outputs/file_base=lagrange_vec_out'
[../]
[./ad_lagrange_vec_jacobian]
type = PetscJacobianTester
input = 'ad_lagrange_vec.i'
ratio_tol = 1e-7
difference_tol = 1e-6
run_sim = True
design = "ADVectorFunctionDirichletBC.md"
issues = "#5658"
requirement = "The system shall be able to solve multi-d LAGRANGE_VEC problems with automatic differentiation and have a perfect Jacobian."
cli_args = 'Mesh/nx=2 Mesh/ny=2'
[../]
[./jacobian]
type = PetscJacobianTester
input = 'coupled_scalar_vector_jacobian.i'
recover = false
state = 'const_positive'
ratio_tol = 1e-7
difference_tol = 5e-6
design = "syntax/Variables/index.md "
issues = "#10049"
requirement = "The system shall be able to couple a vector variable into a standard kernel and produced the correct Jacobian."
[../]
[./coupled_gradient_dot_em_gauge]
type = Exodiff
input = 'electromagnetic_coulomb_gauge.i'
exodiff = 'electromagnetic_coulomb_gauge_out.e'
abs_zero = 6e-8
rel_err = 3e-5
design = "syntax/Variables/index.md VectorBodyForce.md"
issues = "#10861"
requirement = "The system shall be able to couple a standard variable into a vector kernel. Additionally, The system shall be able to calculate time derivatives of variable gradients."
[../]
[./coupled_gradient_dot_jacobian]
type = PetscJacobianTester
input = 'electromagnetic_coulomb_gauge.i'
recover = false
state = 'const_positive'
ratio_tol = 1e-7
difference_tol = 5e-6
cli_args = 'BCs/active="" Mesh/nx=4 Mesh/ny=4 Outputs/exodus=false Executioner/num_steps=1'
design = "syntax/Variables/index.md VectorBodyForce.md"
issues = "#10861"
requirement = "The system shall be able to compute the correct Jacobian when coupling a standard variable into a vector kernel and taking time derivatives of variable gradients."
[../]
[./coupled_vector_gradient]
type = Exodiff
input = 'coupled_vector_gradient.i'
exodiff = 'coupled_vector_gradient_out.e'
design = "syntax/Variables/index.md VectorDiffusion.md VectorDirichletBC.md VectorFunctionDirichletBC.md"
issues = "#11150"
requirement = "The system shall be able to assign dirichlet boundary conditions for LAGRANGE_VEC variables; obtain coupled vector variable gradients; and correctly initialize both volume and face curl shape functions when the curl of a variable is requested."
[../]
[comp_error]
type = RunException
input = 'lagrange_vec.i'
cli_args = 'Kernels/body_force/function=1'
expect_err = "The 'function' and 'function_x' parameters cannot both be set."
design = "VectorBodyForce.md"
issues = "#13309"
requirement = "The system shall error if the 'function' and 'function_x' parameters are both set when defining a vector function Dirichlet boundary condition."
[]
[ad_comp_error]
type = RunException
input = 'ad_lagrange_vec.i'
cli_args = 'BCs/bnd/function=1'
expect_err = "The 'function' and 'function_x' parameters cannot both be set."
design = "ADVectorFunctionDirichletBC.md"
issues = "#13309"
requirement = "The system shall error if the 'function' and 'function_x' parameters are both set within the ADVectorFunctionDirichletBC object."
[]
[coupled_electrostatics]
design = 'DivField.md GradField.md VectorDivPenaltyDirichletBC.md'
issues = '#26105'
[3d]
requirement = 'The system shall be capable of modeling a div-grad problem '
'in H(div) using the following 3d Raviart-Thomas elements: '
[hex27]
type = Exodiff
input = coupled_electrostatics.i
exodiff = coupled_electrostatics_hex27.e
cli_args = 'Outputs/file_base=coupled_electrostatics_hex27'
detail = 'HEX27, and '
[]
[tet14]
type = Exodiff
input = coupled_electrostatics.i
exodiff = coupled_electrostatics_tet14.e
cli_args = 'Mesh/gmg/elem_type=TET14 '
'Outputs/file_base=coupled_electrostatics_tet14'
detail = 'TET14.'
[]
[]
[2d]
requirement = 'The system shall be capable of modeling a div-grad problem '
'in H(div) using the following 2d Raviart-Thomas elements: '
[tri6]
type = Exodiff
input = coupled_electrostatics.i
exodiff = coupled_electrostatics_tri6.e
cli_args = 'Mesh/gmg/dim=2 Mesh/gmg/elem_type=TRI6 '
'BCs/sides/boundary="top bottom left right" '
'Outputs/file_base=coupled_electrostatics_tri6'
detail = 'TRI6, '
[]
[tri7]
type = Exodiff
input = coupled_electrostatics.i
exodiff = coupled_electrostatics_tri7.e
cli_args = 'Mesh/gmg/dim=2 Mesh/gmg/elem_type=TRI7 '
'BCs/sides/boundary="top bottom left right" '
'Outputs/file_base=coupled_electrostatics_tri7'
detail = 'TRI7, '
[]
[quad8]
type = Exodiff
input = coupled_electrostatics.i
exodiff = coupled_electrostatics_quad8.e
cli_args = 'Mesh/gmg/dim=2 Mesh/gmg/elem_type=QUAD8 '
'BCs/sides/boundary="top bottom left right" '
'Outputs/file_base=coupled_electrostatics_quad8'
detail = 'QUAD8, and '
[]
[quad9]
type = Exodiff
input = coupled_electrostatics.i
exodiff = coupled_electrostatics_quad9.e
cli_args = 'Mesh/gmg/dim=2 Mesh/gmg/elem_type=QUAD9 '
'BCs/sides/boundary="top bottom left right" '
'Outputs/file_base=coupled_electrostatics_quad9'
detail = 'QUAD9.'
[]
[]
[]
[]