-
Notifications
You must be signed in to change notification settings - Fork 1
/
VLaplace.i
61 lines (55 loc) · 926 Bytes
/
VLaplace.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
!include Parameters.i
[Mesh]
[]
[Variables]
[V]
family = LAGRANGE
order = FIRST
[]
[]
[Kernels]
[laplacianV]
type = Diffusion
variable = V
block = coil
[]
[null]
type = NullKernel
variable = V
block = 'target vacuum_region'
[]
[]
[BCs]
[in]
type = DirichletBC
variable = V
boundary = coil_in
value = ${voltage_amplitude}
[]
[out]
type = DirichletBC
variable = V
boundary = coil_out
value = 0
[]
[]
[Postprocessors]
[I(in){A}]
type = SideDiffusiveFluxIntegral
variable = V
boundary = coil_in
diffusivity = -${copper_econductivity}
[]
[I(out){A}]
type = SideDiffusiveFluxIntegral
variable = V
boundary = coil_out
diffusivity = ${copper_econductivity}
[]
[]
[Executioner]
type = Steady
solve_type = LINEAR
petsc_options_iname = '-pc_type -ksp_rtol'
petsc_options_value = 'hypre 1e-12'
[]