Missing a continuous variable resistor for Specialized Power Systems

조회 수: 15 (최근 30일)
Thomas Lundy
Thomas Lundy 2023년 7월 31일
답변: Sumukh 2024년 8월 20일
Hi,
I am currently working on a system where I would like to test varying resistance values during the simulation to see how the control would react. Initially I tried to use a variable resistor but I have created my system for continuous time and specialized power systems only has a discrete variable resistor block.
Is there a way to accomplish what I'm looking for? I have seen variable resistors in other libraries such as Simscape / Foundation Library / Electrical / Electrical Elements and RF Blockset / Circuit Envelope / Elements, I am relatively new to simscape electrical and I'm unsure if theres a way to connect these blocks into my system or if there's another workaround.
Any help would be greatly appreciated. Thank you

답변 (1개)

Sumukh
Sumukh 2024년 8월 20일
Hi Thomas.
There is no “Continuous” simulation-type “Variable Resistor” block available in Simscape Specialized Power Systems (SPS) library. The “Variable Resistor” block in SPS can only run when the “Simulation Type” is set to “Discrete” in the “powergui” block, as per the following documentation:
However, if it is required to vary the resistance based on a non-linear relationship between the voltage and current, custom blocks can be created. The newly created block can be used in “Continuous” mode of simulation. You can refer to the following documentation to know more about creating a custom non-linear resistor block:
A possible workaround is to model the entire system using Simscape Electrical blocks, to use the “Variable Resistor” available in Simscape Electrical library. You can follow this documentation to know more about the same:
The Simscape Electrical network is modelled in the same way as the network made of Simulink SPS blocks, along with the “Solver Configuration” block attached to the model, to configure the solver for the Simscape network. The blocks also have “Initial Targets” tab in the block parameters to specify initial conditions.
I hope this helps resolve your issue.

카테고리

Help CenterFile Exchange에서 Electrical Sensors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by