Skip to content

Commit df7d404

Browse files
Merge pull request #2663 from iatzak/r-R-scaling
Remove conditional for scaling of r-R plots
2 parents a3756de + d61b36b commit df7d404

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
- Fixed a bug where the solid phase conductivity was double-corrected for tortuosity when loading parameters from a BPX file ([#2638](https://github.com/pybamm-team/PyBaMM/pull/2638)).
1515
- Changed termination from "success" to "final time" for algebraic solvers to match ODE/DAE solvers ([#2613](https://github.com/pybamm-team/PyBaMM/pull/2613)).
16+
- Fixed the length scaling for the first dimension of r-R plots ([#2663](https://github.com/pybamm-team/PyBaMM/pull/2663)).
1617

1718
# [v22.12](https://github.com/pybamm-team/PyBaMM/tree/v22.12) - 2022-12-31
1819

pybamm/solvers/processed_variable.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,9 @@ def initialise_2D(self):
362362
# assign attributes for reference
363363
self.entries = entries
364364
self.dimensions = 2
365-
if self.first_dimension == "r" and self.second_dimension == "R":
366-
# for an r-R variable, must leave r nondimensional as it was scaled using
367-
# R
368-
first_length_scale = 1
369-
else:
370-
first_length_scale = self.get_spatial_scale(
371-
self.first_dimension, self.domain[0]
372-
)
365+
first_length_scale = self.get_spatial_scale(
366+
self.first_dimension, self.domain[0]
367+
)
373368
first_dim_pts_for_interp = first_dim_pts * first_length_scale
374369

375370
second_length_scale = self.get_spatial_scale(

0 commit comments

Comments
 (0)