forked from idaholab/moose
/
sub_between_diffusion2.i
76 lines (71 loc) · 1.22 KB
/
sub_between_diffusion2.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
[Mesh]
[gen]
type = GeneratedMeshGenerator
dim = 2
nx = 3
ny = 3
# partial overlap but also, no equidistant points
xmin = 0.1111
ymin = 0.3333
xmax = 1.211111
ymax = 1.222222
[]
[block1]
input = gen
type = SubdomainBoundingBoxGenerator
block_id = 1
bottom_left = '0.4 0.6 0'
# extends beyond to grab the boundary
top_right = '2 2 0'
[]
[]
[AuxVariables]
[sent_nodal]
[InitialCondition]
type = FunctionIC
function = '3 + 2*x*x + 3*y*y*y'
[]
[]
[received_nodal]
initial_condition = -1
[]
[sent_elem]
family = MONOMIAL
order = CONSTANT
[InitialCondition]
type = FunctionIC
function = '4 + 2*x*x + 3*y*y*y'
[]
[]
[received_elem]
family = MONOMIAL
order = CONSTANT
initial_condition = -1
[]
[]
[UserObjects]
[sent_nodal]
type = LayeredAverage
direction = x
num_layers = 10
variable = sent_nodal
[]
[sent_elem]
type = LayeredAverage
direction = x
num_layers = 10
variable = sent_elem
[]
[]
[Executioner]
type = Transient
num_steps = 1
[]
[Problem]
solve = false
[]
[Outputs]
exodus = true
hide = 'sent_nodal sent_elem'
execute_on = 'TIMESTEP_END'
[]