-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex10.i
95 lines (77 loc) · 1.51 KB
/
ex10.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
[Mesh]
file = car.e
[]
[Variables]
active = 'diffused'
[./diffused]
order = FIRST
family = LAGRANGE
[../]
[]
# Here is the AuxVariables section where we declare the variables that
# will hold the AuxKernel calcuations. The declaration syntax is very
# similar to that of the regular variables section
[AuxVariables]
active = 'nodal_aux element_aux'
[./nodal_aux]
order = FIRST
family = LAGRANGE
[../]
[./element_aux]
order = CONSTANT
family = MONOMIAL
[../]
[]
[Kernels]
active = 'diff'
[./diff]
type = Diffusion
variable = diffused
[../]
[]
# Here is the AuxKernels section where we enable the AuxKernels, link
# them to our AuxVariables, set coupling parameters, and set input parameters
[AuxKernels]
active = 'nodal_example element_example'
[./nodal_example]
type = ExampleAux
variable = nodal_aux
value = 3.0
coupled = diffused
[../]
[./element_example]
type = ExampleAux
variable = element_aux
value = 4.0
coupled = diffused
[../]
[]
[BCs]
active = 'bottom top'
[./bottom]
type = DirichletBC
variable = diffused
boundary = 'bottom'
value = 0
[../]
[./top]
type = DirichletBC
variable = diffused
boundary = 'top'
value = 1
[../]
[]
[Executioner]
type = Steady
#Preconditioned JFNK (default)
solve_type = 'PJFNK'
[]
[Outputs]
file_base = out
exodus = true
[./console]
type = Console
perf_log = true
output_on = 'timestep_end failed nonlinear linear'
[../]
[]