# Add losses to half-bridge vectorial block

**URL:** <https://forum.plexim.com/t/add-losses-to-half-bridge-vectorial-block/850>\
**Category:** PLECS\
**Tags:** losses, mmc, hbsm\
**Created:** [August 30, 2020, 1:33pm UTC](https://forum.plexim.com/t/add-losses-to-half-bridge-vectorial-block/850 "2020-08-30T13:33:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Felipe](https://forum.plexim.com/u/Felipe)\
**Post date:** [August 30, 2020, 1:33pm UTC](https://forum.plexim.com/t/add-losses-to-half-bridge-vectorial-block/850/1 "2020-08-30T13:33:46Z")

</div>

Hi,

Does anyone know if it is possible to add losses to the vectorial model of a half-bridge (I mean the one that model N HBSMs in series). Up to now, I have built my own model using “look under mask” but I do not know how to make N a parameter for the general case.

Thank you

Best regards

Felipe

---

<div class="post-metadata">

**Author:** ![shichenseu](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@shichenseu](https://forum.plexim.com/u/shichenseu)\
**Post date:** [September 3, 2020, 11:07am UTC](https://forum.plexim.com/t/add-losses-to-half-bridge-vectorial-block/850/2 "2020-09-03T11:07:38Z")

</div>

I remember that there is some demo which contain the setting of parameter?

---

<div class="post-metadata">

**Author:** ![Felipe](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Felipe](https://forum.plexim.com/u/Felipe)\
**Post date:** [September 3, 2020, 11:43am UTC](https://forum.plexim.com/t/add-losses-to-half-bridge-vectorial-block/850/3 "2020-09-03T11:43:01Z")

</div>

Hi,

Thanks for your reply, however, I don’t think is there any demo that uses the block “IGBT Half Bridges (Low-/High-Side Connected)” with losses. I know there are demos of smaller topologies (buck, boost) that included loses but I haven find anything for the case when you have N HBSMs in series.

Of course, you can build a chainlink of N cells by hand but I would like to know if there is a more automatic way to do it.

Regards Felipe

---

<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:** [September 3, 2020, 12:27pm UTC](https://forum.plexim.com/t/add-losses-to-half-bridge-vectorial-block/850/4 "2020-09-03T12:27:13Z")

</div>

Hello Felipe,

The Power Modules do not currently support thermal modeling. In theory, you could build this up yourself using the switched implementation and some logic in the initialization code of the subsystem.

If you go to the “Thermal Description Parameter” section of the Thermal Modeling Chapter of the PLECS User Manual/Online Help build into PLECS, you will see that the thermal loss data is stored in a workspace struct variable. You can therefore actually modify the axes in the conduction and switching loss tables to account for series or parallel connections, rather than building NxM cells by hand.

I have attached a basic working PLECS Standalone example that you can reference and modify. You will need to look at the Mask initialization code (Ctrl+M) to understand the logic. To open this model in PLECS Blockset, add an empty PLECS Circuit block in a Simulink model and from the File menu, choose “Import from Standalone”. Please study this implementation and then let me know if you have questions.

Regards,

Kris

[scalable\_igbt\_thermal\_example.zip](https://forum.plexim.com/uploads/short-url/s7mm6i5TLe2DmmqvjzyJjIFSi58.zip) (10.4 KB)

---

<div class="post-metadata">

**Author:** ![Felipe](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Felipe](https://forum.plexim.com/u/Felipe)\
**Post date:** [September 3, 2020, 12:52pm UTC](https://forum.plexim.com/t/add-losses-to-half-bridge-vectorial-block/850/5 "2020-09-03T12:52:24Z")

</div>

Hi Kris,

Thanks a lot! that is exactly what I was looking for.

Best Regards

Felipe
