Help in my model

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

0 votes

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

Nuno
Nuno on 5 Jul 2011
My amplitude is 10A. The resistence value is 0,001... But how do I cancel this current?
Arnaud Miege
Arnaud Miege on 5 Jul 2011
Can you remove that resistor?
Nuno
Nuno on 5 Jul 2011
If i remove resistor appear this error: http://www.mathworks.com/matlabcentral/answers/10244-problem-with-connection
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.
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

Tags

Community Treasure Hunt

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

Start Hunting!