# How to implement this case

**URL:** <https://pybamm.discourse.group/t/how-to-implement-this-case/45>\
**Category:** PyBaMM Q&A\
**Created:** [27 November 2024 15:18 UTC](https://pybamm.discourse.group/t/how-to-implement-this-case/45 "2024-11-27T15:18:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santiago\_peace](https://yyz2.discourse-cdn.com/free1/user_avatar/pybamm.discourse.group/santiago_peace/32/16_2.png) [@Santiago\_peace](https://pybamm.discourse.group/u/Santiago_peace)\
**Post date:** [27 November 2024 15:18 UTC](https://pybamm.discourse.group/t/how-to-implement-this-case/45/1 "2024-11-27T15:18:23Z")

</div>

I am trying to implement the case in the figure, but I am unable to do so. Is it a problem with my variable selection or something else? Could you please help me answer this? Thank you

 ![image](https://global.discourse-cdn.com/free1/uploads/pybamm/original/1X/057b8b83481e6df85797b1c987a011c043de461e.jpeg)  
 ![image](https://global.discourse-cdn.com/free1/uploads/pybamm/original/1X/6b4957832e89dcacfa35b974f91e61d9a7ae89aa.png)

---

<div class="post-metadata">

**Author:** ![brosaplanella](https://yyz2.discourse-cdn.com/free1/user_avatar/pybamm.discourse.group/brosaplanella/32/6_2.png) [@brosaplanella](https://pybamm.discourse.group/u/brosaplanella)\
**Post date:** [27 November 2024 15:24 UTC](https://pybamm.discourse.group/t/how-to-implement-this-case/45/2 "2024-11-27T15:24:28Z")

</div>

Not sure I understand your issue, can you elaborate?

---

<div class="post-metadata">

**Author:** ![Santiago\_peace](https://yyz2.discourse-cdn.com/free1/user_avatar/pybamm.discourse.group/santiago_peace/32/16_2.png) [@Santiago\_peace](https://pybamm.discourse.group/u/Santiago_peace)\
**Post date:** [28 November 2024 03:07 UTC](https://pybamm.discourse.group/t/how-to-implement-this-case/45/3 "2024-11-28T03:07:10Z")

</div>

OK, so when I did the 2 + 1 d simulation, I wanted to see the example where the temperature and the current and the electric potential around the pole ear were different from the rest of the space, but I couldn’t get a similar effect on my own, i do not know how to deal with, you dream to help me answer it, thank you very much!

---

<div class="post-metadata">

**Author:** ![brosaplanella](https://yyz2.discourse-cdn.com/free1/user_avatar/pybamm.discourse.group/brosaplanella/32/6_2.png) [@brosaplanella](https://pybamm.discourse.group/u/brosaplanella)\
**Post date:** [28 November 2024 14:38 UTC](https://pybamm.discourse.group/t/how-to-implement-this-case/45/4 "2024-11-28T14:38:09Z")

</div>

If I do understand correctly you want to reproduce the results in the screenshot at the top (which I believe is from PyBaMM website/slides) using the code at the bottom, right? I believe the reason you see a much coarser mesh is because you are using DFN, and the number of mesh points are reduced. Can you try switching to SPM and see if it changes?

---

<div class="post-metadata">

**Author:** ![Santiago\_peace](https://yyz2.discourse-cdn.com/free1/user_avatar/pybamm.discourse.group/santiago_peace/32/16_2.png) [@Santiago\_peace](https://pybamm.discourse.group/u/Santiago_peace)\
**Post date:** [28 November 2024 14:51 UTC](https://pybamm.discourse.group/t/how-to-implement-this-case/45/5 "2024-11-28T14:51:55Z")

</div>

yeah, you are right! I will try to your guidance. Thank you.
