forked from ElmerCSC/elmerfem
/
adv-diff-sn-e3v-case.sif
221 lines (199 loc) · 5.67 KB
/
adv-diff-sn-e3v-case.sif
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
Header
CHECK KEYWORDS Warn
Mesh DB "." "Mesh_1"
!Mesh DB "." "Mesh_2"
Include Path ""
Results Directory ""
End
Simulation
Max Output Level = 4
Coordinate System = Cartesian
Coordinate Mapping(3) = 1 2 3
Coordinate Scaling = 1.0e-4
Simulation Type = Transient
Steady State Max Iterations = 10
Output Intervals = 1
Timestepping Method = BDF
BDF Order = 1
Timestep intervals = 3000
Timestep Sizes = .005
Solver Input File = adv-diff-sn-e3v-case.sif
Post File = case.vtu
Use Mesh Names = True
End
Constants
Gravity(4) = 0 -1 0 9.82
Stefan Boltzmann = 5.67e-08
Permittivity of Vacuum = 8.8542e-12
Boltzmann Constant = 1.3807e-23
Unit Charge = 1.602e-19
End
Body 1
!Target Bodies(1) = 1
Name = "electrolyte"
Equation = 1
Material = 1
Body Force = 1
Initial condition = 1
End
Solver 5
Equation = SaveScalars
Filename = case.dat
Coefficient 1 = Concentration Diffusivity
Procedure = "SaveData" "SaveScalars"
Operator 1 = diffusive flux
Variable 1 = Concentration
Variable 2 = Concentration
Operator 2 = min
Operator 3 = max
Operator 4 = mean
Exec Solver = String After Timestep
End
Solver 1
Equation = Static Current Conduction
Procedure = "StatCurrentSolve" "StatCurrentSolver"
Variable = -dofs 1 Potential
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-8
Nonlinear System Max Iterations = 20
Nonlinear System Newton After Iterations = 3
Nonlinear System Newton After Tolerance = 1.0e-3
Nonlinear System Relaxation Factor = 1
Linear System Solver = Direct
Linear System Direct Method = Umfpack
End
Solver 4
Equation = Navier-Stokes
Procedure = "FlowSolve" "FlowSolver"
Variable = Flow Solution[Velocity:2 Pressure:1]
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-8
Nonlinear System Max Iterations = 20
Nonlinear System Newton After Iterations = 3
Nonlinear System Newton After Tolerance = 1.0e-3
Nonlinear System Relaxation Factor = 1
Linear System Solver = Iterative
Linear System Iterative Method = BiCGStab
Linear System Max Iterations = 500
Linear System Convergence Tolerance = 1.0e-8
Linear System Preconditioning = ILU0
Linear System ILUT Tolerance = 1.0e-3
Linear System Abort Not Converged = False
Linear System Residual Output = 1
Linear System Precondition Recompute = 1
End
Solver 2
Equation = Advection Diffusion Equation
Variable = -dofs 1 Concentration
Procedure = "AdvectionDiffusion" "AdvectionDiffusionSolver"
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-8
Nonlinear System Max Iterations = 20
Nonlinear System Newton After Iterations = 3
Nonlinear System Newton After Tolerance = 1.0e-3
Nonlinear System Relaxation Factor = 1
Linear System Solver = Direct
Linear System Direct Method = Umfpack
End
Solver 3
Equation = Heat Equation
Variable = -dofs 1 Temperature
Procedure = "HeatSolve" "HeatSolver"
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-8
Nonlinear System Max Iterations = 20
Nonlinear System Newton After Iterations = 3
Nonlinear System Newton After Tolerance = 1.0e-3
Nonlinear System Relaxation Factor = 1
Linear System Solver = Iterative
Linear System Iterative Method = BiCGStab
Linear System Max Iterations = 500
Linear System Convergence Tolerance = 1.0e-8
Linear System Preconditioning = ILU0
Linear System ILUT Tolerance = 1.0e-3
Linear System Abort Not Converged = False
Linear System Residual Output = 1
Linear System Precondition Recompute = 1
End
Equation 1
Name = "Electrolyte_Calculation"
Convection = Computed
Concentration Units = Absolute Mass
Concentration Convection = Computed
Active Solvers(5) = 5 1 4 2 3
End
Material 1
Name = "Sn solution"
Concentration Diffusivity = 9.8e-11 !5.085e-10
Reference Temperature = 298.15
Viscosity = .001
Heat expansion Coefficient = 1e-4
Electric Conductivity = 0.024
Heat Conductivity = .6
Heat Capacity = 4184
Density = 1000
Concentration Ion Charge = 2
End
Body Force 1
Name = "Natural convection"
Boussinesq = True
Joule Heat = True
End
Initial Condition 1
Name = "Initial concentration in mol/L" !SI unit is kg/m^3
Concentration = 0.0
Temperature = 298
End
Boundary Condition 1
!Target Boundaries(1) = 4 !Anode
Name = "left"
Potential = 3.0
!Current Density BC = Logical True
!Current Density = Real 31.714 !150 A/m^2 Determination from Butler Volmer kinetics
! Ekilik2000, Amorim2007, Steigerwald1962, He2014, Potentiostat measurements
Temperature = 298 !303
Concentration = 7.5e-6 !mol/L He2014 2.113e-3 kg/m^3 measured from ion chromatography (not used)
Noslip wall BC = True
Save Scalars = True
End
Boundary Condition 2
!Target Boundaries(1) = 1
Name = "bottom"
Noslip wall BC = True
End
Boundary Condition 3
!Target Boundaries(1) = 3
Name = "top"
Velocity 2 = 0
End
Boundary Condition 4
!Target Boundaries(1) = 2 !Cathode
Name = "right"
Potential = 0
!Current Density BC = Logical True
!Current Density = Real -0.7816 !A/m^2 Determination from Butler Volmer kinetics
Temperature = 298 !293
Concentration = 0.0
Noslip wall BC = True
Save Scalars = True
End