Polynomial voltage-controlled current source
Simscape / Electrical / Additional Components / SPICE Sources
The PVCCS (Polynomial Voltage-Controlled Current Source) block represents a current source whose output current value is a polynomial function of the voltage across the input ports. The following equations describe the current through the source as a function of time:
If you specify an n-element vector of polynomial coefficients for the Polynomial coefficients parameter:
If you specify a scalar coefficient for the Polynomial coefficients parameter:
Vin is the voltage across the input ports.
p is the Polynomial coefficients parameter value.
The block uses a small conductance internally to prevent numerical simulation issues. The conductance connects the output 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 to your model and set the GMIN parameter to the desired value.
Refer to the figure for port locations.
p1 — Positive voltage of the controlling input
Electrical conserving port associated with the PVCCS positive voltage of the controlling input.
n1 — Negative voltage of the controlling input
Electrical conserving port associated with the PVCCS negative voltage of the controlling input.
p2 — Positive output voltage
Electrical conserving port associated with the PVCCS positive output voltage.
n2 — Negative output voltage
Electrical conserving port associated with the PVCCS negative output voltage.
Polynomial coefficients — Polynomial coefficients
[0, 1] (default)
The polynomial coefficients that relate the input voltage to the output current, as described in the preceding section.
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