Main Content

Nonlinear Resistor

Discrete nonlinear resistor

Since R2019b

  • Nonlinear Resistor block

Libraries:
Simscape / Electrical / Specialized Power Systems / Passives

Description

The Nonlinear Resistor block represents a time-varying resistor. It implements a discrete variable resistor as a current source or a voltage source. The resistance is specified by a monotonically increasing or decreasing voltage-current characteristic.

Equations

When the nonlinear resistor is implemented as a voltage source, the block uses the following equation for the relationship between the voltage, v, across the device and the current through the resistor, i, for the resistance characteristic specified by R:

v=Ri.

When the nonlinear resistor is implemented as a current source, the block uses the following equation for the relationship:

i=1Rv.

When you use a Nonlinear Resistor block in your model, set the powergui block Simulation type to Discrete and select the Automatically handle Discrete solver and Advanced tab solver settings of blocks parameter in the Preferences tab. The robust discrete solver is used to discretize the electrical model. Simulink® signals an error if the robust discrete solver is not used.

Ports

Conserving

expand all

Specialized electrical conserving port associated with the resistor positive voltage.

Specialized electrical conserving port associated with the resistor negative voltage.

Parameters

expand all

Whether the nonlinear resistor is implemented as a current source or a voltage source.

Resistance specified by a monotonically increasing or decreasing voltage-current characteristic, specified as a 2-by-n matrix where n is greater than or equal to 2.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2019b