Depending on the settings, I get one of the following errors:
Error when parsing the turn-on loss formula defined in the thermal description:
Error the value must be a vector of finite values.
I’m not very experienced with PLECS yet, but I’m surprised that models provided directly by the manufacturer do not seem to work out of the box.
I’m using PLECS Standalone 5.0.6.
After some testing, I noticed that the issue only appears with models where I need to specify a dead time (tdead) in addition to Rg_on and Rg_off. Other Infineon, Wolfspeed, and similar models that only require Rg_on and Rg_off work perfectly fine.
So I’m wondering:
Is there a known compatibility issue between these models and PLECS 5.0.6?
Are there additional parameters that must be defined before running the simulation?
Could I be missing a required library, script, or configuration?
Has anyone successfully simulated the IMBG120R040M2H or IMCQ120R040M2H models in PLECS?
Any advice or feedback would be greatly appreciated.
The issue appears to originate from the manufacturer-provided models.
For the IMCQ12R040M2H, the Eon and Eoff formulas are not parsed correctly by PLECS because of unnecessary whitespace in the formulas. This can easily be corrected. I have therefore attached a corrected version of the IMCQ12R040M2H model to this post. IMCQ120R040M2H_switch.xml (23.3 KB)
For the other switch, the thermal network is unfortunately stored with NaN values for the Foster parameters. As a result, the thermal model is invalid and should not be used for simulations.
In previous PLECS versions, the syntax of equations in thermal library XML files was not strictly validated. It was assumed that the predefined single-line equation generated by the Thermal Library Browser would be used. As a result, externally generated XML files containing multi-line equations were accepted without any warnings. Our own tests also showed that such equations were generally evaluated correctly, although this behavior was never officially supported or guaranteed.
Starting with PLECS 5.0, additional validation checks have been introduced. Since the XML specification defines a formula as a single-line expression, multi-line equations are now rejected during import.
We understand that allowing multi-line equations can significantly improve readability, especially for long and complex expressions. Therefore, we plan to add official support for multi-line equations in a future PLECS release. We will keep you updated in this thread as soon as more information is available.