How can I implement a frequency-dependent resistor in Simulink?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I have an electrical circuit describing a mechanical system, in which there is a frequency-dependent resistor, following a formula of R=R_0*sqrt(f). I was wondering how I can define such a resistor in Simulink. I have made the model using Simulink components, not physical ones.
Thanks, Angelis Karlos
0 comentarios
Respuestas (1)
David Ding
el 19 de Oct. de 2017
Hi Angelis,
My understanding is that you have an electrical circuit in Simulink, and you would like to model a variable resistor dependent on some frequency value.
There are only two places where you can find a variable resistor in Simulink. One is under RF Blockset and the other is under Simscape. In both cases, the usage of the variable resistor is the same. The resistor block will have three ports: positive node, negative node, and the inport where the resistance is determined.
For the RF Blockset, you may find the "Variable Resistor" block under RF Blockset -> Circuit Envelope -> Elements". You may feed the "R" port of that block with the resistance defined as per your formula, using a MATLAB function block, for example.
If you are using Simscape, the "Variable Resistor" block is found under Simscape->Foundation Library->Electrical->Electrical Elements. The usage is similar to that in the RF Blockset.
More information about using MATLAB function block to define your resistance formula is found below:
Thanks,
David
1 comentario
Bruno Neri
el 21 de Nov. de 2017
Hi David, I have kind of the same problem, but I didn't really unterstand your answer.
I have to implement the resistance of an Inductor at one of my simulations. But the value of the resistance given by the manufacturer changes according to the frequency. I'd have to implement it up to the 50th Harmonic. And all of the components are connected to the system. Which means, that resistance would have different values for different frequencies at the same simulation. I could "call" the resistance values from a vector since I already them.
Is that possible to implement?
Ver también
Categorías
Más información sobre Electrical Sensors en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!