Electrical Switch doesn't work

5 ビュー (過去 30 日間)
Fernando Belda
Fernando Belda 2021 年 8 月 30 日
コメント済み: Fernando Belda 2021 年 8 月 31 日
Hello everyone,
I am trying to use a switch in a simulation of an electrical circuit and I dont know why, but it is not working correctly. I have created a simplifyed system to check the switch function and it also doesn't work. I paste a screenshot of the system so you can check it.
The idea was to activate and desactivate the switch with a pulse generator, so the current of the circuit, which is a constant 1A DC, fluctuates between 0A and 1A. Despite of it, the current is 1A during the whole simulation.
  6 件のコメント
Fernando Belda
Fernando Belda 2021 年 8 月 30 日
The treshold is configurated for 0.5V. Under this value it is supposed to be closed, and when it reachs higher values than 0.5V, it should be open.

サインインしてコメントする。

採用された回答

Jonas
Jonas 2021 年 8 月 30 日
編集済み: Jonas 2021 年 8 月 30 日
You are using an ideal current source set to 1 A. This means that whichever load you attach to it, it will maintain 1A.
By opening and closing the switch, you are just changing the required voltage the ideal current source needs to maintain the 1A. Even when your switch is opened, it has a certain 'Open conductance'. This means that in the open position, the switch still has 1/1e-6 Ohm = 1000 000 Ohm resistance, which means the ideal current source will employ 1000 000 Volts to maintain the 1A current through it.
You are basically simulating huge sparks and fireworks. Yes, Simscape is also able to simulate those. It will not prevent you from doing so.
This is why the current measurement with scope will always read 1A. Try to add a voltage measurement accross the switch and see the large voltage.
  5 件のコメント
Fernando Belda
Fernando Belda 2021 年 8 月 31 日
You were right Jonas, thank you so much for the help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Find more on Energy Storage in Help Center and File Exchange

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by