# Nonlinear Resistor

Discrete nonlinear resistor

• Library:
• Simscape / Electrical / Specialized Power Systems / Fundamental Blocks / Elements

## 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=R\ast i.$`

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

`$i=\frac{1}{R}\ast v.$`

When you use a Nonlinear Resistor block in your model, set the powergui block Simulation type to `Discrete`. The robust discrete solver is used to discretize the electrical model.

## 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.