Sinusoidal Current Source
Damped sinusoidal current source
Simscape / Electrical / Additional Components / SPICE Sources
The Sinusoidal Current Source block represents a damped sinusoidal current source whose output current is independent of the voltage across the terminals of the source. The following equations describe the current through the source as a function of time:
I0 is the Current offset, IO parameter value.
IA is the Sinusoidal amplitude, IA parameter value.
FREQ is the Sinusoidal frequency, FREQ parameter value.
TD is the Time delay, TD parameter value.
DF is the Damping factor, DF parameter value.
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
To change GMIN, add an Environment Parameters block to your model and set the GMIN parameter to the desired value.
+ — Positive terminal
Electrical conserving port associated with the sinusoidal current source positive terminal.
- — Negative terminal
Electrical conserving port associated with the sinusoidal current source negative terminal.
Current offset, IO — Current offset
The magnitude of the time-independent part of the output current.
Sinusoidal amplitude, IA — Sinusoidal amplitude
The magnitude of the sinusoidal part of the output current.
Sinusoidal frequency, FREQ — Sinusoidal frequency
The frequency of the output sine wave. The value can be less than
Time delay, TD — Time delay
The time at which the sine wave first starts. A value less than
indicates a phase shift of 180 degrees.
Damping factor, DF — Damping factor
1/s (default) | nonnegative scalar
The exponential damping factor for the sine wave to produce the output current. If
DF is greater than or equal to
0, the exponential part
of the equation is always damping for time greater than TD. The value must
be greater than or equal to
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 | Environment Parameters | Exponential Current Source | Pulse Current Source | Piecewise Linear Current Source | SFFM Current Source | Sinusoidal Voltage Source