Clear Filters
Clear Filters

Is there some documentation to model the thermal port on a custom battery block?

1 view (last 30 days)
There is not much to refer from when creating custom blocks on matlab. I'm currently building a custom battery block but I'm not able to implement the the thermal port. Is there some code that I can refer to?
Aditionally, repeatedly I get an error which says the number of variables are more that the number of equations or vice versa when I try to fix it. I do not have any redundant equations or variable in my code. So how can this be fixed?

Answers (1)

Javier Gazzarri
Javier Gazzarri on 16 Jan 2023
Hello Namratha,
We offer a battery block in Simscape Battery and Simscape Electrical which do contain a thermal port. This block should meet most needs for battery cell modeling.
If you do wish to create a custom one out of Simscape blocks, you may want to add a thermal mass to the block, connect a controlled heat flow source to it, and feed if with the heat dissipation over the internal resistanced. Then, you can connect a physical connection port from the thermal mass to link the cell thermally to its surroundings.
Hope this helps,

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!