forked from idaholab/stork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelec2.i
164 lines (136 loc) · 2.82 KB
/
elec2.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[Mesh]
# file = '../../meshes/Ventricles/cm/LV_ellipsoid_tet_Z.e'
# block_id = '1'
# boundary_id = '101 102 103'
# boundary_name = 'ss_endo ss_epi ss_base'
# uniform_refine = 0
type = GeneratedMesh
dim = 3
nx = 40
ny = 14
nz = 6
xmin = 0.0
xmax = 2.0
ymin = 0.0
ymax = 0.7
zmin = 0.0
zmax = 0.3
# elem_type = HEX27
[]
# [Problem]
# type = RichardsMultiphaseProblem
# bounded_var = temp
# lower_var = temp
# []
[Variables]
[./potential] order=FIRST family=LAGRANGE
[./InitialCondition]
#type = RandomIC
type = ConstantIC
value = -85.23
[../]
[../]
[]
[AuxVariables]
[./temp] order=FIRST family = LAGRANGE [../]
# [./disp_y] order=FIRST family = LAGRANGE [../]
# [./disp_z] order=FIRST family = LAGRANGE [../]
# [./thickness_parameter_from_up] order = FIRST family = LAGRANGE [../]
[]
[Kernels]
[./euler]
type = ElectrocardioTimeDerivative
capacitance = 1.0
variable = potential
[../]
[./diff]
type = ElectrocardioMonodomainDiffusion
variable = potential
surface_to_volume = 1400.0
[../]
[./forcing]
type = UserForcingFunction
variable = potential
function = forcing_func
[../]
[./NonLinearReaction]
type = NonLinearReaction
variable = potential
[../]
#[./ecforcing]
# type = DeformedElectrocardioForcing
# variable = potential
# forcing_function = ElectrocardioForcing_function
#[../]
[]
#[AuxKernels]
# [./prova]
# type = NodalPostProcessorAux variable = temp potential = potential
#[../]
# []
[Functions]
[./forcing_func]
type = ParsedFunction
value = '35.714285*(x<=0.15)*(y<=0.15)*(z<=0.15)*(t<=2.0)'
[../]
[]
[Materials]
[./FTE]
block =0
type =FixedRotation
E_fiber = '1 0 0'
E_sheet = '0 1 0'
[../]
[./conductivity]
type = MonodomainConductivity
conductivities = '1.3341 0.1760 0.1760' ## check units 0.1760
block = 0
[../]
[./FN]
block =0
# type =Electrocardio
type = FN
vmem = -85.23
potential = potential
[../]
[]
# [Preconditioning]
# [./SMP]
#type = FDP
#type = PBP
# type = SMP
# full = true
# [../]
# []
[Executioner]
type=Transient
solve_type=PJFNK
#line_search = 'none'
petsc_options_iname=' -ksp_type -pc_type -pc_factor_shift_type -pc_factor_mat_solver_package '
petsc_options_value=' preonly lu NONZERO mumps '
# petsc_options_iname='-snes_type -ksp_type -pc_type -pc_factor_shift_type '
# petsc_options_value=' newtonls preonly lu NONZERO'
#nl_rel_tol=0.999999999
# nl_abs_tol=0.9
# nl_rel_step_tol=1e1
# nl_abs_step_tol=1e1
# l_tol=1.e-6
# l_max_its=30
#l_abs_step_tol=1.e-12
#nl_max_its=10
start_time= 0.0
end_time = 100.0
dtmin = 0.25
dtmax = 0.5
[]
[Outputs]
#[./console]
# type=Console
# perf_log=false
# output_on = 'initial timestep_begin timestep_end'
# [../]
[./out]
type=Exodus
output_initial = true
[../]
[]