Help in my model

3 views (last 30 days)
Nuno
Nuno on 4 Jul 2011
In my model i need that Switch charged or not charged the battery... Model: http://img64.imageshack.us/img64/9082/modelt.png
If SOC < 0.85 charged else not charged. My model make this, because in "m" out the scope is: http://img830.imageshack.us/img830/1569/switchu.png
Therefore, at the time ~3,75 switch closed. But SOC continues to charge, like in the image: http://img706.imageshack.us/img706/9263/socl.png
What's happened? Will the Series RLC Branch charged battery?

Accepted Answer

Arnaud Miege
Arnaud Miege on 5 Jul 2011
What is the value of your resistance and what's the amplitude of your current source? I suspect current's still flowing through the resistor when the switch is closed, charging the battery. If you think about it, with the switch closed, that's the only path left for the current to take.
Arnaud
  6 Comments
Arnaud Miege
Arnaud Miege on 5 Jul 2011
Really? The following model runs just fine on my machine:
https://picasaweb.google.com/lh/photo/3dn-Mqxq7HzkXe6h4T10BA?feat=directlink
The ideal switch has a snubber resistor and capacitor built-in that is connected in parallel to the ideal switch, so when the switch is closed, the current flows through the snubber circuit.
If in the PowerGUI, I disable snubbers in switching devices, I get an error telling me that when the switch opens at t = xxx, the current source is in open-circuit, which is right. The current needs to go somewhere when the switch is closed, so you need to provide it a path if you don't want it to go the the battery. In your circuit, it's probably going through the Series RLC branch, and/or the snubber circuit, depending on what settings you have in your PowerGUI. Either way, this would results in the battery being charged. If you don't want that to happen, you need to think of another path for the current to take and modify your model accordingly.
Nuno
Nuno on 5 Jul 2011
Thanks Arnaud...
I put the resistor Shunt when the ideal switch are closed and resolvs the problem...

Sign in to comment.

More Answers (0)

Categories

Find more on Electrical Systems in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!