Following the series of PSIM Community articles on variable passive components, this article discusses the creation of a variable resistor model.
Compared to the Variable Inductor and the Variable Capacitor models, this implementation is much simpler.
Essentially, we can leverage the Nonlinear Element block to implement Ohm’s Law: V = I × R, where R is treated as a variable (x) in this case. I'm using a parameter file to define R, and then using a standard resistor element as a benchmark for comparison.
The upper signal input to the Nonlinear Element block defines its resistance value in Ohms.
You can find the schematic below, incl. the Variable Resistor model below:
Relevant Material: