# How to include charging characteristics in the following battery cell model?

**URL:** <https://forum.plexim.com/t/how-to-include-charging-characteristics-in-the-following-battery-cell-model/594>\
**Category:** PLECS\
**Tags:** battery, lithium-ion\
**Created:** [November 22, 2018, 7:08am UTC](https://forum.plexim.com/t/how-to-include-charging-characteristics-in-the-following-battery-cell-model/594 "2018-11-22T07:08:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junior9696](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@Junior9696](https://forum.plexim.com/u/Junior9696)\
**Post date:** [November 22, 2018, 7:08am UTC](https://forum.plexim.com/t/how-to-include-charging-characteristics-in-the-following-battery-cell-model/594/1 "2018-11-22T07:08:58Z")

</div>

Hi,

I am trying to model a battery cell to allow charging and discharging using buck boost converter; however, this model only includes discharge characteristic; I am wondering how is it possible the include charging characteristics. I do have the datasheet of the battery cell.

Kind regards

[plecs\_lithium\_ion (27).pdf](https://forum.plexim.com/uploads/short-url/f8D858MIRTc3AKXWYVeqauwljHo.pdf) (421 KB)

[Lithium\_ion\_constant\_T.plecs](https://forum.plexim.com/uploads/short-url/eIYgCwH280LCer4Qbo8dmspMy5R.plecs) (24.3 KB)

[CGR18650CG\_data.mat](https://forum.plexim.com/uploads/short-url/zKc8PVnDdiR1V4R3w7jtpJh15j2.mat) (818 Bytes)

---

<div class="post-metadata">

**Author:** ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Post date:** [November 30, 2018, 3:48pm UTC](https://forum.plexim.com/t/how-to-include-charging-characteristics-in-the-following-battery-cell-model/594/2 "2018-11-30T15:48:36Z")

</div>

Hello,

Did you also see this application note: [https://www.plexim.com/content/electrical-equivalent-implementation-lithium-ion-batteries](https://www.plexim.com/content/electrical-equivalent-implementation-lithium-ion-batteries) ?

Thanks,

Kris

---

<div class="post-metadata">

**Author:** ![Junior9696](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@Junior9696](https://forum.plexim.com/u/Junior9696)\
**Post date:** [December 2, 2018, 10:24pm UTC](https://forum.plexim.com/t/how-to-include-charging-characteristics-in-the-following-battery-cell-model/594/3 "2018-12-02T22:24:40Z")

</div>

Yes, but I am unsure how to apply discharging to the battery model. Any ideas?

---

<div class="post-metadata">

**Author:** ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Post date:** [December 3, 2018, 2:55pm UTC](https://forum.plexim.com/t/how-to-include-charging-characteristics-in-the-following-battery-cell-model/594/4 "2018-12-03T14:55:36Z")

</div>

Hello,

I would think you need to implement logic to drive a Controlled Current Source to draw down power from the source (which at least during discharging cannot be represented by a stiff ideal voltage source, but rather a capacitor only). Does that make sense?

Regards,

Kris
