DC Current Source
Constant current source
Simscape / Electrical / Additional Components / SPICE Sources
The DC Current Source block represents a constant current source whose output current value is independent of the voltage across its terminals.
The block uses a small conductance internally to prevent numerical simulation issues. The conductance connects the + and - ports of the device and has a conductance GMIN:
By default, GMIN matches the GMIN parameter of the Environment Parameters block, whose default value is 1e–12.
To change GMIN, add an Environment Parameters block to your model and set the GMIN parameter to the desired value.
+ — Positive voltage
Electrical conserving port associated with the DC current source positive voltage
- — Negative voltage
Electrical conserving port associated with the DC current source negative voltage
Constant value, DC — DC output current
Value of the DC output current, in A.
Include parallel conductance, GMIN — Whether to include parallel conductance
Yes (default) |
Specify if the current source includes a parallel conductance. The value of the parallel conductance, GMIN, depends on whether your model contains an Environment Parameters block.
This table shows the possible values of the parallel conductance, GMIN:
Values of parallel conductance, GMIN
|Include parallel conductance, GMIN|
|Model contains Environment Parameters block||Model does not contain Environment Parameters block||Parallel conductance, GMIN, is not included and it does not affect the current source.|
|GMIN is equal to the value of the GMIN parameter in the Environment Parameters block.||GMIN = |
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Introduced in R2008a
- DC Current Source | DC Voltage Source | Environment Parameters | Exponential Current Source | Pulse Current Source | Piecewise Linear Voltage Source | SFFM Current Source | Sinusoidal Current Source