Disable a Simpower block using a logic block

조회 수: 5 (최근 30일)
Mason Karbassian
Mason Karbassian 2016년 3월 30일
답변: Mason Karbassian 2016년 4월 1일
All switches and circuit breakers in Simpower specialized tech blocks have leakage due to their snubbers and/or parallel resistors, etc. which actually keep the disconnected circuits in simulation profile. How can I disconnect them like a real world contactor/relay out of a circuit?

답변 (2개)

Sebastian Castro
Sebastian Castro 2016년 3월 31일
편집: Sebastian Castro 2016년 3월 31일
You should be able to set the snubber values of inf, which makes them ideal. Even the block icons should change to remove the snubbers!
Alternatively, if your model is running in Continuous mode (as per the powergui block), there is an "Enable use of ideal switches" option available in that block.
Under the hood, Simscape Power Systems won't get rid of the components when you open a breaker, but it will decouple the state-space matrices on either side of the switch so you're effectively solving two separate systems.
- Sebastian

Mason Karbassian
Mason Karbassian 2016년 4월 1일
Thanks Sebastian.
I'm aware of all this. The point is that my other switches are to stay nonideal while I need to switch out a circuit "completely" by a logic block like a real contactor/relay and unfortunately the leakages are there and Simulink tries to solve them slowing down the simulation significantly as a result and also making it inaccurate. Some switch that can totally switch out a circuit even if it is only at startup like commenting out by a parameter would be fine too as basically these are the various functions that are selected at startup anyway.

카테고리

Help CenterFile Exchange에서 Get Started with Specialized Power Systems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by