/
parallel_pbc_using_trans.i
85 lines (78 loc) · 1.2 KB
/
parallel_pbc_using_trans.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
[Mesh]
type = GeneratedMesh
dim = 2
nx = 15
ny = 15
nz = 0
xmax = 10
ymax = 10
zmin = 0
zmax = 0
elem_type = QUAD4
# This test will not work in parallel with ParallelMesh enabled
# due to a bug in PeriodicBCs. Note: it might work with 2 processors
# but not with 4.
distribution = serial
[]
[Functions]
[./tr_x]
type = ParsedFunction
value = x
[../]
[./tr_y]
type = ParsedFunction
value = y+10
[../]
[./itr_x]
type = ParsedFunction
value = x
[../]
[./itr_y]
type = ParsedFunction
value = y-10
[../]
[]
[Variables]
[./u]
order = FIRST
family = LAGRANGE
[../]
[]
[Kernels]
[./diff]
type = Diffusion
variable = u
[../]
[./forcing]
type = GaussContForcing
variable = u
y_center = 1
x_spread = 0.25
y_spread = 0.5
[../]
[./dot]
type = TimeDerivative
variable = u
[../]
[]
[BCs]
# active = ' '
[./Periodic]
[./x]
primary = bottom
secondary = top
transform_func = 'tr_x tr_y'
inv_transform_func = 'itr_x itr_y'
[../]
[../]
[]
[Executioner]
type = Transient
dt = 0.5
num_steps = 10
[]
[Output]
interval = 1
exodus = true
perf_log = true
[]