-
Notifications
You must be signed in to change notification settings - Fork 1k
/
ther-mech-ref.i
143 lines (128 loc) · 2.1 KB
/
ther-mech-ref.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#
# Solving a fake thermo-mechanics problem
#
#
[Mesh]
type = GeneratedMesh
dim = 2
xmin = 0
xmax = 1
ymin = 0
ymax = 1
nx = 10
ny = 10
elem_type = QUAD4
displacements = 'disp_x disp_y'
[]
[Functions]
[./temp_exact]
type = ParsedFunction
value = t*x
[../]
[./temp_ffn]
type = ParsedFunction
value = x
[../]
[./disp_x_exact]
type = ParsedFunction
value = (t*x)/5
[../]
[./disp_x_ffn]
type = ParsedFunction
value = x/5
[../]
[./disp_y_exact]
type = ParsedFunction
value = t*x*(y-0.5)/5
[../]
[./disp_y_ffn]
type = ParsedFunction
value = x*(y-0.5)/5
[../]
[]
[Variables]
[./temp]
[../]
[./disp_x]
[../]
[./disp_y]
[../]
[]
[Kernels]
# temp
[./temp_td]
type = TimeDerivative
variable = temp
[../]
[./temp_diff]
type = Diffusion
variable = temp
[../]
[./temp_ffn]
type = UserForcingFunction
variable = temp
function = temp_ffn
[../]
# disp_x
[./disp_x_td]
type = TimeDerivative
variable = disp_x
use_displaced_mesh = true
[../]
[./disp_x_diff]
type = Diffusion
variable = disp_x
use_displaced_mesh = true
[../]
[./disp_x_ffn]
type = UserForcingFunction
variable = disp_x
function = disp_x_ffn
use_displaced_mesh = true
[../]
# disp_y
[./disp_y_td]
type = TimeDerivative
variable = disp_y
[../]
[./disp_y_diff]
type = Diffusion
variable = disp_y
use_displaced_mesh = true
[../]
[./disp_y_ffn]
type = UserForcingFunction
variable = disp_y
function = disp_y_ffn
[../]
[]
[BCs]
[./temp_all]
type = FunctionDirichletBC
variable = temp
boundary = '0 1 2 3'
function = temp_exact
[../]
[./disp_x_all]
type = FunctionDirichletBC
variable = disp_x
boundary = '0 1 2 3'
function = disp_x_exact
[../]
[./disp_y_all]
type = FunctionDirichletBC
variable = disp_y
boundary = '0 1 2 3'
function = disp_y_exact
[../]
[]
[Executioner]
type = Transient
start_time = 0
dt = 0.1
num_steps = 5
[]
[Outputs]
exodus = true
output_initial = true
[]