Can Voltage dependent capacitance be modeled in Simscape?
显示 更早的评论
Can a voltage dependent capacitance be represented directly using capacitor or any other in built block in Simscape model? Or it has to be modelled in terms of equations using Simulink ?
回答(1 个)
Vasco Lenzi
2020-8-3
编辑:Vasco Lenzi
2022-12-5
0 个投票
Hi Amruta
If you have Simscape Electrical, you can use the Variable Capacitor that accepts C as a Simscape Physical Signal.
You can measure voltage over the capacitor and apply some transformation/lookup table to feed in into the C signal:

edit: changed image with one that would simulate. Please remember to adjust the Units in the PS Look-up table block!
Please stay within "Simscape World" and use Simscape Physical Signals (brown Simulink-like blocks) to deal with Physical Signals insad of going into Simulink. This will make the simulation more stable.
If you don't have Simscape Electrical, you can build your own Simscape based component block using Simscape Language:

5 个评论
Ali Zahid
2022-12-5
@Vasco Lenzi can you please diagnoze this error, i am facing the same issue.
Vasco Lenzi
2022-12-5
@Ali Zahid I can reproduce above error, if I keep the lookup table unitless. And that's the problem, as reported by the error diagnostic: "3) query values and table data have the commensurate units;"
If I change from unitless ('1') to the right SI units V and F, then it works fine:

Ali Zahid
2022-12-5
Ali Zahid
2022-12-5
I figured out that i need to add an electrical reference and then a solver configuration to the block diagram and then it works.
Thank you for the help
Vasco Lenzi
2022-12-5
编辑:Vasco Lenzi
2022-12-5
you are right, the first screenshot was just a sketch to illustrate the concept but would not simulate. I'm editing and adding a better model image for context.
类别
在 帮助中心 和 File Exchange 中查找有关 Electrical Sensors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
