Discrete nonlinear inductor
Simscape / Electrical / Specialized Power Systems / Passives
The Nonlinear Inductor block represents a time-varying inductor. It implements a discrete variable inductor as a current source. The inductance is specified by a monotonically increasing flux linkage-current characteristic.
When you use a Nonlinear Inductor 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.
The block uses the following equations for the relationship between the voltage, v, across the device and the current through the inductor, i, and the flux linkage:
+ — Positive terminal
Specialized electrical conserving port associated with the inductor positive voltage.
- — Negative terminal
Specialized electrical conserving port associated with the inductor negative voltage.
Discrete Solver — Solver type
Backward Euler (default) |
Robust integration method used by the block. The discrete solver method is automatically
Trapezoidal when, in the
powergui block, in the Preferences
settings, you select Automatically handle discrete solver and
Advanced tab solver settings of blocks.
Trapezoidal robust solver is slightly more
accurate than the
Backward Euler robust solver,
especially when the model is simulated at larger sample times. The
Trapezoidal robust solver may produce slight
damped numerical oscillations on machine voltage in no-load conditions,
Backward Euler robust solver prevents
oscillations and maintains good accuracy.
Flux linkage - current characteristics [(V.s);(A)] — Inductance characteristic, L
[0,0 ; 1,1] (default) | 2-by-n matrix
Resistance specified by a monotonically increasing flux linkage-current characteristic, specified as a 2-by-n matrix where n is greater than or equal to 2.
Initial flux linkage (V.s) — Initial flux linkage
0 (default) | scalar
Initial flux linkage.
Measurements — Measurement type
None (default) |
Measurement type. Select
Flux, Imag to measure the flux and
magnetization current of the nonlinear inductor. Place a
Multimeter block in your model to display the selected
measurements during the simulation.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Introduced in R2019b