forked from idaholab/moose
/
tosub_master.i
127 lines (115 loc) · 1.88 KB
/
tosub_master.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
[Mesh]
type = GeneratedMesh
dim = 2
xmin = 0
xmax = 9
ymin = 0
ymax = 9
nx = 9
ny = 9
[]
[Variables]
[./u]
[../]
[]
[AuxVariables]
[./x]
order = CONSTANT
family = MONOMIAL
[../]
[]
[Functions]
[./x_func]
type = ParsedFunction
value = x
[../]
[]
[Kernels]
[./diff]
type = Diffusion
variable = u
[../]
[]
[AuxKernels]
[./x_func_aux]
type = FunctionAux
variable = x
function = x_func
execute_on = initial
[../]
[]
[BCs]
[./left]
type = DirichletBC
variable = u
boundary = left
value = 0
[../]
[./right]
type = DirichletBC
variable = u
boundary = right
value = 1
[../]
[]
[Executioner]
type = Transient
num_steps = 1
dt = 1
solve_type = 'NEWTON'
[]
[Outputs]
output_initial = true
exodus = true
print_perf_log = true
[]
[Debug]
# show_actions = true
[]
[MultiApps]
[./sub]
type = TransientMultiApp
app_type = MooseTestApp
execute_on = timestep_end
positions = '1 1 0 5 5 0'
input_files = tosub_sub.i
[../]
[]
[Transfers]
[./tosub]
type = MultiAppProjectionTransfer
direction = to_multiapp
multi_app = sub
source_variable = u
variable = u_nodal
family = LAGRANGE
order = FIRST
[../]
[./elemental_tosub]
type = MultiAppProjectionTransfer
direction = to_multiapp
multi_app = sub
source_variable = u
variable = u_elemental
order = CONSTANT
family = MONOMIAL
[../]
[./elemental_to_sub_elemental]
type = MultiAppProjectionTransfer
direction = to_multiapp
multi_app = sub
source_variable = x
variable = x_elemental
order = CONSTANT
family = MONOMIAL
[../]
[./elemental_to_sub_nodal]
type = MultiAppProjectionTransfer
direction = to_multiapp
multi_app = sub
source_variable = x
variable = x_nodal
family = LAGRANGE
order = FIRST
[../]
[]