|
134 | 134 | auxiliary_domains={"secondary": "current collector"},
|
135 | 135 | bounds=(0, 1),
|
136 | 136 | )
|
| 137 | +c_s_n_rav = pybamm.Variable( |
| 138 | + "R-averaged negative particle concentration", |
| 139 | + domain="negative electrode", |
| 140 | + auxiliary_domains={"secondary": "current collector"}, |
| 141 | + bounds=(0, 1), |
| 142 | +) |
| 143 | +c_s_p_rav = pybamm.Variable( |
| 144 | + "R-averaged positive particle concentration", |
| 145 | + domain="positive electrode", |
| 146 | + auxiliary_domains={"secondary": "current collector"}, |
| 147 | + bounds=(0, 1), |
| 148 | +) |
| 149 | +c_s_n_rxav = pybamm.Variable( |
| 150 | + "R-X-averaged negative particle concentration", |
| 151 | + domain="current collector", |
| 152 | + bounds=(0, 1), |
| 153 | +) |
| 154 | +c_s_p_rxav = pybamm.Variable( |
| 155 | + "R-X-averaged positive particle concentration", |
| 156 | + domain="current collector", |
| 157 | + bounds=(0, 1), |
| 158 | +) |
137 | 159 | c_s_n_surf = pybamm.Variable(
|
138 | 160 | "Negative particle surface concentration",
|
139 | 161 | domain="negative electrode",
|
|
156 | 178 | domain="current collector",
|
157 | 179 | bounds=(0, 1),
|
158 | 180 | )
|
159 |
| - |
| 181 | +# Average particle concentration gradient (for polynomial particle concentration |
| 182 | +# models). Note: we make the distinction here between the flux defined as |
| 183 | +# N = -D*dc/dr and the concentration gradient q = dc/dr |
| 184 | +q_s_n_rav = pybamm.Variable( |
| 185 | + "R-averaged negative particle concentration gradient", |
| 186 | + domain="negative electrode", |
| 187 | + auxiliary_domains={"secondary": "current collector"}, |
| 188 | +) |
| 189 | +q_s_p_rav = pybamm.Variable( |
| 190 | + "R-averaged positive particle concentration gradient", |
| 191 | + domain="positive electrode", |
| 192 | + auxiliary_domains={"secondary": "current collector"}, |
| 193 | +) |
| 194 | +q_s_n_rxav = pybamm.Variable( |
| 195 | + "R-X-averaged negative particle concentration gradient", domain="current collector" |
| 196 | +) |
| 197 | +q_s_p_rxav = pybamm.Variable( |
| 198 | + "R-X-averaged positive particle concentration gradient", domain="current collector" |
| 199 | +) |
160 | 200 |
|
161 | 201 | # Porosity
|
162 | 202 | eps_n = pybamm.Variable(
|
|
181 | 221 |
|
182 | 222 | # Piecewise constant (for asymptotic models)
|
183 | 223 | eps_n_pc = pybamm.Variable(
|
184 |
| - "X-averaged negative electrode porosity", domain="current collector", bounds=(0, 1), |
| 224 | + "X-averaged negative electrode porosity", domain="current collector", bounds=(0, 1) |
185 | 225 | )
|
186 | 226 | eps_s_pc = pybamm.Variable(
|
187 | 227 | "X-averaged separator porosity", domain="current collector", bounds=(0, 1)
|
188 | 228 | )
|
189 | 229 | eps_p_pc = pybamm.Variable(
|
190 |
| - "X-averaged positive electrode porosity", domain="current collector", bounds=(0, 1), |
| 230 | + "X-averaged positive electrode porosity", domain="current collector", bounds=(0, 1) |
191 | 231 | )
|
192 | 232 |
|
193 | 233 | eps_piecewise_constant = pybamm.Concatenation(
|
|
0 commit comments