-
Notifications
You must be signed in to change notification settings - Fork 0
/
inputEigenProblem_reflector.hit
131 lines (100 loc) · 1.85 KB
/
inputEigenProblem_reflector.hit
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
# Engy-5050 Problem 1: Poisson 1D FEM Neutron Diffusion Equation
# UMass Lowell Nuclear Chemical Engineering
# Anthony Bowers
# Parameters
xmin = 0.00000e+00
xmax = 3.44
#diff_coeff =1.44
diff_coeff= 1.83180150273944
#0.87000e+00
u_left = 0
#1.000e+07
[Problem]
type = EigenProblem
#coord_type = XYZ
coord_type = RSPHERICAL
[]
[Mesh]
[1d]
type = GeneratedMeshGenerator
dim = 1
xmin = ${replace xmin}
xmax = ${replace xmax}
nx = 20
elem_type = edge3
[]
[]
[Variables]
[u_r]
order = second
family = lagrange
[]
[]
[Kernels]
[diffusion-term]
type = DiffusionTerm
variable = u_r # produced quantity
diffCoeff = ${replace diff_coeff}
[]
[eigenvalue-term]
type = CoefReaction
variable = u_r # produced quantity
extra_vector_tags='eigen'
coefficient = -1.0
[]
[]
[BCs]
[entry]
type = NeumannBC
variable = u_r
boundary = left
value = ${replace u_left}
[]
[exit-u]
type = AlbedoBC
variable = u_r
boundary = right
alpha= 0.1
[]
[]
[Executioner]
type = Eigenvalue
solve_type = PJFNK
nl_abs_tol = 1e-8
nl_rel_tol = 1e-8
# Postprocessor value to normalize
normalization ='u-normalized'
[]
[VectorPostprocessors]
[eigenvalue-data]
type = Eigenvalues
execute_on = 'timestep_end final'
[]
[x-data]
type = LineValueSampler
execute_on = 'timestep_end final'
variable = 'u_r' # output data
start_point = '${replace xmin} 0 0'
end_point = '${replace xmax} 0 0'
num_points = 20
sort_by = id
[]
[]
[Postprocessors]
[u-normalized]
type = ElementExtremeValue
variable = u_r
value_type = max
execute_on=linear
[]
[]
[Outputs]
console = true
csv= true
[file-x-data]
type = CSV
file_base = 'output1G'
execute_on = 'final'
show = 'x-data'
[]
[]